18.104.22.168.8 ApiCreateEnum (Opnum 7)
(Protocol Version 3) The ApiCreateEnum method returns a collection of names of objects from the cluster state that are of the specified enumeration type. If multiple enumeration types are indicated, the resulting ENUM_LIST contains zero or more entries of each type, and the type of each entry in the list is indicated by the ENUM_ENTRY data structure, as specified in section 22.214.171.124.
The server MUST accept an ApiCreateEnum request only when its protocol server state is read/write, as specified in section 3.1.1, except when the dwType parameter is CLUSTER_ENUM_NODE. If the dwType parameter is CLUSTER_ENUM_NODE, the server MUST accept an ApiCreateEnum request when the protocol server state is read/write, and the server SHOULD accept an ApiCreateEnum request when the protocol server state is read-only.
The server SHOULD accept an ApiCreateEnum request if the client's access level is at least "Read" (section 3.1.4).
error_status_t ApiCreateEnum( [in] DWORD dwType, [out] PENUM_LIST* ReturnEnum, [out] error_status_t* rpc_status );
dwType: The type of enumeration to be returned by the server. This value MUST be set to the bitwise OR operator of one or more of the following values, except as noted for CLUSTER_ENUM_INTERNAL_NETWORK and CLUSTER_ENUM_SHARED_VOLUME_RESOURCE.
Returns an enumeration of names of cluster nodes.
Returns an enumeration of names of resource types.
Returns an enumeration of names of cluster resources.
Returns an enumeration of names of cluster groups.
Returns an enumeration of names of cluster networks.
Returns an enumeration of names of cluster network interfaces.
Cannot be specified with any other value for this parameter. Returns an enumeration of names of cluster networks that can be used for internal communications.
Returns an enumeration of names of resources that represent cluster shared volumes (ResourceSharedVolumes state is TRUE).
Cannot be specified with any other value for this parameter.<63>
ReturnEnum: A pointer to a PENUM_LIST, as specified in section 126.96.36.199. The pointer contains the data that matches the enumeration type that is indicated by the dwType parameter. The server MUST allocate as much memory as is required to return the enumeration data. If the method fails, this parameter MUST be ignored.
rpc_status: A 32-bit integer used to indicate success or failure. The RPC runtime MUST indicate, by writing to this parameter, whether it succeeded in executing this method on the server. The encoding of the value passed in this parameter MUST conform to encoding for comm_status and fault_status, as specified in Appendix E of [C706].
Return Values: The method MUST return the following error codes for the conditions that are specified as follows.
Return value/code Description
The server failed to allocate enough memory for the ReturnEnum parameter.
The enumeration type that is specified by dwType is not valid.
For any other condition, the server MUST return a value that is not one of the values listed in the preceding table. The client MUST behave in one consistent, identical manner for all values that are not listed in the preceding table. However, the client SHOULD treat errors specified in 188.8.131.52 as recoverable errors and initiate the reconnect procedure as specified in section 184.108.40.206.