VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::Datacenter Interface Reference

The Datacenter interface provides methods to manage datacenters in the vCenter Server. More...

Inherited by vmware::vcenter::DatacenterStub.

List of all members.

Public Member Functions

string Create (vmware.vcenter.DatacenterTypes.CreateSpec spec)
 Create a new datacenter in the vCenter inventory.
string Create (vmware.vcenter.DatacenterTypes.CreateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Create a new datacenter in the vCenter inventory.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (vmware.vcenter.DatacenterTypes.CreateSpec spec)
 Create a new datacenter in the vCenter inventory.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (vmware.vcenter.DatacenterTypes.CreateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Create a new datacenter in the vCenter inventory.
void Delete (string datacenter, bool?force)
 Delete an empty datacenter from the vCenter Server.
void Delete (string datacenter, bool?force, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Delete an empty datacenter from the vCenter Server.
global::System.Threading.Tasks.Task DeleteAsync (string datacenter, bool?force)
 Delete an empty datacenter from the vCenter Server.
global::System.Threading.Tasks.Task DeleteAsync (string datacenter, bool?force, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Delete an empty datacenter from the vCenter Server.
global::System.Collections.Generic.List
< vmware.vcenter.DatacenterTypes.Summary
List (vmware.vcenter.DatacenterTypes.FilterSpec filter)
 Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .
global::System.Collections.Generic.List
< vmware.vcenter.DatacenterTypes.Summary
List (vmware.vcenter.DatacenterTypes.FilterSpec filter, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.vcenter.DatacenterTypes.Summary > > 
ListAsync (vmware.vcenter.DatacenterTypes.FilterSpec filter)
 Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.vcenter.DatacenterTypes.Summary > > 
ListAsync (vmware.vcenter.DatacenterTypes.FilterSpec filter, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .
vmware.vcenter.DatacenterTypes.Info Get (string datacenter)
 Retrieves information about the datacenter corresponding to datacenter .
vmware.vcenter.DatacenterTypes.Info Get (string datacenter, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Retrieves information about the datacenter corresponding to datacenter .
global::System.Threading.Tasks.Task
< vmware.vcenter.DatacenterTypes.Info
GetAsync (string datacenter)
 Retrieves information about the datacenter corresponding to datacenter .
global::System.Threading.Tasks.Task
< vmware.vcenter.DatacenterTypes.Info
GetAsync (string datacenter, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Retrieves information about the datacenter corresponding to datacenter .

Detailed Description

The Datacenter interface provides methods to manage datacenters in the vCenter Server.


Member Function Documentation

string vmware::vcenter::Datacenter::Create ( vmware.vcenter.DatacenterTypes.CreateSpec  spec)

Create a new datacenter in the vCenter inventory.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.AlreadyExistsif the datacenter with the same name is already present.
vmware.vapi.std.errors.InvalidArgumentif the datacenter name is empty or invalid as per the underlying implementation.
vmware.vapi.std.errors.InvalidArgumentif the folder is not specified and the system cannot choose a suitable one.
vmware.vapi.std.errors.NotFoundif the datacenter folder cannot be found.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
specSpecification for the new datacenter to be created.
Returns:
The identifier of the newly created datacenter The result will be an identifier for the resource type: Datacenter .

Implemented in vmware::vcenter::DatacenterStub.

string vmware::vcenter::Datacenter::Create ( vmware.vcenter.DatacenterTypes.CreateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Create a new datacenter in the vCenter inventory.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.AlreadyExistsif the datacenter with the same name is already present.
vmware.vapi.std.errors.InvalidArgumentif the datacenter name is empty or invalid as per the underlying implementation.
vmware.vapi.std.errors.InvalidArgumentif the folder is not specified and the system cannot choose a suitable one.
vmware.vapi.std.errors.NotFoundif the datacenter folder cannot be found.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
specSpecification for the new datacenter to be created.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The identifier of the newly created datacenter The result will be an identifier for the resource type: Datacenter .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::Datacenter::CreateAsync ( vmware.vcenter.DatacenterTypes.CreateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Create a new datacenter in the vCenter inventory.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.AlreadyExistsif the datacenter with the same name is already present.
vmware.vapi.std.errors.InvalidArgumentif the datacenter name is empty or invalid as per the underlying implementation.
vmware.vapi.std.errors.InvalidArgumentif the folder is not specified and the system cannot choose a suitable one.
vmware.vapi.std.errors.NotFoundif the datacenter folder cannot be found.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
specSpecification for the new datacenter to be created.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The identifier of the newly created datacenter The result will be an identifier for the resource type: Datacenter .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::Datacenter::CreateAsync ( vmware.vcenter.DatacenterTypes.CreateSpec  spec)

Create a new datacenter in the vCenter inventory.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.AlreadyExistsif the datacenter with the same name is already present.
vmware.vapi.std.errors.InvalidArgumentif the datacenter name is empty or invalid as per the underlying implementation.
vmware.vapi.std.errors.InvalidArgumentif the folder is not specified and the system cannot choose a suitable one.
vmware.vapi.std.errors.NotFoundif the datacenter folder cannot be found.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
specSpecification for the new datacenter to be created.
Returns:
The identifier of the newly created datacenter The result will be an identifier for the resource type: Datacenter .

Implemented in vmware::vcenter::DatacenterStub.

void vmware::vcenter::Datacenter::Delete ( string  datacenter,
bool?  force 
)

Delete an empty datacenter from the vCenter Server.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ResourceInUseif the datacenter associated with datacenter is not empty.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter to be deleted. The parameter must be an identifier for the resource type: Datacenter .
forceIf true, delete the datacenter even if it is not empty. If null a vmware.vapi.std.errors.ResourceInUse error will be reported if the datacenter is not empty. This is the equivalent of passing the value false.

Implemented in vmware::vcenter::DatacenterStub.

void vmware::vcenter::Datacenter::Delete ( string  datacenter,
bool?  force,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Delete an empty datacenter from the vCenter Server.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ResourceInUseif the datacenter associated with datacenter is not empty.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter to be deleted. The parameter must be an identifier for the resource type: Datacenter .
forceIf true, delete the datacenter even if it is not empty. If null a vmware.vapi.std.errors.ResourceInUse error will be reported if the datacenter is not empty. This is the equivalent of passing the value false.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task vmware::vcenter::Datacenter::DeleteAsync ( string  datacenter,
bool?  force,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Delete an empty datacenter from the vCenter Server.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ResourceInUseif the datacenter associated with datacenter is not empty.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter to be deleted. The parameter must be an identifier for the resource type: Datacenter .
forceIf true, delete the datacenter even if it is not empty. If null a vmware.vapi.std.errors.ResourceInUse error will be reported if the datacenter is not empty. This is the equivalent of passing the value false.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task vmware::vcenter::Datacenter::DeleteAsync ( string  datacenter,
bool?  force 
)

Delete an empty datacenter from the vCenter Server.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ResourceInUseif the datacenter associated with datacenter is not empty.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter to be deleted. The parameter must be an identifier for the resource type: Datacenter .
forceIf true, delete the datacenter even if it is not empty. If null a vmware.vapi.std.errors.ResourceInUse error will be reported if the datacenter is not empty. This is the equivalent of passing the value false.

Implemented in vmware::vcenter::DatacenterStub.

vmware.vcenter.DatacenterTypes.Info vmware::vcenter::Datacenter::Get ( string  datacenter)

Retrieves information about the datacenter corresponding to datacenter .

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter. The parameter must be an identifier for the resource type: Datacenter .
Returns:
The Datacenter.Info instances that corresponds to the datacenter .

Implemented in vmware::vcenter::DatacenterStub.

vmware.vcenter.DatacenterTypes.Info vmware::vcenter::Datacenter::Get ( string  datacenter,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Retrieves information about the datacenter corresponding to datacenter .

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter. The parameter must be an identifier for the resource type: Datacenter .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The Datacenter.Info instances that corresponds to the datacenter .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task<vmware.vcenter.DatacenterTypes.Info> vmware::vcenter::Datacenter::GetAsync ( string  datacenter,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Retrieves information about the datacenter corresponding to datacenter .

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter. The parameter must be an identifier for the resource type: Datacenter .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The Datacenter.Info instances that corresponds to the datacenter .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task<vmware.vcenter.DatacenterTypes.Info> vmware::vcenter::Datacenter::GetAsync ( string  datacenter)

Retrieves information about the datacenter corresponding to datacenter .

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif there is no datacenter associated with datacenter in the system.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
datacenterIdentifier of the datacenter. The parameter must be an identifier for the resource type: Datacenter .
Returns:
The Datacenter.Info instances that corresponds to the datacenter .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Collections.Generic.List<vmware.vcenter.DatacenterTypes.Summary> vmware::vcenter::Datacenter::List ( vmware.vcenter.DatacenterTypes.FilterSpec  filter)

Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .

Exceptions:
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 datacenters match the Datacenter.FilterSpec .
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
filterSpecification of matching datacenters for which information should be returned. If null, the behavior is equivalent to a Datacenter.FilterSpec with all fields null which means all datacenters match the filter.
Returns:
Commonly used information about the datacenters matching the Datacenter.FilterSpec .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Collections.Generic.List<vmware.vcenter.DatacenterTypes.Summary> vmware::vcenter::Datacenter::List ( vmware.vcenter.DatacenterTypes.FilterSpec  filter,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .

Exceptions:
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 datacenters match the Datacenter.FilterSpec .
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
filterSpecification of matching datacenters for which information should be returned. If null, the behavior is equivalent to a Datacenter.FilterSpec with all fields null which means all datacenters match the filter.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Commonly used information about the datacenters matching the Datacenter.FilterSpec .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.vcenter.DatacenterTypes.Summary> > vmware::vcenter::Datacenter::ListAsync ( vmware.vcenter.DatacenterTypes.FilterSpec  filter)

Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .

Exceptions:
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 datacenters match the Datacenter.FilterSpec .
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
filterSpecification of matching datacenters for which information should be returned. If null, the behavior is equivalent to a Datacenter.FilterSpec with all fields null which means all datacenters match the filter.
Returns:
Commonly used information about the datacenters matching the Datacenter.FilterSpec .

Implemented in vmware::vcenter::DatacenterStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.vcenter.DatacenterTypes.Summary> > vmware::vcenter::Datacenter::ListAsync ( vmware.vcenter.DatacenterTypes.FilterSpec  filter,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about at most 1000 visible (subject to permission checks) datacenters in vCenter matching the Datacenter.FilterSpec .

Exceptions:
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 datacenters match the Datacenter.FilterSpec .
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
filterSpecification of matching datacenters for which information should be returned. If null, the behavior is equivalent to a Datacenter.FilterSpec with all fields null which means all datacenters match the filter.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Commonly used information about the datacenters matching the Datacenter.FilterSpec .

Implemented in vmware::vcenter::DatacenterStub.


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