CLUSTER_RESOURCE_STATE enumeration (clusapi.h)

Describes the operational condition of a resource. These values are used by the GetClusterResourceState function, the State property of the MSCluster_Resource class, and the State property of the ClusResource object.

Syntax

typedef enum CLUSTER_RESOURCE_STATE {
  ClusterResourceStateUnknown = -1,
  ClusterResourceInherited,
  ClusterResourceInitializing,
  ClusterResourceOnline,
  ClusterResourceOffline,
  ClusterResourceFailed,
  ClusterResourcePending = 128,
  ClusterResourceOnlinePending,
  ClusterResourceOfflinePending
} ;

Constants

 
ClusterResourceStateUnknown
Value: -1
The operation was not successful. For more information about the error, call the function
GetLastError.
ClusterResourceInherited
The resource has been inherited.
ClusterResourceInitializing
The resource is performing initialization.
ClusterResourceOnline
The resource is operational and functioning normally.
ClusterResourceOffline
The resource is not operational.
ClusterResourceFailed
The resource has failed.
ClusterResourcePending
Value: 128
The resource is in the process of coming online or going
offline.
ClusterResourceOnlinePending
The resource is in the process of coming online.
ClusterResourceOfflinePending
The resource is in the process of going offline.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Header clusapi.h

See also

CLUS_MAINTENANCE_MODE_INFOEX

CLUS_PROVIDER_STATE_CHANGE_INFO

Failover Cluster Enumerations

GetClusterResourceState

MSCluster_Resource

State Property of the ClusResource Object