Update Subscriptions
Updates the specified subscription of the published library. This is an incremental update to the subscription. Except for the Subscriptions.UpdateSpecPlacement structure, fields that are unset in the update specification will be left unchanged. If spec#subscribedLibraryPlacement is specified, all fields of the current subscribed library placement will be replaced by this placement.
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.UpdateSubscription.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the published library. The parameter must be an identifier for the resource type: com.vmware.content.Library.
subscription identifier. The parameter must be an identifier for the resource type: com.vmware.content.library.Subscriptions.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Specification of the new property values to set on the subscription.
{
"subscribed_library_placement": {
"cluster": "string",
"folder": "string",
"host": "string",
"network": "string",
"resource_pool": "string"
},
"subscribed_library_vcenter": {
"hostname": "string",
"https_port": 0
}
}
Placement specification for the virtual machine template items of the subscribed library. Updating this information will only affect new or updated items, existing items will not be moved. The entire placement configuration of the subscribed library will replaced by the new specification. If unset, the placement configuration of the subscribed library will be unchanged.
Specification for the subscribed library’s vCenter Server instance. If unset, the value is unchanged.
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_argument : If Subscriptions.UpdateSpec contains invalid arguments. | 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.
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.
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.
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request. | com.vmware.vapi.std.errors.resource_inaccessible : If the subscribed library cannot be contacted or found.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: patch
x-vmw-doc-deprecated-path: /rest/com/vmware/content/library/subscriptions/id:{library}
x-vmw-doc-operation: update