public interface Associations extends Service, AssociationsTypes
Associations
interface provides methods to manage associations of a
single consumption-domain zone to multiple vSphere clusters. This interface was
added in vSphere API 8.0.0.1.AssociationsTypes.Status
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
AssociationsTypes.Status |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters)
Maps a consumption-domain zone to the specified vSphere clusters.
|
void |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback)
Maps a consumption-domain zone to the specified vSphere clusters.
|
void |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback,
InvocationConfig invocationConfig)
Maps a consumption-domain zone to the specified vSphere clusters.
|
AssociationsTypes.Status |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
InvocationConfig invocationConfig)
Maps a consumption-domain zone to the specified vSphere clusters.
|
java.util.Set<java.lang.String> |
get(java.lang.String zone)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
void |
get(java.lang.String zone,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
void |
get(java.lang.String zone,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
java.util.Set<java.lang.String> |
get(java.lang.String zone,
InvocationConfig invocationConfig)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
AssociationsTypes.Status |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
void |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
void |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback,
InvocationConfig invocationConfig)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
AssociationsTypes.Status |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
InvocationConfig invocationConfig)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
AssociationsTypes.Status add(java.lang.String zone, java.util.Set<java.lang.String> clusters)
Synchronous method overload. Result of the invocation will be reported as a method return value.
zone
- 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
.clusters
- 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
.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method 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 com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
will
have been successfully associated.InvalidArgument
- if more than one cluster or an empty set of clusters is specified.NotFound
- if the specified zone is not known to this vCenter server.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.Unauthenticated
- if the user can not be authenticated.Error
- when unexpected error is encountered.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. AssociationsTypes.Status add(java.lang.String zone, java.util.Set<java.lang.String> clusters, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
zone
- 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
.clusters
- 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
.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method 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 com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
will
have been successfully associated.InvalidArgument
- if more than one cluster or an empty set of clusters is specified.NotFound
- if the specified zone is not known to this vCenter server.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.Unauthenticated
- if the user can not be authenticated.Error
- when unexpected error is encountered.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. void add(java.lang.String zone, java.util.Set<java.lang.String> clusters, AsyncCallback<AssociationsTypes.Status> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method 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 com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
will
have been successfully associated.
Operation Errors:
InvalidArgument
- if more than one cluster or an empty set of clusters is specified.
NotFound
- if the specified zone is not known to this vCenter server.
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.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. zone
- 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
.clusters
- 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
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void add(java.lang.String zone, java.util.Set<java.lang.String> clusters, AsyncCallback<AssociationsTypes.Status> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method 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 com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
will
have been successfully associated.
Operation Errors:
InvalidArgument
- if more than one cluster or an empty set of clusters is specified.
NotFound
- if the specified zone is not known to this vCenter server.
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.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. zone
- 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
.clusters
- 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
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.AssociationsTypes.Status remove(java.lang.String zone, java.util.Set<java.lang.String> clusters)
Synchronous method overload. Result of the invocation will be reported as a method return value.
zone
- Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.clusters
- Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource
.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.NotFound
- if the specified zone is not known to this vCenter server.NotAllowedInCurrentState
- if there is a workload running in the specified zone and depends on this zone's
cluster associations to be present.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.Unauthenticated
- if the user can not be authenticated.Error
- when unexpected error is encountered.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. AssociationsTypes.Status remove(java.lang.String zone, java.util.Set<java.lang.String> clusters, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
zone
- Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.clusters
- Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.NotFound
- if the specified zone is not known to this vCenter server.NotAllowedInCurrentState
- if there is a workload running in the specified zone and depends on this zone's
cluster associations to be present.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.Unauthenticated
- if the user can not be authenticated.Error
- when unexpected error is encountered.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. void remove(java.lang.String zone, java.util.Set<java.lang.String> clusters, AsyncCallback<AssociationsTypes.Status> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.
Operation Errors:
NotFound
- if the specified zone is not known to this vCenter server.
NotAllowedInCurrentState
- if there is a workload running in the specified zone and depends on this zone's
cluster associations to be present.
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.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. zone
- Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.clusters
- Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void remove(java.lang.String zone, java.util.Set<java.lang.String> clusters, AsyncCallback<AssociationsTypes.Status> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status
. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.
Operation Errors:
NotFound
- if the specified zone is not known to this vCenter server.
NotAllowedInCurrentState
- if there is a workload running in the specified zone and depends on this zone's
cluster associations to be present.
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.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires Zone.Manage
. zone
- Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.clusters
- Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.Set<java.lang.String> get(java.lang.String zone)
Synchronous method overload. Result of the invocation will be reported as a method return value.
zone
- Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.ClusterComputeResource
.NotFound
- if the specified zone is not known to this vCenter server.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 System.Read privilege.Unauthenticated
- if the user can not be authenticated.Error
- when unexpected error is encountered.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires System.Read
. java.util.Set<java.lang.String> get(java.lang.String zone, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
zone
- Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.invocationConfig
- Configuration for the method invocation.ClusterComputeResource
.NotFound
- if the specified zone is not known to this vCenter server.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 System.Read privilege.Unauthenticated
- if the user can not be authenticated.Error
- when unexpected error is encountered.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires System.Read
. void get(java.lang.String zone, AsyncCallback<java.util.Set<java.lang.String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The set of vSphere clusters mapped to the specified zone.
The return value will contain identifiers for the resource type: ClusterComputeResource
.
Operation Errors:
NotFound
- if the specified zone is not known to this vCenter server.
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 System.Read privilege.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires System.Read
. zone
- Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String zone, AsyncCallback<java.util.Set<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
The set of vSphere clusters mapped to the specified zone.
The return value will contain identifiers for the resource type: ClusterComputeResource
.
Operation Errors:
NotFound
- if the specified zone is not known to this vCenter server.
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 System.Read privilege.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone
referenced by the
parameter zone
requires System.Read
. zone
- Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.