Set Policy
DescriptionSets the automatic update checking and staging policy.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Info structure containing the policy for the appliance update.
{
"auto_stage": false,
"check_schedule": [
{
"day": "MONDAY",
"hour": 0,
"minute": 0
}
]
}
Automatically stage the latest update if available.
Indicates whether certificates will be checked during patching. Warning: Setting this field to false will result in an insecure connection to update repository which can potentially put the appliance security at risk.
certificateCheck If unset the certificate checks are enabled.
Current appliance update repository URL. If unset then default URL is assumed
Password for the update repository password If unset password will not be used to login
Username for the update repository If unset username will not be used to login
Authentication
Errors
Errors
com.vmware.vapi.std.errors.unauthorized : session is not authorized to perform this operation
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: put
x-vmw-doc-deprecated-path: /rest/appliance/update/policy
x-vmw-doc-operation: set