Delete Subscriptions
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted. if you do not have all of the privileges described as follows: - The resource com.vmware.content.Library referenced by the parameter library requires ContentLibrary.DeleteSubscription.
Request
URLURL
https://{api_host}/rest/com/vmware/content/library/subscriptions/id:{library}?~action=delete
Parameters
Parameters
string
library
Required
Identifier of the published library.
The parameter must be an identifier for the resource type: com.vmware.content.Library.
Query Parameters
Query Parameters
string
subscription
Required
Subscription identifier.
The parameter must be an identifier for the resource type: com.vmware.content.library.Subscriptions.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/content/library/subscriptions/id:{library}?~action=delete?subscription=string
Errors
400
com.vmware.vapi.std.errors.invalid_element_type : If the library specified by library is a subscribed library.
401
com.vmware.vapi.std.errors.unauthenticated : If the user that requested the operation cannot be authenticated. | com.vmware.vapi.std.errors.unauthorized : If the user that requested the operation is not authorized to perform the operation.
404
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request. | com.vmware.vapi.std.errors.not_found : If the library specified by library does not exist.
If the subscription specified by subscription does not exist for the library specified by library.
409
com.vmware.vapi.std.errors.not_allowed_in_current_state : If the library specified by library is not a published library.
Subscriptions Operations
post
patch
post
post