Create Content Library
Creates a new Provider or Tenant Content library based on the context of the user. A library created from System org is a Provider Content Library. A library created from a tenant context is a Tenant Content Library Response is a 202 with task URL in location header
Request
URI
POST
https://{api_host}/cloudapi/vcf/contentLibraries
COPY
Request Body
ContentLibrary
of type(s)
application/json
Optional
Show optional properties
{
"name": "string"
}
{
"id": "string",
"name": "string",
"description": "string",
"org": {
"name": "string",
"id": "string"
},
"libraryType": "string",
"isSubscribed": false,
"isShared": false,
"creationDate": "string",
"storageClasses": [
{
"name": "string",
"id": "string"
}
],
"versionNumber": 0,
"subscriptionConfig": {
"subscriptionUrl": "string",
"password": "string",
"needLocalCopy": false
},
"autoAttach": false,
"status": "READY, NOT_READY, FAILED, PARTIALLY_READY"
}
Responses
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
Vendor Extension
This operation contains the following vendor extensions defined in the spec:
[object Object]
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}' https://{api_host}/cloudapi/vcf/contentLibraries
Availability
Added in 40.0
On This Page
Content Library Operations
GET
Query Content Libraries
POST
Create Content Library
POST
Refresh Content Library
POST
Sync Content Library
GET
Get Content Library
PUT
Update Content Library
DELETE
Delete Content Library