API v2: Password Changer Policyยถ
Password changer policy defines specifics of how frequently the password should be changed and password complexity requirements.
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Unique. Password change policy identifier. |
|
|
string |
yes |
Unique, case-insensitive, password change policy name. |
|
number {0 - 2147483647} |
with |
Time in minutes after which password should be changed. |
|
number {0 - 2147483647} |
Time in minutes after which password should be verified. |
|
|
number {0 - 2147483647} |
Total password length. |
|
|
boolean |
Read-only. Expensive to use. Is password changer enabled for this policy? |
|
|
boolean |
Read-only. Expensive to use. Is password verifier enabled for this policy? |
|
|
number {0 - 2147483647} |
with |
Number of lower case characters in password. |
|
number {0 - 2147483647} |
with |
Number of upper case characters in password. |
|
number {0 - 2147483647} |
with |
Number of numeric characters in password. |
|
number {0 - 2147483647} |
with |
Number of special characters in password. |
|
datetime |
Read-only. Timestamp ofย creation. |
|
|
datetime |
Read-only. Timestamp ofย modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the PasswordPolicyModelยถ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Password Changer Policies Listยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/password_change_policy`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/password_change_policy'
Response
{
"result": "success",
"password_change_policy": [
{
"id": "1",
"name": "Static, without restrictions",
"password_changer_enabled": false,
"password_verifier_enabled": false,
"created_at": "2024-06-10 05:59:22.994431-07",
"modified_at": "2024-06-10 05:59:22.994431-07",
"builtin": true,
"hidden": false
},
{
"id": "9124292845052624897",
"name": "Pass Changing Enabled",
"change_frequency": 2,
"complexity_length": 8,
"password_changer_enabled": true,
"password_verifier_enabled": false,
"complexity_lowercase": 1,
"created_at": "2024-06-11 23:29:24.511416-07",
"modified_at": "2024-06-12 02:16:38.410347-07",
"builtin": false,
"hidden": false
}
]
}
Get Password Change Policy by IDยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/password_change_policy/<id>`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/password_change_policy/9124292845052624897'
Response
{
"result": "success",
"password_change_policy": {
"id": "9124292845052624897",
"name": "Pass Changing Enabled",
"change_frequency": 2,
"complexity_length": 8,
"password_changer_enabled": true,
"password_verifier_enabled": false,
"complexity_lowercase": 1,
"created_at": "2024-06-11 23:29:24.511416-07",
"modified_at": "2024-06-12 02:16:38.410347-07",
"builtin": false,
"hidden": false
}
}
Defining Password Change Policyยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/password_change_policy`
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/password_change_policy' \
-d'{"name":"Password_Verif_1","change_frequency":2,"complexity_length":8,"complexity_lowercase":2}'
Response
{
"result": "success",
"password_change_policy": {
"id": "9124292845052624898"
}
}
Modify Password Change Policyยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/password_change_policy/<id>`
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/password_change_policy/9124292845052624897' \
-d'{"change_frequency":4,"complexity_lowercase":2}'
Response
{
"result": "success"
}
Deleting Password Change Policyยถ
Request
Method |
|
Path |
|
Example Request
DELETE /api/v2/password_change_policy/<id>`
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/password_change_policy/9124292845052624897'
Response
{
"result": "success"
}