Publish Local Library
Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions. if you do not have all of the privileges described as follows: - The resource com.vmware.content.Library referenced by the parameter libraryId requires ContentLibrary.PublishLibrary.
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.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"subscriptions": [
{
"subscription": "string"
}
]
}
The list of subscriptions to publish this library to.
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_argument : If one or more subscriptions is not valid. | com.vmware.vapi.std.errors.invalid_element_type : If the library specified by libraryId is a subscribed library. | com.vmware.vapi.std.errors.not_allowed_in_current_state : If the library specified by libraryId 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 libraryId does not exist.
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request.
‘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: post
x-vmw-doc-deprecated-path: /rest/com/vmware/content/local-library/id:{library_id}?~action=publish
x-vmw-doc-operation: publish