Add Custom Role (v2.1)
POST/sdwan/v2.1/api/roles
Add a custom role.
Request
- application/json
Body
Role details
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
custom_permissions CustomPermission[]
The details of the custom role permissions.
Allowed After Ms
Allowed Before Ms
List the disabled custom permissions.
The reason for disabling the custom permission.
Disallow Permission
The ID.
List the inactive custom permissions.
The reason for the custom permission being inactive.
The region.
The custom permission value.
The descriptions of the custom roles.
List the disabled custom roles.
The reason for disabling the custom role.
disallow_permissions AuthPermission[]
The details of the disallowed permissions.
The value of the permissions. Max size = 500.
The ID.
List the inactive custom roles.
Reason the custom role is inactive.
The custom role is system owned.
The name of the custom role. (guest|system|element|support_iam_admin|support_admin|support_viewonly|support_mfg|support_super|support_root|devops|secops|tenant_iam_admin|tenant_network_admin|tenant_security_admin|tenant_viewonly|tenant_super|tenant_root|esp_iam_admin|esp_machine_admin|esp_admin|esp_user|esp_super|esp_root))
permissions AuthPermission[]
The permissions for the custom role.
The value of the permissions. Max size = 500.
The region.
roles AuthRole[]
The names of the roles.
The name of the custom role. (guest|system|element|support_iam_admin|support_admin|support_viewonly|support_mfg|support_super|support_root|devops|secops|tenant_iam_admin|tenant_network_admin|tenant_security_admin|tenant_viewonly|tenant_super|tenant_root|esp_iam_admin|esp_machine_admin|esp_admin|esp_user|esp_super|esp_root))
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
custom_permissions CustomPermission[]
The details of the custom role permissions.
Allowed After Ms
Allowed Before Ms
List the disabled custom permissions.
The reason for disabling the custom permission.
Disallow Permission
The ID.
List the inactive custom permissions.
The reason for the custom permission being inactive.
The region.
The custom permission value.
The descriptions of the custom roles.
List the disabled custom roles.
The reason for disabling the custom role.
disallow_permissions AuthPermission[]
The details of the disallowed permissions.
The value of the permissions. Max size = 500.
The ID.
List the inactive custom roles.
Reason the custom role is inactive.
The custom role is system owned.
The name of the custom role. (guest|system|element|support_iam_admin|support_admin|support_viewonly|support_mfg|support_super|support_root|devops|secops|tenant_iam_admin|tenant_network_admin|tenant_security_admin|tenant_viewonly|tenant_super|tenant_root|esp_iam_admin|esp_machine_admin|esp_admin|esp_user|esp_super|esp_root))
permissions AuthPermission[]
The permissions for the custom role.
The value of the permissions. Max size = 500.
The region.
roles AuthRole[]
The names of the roles.
The name of the custom role. (guest|system|element|support_iam_admin|support_admin|support_viewonly|support_mfg|support_super|support_root|devops|secops|tenant_iam_admin|tenant_network_admin|tenant_security_admin|tenant_viewonly|tenant_super|tenant_root|esp_iam_admin|esp_machine_admin|esp_admin|esp_user|esp_super|esp_root))
{
"custom_permissions": [
{
"allowed_after_ms": 0,
"allowed_before_ms": 0,
"disabled": true,
"disabled_reason": "string",
"disallow_permission": true,
"id": "string",
"inactive": true,
"inactive_reason": "string",
"region": "string",
"value": "string"
}
],
"disabled": true,
"disabled_reason": "string",
"disallow_permissions": [
{
"value": "string"
}
],
"id": "string",
"inactive": true,
"inactive_reason": "string",
"is_system_owned": true,
"name": "string",
"permissions": [
{
"value": "string"
}
],
"region": "string",
"roles": [
{
"name": "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": "ESP_INVALID_TENANT_ID"
},
{
"code": "PERMISSION_API_TEST_TENANTID_FAILED"
},
{
"code": "AUTH_ROLE_INVALID_ESP_SOLO_ROLE"
},
{
"code": "AUTH_ROLE_INVALID_SUPER_ROLE_DATA"
},
{
"code": "AUTH_ROLE_INVALID_SUPER_SOLO_ROLE"
},
{
"code": "AUTH_ROLE_INVALID_TENANT_ROLE_DATA"
},
{
"code": "AUTH_ROLE_INVALID_TENANT_SOLO_ROLE"
},
{
"code": "PERMISSIONS_INVALID_DISALLOW_PERMISSION_VALUES"
},
{
"code": "PERMISSIONS_INVALID_PERMISSION_IDS"
},
{
"code": "PERMISSIONS_INVALID_PERMISSION_VALUES"
},
{
"code": "PERMISSIONS_NON_UNIQUE_DISALLOW_PERMISSION_VALUES"
},
{
"code": "PERMISSIONS_NON_UNIQUE_PERMISSION_IDS"
},
{
"code": "ROLES_NON_UNIQUE_ROLE_IDS"
},
{
"code": "ROLES_PERMISSION_OVERLAP_NOT_ALLOWED"
},
{
"code": "CUSTOM_ROLE_OPERATIONS_READONLY_FIELDS_NOT_ALLOWED"
},
{
"code": "SYSTEM_CREATED_CUSTOM_ROLE_OPERATIONS_NOT_ALLOWED"
}
]
}
}