Add Zones Cluster Associations
Maps a consumption-domain zone to the specified vSphere clusters. If a cluster or a subset of specified clusters are already members of the specified zone, the result is success for those clusters. This operation supports partial success, i.e., it is possible that a subset of the specified clusters get successfully associated with the specified zone but the association fails for a subset of clusters. The returned result will contain the details about only those clusters for which the association failed. if you do not have all of the privileges described as follows: - The resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter zone requires Zone.Manage.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the zone to be mapped to the specified vSphere clusters. The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.
Set of identifiers of vSphere clusters to which the the specified zone should be mapped. The parameter must contain identifiers for the resource type: ClusterComputeResource.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
Status see #Status. If the operation failed, returns the reason of failures. There will be an error message indicating the identifier of the cluster for which the association failed and the reason of failure. The cluster identifiers that are not present in #Status will have been successfully associated.
{
"failed_clusters": {},
"success": false
}
Associations between the identifiers of the clusters for which the operation failed and the reason of the failure. When clients pass a value of this structure as a parameter, the key in the field map must be an identifier for the resource type: ClusterComputeResource. When operations return a value of this structure as a result, the key in the field map will be an identifier for the resource type: ClusterComputeResource.
This is true if the complete operation succeeded without any errors. Otherwise, it is false if all or some operations have failed.
Errors
com.vmware.vapi.std.errors.invalid_argument : if more than one cluster or an empty set of clusters is specified.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have all of the privileges described as follows: - The resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter zone requires Zones.Manage privilege. - Each resource of ClusterComputeResource referenced by the parameter clusters requires Zone.ObjectAttachable privilege.
com.vmware.vapi.std.errors.not_found : if the specified zone is not known to this vCenter server.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: add