models.node module¶
-
class
models.node.
Node
(capacity_by_tier=None, chassis_info=None, cluster_partition_id=None, cluster_partition_name=None, cohesity_node_serial=None, disk_count=None, disk_count_by_tier=None, id=None, ip=None, is_app_node=None, is_marked_for_removal=None, max_physical_capacity_bytes=None, node_hardware_info=None, node_incarnation_id=None, node_software_version=None, node_type=None, offline_mount_paths_of_disks=None, removal_reason=None, removal_state=None, slot_number=None, stats=None, system_disks=None)[source]¶ Bases:
object
Implementation of the ‘Node’ model.
Node is the struct for a Node.
- Attributes:
- capacity_by_tier (list of CapacityByTier): CapacityByTier describes
the capacity of each storage tier.
- chassis_info (ChassisInfo): ChassisInfo is the struct for the
Chassis.
- cluster_partition_id (long|int): ClusterPartitionId is the Id of the
cluster partition to which the Node belongs.
- cluster_partition_name (string): ClusterPartitionName is the name of
the cluster to which the Node belongs.
- cohesity_node_serial (string): Cohesity Node Serial Number of the
Node.
disk_count (long|int): DiskCount is the number of disks in a node. disk_count_by_tier (list of CountByTier): DiskCountByTier describes
the disk number of each storage tier.
id (long|int): Id is the Id of the Node. ip (string): Ip is the IP address of the Node. is_app_node (bool): Whether node is app node. is_marked_for_removal (bool): IsMarkedForRemoval specifies whether the
node has been marked for removal.
- max_physical_capacity_bytes (long|int): MaxPhysicalCapacityBytes
specifies the maximum physical capacity of the node in bytes.
- node_hardware_info (NodeHardwareInfo): NodeHardwareInfo provides the
information regarding the hardware.
- node_incarnation_id (long|int): NodeIncarnationId is the incarnation
id of this node. The incarnation id is changed every time the data is wiped from the node. Various services on a node is only run if incarnation id of the node matches the incarnation id of the cluster. Whenever a mismatch is detected, Nexus will stop all services and clean the data from the node. After clean operation is completed, Nexus will set the node incarnation id to cluster incarnation id and start the services.
- node_software_version (string): NodeSoftwareVersion is the current
version of Cohesity software installed on a node.
- node_type (string): Node type: StorageNode, AllFlashNode, RoboNode,
AppNode, etc.
- offline_mount_paths_of_disks (list of string):
OfflineMountPathsOfDisks provides the corresponding mount paths for direct attached disks that are currently offline - access to these were detected to hang sometime in the past. After these disks have been fixed, their mount paths needs to be removed from the following list before these will be accessed again.
- removal_reason (list of RemovalReasonNodeEnum): RemovalReason
specifies the removal reason of the node. ‘kAutoHealthCheck’ means the entity health is bad. ‘kUserGracefulRemoval’ means user initiated a graceful removal. ‘kUserAvoidAccess’ means user initiated a mark offline. ‘kUserGracefulNodeRemoval’ mean users initiated graceful node removal. ‘kUserRemoveDownNode’ mean user initiated graceful removal of down node.
- removal_state (RemovalStateNodeEnum): RemovalState specifies the
removal state of the node. ‘kDontRemove’ means the state of object is functional and it is not being removed. ‘kMarkedForRemoval’ means the object is being removed. ‘kOkToRemove’ means the object has been removed on the Cohesity Cluster and if the object is physical, it can be removed from the Cohesity Cluster.
- slot_number (int): Slot number occupied by this node within the
chassis.
- stats (NodeStats): NodeStats provides various statistics for the
node.
- system_disks (list of NodeSystemDiskInfo): SystemDisk describes the
node system disks.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.