REST API - delete

content library subscriptions: delete

Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted. This operation was added in vSphere API 6.7.2.

Request:

HTTP request

POST https://{server}/rest/com/vmware/content/library/subscriptions/id:{library}?~action=delete

Path Parameters

Name Type Description
Required
library string Identifier of the published library.

Request Body Structure:

{
    "subscription""obj-103"
}

Request Body Parameters:

Name Type Description
bold = required
subscription string Subscription identifier.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error If the system reports an error while responding to the request.
400 invalid_element_type If the library specified by library is a subscribed library.
400 not_allowed_in_current_state If the library specified by library is not a published library.
404 not_found If the library specified by library does not exist.
401 unauthenticated If the user that requested the operation cannot be authenticated.
403 unauthorized If the user that requested the operation is not authorized to perform the operation.