Content Library find

Content Library find

Returns a list of all the visible (as determined by authorization policy) libraries matching the requested Content Library FindSpec.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires System.Read.
Request
URI
POST
https://{api_host}/api/content/library?action=find
COPY
Request Body

Specification describing what properties to filter on.

Content Library FindSpec of type(s) application/json
Required
{
    "name": "string",
    "type": "string",
    "storage_backing": {
        "type": "string",
        "datastore_id": "string",
        "storage_uri": "string"
    }
}
string
name
Optional

Name of the library to search. The name is case-insensitive. See Content LibraryModel.name.

If not specified any name will be searched.

string
type
Optional

Library type to search. See Content LibraryModel.type.

For more information see: Content LibraryModel LibraryType.

If not specified any library type will be searched.

storage_backing
Optional

Library StorageBacking to search. See Content Library StorageBacking.

This property was added in vSphere API 9.0.0.0.

If not specified any storage backing will be searched.

Authentication
This operation uses the following authentication methods.
Responses
200

The list of identifiers of all the visible libraries matching the given spec.

The response will contain identifiers for the resource type: com.vmware.content.Library.

[
    {}
]
array of string
Optional

400

if no properties are specified in the spec.

Returns Vapi Std Errors InvalidArgument of type(s) application/json
This response body class contains all of the following: InlineVapi Std Errors InvalidArgument0
"Vapi Std Errors InvalidArgument Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/content/library?action=find