public interface Instances extends Service, InstancesTypes
Instances
interface provides methods to access namespaces for
non-administrative users.InstancesTypes.FilterSpec, InstancesTypes.Summary
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
java.util.List<InstancesTypes.Summary> |
list(InstancesTypes.FilterSpec filter)
Returns namespaces matching the
InstancesTypes.FilterSpec . |
void |
list(InstancesTypes.FilterSpec filter,
AsyncCallback<java.util.List<InstancesTypes.Summary>> asyncCallback)
Returns namespaces matching the
InstancesTypes.FilterSpec . |
void |
list(InstancesTypes.FilterSpec filter,
AsyncCallback<java.util.List<InstancesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns namespaces matching the
InstancesTypes.FilterSpec . |
java.util.List<InstancesTypes.Summary> |
list(InstancesTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns namespaces matching the
InstancesTypes.FilterSpec . |
java.util.List<InstancesTypes.Summary> list(InstancesTypes.FilterSpec filter)
InstancesTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching principals for which namespaces should be returned.
This parameter was added in vSphere API 8.0.0.1.
If null
, the behavior is equivalent to a FilterSpec with all properties
null
, and this method will return the namespaces that user making the
call is authorized to access.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 Namespaces.ListAccess privilege to perform this
operation.java.util.List<InstancesTypes.Summary> list(InstancesTypes.FilterSpec filter, InvocationConfig invocationConfig)
InstancesTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
filter
- Specification of matching principals for which namespaces should be returned.
This parameter was added in vSphere API 8.0.0.1.
If null
, the behavior is equivalent to a FilterSpec with all properties
null
, and this method will return the namespaces that user making the
call is authorized to access.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 Namespaces.ListAccess privilege to perform this
operation.void list(InstancesTypes.FilterSpec filter, AsyncCallback<java.util.List<InstancesTypes.Summary>> asyncCallback)
InstancesTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of Namespace identifiers together with the API endpoint for each namespace.
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 Namespaces.ListAccess privilege to perform this
operation.
filter
- Specification of matching principals for which namespaces should be returned.
This parameter was added in vSphere API 8.0.0.1.
If null
, the behavior is equivalent to a FilterSpec with all properties
null
, and this method will return the namespaces that user making the
call is authorized to access.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(InstancesTypes.FilterSpec filter, AsyncCallback<java.util.List<InstancesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
InstancesTypes.FilterSpec
.
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 Namespace identifiers together with the API endpoint for each namespace.
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 Namespaces.ListAccess privilege to perform this
operation.
filter
- Specification of matching principals for which namespaces should be returned.
This parameter was added in vSphere API 8.0.0.1.
If null
, the behavior is equivalent to a FilterSpec with all properties
null
, and this method will return the namespaces that user making the
call is authorized to access.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.