3.1.4.2.154 ApiAddGroupToGroupSetDependency (Opnum 172)

The ApiAddGroupToGroupSetDependency method<141> instructs the server to add a cluster group identified by the DependentGroup parameter to the cluster group set identified by the ProviderGroupSet parameter. A cluster group can only be dependent on one cluster group set.

The server MUST accept an ApiAddGroupToGroupSetDependency request for processing only if it is in the read/write state, as specified in section 3.1.1.

The server MUST require that the access level associated with the DependentGroup context handle is "All" and that the access level associated with the ProviderGroupSet context handle is "All" (section 3.1.4).

 error_status_t
 ApiAddGroupToGroupSetDependency (
   [ in ] HGROUP_RPC DependentGroup,
   [ in ] HGROUPSET_RPC ProviderGroupSet,
   [ out ] error_status_t *rpc_status
 );

DependentGroup: An HGROUP_RPC (section 2.2.1.3) context handle that was obtained in a previous ApiOpenGroup (section 3.1.4.2.42) or ApiCreateGroup (section 3.1.4.2.43) method call. This field supplies the context handle to the group set that is dependent on the ProviderGroupSet.

ProviderGroupSet: An HGROUPSET_RPC (section 2.2.1.11) context handle that was obtained in a previous ApiOpenGroupSet (section 3.1.4.2.147) or ApiCreateGroupSet (section 3.1.4.2.146) method call. This field supplies the context handle to the group set that DependentGroup depends on.

rpc_status: A 32-bit integer used to indicate success or failure. The RPC runtime MUST indicate by writing to this parameter whether the runtime 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 specified conditions.

Return value/code

Description

0x00000000

ERROR_SUCCESS

Success.

0x00000032

ERROR_NOT_SUPPORTED

The request is not supported.

0x00000057

ERROR_INVALID_PARAMETER

The parameter is incorrect.

0x00000428

ERROR_EXCEPTION_IN_SERVICE

An exception occurred in the service when handling the control request.

0x00001394

ERROR_GROUP_NOT_AVAILABLE

The group represented by the DependentGroup parameter is not available in the cluster.

0x000013D1

ERROR_CLUSTER_NODE_SHUTTING_DOWN

The cluster node is shutting down in the cluster group set.

0x00001714

ERROR_CLUSTER_GROUP_MOVING

The group is unable to accept the request since the move operation is performed to another node.

0x0000175C

ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER

The operation has failed because the requested node is not currently part of active cluster membership.

0x00001767

ERROR_GROUPSET_NOT_AVAILABLE

The group set represented by the ProviderGroupSet parameter is not part of the nonvolatile cluster state.

0x00001768

ERROR_GROUPSET_NOT_FOUND

The cluster group set represented by the ProviderGroupSet parameter is not available for any further requests.

For any other condition, the server MUST set rpc_status to a value that is not one of the values listed in the preceding table. The client MUST treat all values that are not listed in the preceding table the same, except as specified in section 3.2.4.6.