Get Configuration
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Retrieves the current configuration values. if you do not have all of the privileges described as follows: - Operation execution requires ContentLibrary.GetConfiguration.
Request
URLURL
https://{api_host}/rest/com/vmware/content/configuration?~action=get
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
ConfigurationGetResponseBody
of type application/json
The ConfigurationModel instance representing the configuration of the Content Library Service.
{
"value": {
"automatic_sync_enabled": false,
"automatic_sync_start_hour": 0,
"automatic_sync_stop_hour": 0,
"maximum_concurrent_item_syncs": 0
}
}
value
Optional
The ConfigurationModel instance representing the configuration of the Content Library Service.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/content/configuration?~action=get
Errors
On This Page
Configuration Operations
patch
post