openstack.clustering.v1.Cluster

openstack.clustering.v1.Cluster

The Cluster Class

The Cluster class inherits from Resource.

class openstack.clustering.v1.cluster.Cluster(_synchronized=False, **attrs)

The base resource

Parameters:_synchronized (bool) – This is not intended to be used directly. See new() and existing().
name = None

The name of the cluster.

profile_id = None

The ID of the profile used by this cluster.

user_id = None

The ID of the user who created this cluster, thus the owner of it.

project_id = None

The ID of the project this cluster belongs to.

domain_id = None

The domain ID of the cluster owner.

init_at = None

Timestamp of when the cluster was initialized. Type: datetime object parsed from ISO 8601 formatted string

created_at = None

Timestamp of when the cluster was created. Type: datetime object parsed from ISO 8601 formatted string

updated_at = None

Timestamp of when the cluster was last updated. Type: datetime object parsed from ISO 8601 formatted string

min_size = None

Lower bound (inclusive) for the size of the cluster.

max_size = None

Upper bound (inclusive) for the size of the cluster. A value of -1 indicates that there is no upper limit of cluster size.

desired_capacity = None

Desired capacity for the cluster. A cluster would be created at the scale specified by this value.

timeout = None

Default timeout (in seconds) for cluster operations.

status = None

A string representation of the cluster status.

status_reason = None

A string describing the reason why the cluster in current status.

config = None

A dictionary configuration for cluster.

metadata = None

A collection of key-value pairs that are attached to the cluster.

data = None

A dictionary with some runtime data associated with the cluster.

node_ids = None

A list IDs of nodes that are members of the cluster.

profile_name = None

Name of the profile used by the cluster.

is_profile_only = None

Specify whether the cluster update should only pertain to the profile.

dependents = None

A dictionary with dependency information of the cluster

op(session, operation, **params)

Perform an operation on the cluster.

Parameters:
  • session – A session object used for sending request.
  • operation – A string representing the operation to be performed.
  • params (dict) – An optional dict providing the parameters for the operation.
Returns:

A dictionary containing the action ID.

force_delete(session)

Force delete a cluster.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.