otcextensions.sdk.css.v1.cluster¶
The CSS Cluster Class¶
The Cluster
class inherits from
Resource
.
- class otcextensions.sdk.css.v1.cluster.Cluster(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- base_path: str = '/clusters'¶
The base part of the URI for this resource.
- resources_key: ty.Optional[str] = 'clusters'¶
Plural form of key for resource.
- resource_key: ty.Optional[str] = 'cluster'¶
Singular form of key for resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- action_progress¶
Cluster behavior progress, which shows the progress of cluster creation and scaling in percentage.
- actions¶
Current behavior of a cluster.
- admin_pwd¶
Password of the cluster user admin in security mode.
- backup_strategy¶
Automatic snapshot creation.
- bandwidth_size¶
Public network bandwidth.
- cmk_id¶
KMS Key ID.
- created_at¶
Cluster creation time.
- datastore¶
Type of the data search engine.
- disk_encryption¶
Whether disks are encrypted.
- elb_whitelist¶
Public network access information.
- endpoints¶
IP address and port number of the user used to access the VPC.
- enterprise_project_id¶
ID of the enterprise project that a cluster belongs to.
- error¶
Error object
- floating_ip¶
Public IP address information.
- id¶
Cluster ID.
- instance¶
Instance.
- instance_num¶
Number of clusters.
- is_authority_enabled¶
Whether to enable authentication.
- is_billed¶
Whether cluster is billed.
- is_backup_enabled¶
Whether the snapshot function is enabled.
- is_disk_encrypted¶
Whether disks are encrypted.
- is_https_enabled¶
Communication encryption status.
- network_id¶
Network ID.
- nodes¶
List of node objects.
- name: ty.Union[Body, URI]¶
Cluster name.
- public_kibana_resp¶
Kibana public network access information.
- router_id¶
Router (VPC) ID.
- security_group_id¶
Security group ID.
- status¶
Cluster status.
- status_code¶
Cluster status code.
- tags¶
Cluster tags.
- updated_at¶
Last modification time of a cluster.
- vpcep_ip¶
Endpoint IP address.
- restart(session)¶
Restart the cluster.
- extend(session, add_nodes)¶
Scaling Out a Cluster with only Common Nodes.
- update_flavor(session, new_flavor, node_type=None, check_replica=True)¶
Modify cluster specifications.
- update_name(session, new_name)¶
Update the name of the CSS cluster.
- update_password(session, new_password)¶
Update the password of the CSS cluster.
- update_security_group(session, security_group_id)¶
Update security group of the CSS cluster.
- update_kernel(session, target_image_id, upgrade_type, indices_backup_check, agency, cluster_load_check=True)¶
Update the kernel of the CSS cluster.
- scale_in(session, nodes)¶
Scale in a cluster by removing specified nodes.
- scale_in_by_node_type(session, nodes)¶
Remove instances of specific types and reduce instance storage capacity in a cluster.
- replace_node(session, node_id)¶
Replacing cluster node.
- add_nodes(session, node_type, flavor, node_size, volume_type)¶
Adding master and client node to cluster.
- retry_upgrade_job(session, job_id, retry_mode=None)¶
Retry a task or terminate the impact of a task.
- classmethod existing(connection=None, **kwargs)¶
Create an instance of an existing remote resource.
When creating the instance set the
_synchronized
parameter ofResource
toTrue
to indicate that it represents the state of an existing server-side resource. As such, all attributes passed in**kwargs
are considered “clean”, such that an immediateupdate()
call would not generate a body of attributes to be modified on the server.- Parameters:
kwargs (dict) – Each of the named arguments will be set as attributes on the resulting Resource object.