Content Library get
Returns a given Content LibraryModel.
Returns an authorization error if you do not have all of the privileges described as follows:
- The resource
com.vmware.content.Library
referenced by the parameter libraryId requiresSystem.Read
.
Identifier of the library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.
The Content LibraryModel instance with the specified libraryId.
{
"id": "string",
"creation_time": "string",
"description": "string",
"last_modified_time": "string",
"last_sync_time": "string",
"name": "string",
"storage_backings": [
{
"type": "string",
"datastore_id": "string",
"storage_uri": "string"
}
],
"type": "string",
"optimization_info": {
"optimize_remote_publishing": false
},
"version": "string",
"publish_info": {
"authentication_method": "string",
"published": false,
"publish_url": "string",
"user_name": "string",
"password": "string",
"current_password": "string",
"persist_json_enabled": false
},
"subscription_info": {
"authentication_method": "string",
"automatic_sync_enabled": false,
"on_demand": false,
"password": "string",
"ssl_thumbprint": "string",
"subscription_url": "string",
"user_name": "string",
"source_info": {
"source_library": "string",
"subscription": "string"
},
"ssl_certificate": "string"
},
"server_guid": "string",
"security_policy_id": "string",
"unset_security_policy_id": false,
"state_info": {
"state": "string"
}
}
An identifier which uniquely identifies this Content LibraryModel.
This property is not used for the create
operation. It will not be present in the response of the get
or list
operations. It is not used for the update
operation.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.content.Library
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.content.Library
.
The date and time when this library was created.
This property is not used for the create
operation. It will always be present in the response of the get
or list
operations. It is not used for the update
operation.
A human-readable description for this library.
This property is optional for the create
operation. Leaving it missing or null
during creation will result in an empty string value. It will always be present in the result of a get
or list
operation. It is optional for the update
operation. Leaving it missing or null
during update indicates that the description should be left unchanged.
The date and time when this library was last updated.
This property is updated automatically when the library properties are changed. This property is not affected by adding, removing, or modifying a library item or its content within the library. Tagging the library or syncing the subscribed library does not alter this property.
This property is not used for the create
operation. It will always be present in the response of the get
or list
operations. It is not used for the update
operation.
The date and time when this library was last synchronized.
This property applies only to subscribed libraries. It is updated every time a synchronization is triggered on the library. The value is missing or null
for a local library.
This property is not used for the create
operation. It is optional in the response of the get
or list
operations. It is not used for the update
operation.
The name of the library.
A Library is identified by a human-readable name. Library names cannot be undefined or an empty string. Names do not have to be unique.
This property must be provided for the create
operation. It will always be present in the response of the get
or list
operations. It is optional for the update
operation.
The list of default storage backings which are available for this library.
A Content Library StorageBacking defines a default storage location which can be used to store files for library items in this library. Some library items, for instance, virtual machine template items, support files that may be distributed across various storage backings. One or more item files may or may not be located on the default storage backing.
Multiple default storage locations are not currently supported but may become supported in future releases.
This property must be provided for the create
operation. It will always be present in the response of the get
or list
operations. It is not used for the update
operation.
The type (LibraryModel.LibraryType) of this library.
This value can be used to determine what additional services and information can be available for this library.
This property is not used for the create
and update
operations. It will always be present in the result of a get
operation.
For more information see: Content LibraryModel LibraryType.
This property is not used for the create
operation. It will always be present in the response of the get
or list
operations. It is not used for the update
operation.
Defines various optimizations and optimization parameters applied to this library.
This property is optional for the create
operation. It is optional in the response of the get
or list
operations. It is optional for the update
operation.
A version number which is updated on metadata changes. This value allows clients to detect concurrent updates and prevent accidental clobbering of data.
This value represents a number which is incremented every time library properties, such as name or description, are changed. It is not incremented by changes to a library item within the library, including adding or removing items. It is also not affected by tagging the library.
This property is not used for the create
operation. It will always be present in the result of a get
or list
operation. It is optional for the update
operation. Leaving it missing or null
during update indicates that you do not need to detect concurrent updates.
Defines how this library is published so that it can be subscribed to by a remote subscribed library.
The Content Library PublishInfo defines where and how the metadata for this local library is accessible. A local library is only published publically if Content Library PublishInfo.published is true
.
This property is optional for the create
and update
operations. If not specified during creation, the default is for the library to not be published. If not specified during update, the property is left unchanged.
Defines the subscription behavior for this Library.
The Content Library SubscriptionInfo defines how this subscribed library synchronizes to a remote source. Setting the value will determine the remote source to which the library synchronizes, and how. Changing the subscription will result in synchronizing to a new source. If the new source differs from the old one, the old library items and data will be lost. Setting Content Library SubscriptionInfo.automatic_sync_enabled to false will halt subscription but will not remove existing cached data.
This property is optional for the create
and update
operations. If not specified during creation, a default will be created without an active subscription. If not specified during update, the property is left unchanged.
The unique identifier of the vCenter server where the library exists.
This property is optional for the create
operation. It will always be present in the response of the get
or list
operations. It is not used for the update
operation.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.vcenter.VCenter
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.vcenter.VCenter
.
Represents the security policy applied to this library.
Setting the property will make the library secure. This field is ignored in update
operation if Content LibraryModel.unset_security_policy_id is set to true
.
This property was added in vSphere API 7.0.3.0.
This property is optional for the create
and update
operations. If not set in create
operation, the library will be insecure. If not specified in update
operation, the property is left unchanged.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.content.Library
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.content.Library
.
This represents the intent of the change to Content LibraryModel.security_policy_id in update
operation.
If this field is set to true
, any security policy applied to the library will be removed. If this field is set to false
, any security policy applied to library will be changed to the value specified in Content LibraryModel.security_policy_id, if any.
This property was added in vSphere API 7.0.3.0.
This property is optional for the update
operation. If missing or null
, any existing security policy will be changed to the value specified in Content LibraryModel.security_policy_id, if any.
The Content Library StateInfo provides the state information of this library.
This property is not used for the create
and update
operations. It will always be present in the result of a get
operation.
This property was added in vSphere API 9.0.0.0.
This property is not used for the create
operation. It will always be present in the response of the get
or list
operations. It is not used for the update
operation.
if the specified library does not exist.
"Vapi Std Errors NotFound Object"
curl -H 'Authorization: <value>' https://{api_host}/api/content/library/{libraryId}