public interface Links extends Service, LinksTypes
Links interface provides methods to create, delete, get information,
and list hybrid links between the local and foreign Platform Service Controller
(PSC). Warning: This interface is available as technical preview. It may
be changed in a future release.LinksTypes.CertificateInfo, LinksTypes.CreateSpec, LinksTypes.Summary| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
create(LinksTypes.CreateSpec spec)
Creates a new hybrid link between the local and foreign PSC.
|
void |
create(LinksTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new hybrid link between the local and foreign PSC.
|
void |
create(LinksTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new hybrid link between the local and foreign PSC.
|
java.lang.String |
create(LinksTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a new hybrid link between the local and foreign PSC.
|
void |
delete(java.lang.String link)
Deletes an existing hybrid link.
|
void |
delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes an existing hybrid link.
|
void |
delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing hybrid link.
|
void |
delete(java.lang.String link,
InvocationConfig invocationConfig)
Deletes an existing hybrid link.
|
java.util.List<LinksTypes.Summary> |
list()
Enumerates the list of registered hybrid links.
|
void |
list(AsyncCallback<java.util.List<LinksTypes.Summary>> asyncCallback)
Enumerates the list of registered hybrid links.
|
void |
list(AsyncCallback<java.util.List<LinksTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Enumerates the list of registered hybrid links.
|
java.util.List<LinksTypes.Summary> |
list(InvocationConfig invocationConfig)
Enumerates the list of registered hybrid links.
|
java.lang.String create(LinksTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec - Specification for the new link to be created.com.vmware.vcenter.hvc.Links.AlreadyExists - If the link already exists.InvalidArgument - If the values of any of the properties of the spec parameter are not
valid.Unsupported - If the PSC or the VC version is not supported.Unauthorized - If the user is not authorized.InvalidRequest - If the SSL certificate of the foreign PSC cannot be validated by comparing with
the thumbprint provided in LinksTypes.CreateSpec.getSslThumbprint() or if LinksTypes.CreateSpec.getSslThumbprint() is null.
The value of the InvalidRequest#data) property will be a class that
contains all the properties defined in {@link
com.vmware.vcenter.hvc.LinksTypes.CertificateInfo}.Error - if the system reports an error while responding to the request.java.lang.String create(LinksTypes.CreateSpec 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.
spec - Specification for the new link to be created.invocationConfig - Configuration for the method invocation.com.vmware.vcenter.hvc.Links.AlreadyExists - If the link already exists.InvalidArgument - If the values of any of the properties of the spec parameter are not
valid.Unsupported - If the PSC or the VC version is not supported.Unauthorized - If the user is not authorized.InvalidRequest - If the SSL certificate of the foreign PSC cannot be validated by comparing with
the thumbprint provided in LinksTypes.CreateSpec.getSslThumbprint() or if LinksTypes.CreateSpec.getSslThumbprint() is null.
The value of the InvalidRequest#data) property will be a class that
contains all the properties defined in {@link
com.vmware.vcenter.hvc.LinksTypes.CertificateInfo}.Error - if the system reports an error while responding to the request.void create(LinksTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
The identifier of the newly linked domain.
The return value will be an identifier for the resource type: com.vmware.vcenter.hvc.Links.
Operation Errors:
AlreadyExists - If the link already exists.
InvalidArgument - If the values of any of the properties of the spec parameter are not
valid.
Unsupported - If the PSC or the VC version is not supported.
Unauthorized - If the user is not authorized.
InvalidRequest - If the SSL certificate of the foreign PSC cannot be validated by comparing with
the thumbprint provided in LinksTypes.CreateSpec.getSslThumbprint() or if LinksTypes.CreateSpec.getSslThumbprint() is null.
The value of the InvalidRequest#data) property will be a class that
contains all the properties defined in {@link
com.vmware.vcenter.hvc.LinksTypes.CertificateInfo}.
{@link com.vmware.vapi.std.errors.Error} - if the system reports an error while responding to the request.
spec - Specification for the new link to be created.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void create(LinksTypes.CreateSpec spec, AsyncCallback<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.
Operation Result:
The identifier of the newly linked domain.
The return value will be an identifier for the resource type: com.vmware.vcenter.hvc.Links.
Operation Errors:
AlreadyExists - If the link already exists.
InvalidArgument - If the values of any of the properties of the spec parameter are not
valid.
Unsupported - If the PSC or the VC version is not supported.
Unauthorized - If the user is not authorized.
InvalidRequest - If the SSL certificate of the foreign PSC cannot be validated by comparing with
the thumbprint provided in LinksTypes.CreateSpec.getSslThumbprint() or if LinksTypes.CreateSpec.getSslThumbprint() is null.
The value of the InvalidRequest#data) property will be a class that
contains all the properties defined in {@link
com.vmware.vcenter.hvc.LinksTypes.CertificateInfo}.
{@link com.vmware.vapi.std.errors.Error} - if the system reports an error while responding to the request.
spec - Specification for the new link to be created.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void delete(java.lang.String link)
Synchronous method overload. Result of the invocation will be reported as a method return value.
link - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.NotFound - If the hybrid link associated with link does not exist.Unauthorized - If the user is not authorized.Error - if the system reports an error while responding to the request.void delete(java.lang.String link,
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.
link - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.invocationConfig - Configuration for the method invocation.NotFound - If the hybrid link associated with link does not exist.Unauthorized - If the user is not authorized.Error - if the system reports an error while responding to the request.void delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - If the hybrid link associated with link does not exist.
Unauthorized - If the user is not authorized.
Error - if the system reports an error while responding to the request.
link - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String link,
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:
NotFound - If the hybrid link associated with link does not exist.
Unauthorized - If the user is not authorized.
Error - if the system reports an error while responding to the request.
link - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.java.util.List<LinksTypes.Summary> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
List of hybrid link information.Error - if the system reports an error while responding to the request.java.util.List<LinksTypes.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.List of hybrid link information.Error - if the system reports an error while responding to the request.void list(AsyncCallback<java.util.List<LinksTypes.Summary>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
The List of hybrid link information.
Operation Errors:
Error - if the system reports an error while responding to the request.
asyncCallback - Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<LinksTypes.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.
Operation Result:
The List of hybrid link information.
Operation Errors:
Error - if the system reports an error while responding to the request.
asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.