跳转到内容
Ask AI

User Management

此内容尚不支持你的语言。

URLGETPOSTPATCHPUTDELETE
/rest/v1/running/linux-password-policyYNYNN
/rest/v1/running/linux-userYNYNN
/rest/v1/running/linux-user-policyYNYNN
/rest/v1/running/linux-user/user/{name}YYYNY
PATCH HTTPS://{switch IP}/rest/v1/running/linux-password-policy
{
"expiration-time": 66,
"min-length":9,
"enabled": "false"
}
GET HTTPS://{switch IP}/rest/v1/running/linux-user
PATCH HTTPS://{switch IP}/rest/v1/running/linux-user-policy
{
"enabled": "false",
"retry-count": 3,
"lock-time": 300,
"session-hold-time":600
}
POST HTTPS://{switch IP}/rest/v1/running/linux-user/user
{
"name": "test99",
"password": "123456",
"privilege-level": "config"
}

Tree Diagrams

+--rw linux-user-policy
| +--rw enabled?
| +--rw retry-count?
| +--rw lock-time?
| +--rw session-hold-time?

Table of Properties

NameRequiredType/RangeDescription
linux-user-policyMPath-only node, has no configurable value.
Linux user policy.
enabledO”true"
"false”(sub-property of linux-user-policy)
Linux user policy state, default is false.
Default value: “false”
retry-countO2..99(sub-property of linux-user-policy)
Maximum number of password attempts, default is 3
Default value: 3
lock-timeO60..99999(sub-property of linux-user-policy)
The lockout time after the maximum number of incorrect passwords is reached, default is 300s
Default value: 300
session-hold-timeO0
60..99999(sub-property of linux-user-policy)
How long the terminal stays connected, default is 600s
Default value: 600

Tree Diagrams

+--rw linux-user
| +--rw user* [name]
| +--rw name
| +--rw password?
| +--rw cipher-password?
| +--rw privilege-level?

Table of Properties

NameRequiredType/RangeDescription
linux-userMPath-only node, has no configurable value.
Linux user.
userM(sub-property of linux-user)
Path-only node, has no configurable value.
The list of user in linux.
nameMa letter, followed by up to 31 letters, digits, or underscores(sub-property of user)
Linux user name.
passwordOstring(sub-property of user)
Linux user’s password.
cipher-passwordOstring(sub-property of user)
Linux user’s cipher password.
privilege-levelO”none"
"show"
"config"
"sys_admin”(sub-property of user)
Linux user privilege level.
Default value: “none”

Tree Diagrams

+--rw linux-password-policy
+--ro include-digit?
+--ro include-lowercase?
+--ro include-uppercase?
+--ro include-special?
+--rw expiration-time?
+--ro expiration-warning-time?
+--ro history-password-count?
+--rw min-length?
+--ro vague-hint?
+--rw enabled?

Table of Properties

NameRequiredType/RangeDescription
linux-password-policyMPath-only node, has no configurable value.
Linux user password policy.
include-digitRO”true"
"false”(sub-property of linux-password-policy)
Password should contain numbers.
Default value: “true”
include-lowercaseRO”true"
"false”(sub-property of linux-password-policy)
Password should contain lowercase letters.
Default value: “true”
include-uppercaseRO”true"
"false”(sub-property of linux-password-policy)
Password should contain uppercase letters.
Default value: “true”
include-specialRO”true"
"false”(sub-property of linux-password-policy)
Password should contain special letters.
Default value: “true”
expiration-timeO30..365(sub-property of linux-password-policy)
Password expiration days.
Default value: 180
expiration-warning-timeRO1..30(sub-property of linux-password-policy)
Prompt password expiration n days in advance.
Default value: 15
history-password-countRO1..100(sub-property of linux-password-policy)
Num of old password that the system will recorded.
Default value: 10
min-lengthO6..32(sub-property of linux-password-policy)
Minimum password length.
Default value: 8
vague-hintRO”true"
"false”(sub-property of linux-password-policy)
No prompt is given for username error or password error.
Default value: “true”
enabledO”true"
"false”(sub-property of linux-password-policy)
State of the feature.
Default value: “false”