Create Authorization Role
Create Rbac authorization role.
Request
URI
POST
https://{api_host}/admin/hybridity/api/authz/rbac/roles
COPY
Request Body
request payload.
role of type(s) application/json
Required
{
"privileges": [
"SYSTEM ADMIN",
"SYSTEM ADMIN"
],
"isDefault": false,
"name": "name",
"description": "description",
"id": "id",
"creationDate": "creationDate"
}
string
id
Optional
id
string
name
Optional
name
string
creationDate
Optional
creationDate
string
description
Optional
description
boolean
isDefault
Optional
isDefault
array of string
privileges
Optional
privileges
Possible values are : SYSTEM ADMIN, ROLE ADMIN, SYSTEM AUDIT, VIRTUAL INFRASTRUCTURE ADMIN, VIRTUAL INFRASTRUCTURE AUDIT, VIRTUAL INFRASTRUCTURE CONSUME, NETWORK FUNCTION CATALOG DESIGN, NETWORK FUNCTION CATALOG READ, NETWORK FUNCTION CATALOG INSTANTIATE, NETWORK FUNCTION INSTANCE READ, NETWORK FUNCTION INSTANCE LIFECYCLE MANAGEMENT, NETWORK SERVICE CATALOG DESIGN, NETWORK SERVICE CATALOG READ, NETWORK SERVICE CATALOG INSTANTIATE, NETWORK SERVICE INSTANCE READ, NETWORK SERVICE INSTANCE LIFECYCLE MANAGEMENT, WORKFLOW READ, WORKFLOW DESIGN, WORKFLOW EXECUTE, PARTNER SYSTEM READ, PARTNER SYSTEM ADMIN, ROLE AUDIT, INFRASTRUCTURE DESIGN, INFRASTRUCTURE LIFECYCLE MANAGEMENT, TAG ADMIN,
Responses
200
Successfully retrived requested roles.
Returns role of type(s) application/json
{
"privileges": [
"SYSTEM ADMIN",
"SYSTEM ADMIN"
],
"isDefault": false,
"name": "name",
"description": "description",
"id": "id",
"creationDate": "creationDate"
}
string
id
Optional
id
string
name
Optional
name
string
creationDate
Optional
creationDate
string
description
Optional
description
boolean
isDefault
Optional
isDefault
array of string
privileges
Optional
privileges
Possible values are : SYSTEM ADMIN, ROLE ADMIN, SYSTEM AUDIT, VIRTUAL INFRASTRUCTURE ADMIN, VIRTUAL INFRASTRUCTURE AUDIT, VIRTUAL INFRASTRUCTURE CONSUME, NETWORK FUNCTION CATALOG DESIGN, NETWORK FUNCTION CATALOG READ, NETWORK FUNCTION CATALOG INSTANTIATE, NETWORK FUNCTION INSTANCE READ, NETWORK FUNCTION INSTANCE LIFECYCLE MANAGEMENT, NETWORK SERVICE CATALOG DESIGN, NETWORK SERVICE CATALOG READ, NETWORK SERVICE CATALOG INSTANTIATE, NETWORK SERVICE INSTANCE READ, NETWORK SERVICE INSTANCE LIFECYCLE MANAGEMENT, WORKFLOW READ, WORKFLOW DESIGN, WORKFLOW EXECUTE, PARTNER SYSTEM READ, PARTNER SYSTEM ADMIN, ROLE AUDIT, INFRASTRUCTURE DESIGN, INFRASTRUCTURE LIFECYCLE MANAGEMENT, TAG ADMIN,
400
Bad Request
Returns errorResponse of type(s) application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure
404
Role not found
Operation doesn't return any data structure
500
Internal Server Error
Returns errorResponse of type(s) application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}