apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
EsxsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
EsxsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
Task |
create(java.lang.String org,
java.lang.String sddc,
EsxConfig esxConfig,
java.lang.String action)
Add/Remove one or more ESX hosts in the target cloud
|
void |
create(java.lang.String org,
java.lang.String sddc,
EsxConfig esxConfig,
java.lang.String action,
AsyncCallback<Task> asyncCallback)
Add/Remove one or more ESX hosts in the target cloud
|
void |
create(java.lang.String org,
java.lang.String sddc,
EsxConfig esxConfig,
java.lang.String action,
AsyncCallback<Task> asyncCallback,
InvocationConfig invocationConfig)
Add/Remove one or more ESX hosts in the target cloud
|
Task |
create(java.lang.String org,
java.lang.String sddc,
EsxConfig esxConfig,
java.lang.String action,
InvocationConfig invocationConfig)
Add/Remove one or more ESX hosts in the target cloud
|
public EsxsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public EsxsStub(ApiProvider apiProvider, StubConfigurationBase config)
public Task create(java.lang.String org, java.lang.String sddc, EsxConfig esxConfig, java.lang.String action)
Esxs
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Esxs
org
- Organization identifier (required)sddc
- Sddc identifier (required)esxConfig
- esxConfig (required)action
- If = 'add', will add the esx. If = 'remove', will delete the esx/esxs bound to a
single cluster (Cluster Id is mandatory for non cluster 1 esx remove). If =
'force-remove', will delete the esx even if it can lead to data loss (This is an
privileged operation). If = 'addToAll', will add esxs to all clusters in the
SDDC (This is an privileged operation). If = 'removeFromAll', will delete the
esxs from all clusters in the SDDC (This is an privileged operation). If =
'attach-diskgroup', will attach the provided diskgroups to a given host
(privileged). If = 'detach-diskgroup', will detach the diskgroups of a given
host (privileged). Default behaviour is 'add' (optional)public Task create(java.lang.String org, java.lang.String sddc, EsxConfig esxConfig, java.lang.String action, InvocationConfig invocationConfig)
Esxs
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface Esxs
org
- Organization identifier (required)sddc
- Sddc identifier (required)esxConfig
- esxConfig (required)action
- If = 'add', will add the esx. If = 'remove', will delete the esx/esxs bound to a
single cluster (Cluster Id is mandatory for non cluster 1 esx remove). If =
'force-remove', will delete the esx even if it can lead to data loss (This is an
privileged operation). If = 'addToAll', will add esxs to all clusters in the
SDDC (This is an privileged operation). If = 'removeFromAll', will delete the
esxs from all clusters in the SDDC (This is an privileged operation). If =
'attach-diskgroup', will attach the provided diskgroups to a given host
(privileged). If = 'detach-diskgroup', will detach the diskgroups of a given
host (privileged). Default behaviour is 'add' (optional)invocationConfig
- Configuration for the method invocation.public void create(java.lang.String org, java.lang.String sddc, EsxConfig esxConfig, java.lang.String action, AsyncCallback<Task> asyncCallback)
Esxs
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
InvalidRequest
- The sddc is not in a state that's valid for updates
Unauthorized
- Access not allowed to the operation for the current user
NotFound
- Cannot find the SDDC with the given identifier
create
in interface Esxs
org
- Organization identifier (required)sddc
- Sddc identifier (required)esxConfig
- esxConfig (required)action
- If = 'add', will add the esx. If = 'remove', will delete the esx/esxs bound to a
single cluster (Cluster Id is mandatory for non cluster 1 esx remove). If =
'force-remove', will delete the esx even if it can lead to data loss (This is an
privileged operation). If = 'addToAll', will add esxs to all clusters in the
SDDC (This is an privileged operation). If = 'removeFromAll', will delete the
esxs from all clusters in the SDDC (This is an privileged operation). If =
'attach-diskgroup', will attach the provided diskgroups to a given host
(privileged). If = 'detach-diskgroup', will detach the diskgroups of a given
host (privileged). Default behaviour is 'add' (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String org, java.lang.String sddc, EsxConfig esxConfig, java.lang.String action, AsyncCallback<Task> asyncCallback, InvocationConfig invocationConfig)
Esxs
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:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
InvalidRequest
- The sddc is not in a state that's valid for updates
Unauthorized
- Access not allowed to the operation for the current user
NotFound
- Cannot find the SDDC with the given identifier
create
in interface Esxs
org
- Organization identifier (required)sddc
- Sddc identifier (required)esxConfig
- esxConfig (required)action
- If = 'add', will add the esx. If = 'remove', will delete the esx/esxs bound to a
single cluster (Cluster Id is mandatory for non cluster 1 esx remove). If =
'force-remove', will delete the esx even if it can lead to data loss (This is an
privileged operation). If = 'addToAll', will add esxs to all clusters in the
SDDC (This is an privileged operation). If = 'removeFromAll', will delete the
esxs from all clusters in the SDDC (This is an privileged operation). If =
'attach-diskgroup', will attach the provided diskgroups to a given host
(privileged). If = 'detach-diskgroup', will detach the diskgroups of a given
host (privileged). Default behaviour is 'add' (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.