VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::esx::settings::clusters::SoftwareStub Class Reference

Remote stub implementation of the Software API service. More...

Inherits vmware::esx::settings::clusters::Software.

List of all members.

Public Member Functions

 SoftwareStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.TypeConverter typeConverter, vmware.vapi.bindings.IStubConfiguration config)
 SoftwareStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.IStubConfiguration config)
vmware.esx.settings.SoftwareInfo Get (string cluster)
 Returns the complete desired software specification.
vmware.esx.settings.SoftwareInfo Get (string cluster, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the complete desired software specification.
global::System.Threading.Tasks.Task
< vmware.esx.settings.SoftwareInfo
GetAsync (string cluster)
 Returns the complete desired software specification.
global::System.Threading.Tasks.Task
< vmware.esx.settings.SoftwareInfo
GetAsync (string cluster, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the complete desired software specification.
string Scan_Task (string cluster)
 Scans all the hosts in the cluster against the cluster's desired state.
string Scan_Task (string cluster, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Scans all the hosts in the cluster against the cluster's desired state.
global::System.Collections.Generic.Dictionary
< vmware.esx.settings.clusters.SoftwareTypes.ExportType,
global::System.Uri > 
Export (string cluster, vmware.esx.settings.clusters.SoftwareTypes.ExportSpec spec)
 Exports the desired software specification document and/or image.
global::System.Collections.Generic.Dictionary
< vmware.esx.settings.clusters.SoftwareTypes.ExportType,
global::System.Uri > 
Export (string cluster, vmware.esx.settings.clusters.SoftwareTypes.ExportSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Exports the desired software specification document and/or image.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.Dictionary
< vmware.esx.settings.clusters.SoftwareTypes.ExportType,
global::System.Uri > > 
ExportAsync (string cluster, vmware.esx.settings.clusters.SoftwareTypes.ExportSpec spec)
 Exports the desired software specification document and/or image.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.Dictionary
< vmware.esx.settings.clusters.SoftwareTypes.ExportType,
global::System.Uri > > 
ExportAsync (string cluster, vmware.esx.settings.clusters.SoftwareTypes.ExportSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Exports the desired software specification document and/or image.
string Apply_Task (string cluster, vmware.esx.settings.clusters.SoftwareTypes.ApplySpec spec)
 Applies the desired software document associated with the given cluster to hosts within the cluster.
string Apply_Task (string cluster, vmware.esx.settings.clusters.SoftwareTypes.ApplySpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Applies the desired software document associated with the given cluster to hosts within the cluster.
string Check_Task (string cluster, vmware.esx.settings.clusters.SoftwareTypes.CheckSpec spec)
 Runs checks on the cluster before applying the desired software document across all hosts in the cluster.
string Check_Task (string cluster, vmware.esx.settings.clusters.SoftwareTypes.CheckSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Runs checks on the cluster before applying the desired software document across all hosts in the cluster.

Detailed Description

Remote stub implementation of the Software API service.


Constructor & Destructor Documentation

vmware::esx::settings::clusters::SoftwareStub::SoftwareStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.TypeConverter  typeConverter,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]
vmware::esx::settings::clusters::SoftwareStub::SoftwareStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]

Member Function Documentation

string vmware::esx::settings::clusters::SoftwareStub::Apply_Task ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.ApplySpec  spec 
) [inline]

Applies the desired software document associated with the given cluster to hosts within the cluster.

If commit field is set, it implies the minimum commit that the Software.Apply method should use, however if subsequent commits have been made to the desired state document the apply method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.

Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.

Exceptions:
vmware.vapi.std.errors.AlreadyInDesiredStateIf the cluster is already at specified commit as described in the apply specification.
vmware.vapi.std.errors.ErrorIf there is an unknown internal error or if the EULA has not been accepted. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.InvalidArgumentIf the commit field of spec specifies an invalid commit, or the hosts field of spec specifies an invalid host or a host not part of the cluster.
vmware.vapi.std.errors.NotAllowedInCurrentStateIf there is another operation in progress.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.TimedOutIf the operation times out.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
specApply specification.
Returns:
Identifier for the task created by this API invocation

Implements vmware::esx::settings::clusters::Software.

string vmware::esx::settings::clusters::SoftwareStub::Apply_Task ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.ApplySpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Applies the desired software document associated with the given cluster to hosts within the cluster.

If commit field is set, it implies the minimum commit that the Software.Apply method should use, however if subsequent commits have been made to the desired state document the apply method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.

Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.

Exceptions:
vmware.vapi.std.errors.AlreadyInDesiredStateIf the cluster is already at specified commit as described in the apply specification.
vmware.vapi.std.errors.ErrorIf there is an unknown internal error or if the EULA has not been accepted. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.InvalidArgumentIf the commit field of spec specifies an invalid commit, or the hosts field of spec specifies an invalid host or a host not part of the cluster.
vmware.vapi.std.errors.NotAllowedInCurrentStateIf there is another operation in progress.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.TimedOutIf the operation times out.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
specApply specification.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier for the task created by this API invocation

Implements vmware::esx::settings::clusters::Software.

string vmware::esx::settings::clusters::SoftwareStub::Check_Task ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.CheckSpec  spec 
) [inline]

Runs checks on the cluster before applying the desired software document across all hosts in the cluster.

Checks if all hosts in the cluster are in a good state to be updated with the desired software document. If commit field is set it implies the minimum commit that the check method should use, however if subsequent commits have been made to the desired state document the check method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.

Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.InvalidArgumentIf the commit field of spec specifies an invalid commit, or the hosts field of spec specifies an invalid host or a host not part of the cluster.
vmware.vapi.std.errors.NotAllowedInCurrentStateIf there is another operation in progress or if the commit field of spec specifies a commit that has already been applied.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.TimedOutIf the operation times out.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
specCheck specification.
Returns:
Identifier for the task created by this API invocation

Implements vmware::esx::settings::clusters::Software.

string vmware::esx::settings::clusters::SoftwareStub::Check_Task ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.CheckSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Runs checks on the cluster before applying the desired software document across all hosts in the cluster.

Checks if all hosts in the cluster are in a good state to be updated with the desired software document. If commit field is set it implies the minimum commit that the check method should use, however if subsequent commits have been made to the desired state document the check method will use the most recent desired state document. The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.

Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.InvalidArgumentIf the commit field of spec specifies an invalid commit, or the hosts field of spec specifies an invalid host or a host not part of the cluster.
vmware.vapi.std.errors.NotAllowedInCurrentStateIf there is another operation in progress or if the commit field of spec specifies a commit that has already been applied.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.TimedOutIf the operation times out.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
specCheck specification.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier for the task created by this API invocation

Implements vmware::esx::settings::clusters::Software.

global::System.Collections.Generic.Dictionary<vmware.esx.settings.clusters.SoftwareTypes.ExportType, global::System.Uri> vmware::esx::settings::clusters::SoftwareStub::Export ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.ExportSpec  spec 
) [inline]

Exports the desired software specification document and/or image.

This API will not export the solution section of the desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is am unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
spec
Returns:
A map from export type to URL of the exported data for that type.

Implements vmware::esx::settings::clusters::Software.

global::System.Collections.Generic.Dictionary<vmware.esx.settings.clusters.SoftwareTypes.ExportType, global::System.Uri> vmware::esx::settings::clusters::SoftwareStub::Export ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.ExportSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Exports the desired software specification document and/or image.

This API will not export the solution section of the desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is am unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
spec
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
A map from export type to URL of the exported data for that type.

Implements vmware::esx::settings::clusters::Software.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.Dictionary<vmware.esx.settings.clusters.SoftwareTypes.ExportType, global::System.Uri> > vmware::esx::settings::clusters::SoftwareStub::ExportAsync ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.ExportSpec  spec 
) [inline]

Exports the desired software specification document and/or image.

This API will not export the solution section of the desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is am unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
spec
Returns:
A map from export type to URL of the exported data for that type.

Implements vmware::esx::settings::clusters::Software.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.Dictionary<vmware.esx.settings.clusters.SoftwareTypes.ExportType, global::System.Uri> > vmware::esx::settings::clusters::SoftwareStub::ExportAsync ( string  cluster,
vmware.esx.settings.clusters.SoftwareTypes.ExportSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Exports the desired software specification document and/or image.

This API will not export the solution section of the desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is am unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
spec
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
A map from export type to URL of the exported data for that type.

Implements vmware::esx::settings::clusters::Software.

vmware.esx.settings.SoftwareInfo vmware::esx::settings::clusters::SoftwareStub::Get ( string  cluster,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Returns the complete desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Cluster software specification.

Implements vmware::esx::settings::clusters::Software.

vmware.esx.settings.SoftwareInfo vmware::esx::settings::clusters::SoftwareStub::Get ( string  cluster) [inline]

Returns the complete desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
Returns:
Cluster software specification.

Implements vmware::esx::settings::clusters::Software.

global::System.Threading.Tasks.Task<vmware.esx.settings.SoftwareInfo> vmware::esx::settings::clusters::SoftwareStub::GetAsync ( string  cluster) [inline]

Returns the complete desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
Returns:
Cluster software specification.

Implements vmware::esx::settings::clusters::Software.

global::System.Threading.Tasks.Task<vmware.esx.settings.SoftwareInfo> vmware::esx::settings::clusters::SoftwareStub::GetAsync ( string  cluster,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Returns the complete desired software specification.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires VcIntegrity.lifecycleSoftwareSpecification.Read .
  • The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.lifecycleSoftwareSpecification.Read .
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Cluster software specification.

Implements vmware::esx::settings::clusters::Software.

string vmware::esx::settings::clusters::SoftwareStub::Scan_Task ( string  cluster,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Scans all the hosts in the cluster against the cluster's desired state.

The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.

Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier for the task created by this API invocation

Implements vmware::esx::settings::clusters::Software.

string vmware::esx::settings::clusters::SoftwareStub::Scan_Task ( string  cluster) [inline]

Scans all the hosts in the cluster against the cluster's desired state.

The result of this operation can be queried by calling the cis/tasks/{task-id} where the task-id is the response of this operation.

Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.

Exceptions:
vmware.vapi.std.errors.ErrorIf there is unknown internal error. The accompanying error message will give more details about the failure.
vmware.vapi.std.errors.NotFoundIf there is no cluster associated with cluster in the system or if desired software document is not found.
vmware.vapi.std.errors.ServiceUnavailableIf the service is not available.
vmware.vapi.std.errors.UnauthenticatedIf the caller is not authenticated.
Parameters:
clusterIdentifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource .
Returns:
Identifier for the task created by this API invocation

Implements vmware::esx::settings::clusters::Software.


The documentation for this class was generated from the following file: