public interface Credential extends Service, CredentialTypes
Credential
interface provides methods to add a credential for
external key management service(s). This interface was added in vSphere API
7.0.0.0.CredentialTypes._VAPI_OPERATIONS
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
java.lang.String |
set_Task(java.lang.String cluster,
java.lang.String provider,
char[] credential)
Set the key server credential.
|
void |
set_Task(java.lang.String cluster,
java.lang.String provider,
char[] credential,
AsyncCallback<java.lang.String> asyncCallback)
Set the key server credential.
|
void |
set_Task(java.lang.String cluster,
java.lang.String provider,
char[] credential,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Set the key server credential.
|
java.lang.String |
set_Task(java.lang.String cluster,
java.lang.String provider,
char[] credential,
InvocationConfig invocationConfig)
Set the key server credential.
|
java.lang.String set_Task(java.lang.String cluster, java.lang.String provider, char[] credential)
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.provider
- Identifier of the provider.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider
.credential
- KMIP KMS password or AWS access key.InvalidArgument
- If cluster or provider id are empty.NotFound
- If the provider or cluster is not found.Unauthenticated
- If the caller is not authenticated.Error
- If any other error occurs.java.lang.String set_Task(java.lang.String cluster, java.lang.String provider, char[] credential, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.provider
- Identifier of the provider.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider
.credential
- KMIP KMS password or AWS access key.invocationConfig
- Configuration for the method invocation.InvalidArgument
- If cluster or provider id are empty.NotFound
- If the provider or cluster is not found.Unauthenticated
- If the caller is not authenticated.Error
- If any other error occurs.void set_Task(java.lang.String cluster, java.lang.String provider, char[] credential, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
InvalidArgument
- If cluster or provider id are empty.
NotFound
- If the provider or cluster is not found.
Unauthenticated
- If the caller is not authenticated.
Error
- If any other error occurs.
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.provider
- Identifier of the provider.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider
.credential
- KMIP KMS password or AWS access key.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set_Task(java.lang.String cluster, java.lang.String provider, char[] credential, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
InvalidArgument
- If cluster or provider id are empty.
NotFound
- If the provider or cluster is not found.
Unauthenticated
- If the caller is not authenticated.
Error
- If any other error occurs.
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.provider
- Identifier of the provider.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider
.credential
- KMIP KMS password or AWS access key.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.