Host Datastore System Remove Datastore Ex Task

Host Datastore System Remove Datastore Ex Task

Remove one or more datastores.

This is an asynchronous, batch operation of removeDatastore. Please see RemoveDatastore for operational details. Note: This API currently supports removal of only NFS datastores.

Required privileges: Host.Config.Storage

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/HostDatastoreSystem/{moId}/RemoveDatastoreEx_Task
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 HostDatastoreSystem/{moId}.

string
release
Required

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


Request Body
RemoveDatastoreExRequestType of type(s) application/json
Required
{
    "datastore": [
        {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    ]
}
datastore
Required

each element specifies one datastore to be removed.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns MoRefTask of type(s) application/json
This response body class contains all of the following: MoRefExtensibleManagedObject
{
    "_typeName": "string",
    "type": "string",
    "value": "string"
}

500

HostConfigFault: for host configuration failures.

Returns HostConfigFault of type(s) application/json
This response body class contains all of the following: VimFault
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ]
}