VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::certificate_management::vcenter::TlsStub Class Reference

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

Inherits vmware::vcenter::certificate_management::vcenter::Tls.

List of all members.

Public Member Functions

 TlsStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.TypeConverter typeConverter, vmware.vapi.bindings.IStubConfiguration config)
 TlsStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.IStubConfiguration config)
void Set (vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec spec)
 Replaces the rhttpproxy TLS certificate with the specified certificate.
void Set (vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Replaces the rhttpproxy TLS certificate with the specified certificate.
global::System.Threading.Tasks.Task SetAsync (vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec spec)
 Replaces the rhttpproxy TLS certificate with the specified certificate.
global::System.Threading.Tasks.Task SetAsync (vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Replaces the rhttpproxy TLS certificate with the specified certificate.
vmware.vcenter.certificate_management.vcenter.TlsTypes.Info Get ()
 Returns the rhttpproxy TLS certificate.
vmware.vcenter.certificate_management.vcenter.TlsTypes.Info Get (global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the rhttpproxy TLS certificate.
global::System.Threading.Tasks.Task
< vmware.vcenter.certificate_management.vcenter.TlsTypes.Info
GetAsync ()
 Returns the rhttpproxy TLS certificate.
global::System.Threading.Tasks.Task
< vmware.vcenter.certificate_management.vcenter.TlsTypes.Info
GetAsync (global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the rhttpproxy TLS certificate.
void Renew (long?duration)
 Renews the TLS certificate for the given duration period.
void Renew (long?duration, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Renews the TLS certificate for the given duration period.
global::System.Threading.Tasks.Task RenewAsync (long?duration)
 Renews the TLS certificate for the given duration period.
global::System.Threading.Tasks.Task RenewAsync (long?duration, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Renews the TLS certificate for the given duration period.
void ReplaceVmcaSigned (vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec spec)
 Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.
void ReplaceVmcaSigned (vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.
global::System.Threading.Tasks.Task ReplaceVmcaSignedAsync (vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec spec)
 Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.
global::System.Threading.Tasks.Task ReplaceVmcaSignedAsync (vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.

Detailed Description

Remote stub implementation of the Tls API service.


Constructor & Destructor Documentation

vmware::vcenter::certificate_management::vcenter::TlsStub::TlsStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.TypeConverter  typeConverter,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]
vmware::vcenter::certificate_management::vcenter::TlsStub::TlsStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]

Member Function Documentation

vmware.vcenter.certificate_management.vcenter.TlsTypes.Info vmware::vcenter::certificate_management::vcenter::TlsStub::Get ( ) [inline]

Returns the rhttpproxy TLS certificate.

This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundif the rhttpproxy certificate is not present in VECS store.
vmware.vapi.std.errors.Errorif failed due to generic exception.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Read .
Returns:
TLS certificate.

Implements vmware::vcenter::certificate_management::vcenter::Tls.

vmware.vcenter.certificate_management.vcenter.TlsTypes.Info vmware::vcenter::certificate_management::vcenter::TlsStub::Get ( global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Returns the rhttpproxy TLS certificate.

This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundif the rhttpproxy certificate is not present in VECS store.
vmware.vapi.std.errors.Errorif failed due to generic exception.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Read .
Returns:
TLS certificate.

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task<vmware.vcenter.certificate_management.vcenter.TlsTypes.Info> vmware::vcenter::certificate_management::vcenter::TlsStub::GetAsync ( global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Returns the rhttpproxy TLS certificate.

This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundif the rhttpproxy certificate is not present in VECS store.
vmware.vapi.std.errors.Errorif failed due to generic exception.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Read .
Returns:
TLS certificate.

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task<vmware.vcenter.certificate_management.vcenter.TlsTypes.Info> vmware::vcenter::certificate_management::vcenter::TlsStub::GetAsync ( ) [inline]

Returns the rhttpproxy TLS certificate.

This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundif the rhttpproxy certificate is not present in VECS store.
vmware.vapi.std.errors.Errorif failed due to generic exception.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Read .
Returns:
TLS certificate.

Implements vmware::vcenter::certificate_management::vcenter::Tls.

void vmware::vcenter::certificate_management::vcenter::TlsStub::Renew ( long?  duration) [inline]

Renews the TLS certificate for the given duration period.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.UnsupportedIf the TLS certificate is not VMCA generated.
vmware.vapi.std.errors.InvalidArgumentIf the duration period specified is invalid.
vmware.vapi.std.errors.ErrorIf the system failed to renew the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
durationThe duration (in days) of the new TLS certificate. The duration should be less than or equal to 730 days. If null, the duration will be 730 days (two years).

Implements vmware::vcenter::certificate_management::vcenter::Tls.

void vmware::vcenter::certificate_management::vcenter::TlsStub::Renew ( long?  duration,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Renews the TLS certificate for the given duration period.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.UnsupportedIf the TLS certificate is not VMCA generated.
vmware.vapi.std.errors.InvalidArgumentIf the duration period specified is invalid.
vmware.vapi.std.errors.ErrorIf the system failed to renew the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
durationThe duration (in days) of the new TLS certificate. The duration should be less than or equal to 730 days. If null, the duration will be 730 days (two years).
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task vmware::vcenter::certificate_management::vcenter::TlsStub::RenewAsync ( long?  duration) [inline]

Renews the TLS certificate for the given duration period.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.UnsupportedIf the TLS certificate is not VMCA generated.
vmware.vapi.std.errors.InvalidArgumentIf the duration period specified is invalid.
vmware.vapi.std.errors.ErrorIf the system failed to renew the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
durationThe duration (in days) of the new TLS certificate. The duration should be less than or equal to 730 days. If null, the duration will be 730 days (two years).

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task vmware::vcenter::certificate_management::vcenter::TlsStub::RenewAsync ( long?  duration,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Renews the TLS certificate for the given duration period.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.UnsupportedIf the TLS certificate is not VMCA generated.
vmware.vapi.std.errors.InvalidArgumentIf the duration period specified is invalid.
vmware.vapi.std.errors.ErrorIf the system failed to renew the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
durationThe duration (in days) of the new TLS certificate. The duration should be less than or equal to 730 days. If null, the duration will be 730 days (two years).
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implements vmware::vcenter::certificate_management::vcenter::Tls.

void vmware::vcenter::certificate_management::vcenter::TlsStub::ReplaceVmcaSigned ( vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec  spec) [inline]

Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.9.1.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentIf the Spec given is not complete or invalid
vmware.vapi.std.errors.ErrorIf the system failed to replace the machine ssl certificate
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to generate VMCA signed Machine SSL

Implements vmware::vcenter::certificate_management::vcenter::Tls.

void vmware::vcenter::certificate_management::vcenter::TlsStub::ReplaceVmcaSigned ( vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.9.1.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentIf the Spec given is not complete or invalid
vmware.vapi.std.errors.ErrorIf the system failed to replace the machine ssl certificate
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to generate VMCA signed Machine SSL
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task vmware::vcenter::certificate_management::vcenter::TlsStub::ReplaceVmcaSignedAsync ( vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec  spec) [inline]

Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.9.1.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentIf the Spec given is not complete or invalid
vmware.vapi.std.errors.ErrorIf the system failed to replace the machine ssl certificate
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to generate VMCA signed Machine SSL

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task vmware::vcenter::certificate_management::vcenter::TlsStub::ReplaceVmcaSignedAsync ( vmware.vcenter.certificate_management.vcenter.TlsTypes.ReplaceSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go for restart.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.. This method was added in vSphere API 6.9.1.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentIf the Spec given is not complete or invalid
vmware.vapi.std.errors.ErrorIf the system failed to replace the machine ssl certificate
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to generate VMCA signed Machine SSL
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implements vmware::vcenter::certificate_management::vcenter::Tls.

void vmware::vcenter::certificate_management::vcenter::TlsStub::Set ( vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Replaces the rhttpproxy TLS certificate with the specified certificate.

This method can be used in three scenarios :

  1. When the CSR is created and the private key is already stored, this method can replace the certificate. The certificate but not the private key and root certificate must be provided as input.
  2. When the certificate is signed by a third party certificate authority/VMCA and the root certificate of the third party certificate authority/VMCA is already one of the trusted roots in the trust store, this method can replace the certificate and private key. The certificate and the private key but not the root certificate must be provided as input.
  3. When the certificate is signed by a third party certificate authority and the root certificate of the third party certificate authority is not one of the trusted roots in the trust store, this method can replace the certificate, private key and root CA certificate. The certificate, private key and root certificate must be provided as input.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.

The above three scenarios are only supported from vsphere 7.0 onwards.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundIf the private key is not present in the VECS store.
vmware.vapi.std.errors.AlreadyExistsIf the specified certificate thumbprint is the same as the existing TLS certificate thumbprint.
vmware.vapi.std.errors.ErrorIf the system failed to replace the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to replace the TLS certificate.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implements vmware::vcenter::certificate_management::vcenter::Tls.

void vmware::vcenter::certificate_management::vcenter::TlsStub::Set ( vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec  spec) [inline]

Replaces the rhttpproxy TLS certificate with the specified certificate.

This method can be used in three scenarios :

  1. When the CSR is created and the private key is already stored, this method can replace the certificate. The certificate but not the private key and root certificate must be provided as input.
  2. When the certificate is signed by a third party certificate authority/VMCA and the root certificate of the third party certificate authority/VMCA is already one of the trusted roots in the trust store, this method can replace the certificate and private key. The certificate and the private key but not the root certificate must be provided as input.
  3. When the certificate is signed by a third party certificate authority and the root certificate of the third party certificate authority is not one of the trusted roots in the trust store, this method can replace the certificate, private key and root CA certificate. The certificate, private key and root certificate must be provided as input.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.

The above three scenarios are only supported from vsphere 7.0 onwards.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundIf the private key is not present in the VECS store.
vmware.vapi.std.errors.AlreadyExistsIf the specified certificate thumbprint is the same as the existing TLS certificate thumbprint.
vmware.vapi.std.errors.ErrorIf the system failed to replace the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to replace the TLS certificate.

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task vmware::vcenter::certificate_management::vcenter::TlsStub::SetAsync ( vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Replaces the rhttpproxy TLS certificate with the specified certificate.

This method can be used in three scenarios :

  1. When the CSR is created and the private key is already stored, this method can replace the certificate. The certificate but not the private key and root certificate must be provided as input.
  2. When the certificate is signed by a third party certificate authority/VMCA and the root certificate of the third party certificate authority/VMCA is already one of the trusted roots in the trust store, this method can replace the certificate and private key. The certificate and the private key but not the root certificate must be provided as input.
  3. When the certificate is signed by a third party certificate authority and the root certificate of the third party certificate authority is not one of the trusted roots in the trust store, this method can replace the certificate, private key and root CA certificate. The certificate, private key and root certificate must be provided as input.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.

The above three scenarios are only supported from vsphere 7.0 onwards.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundIf the private key is not present in the VECS store.
vmware.vapi.std.errors.AlreadyExistsIf the specified certificate thumbprint is the same as the existing TLS certificate thumbprint.
vmware.vapi.std.errors.ErrorIf the system failed to replace the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to replace the TLS certificate.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implements vmware::vcenter::certificate_management::vcenter::Tls.

global::System.Threading.Tasks.Task vmware::vcenter::certificate_management::vcenter::TlsStub::SetAsync ( vmware.vcenter.certificate_management.vcenter.TlsTypes.Spec  spec) [inline]

Replaces the rhttpproxy TLS certificate with the specified certificate.

This method can be used in three scenarios :

  1. When the CSR is created and the private key is already stored, this method can replace the certificate. The certificate but not the private key and root certificate must be provided as input.
  2. When the certificate is signed by a third party certificate authority/VMCA and the root certificate of the third party certificate authority/VMCA is already one of the trusted roots in the trust store, this method can replace the certificate and private key. The certificate and the private key but not the root certificate must be provided as input.
  3. When the certificate is signed by a third party certificate authority and the root certificate of the third party certificate authority is not one of the trusted roots in the trust store, this method can replace the certificate, private key and root CA certificate. The certificate, private key and root certificate must be provided as input.

After this method completes, the services using the certificate will be restarted for the new certificate to take effect.

The above three scenarios are only supported from vsphere 7.0 onwards.. This method was added in vSphere API 6.7.2.

Exceptions:
vmware.vapi.std.errors.NotFoundIf the private key is not present in the VECS store.
vmware.vapi.std.errors.AlreadyExistsIf the specified certificate thumbprint is the same as the existing TLS certificate thumbprint.
vmware.vapi.std.errors.ErrorIf the system failed to replace the TLS certificate.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires CertificateManagement.Administer .
Parameters:
specThe information needed to replace the TLS certificate.

Implements vmware::vcenter::certificate_management::vcenter::Tls.


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