appliance local accounts policy: get
Get the global password policy. This operation was added in vSphere API 6.7.
Request:
HTTP request
GET https://{server}/rest/appliance/local-accounts/global-policy
No request parameters
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"warn_days" : 1,
"max_days" : 1,
"min_days" : 1
}
}
"value" : {
"warn_days" : 1,
"max_days" : 1,
"min_days" : 1
}
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | info | Global password policy. |
value.max_days | long | Maximum number of days a password may be used. If the password is older than this, a password change will be forced. This attribute was added in vSphere API 6.7. Optional. If unset then the restriction will be ignored. |
value.min_days | long | Minimum number of days allowed between password changes. Any password changes attempted sooner than this will be rejected. This attribute was added in vSphere API 6.7. Optional. If unset then the restriction will be ignored. |
value.warn_days | long | Number of days warning given before a password expires. A zero means warning is given only upon the day of expiration. This attribute was added in vSphere API 6.7. Optional. If unset then no warning will be provided. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |