Bind Roles To Entity
Creates a new role binding, granting the specified roles to a remote (LDAP) user or
remote (LDAP) group. Local users cannot be granted roles through this API. To grant
additional roles to an entity that already has a binding, use
PUT /iam/role-bindings/{binding-id} instead - this operation always creates a new binding.
{
"entity_name": "[email protected]",
"user_type": "REMOTE_USER",
"roles": [
{
"role": "AUDITOR"
}
]
}
The role binding was created successfully.
{
"_create_user": "string",
"_create_time": 0,
"_last_modified_user": "string",
"_last_modified_time": 0,
"_revision": 0,
"_resource_type": "string",
"_system_owned": false,
"id": "string",
"display_name": "string",
"description": "string",
"site_ids": [
"string"
],
"entity_name": "string",
"user_type": "string",
"roles": [
{
"role": "string",
"display_name": "string"
}
]
}
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
4XX and 5XX type errors with appropriate message
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"entity_name":"string","roles":["object"]}' https://{api_host}/https://{api_host}:{port}/lh-appliance/iam/role-bindings