senlin_dashboard.api package

Subpackages

Submodules

senlin_dashboard.api.senlin module

class senlin_dashboard.api.senlin.Cluster(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.ClusterPolicy(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.Event(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.Node(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.Policy(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.Profile(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.ProfileType(apiresource)[source]

Bases: APIResourceWrapper

class senlin_dashboard.api.senlin.Receiver(apiresource)[source]

Bases: APIResourceWrapper

senlin_dashboard.api.senlin.cluster_attach_policy(request, cluster, policy, params)[source]

Attach policy to a specific cluster

senlin_dashboard.api.senlin.cluster_check(request, cluster, params=None)[source]

Check a Cluster’s Health Status.

senlin_dashboard.api.senlin.cluster_create(request, **params)[source]

Create a cluster.

senlin_dashboard.api.senlin.cluster_delete(request, cluster)[source]

Delete cluster.

senlin_dashboard.api.senlin.cluster_detach_policy(request, cluster, policy)[source]

Detach policy from cluster.

senlin_dashboard.api.senlin.cluster_get(request, cluster)[source]

Returns cluster.

senlin_dashboard.api.senlin.cluster_list(request, sort_dir='desc', sort_key='created_at', marker=None, paginate=False, reversed_order=False, filters=None)[source]

Returns all clusters.

senlin_dashboard.api.senlin.cluster_policy_list(request, cluster, params)[source]

List policies from cluster.

senlin_dashboard.api.senlin.cluster_recover(request, cluster, params=None)[source]

Recover a Cluster to a Healthy Status

senlin_dashboard.api.senlin.cluster_resize(request, cluster, **params)[source]

Resize a Cluster

senlin_dashboard.api.senlin.cluster_scale_in(request, cluster, count=None)[source]

Scale in a Cluster

senlin_dashboard.api.senlin.cluster_scale_out(request, cluster, count=None)[source]

Scale out a Cluster

senlin_dashboard.api.senlin.cluster_update(request, cluster_id, **params)[source]

Update a cluster

senlin_dashboard.api.senlin.event_list(request, sort_dir='desc', sort_key='timestamp', marker=None, paginate=False, reversed_order=False, filters=None)[source]

Returns all events.

senlin_dashboard.api.senlin.node_check(request, node, params=None)[source]

Check a node’s health status.

senlin_dashboard.api.senlin.node_create(request, **params)[source]

Create a node.

senlin_dashboard.api.senlin.node_delete(request, node)[source]

Delete a node.

senlin_dashboard.api.senlin.node_get(request, node)[source]

Returns a node.

senlin_dashboard.api.senlin.node_list(request, sort_dir='desc', sort_key='name', marker=None, paginate=False, reversed_order=False, cluster_id=None, filters=None)[source]

Returns all nodes.

senlin_dashboard.api.senlin.node_recover(request, node, params=None)[source]

Recover a Node to Healthy Status

senlin_dashboard.api.senlin.node_update(request, node_id, **params)[source]

Update a node

senlin_dashboard.api.senlin.policy_create(request, **params)[source]

Create a policy.

senlin_dashboard.api.senlin.policy_delete(request, policy)[source]

Delete a policy.

senlin_dashboard.api.senlin.policy_get(request, policy)[source]

Returns a policy.

senlin_dashboard.api.senlin.policy_list(request, sort_dir='desc', sort_key='created_at', marker=None, paginate=False, reversed_order=False, filters=None)[source]

Returns all policies.

senlin_dashboard.api.senlin.policy_update(request, policy, **params)[source]

Update a policy.

senlin_dashboard.api.senlin.profile_create(request, **params)[source]

Create a profile.

senlin_dashboard.api.senlin.profile_delete(request, profile)[source]

Delete a profile.

senlin_dashboard.api.senlin.profile_get(request, profile)[source]

Returns a profile.

senlin_dashboard.api.senlin.profile_list(request, sort_dir='desc', sort_key='created_at', marker=None, paginate=False, reversed_order=False, filters=None)[source]

Returns all profiles.

senlin_dashboard.api.senlin.profile_update(request, profile_id, **params)[source]

Update a profile.

senlin_dashboard.api.senlin.receiver_create(request, **params)[source]

Create a receiver

senlin_dashboard.api.senlin.receiver_delete(request, receiver)[source]

Delete a receiver.

senlin_dashboard.api.senlin.receiver_get(request, receiver)[source]

Returns a receiver.

senlin_dashboard.api.senlin.receiver_list(request, sort_dir='desc', sort_key='created_at', marker=None, paginate=False, reversed_order=False, filters=None)[source]

Returns all receivers.

senlin_dashboard.api.senlin.receiver_update(request, receiver_id, **params)[source]

Update a receiver

senlin_dashboard.api.senlin.senlinclient(request)[source]

senlin_dashboard.api.utils module

senlin_dashboard.api.utils.convert_to_yaml(data, default_flow_style=False)[source]
senlin_dashboard.api.utils.load_yaml(data)[source]
senlin_dashboard.api.utils.update_pagination(entities, request_size, page_size, marker, reversed_order)[source]

Module contents