public interface CustomizationSpecs extends Service, CustomizationSpecsTypes
CustomizationSpecs
interface provides methods to manage guest
customization specifications in the vCenter Server. This interface was added in
vSphere API 6.7.1.CustomizationSpecsTypes.CreateSpec, CustomizationSpecsTypes.FilterSpec, CustomizationSpecsTypes.Format, CustomizationSpecsTypes.Info, CustomizationSpecsTypes.Metadata, CustomizationSpecsTypes.OsType, CustomizationSpecsTypes.Spec, CustomizationSpecsTypes.Summary
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(CustomizationSpecsTypes.CreateSpec spec)
Creates a customization specification.
|
void |
create(CustomizationSpecsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a customization specification.
|
void |
create(CustomizationSpecsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a customization specification.
|
java.lang.String |
create(CustomizationSpecsTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a customization specification.
|
void |
delete(java.lang.String name)
Deletes a customization specification with the specified identifier.
|
void |
delete(java.lang.String name,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a customization specification with the specified identifier.
|
void |
delete(java.lang.String name,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a customization specification with the specified identifier.
|
void |
delete(java.lang.String name,
InvocationConfig invocationConfig)
Deletes a customization specification with the specified identifier.
|
java.lang.String |
export(java.lang.String name,
CustomizationSpecsTypes.Format format)
Returns the content of the customization specification in the specified format.
|
void |
export(java.lang.String name,
CustomizationSpecsTypes.Format format,
AsyncCallback<java.lang.String> asyncCallback)
Returns the content of the customization specification in the specified format.
|
void |
export(java.lang.String name,
CustomizationSpecsTypes.Format format,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Returns the content of the customization specification in the specified format.
|
java.lang.String |
export(java.lang.String name,
CustomizationSpecsTypes.Format format,
InvocationConfig invocationConfig)
Returns the content of the customization specification in the specified format.
|
CustomizationSpecsTypes.Info |
get(java.lang.String name)
Returns the guest customization specification from vCenter with the specified
identifier.
|
void |
get(java.lang.String name,
AsyncCallback<CustomizationSpecsTypes.Info> asyncCallback)
Returns the guest customization specification from vCenter with the specified
identifier.
|
void |
get(java.lang.String name,
AsyncCallback<CustomizationSpecsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the guest customization specification from vCenter with the specified
identifier.
|
CustomizationSpecsTypes.Info |
get(java.lang.String name,
InvocationConfig invocationConfig)
Returns the guest customization specification from vCenter with the specified
identifier.
|
CustomizationSpecsTypes.CreateSpec |
importSpecification(java.lang.String customizationSpec)
Converts a well formatted string to a
CustomizationSpecsTypes.CreateSpec . |
void |
importSpecification(java.lang.String customizationSpec,
AsyncCallback<CustomizationSpecsTypes.CreateSpec> asyncCallback)
Converts a well formatted string to a
CustomizationSpecsTypes.CreateSpec . |
void |
importSpecification(java.lang.String customizationSpec,
AsyncCallback<CustomizationSpecsTypes.CreateSpec> asyncCallback,
InvocationConfig invocationConfig)
Converts a well formatted string to a
CustomizationSpecsTypes.CreateSpec . |
CustomizationSpecsTypes.CreateSpec |
importSpecification(java.lang.String customizationSpec,
InvocationConfig invocationConfig)
Converts a well formatted string to a
CustomizationSpecsTypes.CreateSpec . |
java.util.List<CustomizationSpecsTypes.Summary> |
list(CustomizationSpecsTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
guest customization specifications in vCenter matching the
CustomizationSpecsTypes.FilterSpec . |
void |
list(CustomizationSpecsTypes.FilterSpec filter,
AsyncCallback<java.util.List<CustomizationSpecsTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
guest customization specifications in vCenter matching the
CustomizationSpecsTypes.FilterSpec . |
void |
list(CustomizationSpecsTypes.FilterSpec filter,
AsyncCallback<java.util.List<CustomizationSpecsTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
guest customization specifications in vCenter matching the
CustomizationSpecsTypes.FilterSpec . |
java.util.List<CustomizationSpecsTypes.Summary> |
list(CustomizationSpecsTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
guest customization specifications in vCenter matching the
CustomizationSpecsTypes.FilterSpec . |
void |
set(java.lang.String name,
CustomizationSpecsTypes.Spec spec)
Sets an existing specification, possibly after retrieving (by using
get(java.lang.String) ) and editing it. |
void |
set(java.lang.String name,
CustomizationSpecsTypes.Spec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Sets an existing specification, possibly after retrieving (by using
get(java.lang.String) ) and editing it. |
void |
set(java.lang.String name,
CustomizationSpecsTypes.Spec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Sets an existing specification, possibly after retrieving (by using
get(java.lang.String) ) and editing it. |
void |
set(java.lang.String name,
CustomizationSpecsTypes.Spec spec,
InvocationConfig invocationConfig)
Sets an existing specification, possibly after retrieving (by using
get(java.lang.String) ) and editing it. |
java.util.List<CustomizationSpecsTypes.Summary> list(CustomizationSpecsTypes.FilterSpec filter)
CustomizationSpecsTypes.FilterSpec
. This method was
added in vSphere API 6.7.1.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching guest customization specifications for which
information should be returned.
If null
, the behavior is equivalent to a CustomizationSpecsTypes.FilterSpec
with all properties
null
which means all guest customization specifications match the
filter.CustomizationSpecsTypes.FilterSpec
.InvalidArgument
- if the CustomizationSpecsTypes.FilterSpec.getOSType()
property
contains a value that is not supported by the server.UnableToAllocateResource
- if more than 1000 guest customization specifications match the CustomizationSpecsTypes.FilterSpec
.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.java.util.List<CustomizationSpecsTypes.Summary> list(CustomizationSpecsTypes.FilterSpec filter, InvocationConfig invocationConfig)
CustomizationSpecsTypes.FilterSpec
. This method was
added in vSphere API 6.7.1.
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 guest customization specifications for which
information should be returned.
If null
, the behavior is equivalent to a CustomizationSpecsTypes.FilterSpec
with all properties
null
which means all guest customization specifications match the
filter.invocationConfig
- Configuration for the method invocation.CustomizationSpecsTypes.FilterSpec
.InvalidArgument
- if the CustomizationSpecsTypes.FilterSpec.getOSType()
property
contains a value that is not supported by the server.UnableToAllocateResource
- if more than 1000 guest customization specifications match the CustomizationSpecsTypes.FilterSpec
.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void list(CustomizationSpecsTypes.FilterSpec filter, AsyncCallback<java.util.List<CustomizationSpecsTypes.Summary>> asyncCallback)
CustomizationSpecsTypes.FilterSpec
. This method was
added in vSphere API 6.7.1.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Commonly used information about the guest customization specifications matching
the CustomizationSpecsTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the CustomizationSpecsTypes.FilterSpec.getOSType()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 guest customization specifications match the CustomizationSpecsTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
filter
- Specification of matching guest customization specifications for which
information should be returned.
If null
, the behavior is equivalent to a CustomizationSpecsTypes.FilterSpec
with all properties
null
which means all guest customization specifications match the
filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(CustomizationSpecsTypes.FilterSpec filter, AsyncCallback<java.util.List<CustomizationSpecsTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
CustomizationSpecsTypes.FilterSpec
. This method was
added in vSphere API 6.7.1.
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:
Commonly used information about the guest customization specifications matching
the CustomizationSpecsTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the CustomizationSpecsTypes.FilterSpec.getOSType()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 guest customization specifications match the CustomizationSpecsTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
filter
- Specification of matching guest customization specifications for which
information should be returned.
If null
, the behavior is equivalent to a CustomizationSpecsTypes.FilterSpec
with all properties
null
which means all guest customization specifications match the
filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String create(CustomizationSpecsTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- The information i.e. name, description and the settings i.e hostname, ip address
etc for the new customization specification that needs to be created.com.vmware.vcenter.guest.CustomizationSpec
.AlreadyExists
- if a customization specification is already present with the same name.InvalidArgument
- if the specified specification is not a valid one.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.java.lang.String create(CustomizationSpecsTypes.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
- The information i.e. name, description and the settings i.e hostname, ip address
etc for the new customization specification that needs to be created.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.guest.CustomizationSpec
.AlreadyExists
- if a customization specification is already present with the same name.InvalidArgument
- if the specified specification is not a valid one.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void create(CustomizationSpecsTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The name of the customization specification that is created.
The return value will be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.
Operation Errors:
AlreadyExists
- if a customization specification is already present with the same name.
InvalidArgument
- if the specified specification is not a valid one.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
spec
- The information i.e. name, description and the settings i.e hostname, ip address
etc for the new customization specification that needs to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(CustomizationSpecsTypes.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.
Invocation Result:
The name of the customization specification that is created.
The return value will be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.
Operation Errors:
AlreadyExists
- if a customization specification is already present with the same name.
InvalidArgument
- if the specified specification is not a valid one.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
spec
- The information i.e. name, description and the settings i.e hostname, ip address
etc for the new customization specification that needs to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.CustomizationSpecsTypes.Info get(java.lang.String name)
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- The name of the customization specification.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.NotFound
- if a customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.CustomizationSpecsTypes.Info get(java.lang.String name, 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.
name
- The name of the customization specification.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.invocationConfig
- Configuration for the method invocation.NotFound
- if a customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void get(java.lang.String name, AsyncCallback<CustomizationSpecsTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
A customization spec with the specified identifier.
Operation Errors:
NotFound
- if a customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String name, AsyncCallback<CustomizationSpecsTypes.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:
A customization spec with the specified identifier.
Operation Errors:
NotFound
- if a customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void set(java.lang.String name, CustomizationSpecsTypes.Spec spec)
get(java.lang.String)
) and editing it. This method
was added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- The name of the customization specification that needs to be set.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.spec
- The new specification that will overwrite the existing specification.InvalidArgument
- If, based on the item's fingerprint value, the set process detects that the
specification has changed since its retrieval, then the method throws
InvalidArgument exception to warn the client that he might overwrite another
client's change.InvalidArgument
- If the settings in spec
are not valid.NotFound
- if a customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void set(java.lang.String name, CustomizationSpecsTypes.Spec spec, InvocationConfig invocationConfig)
get(java.lang.String)
) and editing it. This method
was added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
name
- The name of the customization specification that needs to be set.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.spec
- The new specification that will overwrite the existing specification.invocationConfig
- Configuration for the method invocation.InvalidArgument
- If, based on the item's fingerprint value, the set process detects that the
specification has changed since its retrieval, then the method throws
InvalidArgument exception to warn the client that he might overwrite another
client's change.InvalidArgument
- If the settings in spec
are not valid.NotFound
- if a customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void set(java.lang.String name, CustomizationSpecsTypes.Spec spec, AsyncCallback<java.lang.Void> asyncCallback)
get(java.lang.String)
) and editing it. This method
was added in vSphere API 7.0.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
InvalidArgument
- If, based on the item's fingerprint value, the set process detects that the
specification has changed since its retrieval, then the method throws
InvalidArgument exception to warn the client that he might overwrite another
client's change.
InvalidArgument
- If the settings in spec
are not valid.
NotFound
- if a customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification that needs to be set.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.spec
- The new specification that will overwrite the existing specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set(java.lang.String name, CustomizationSpecsTypes.Spec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
get(java.lang.String)
) and editing it. This method
was added in vSphere API 7.0.0.0.
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:
InvalidArgument
- If, based on the item's fingerprint value, the set process detects that the
specification has changed since its retrieval, then the method throws
InvalidArgument exception to warn the client that he might overwrite another
client's change.
InvalidArgument
- If the settings in spec
are not valid.
NotFound
- if a customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification that needs to be set.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.spec
- The new specification that will overwrite the existing specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String name)
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- The name of the customization specification that needs to be deleted.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.NotFound
- if a customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void delete(java.lang.String name, 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.
name
- The name of the customization specification that needs to be deleted.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.invocationConfig
- Configuration for the method invocation.NotFound
- if a customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void delete(java.lang.String name, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if a customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification that needs to be deleted.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String name, 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 a customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification that needs to be deleted.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String export(java.lang.String name, CustomizationSpecsTypes.Format format)
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- The name of the customization specification that has to be returned.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.format
- The format in which the customization specification has to be returned.InvalidArgument
- If value of format
is not valid.NotFound
- if the customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.java.lang.String export(java.lang.String name, CustomizationSpecsTypes.Format format, 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.
name
- The name of the customization specification that has to be returned.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.format
- The format in which the customization specification has to be returned.invocationConfig
- Configuration for the method invocation.InvalidArgument
- If value of format
is not valid.NotFound
- if the customization specification is not found.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void export(java.lang.String name, CustomizationSpecsTypes.Format format, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The string representation of the customization specification in the specified
format.
Operation Errors:
InvalidArgument
- If value of format
is not valid.
NotFound
- if the customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification that has to be returned.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.format
- The format in which the customization specification has to be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void export(java.lang.String name, CustomizationSpecsTypes.Format format, 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.
Invocation Result:
The string representation of the customization specification in the specified
format.
Operation Errors:
InvalidArgument
- If value of format
is not valid.
NotFound
- if the customization specification is not found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
name
- The name of the customization specification that has to be returned.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec
.format
- The format in which the customization specification has to be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.CustomizationSpecsTypes.CreateSpec importSpecification(java.lang.String customizationSpec)
CustomizationSpecsTypes.CreateSpec
. The resulting
object can be passed to create(com.vmware.vcenter.guest.CustomizationSpecsTypes.CreateSpec)
method. This method was
added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
customizationSpec
- content to be converted to the spec.CustomizationSpecsTypes.CreateSpec
InvalidArgument
- if the specified content cannot be properly converted into a proper valid CustomizationSpecsTypes.CreateSpec
object.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.CustomizationSpecsTypes.CreateSpec importSpecification(java.lang.String customizationSpec, InvocationConfig invocationConfig)
CustomizationSpecsTypes.CreateSpec
. The resulting
object can be passed to create(com.vmware.vcenter.guest.CustomizationSpecsTypes.CreateSpec)
method. This method was
added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
customizationSpec
- content to be converted to the spec.invocationConfig
- Configuration for the method invocation.CustomizationSpecsTypes.CreateSpec
InvalidArgument
- if the specified content cannot be properly converted into a proper valid CustomizationSpecsTypes.CreateSpec
object.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.void importSpecification(java.lang.String customizationSpec, AsyncCallback<CustomizationSpecsTypes.CreateSpec> asyncCallback)
CustomizationSpecsTypes.CreateSpec
. The resulting
object can be passed to create(com.vmware.vcenter.guest.CustomizationSpecsTypes.CreateSpec)
method. This method was
added in vSphere API 7.0.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
A proper specification of type CustomizationSpecsTypes.CreateSpec
Operation Errors:
InvalidArgument
- if the specified content cannot be properly converted into a proper valid CustomizationSpecsTypes.CreateSpec
object.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
customizationSpec
- content to be converted to the spec.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void importSpecification(java.lang.String customizationSpec, AsyncCallback<CustomizationSpecsTypes.CreateSpec> asyncCallback, InvocationConfig invocationConfig)
CustomizationSpecsTypes.CreateSpec
. The resulting
object can be passed to create(com.vmware.vcenter.guest.CustomizationSpecsTypes.CreateSpec)
method. This method was
added in vSphere API 7.0.0.0.
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:
A proper specification of type CustomizationSpecsTypes.CreateSpec
Operation Errors:
InvalidArgument
- if the specified content cannot be properly converted into a proper valid CustomizationSpecsTypes.CreateSpec
object.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
customizationSpec
- content to be converted to the spec.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.