Set Depots Sync Schedule
Released in v7.0.0Sets the software depot sync schedule. if you do not have all of the privileges described as follows: - Operation execution requires VcIntegrity.lifecycleSettings.Write.
Request
URLURL
https://{api_host}/api/esx/settings/depots/sync-schedule
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
SettingsDepotsSyncScheduleSpec of type application/json (optional){
"email_addresses": [
"string"
],
"enabled": false
}
array of
string
email_addresses
Required
Email addresses to which the notification will be sent. If empty, no notification is sent.
boolean
enabled
Required
Flag indicating whether automatic sync is enabled or not
schedule
Optional
The schedule to check for new updates. If unset the schedule must be disabled.
cURL Command
curl -X PUT -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"email_addresses":["string"],"enabled":false,"schedule":{"day_of_month":0,"day_of_week":"enum","hour":0,"minute":0,"skip":0,"type":"enum"}}' https://{api_host}/api/esx/settings/depots/sync-schedule
Errors
400
com.vmware.vapi.std.errors.invalid_argument : If SyncSchedule.Spec.schedule is unset while SyncSchedule.Spec.enabled is set to true or if any of the values is not within valid range.
404
com.vmware.vapi.std.errors.error : If there is some unknown error. The accompanying error message will give more details about the failure.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.