public interface NamespaceSelfService extends Service, NamespaceSelfServiceTypes
NamespaceSelfService
interface provides methods to activate and
deactivate a namespace template that empowers users as self-service namespace
users. If the service is activated on a cluster, users can create Supervisor
Namespaces through kubectl create namespace command without the need of extra
assistance. This interface was added in vSphere API 7.0.2.00100.NamespaceSelfServiceTypes.ActivateTemplateSpec, NamespaceSelfServiceTypes.Capability, NamespaceSelfServiceTypes.Info, NamespaceSelfServiceTypes.Status, NamespaceSelfServiceTypes.Summary
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
void |
activate(java.lang.String cluster)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activate(java.lang.String cluster,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
deactivate(java.lang.String cluster)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
deactivate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
deactivate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
deactivate(java.lang.String cluster,
InvocationConfig invocationConfig)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
NamespaceSelfServiceTypes.Info |
get(java.lang.String cluster)
Returns information about Namespace Self Service of a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<NamespaceSelfServiceTypes.Info> asyncCallback)
Returns information about Namespace Self Service of a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<NamespaceSelfServiceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about Namespace Self Service of a specific cluster.
|
NamespaceSelfServiceTypes.Info |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns information about Namespace Self Service of a specific cluster.
|
java.util.List<NamespaceSelfServiceTypes.Summary> |
list()
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
void |
list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback)
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
void |
list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
java.util.List<NamespaceSelfServiceTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
void activate(java.lang.String cluster)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.AlreadyExists
- if the cluster already has Namespace Self Service activated.Error
- if the system reports an error while responding to the request.NotFound
- if cluster with vSphere Namespaces enabled could not be located or no namespace
templates exists.UnableToAllocateResource
- if the specified cluster is not licensed.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled or no namespace template exists in the system.void activate(java.lang.String cluster, 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.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.AlreadyExists
- if the cluster already has Namespace Self Service activated.Error
- if the system reports an error while responding to the request.NotFound
- if cluster with vSphere Namespaces enabled could not be located or no namespace
templates exists.UnableToAllocateResource
- if the specified cluster is not licensed.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled or no namespace template exists in the system.void activate(java.lang.String cluster, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- if the cluster already has Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled could not be located or no namespace
templates exists.
UnableToAllocateResource
- if the specified cluster is not licensed.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled or no namespace template exists in the system.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void activate(java.lang.String cluster, AsyncCallback<java.lang.Void> 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.
Operation Errors:
AlreadyExists
- if the cluster already has Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled could not be located or no namespace
templates exists.
UnableToAllocateResource
- if the specified cluster is not licensed.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled or no namespace template exists in the system.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void deactivate(java.lang.String cluster)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cluster
- Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.Error
- if the system reports an error while responding to the request.NotFound
- if cluster with vSphere Namespaced enabled is not found.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.NotAllowedInCurrentState
- if the service is not activated.void deactivate(java.lang.String cluster, 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.
cluster
- Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if cluster with vSphere Namespaced enabled is not found.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.NotAllowedInCurrentState
- if the service is not activated.void deactivate(java.lang.String cluster, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaced enabled is not found.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is not activated.
cluster
- Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void deactivate(java.lang.String cluster, AsyncCallback<java.lang.Void> 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.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaced enabled is not found.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is not activated.
cluster
- Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.NamespaceSelfServiceTypes.Info get(java.lang.String cluster)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.NotFound
- if cluster with vSphere Namespaced enabled could not be located.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have System.Read privilege.NamespaceSelfServiceTypes.Info get(java.lang.String cluster, 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.
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.NotFound
- if cluster with vSphere Namespaced enabled could not be located.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have System.Read privilege.void get(java.lang.String cluster, AsyncCallback<NamespaceSelfServiceTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the namespace self service associated with the specified
cluster.
Operation Errors:
NotFound
- if cluster with vSphere Namespaced enabled could not be located.
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String cluster, AsyncCallback<NamespaceSelfServiceTypes.Info> 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:
Information about the namespace self service associated with the specified
cluster.
Operation Errors:
NotFound
- if cluster with vSphere Namespaced enabled could not be located.
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier 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.List<NamespaceSelfServiceTypes.Summary> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have System.Read privilege.java.util.List<NamespaceSelfServiceTypes.Summary> list(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.
invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have System.Read privilege.void list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of summary of Namespace Self Service associated with all clusters with
vSphere Namespaces enabled.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> 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:
List of summary of Namespace Self Service associated with all clusters with
vSphere Namespaces enabled.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.AlreadyExists
- if the cluster already has Namespace Self Service activated.Error
- if the system reports an error while responding to the request.NotFound
- if cluster with vSphere Namespaces enabled could not be located.InvalidArgument
- if spec
contain any errors.UnableToAllocateResource
- if the specified cluster is not licensed.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled.void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec, 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.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.invocationConfig
- Configuration for the method invocation.AlreadyExists
- if the cluster already has Namespace Self Service activated.Error
- if the system reports an error while responding to the request.NotFound
- if cluster with vSphere Namespaces enabled could not be located.InvalidArgument
- if spec
contain any errors.UnableToAllocateResource
- if the specified cluster is not licensed.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled.void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- if the cluster already has Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled could not be located.
InvalidArgument
- if spec
contain any errors.
UnableToAllocateResource
- if the specified cluster is not licensed.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec, AsyncCallback<java.lang.Void> 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.
Operation Errors:
AlreadyExists
- if the cluster already has Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled could not be located.
InvalidArgument
- if spec
contain any errors.
UnableToAllocateResource
- if the specified cluster is not licensed.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled.
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.