List Subscriptions
Released in v6.7.2 DescriptionLists the subscriptions of the published library. if you do not have all of the privileges described as follows: - The resource com.vmware.content.Library referenced by the parameter library requires System.Read.
Request
URLURL
https://{api_host}/rest/com/vmware/content/library/subscriptions
Query Parameters
Query Parameters
string
library
Required
Identifier of the published library.
The parameter must be an identifier for the resource type: com.vmware.content.Library.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
LibrarySubscriptionsListResponseBody
of type application/json
List of commonly used information about subscriptions of the published library.
{
"value": [
{
"subscribed_library": "string",
"subscribed_library_name": "string",
"subscribed_library_vcenter_hostname": "string",
"subscription": "string"
}
]
}
array of
LibrarySubscriptionsSummary
value
Optional
List of commonly used information about subscriptions of the published library.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/content/library/subscriptions?library=string
Errors
400
com.vmware.vapi.std.errors.invalid_element_type : If the library specified by library is a subscribed library. | com.vmware.vapi.std.errors.not_allowed_in_current_state : If the library specified by library is not a published library.
401
com.vmware.vapi.std.errors.unauthenticated : If the user that requested the operation cannot be authenticated.
403
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.not_found : If the library specified by library does not exist.
500
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.
Subscriptions Operations
post
patch
post
post