senlin_dashboard.api.rest package¶
Submodules¶
senlin_dashboard.api.rest.senlin module¶
API for the senlin service.
- class senlin_dashboard.api.rest.senlin.Cluster(**kwargs)[source]¶
Bases:
View
API for Senlin cluster.
- delete(request, cluster_id)[source]¶
Delete a specific cluster
DELETE http://localhost/api/senlin/clusters/cc758c90-3d98-4ea1-af44-aab405c9c915 # noqa
- get(request, cluster_id)[source]¶
Get a single cluster’s details with the cluster id.
The following get parameters may be passed in the GET
- Parameters:
cluster_id – the id of the cluster
The result is a cluster object.
- url_regex = 'senlin/clusters/(?P<cluster_id>[^/]+)/$'¶
- class senlin_dashboard.api.rest.senlin.ClusterActions(**kwargs)[source]¶
Bases:
View
API for Senlin cluster.
- url_regex = 'senlin/clusters/(?P<cluster_id>[^/]+)/(?P<action>[^/]+)$'¶
- class senlin_dashboard.api.rest.senlin.Clusters(**kwargs)[source]¶
Bases:
View
API for Senlin cluster.
- url_regex = 'senlin/clusters/$'¶
- class senlin_dashboard.api.rest.senlin.Events(**kwargs)[source]¶
Bases:
View
API for Senlin events.
- url_regex = 'senlin/events/(?P<obj_id>[^/]+)/$'¶
- class senlin_dashboard.api.rest.senlin.Node(**kwargs)[source]¶
Bases:
View
API for Senlin node.
- delete(request, node_id)[source]¶
Delete a specific node
DELETE http://localhost/api/senlin/nodes/cc758c90-3d98-4ea1-af44-aab405c9c915 # noqa
- get(request, node_id)[source]¶
Get a single node’s details with the receiver id.
The following get parameters may be passed in the GET
- Parameters:
node_id – the id of the node
The result is a node object.
- url_regex = 'senlin/nodes/(?P<node_id>[^/]+)/$'¶
- class senlin_dashboard.api.rest.senlin.Nodes(**kwargs)[source]¶
Bases:
View
API for Senlin node.
- url_regex = 'senlin/nodes/$'¶
- class senlin_dashboard.api.rest.senlin.Policies(**kwargs)[source]¶
Bases:
View
API for Senlin policies.
- url_regex = 'senlin/policies/$'¶
- class senlin_dashboard.api.rest.senlin.Policy(**kwargs)[source]¶
Bases:
View
API for Senlin policy.
- delete(request, policy_id)[source]¶
Delete a specific policy
DELETE http://localhost/api/senlin/policies/cc758c90-3d98-4ea1-af44-aab405c9c915 # noqa
- get(request, policy_id)[source]¶
Get a single policy’s details with the policy id.
The following get parameters may be passed in the GET
- Parameters:
policy_id – the id of the policy
The result is a policy object.
- url_regex = 'senlin/policies/(?P<policy_id>[^/]+)/$'¶
- class senlin_dashboard.api.rest.senlin.Profile(**kwargs)[source]¶
Bases:
View
API for Senlin profile.
- delete(request, profile_id)[source]¶
Delete a specific profile
DELETE http://localhost/api/senlin/profiles/cc758c90-3d98-4ea1-af44-aab405c9c915 # noqa
- get(request, profile_id)[source]¶
Get a single profile’s details with the profile id.
The following get parameters may be passed in the GET
- Parameters:
profile_id – the id of the profile
The result is a profile object.
- url_regex = 'senlin/profiles/(?P<profile_id>[^/]+)/$'¶
- class senlin_dashboard.api.rest.senlin.Profiles(**kwargs)[source]¶
Bases:
View
API for Senlin profile.
- url_regex = 'senlin/profiles/$'¶
- class senlin_dashboard.api.rest.senlin.Receiver(**kwargs)[source]¶
Bases:
View
API for Senlin receiver.
- delete(request, receiver_id)[source]¶
Delete a specific receiver
DELETE http://localhost/api/senlin/receivers/cc758c90-3d98-4ea1-af44-aab405c9c915 # noqa
- get(request, receiver_id)[source]¶
Get a single receiver’s details with the receiver id.
The following get parameters may be passed in the GET
- Parameters:
receiver_id – the id of the receiver
The result is a receiver object.
- url_regex = 'senlin/receivers/(?P<receiver_id>[^/]+)/$'¶
Module contents¶
This package holds the REST API that supports the Senlin dashboard Javascript code.