Vsan Remote Datastore System Vsan Destroy Datastore Source

Vsan Remote Datastore System Vsan Destroy Datastore Source

Destroy an existing Datastore Source configuration.

Required privileges: Host.Config.Storage

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VsanRemoteDatastoreSystem/{moId}/VsanDestroyDatastoreSource
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case VsanRemoteDatastoreSystem/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Request Body
VsanDestroyDatastoreSourceRequestType of type(s) application/json
Required
"VsanDestroyDatastoreSourceRequestType Object"
datastoreSource
Required

The Datastore Source to be destroyed. If the vCenter is an ELM linked vCenter, only VsanRemoteVcInfo.vcHost needs to be specified. For a standalone vCenter, the VsanRemoteVcInfoStandalone.user and VsanRemoteVcInfoStandalone.password needs to be specified for an user credential with the privileges to delete the service account.

Authentication
This operation uses the following authentication methods.
Responses
200

The task for destroying Datastore Source operation.

Returns MoRefTask of type(s) application/json
"MoRefTask Object"

500

NotFound: The specified Datastore Source is not found.

ResourceInUse: The specified Datastore Source still has datastores being mounted.

VsanFault: Other vSAN related faults.

Returns VimFault of type(s) application/json
This response body class contains all of the following: InlineVimFault0
"VimFault Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanRemoteDatastoreSystem/{moId}/VsanDestroyDatastoreSource