Get Policy
Gets 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"
Authentication
Response
Response BodyResponse Body
Structure containing the policy for the appliance update.
{
"auto_stage": false,
"auto_update": false,
"certificate_check": false,
"check_schedule": [
{
"day": "MONDAY",
"hour": 0,
"minute": 0
}
],
"custom_URL": "string",
"default_URL": "string",
"manual_control": false,
"username": "string"
}
Automatically stage the latest update if available.
Is the appliance updated automatically. If set the appliance may ignore the check schedule or auto-stage settings.
Indicates whether certificates will be checked during patching. Warning: If this field is set to false, an insecure connection is made to the update repository which can potentially put the appliance security at risk.
Current appliance update default repository URL.
Whether API client should allow the user to start update manually
Current appliance update custom repository URL. If unset update is checked at defaut URL.
Username for the update repository If unset username will not be used to login
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
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/appliance/update/policy
x-vmw-doc-operation: get