Esx. Settings. Depots. Offline Delete

Esx. Settings. Depots. Offline Delete

The task-based delete operation removes content of an imported offline depot from vLCM completely.

Note: The non task-based delete operation has been deprecated. It deletes only the record of depot from the list of imported offline software depots, instead of removing the depot's content from vLCM.

This operation was added in vSphere API 7.0.0.0.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires VcIntegrity.lifecycleDepots.Delete.
Request
URI
DELETE
https://{api_host}/esx/settings/depots/offline/{depot}
COPY
Path Parameters
string
depot
Required

Identifier of the depot to be removed.

The parameter must be an identifier for the resource type: com.vmware.esx.settings.depots.offline.


Request Body

The delete spec.

This parameter was added in vSphere API 9.0.0.0.

This parameter is optional because it was added in a newer version than its parent node.

Esx.Settings.Depots.Offline.DeleteSpec of type(s) application/json
Optional
"Esx.Settings.Depots.Offline.DeleteSpec Object"
Authentication
This operation uses the following authentication methods.
Responses
204

Success!

Operation doesn't return any data structure

400

Vapi.Std.Errors.InvalidArgument If the given depot is system-defined. This error is applicable to the task-based delete operation only.

Vapi.Std.Errors.ResourceInUse If the content of depot to be deleted is used in some baseline or desired state. The value of the data property of Vapi.Std.Errors.Error will be the PrecheckResult schema that lists the information of affected baselines and desired states. This error is applicable to the task-based delete operation only.

Returns Vapi.Std.Errors.Error of type(s) application/json
"Vapi.Std.Errors.Error Object"

401

If the caller is not authenticated.

Returns Vapi.Std.Errors.Unauthenticated of type(s) application/json
"Vapi.Std.Errors.Unauthenticated Object"

404

If there is no depot associated with parameter depot in the system.

Returns Vapi.Std.Errors.NotFound of type(s) application/json
"Vapi.Std.Errors.NotFound Object"

500

If there some unknown internal error. The accompanying error message will give more details about the failure. For task-based delete operation, once the task is started, it does NOT stop if encountering an error. Instead, it will continuously run to completion. In this case, the value of the data property of Vapi.Std.Errors.Error will be the DeleteResult schema that lists all the errors encountered.

Returns Vapi.Std.Errors.Error of type(s) application/json
"Vapi.Std.Errors.Error Object"

503

If the service is not available.

Returns Vapi.Std.Errors.ServiceUnavailable of type(s) application/json
"Vapi.Std.Errors.ServiceUnavailable Object"

Code Samples
COPY
                    curl -X DELETE -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/esx/settings/depots/offline/{depot}