Create Element User (v2.1)
POST/sdwan/v2.1/api/elementusers
Create an element user.
Request
- application/json
Body
Details of the element user to be created
The ID.
The tenant level is flagged.
The element user log in ID. Login Id length should be between 4 and 16. = ^[a-z][-a-z0-9]*$
The new password. Password should have atleast one alphabet, one numeric and a special character. Allowed special characters are ? = . * ! @ # % ^ & _ -; Password Length should be between 8 to 64.
Possible values: [SUPER
, READONLY
, MONITOR
, EVAL
]
The user role.
The username. Max length = 255.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The ID.
The tenant level is flagged.
The element user log in ID. Login Id length should be between 4 and 16. = ^[a-z][-a-z0-9]*$
Possible values: [SUPER
, READONLY
, MONITOR
, EVAL
]
The user role.
The username. Max length = 255.
{
"id": "string",
"is_tenant_level": true,
"login_id": "string",
"role": "SUPER",
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_USERNAME"
},
{
"code": "LOGIN_ID_REQUIRED"
},
{
"code": "RESERVED_ELEMENT_USER_LOGIN_ID"
},
{
"code": "IS_TENANT_LEVEL_FLAG_REQUIRED"
},
{
"code": "INVALID_USER_ROLE"
},
{
"code": "LOGIN_ID_CONSTRAINT_LENGTH"
},
{
"code": "INVALID_LOGIN_ID"
}
]
}
}