Method: OpenapiClient::ResourceRolesApi#remove_parent_resource_role

Defined in:
lib/openapi_client/api/resource_roles_api.rb

#remove_parent_resource_role(proj_id, env_id, resource_id, role_id, parent_role_id, opts = {}) ⇒ ResourceRoleRead

Remove Parent Role This endpoint is part of the role hierarchy feature. Removes ‘parent_role_id` from the list of parent roles of role with id `role_id`. In other words, `role_id` will no longer be automatically assigned permissions that are granted to `parent_role_id`. We can say the `role_id` **not longer extends** `parent_role_id` or **no longer inherits** from `parent_role_id`. Both roles must be defined on the same resource, identified by id `resource_id`.

Parameters:

  • Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

  • Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

  • Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").

  • Either the unique id of the role, or the URL-friendly key of the role (i.e: the "slug").

  • Either the unique id of the parent role, or the URL-friendly key of the parent role (i.e: the "slug").

  • (defaults to: {})

    the optional parameters

Returns:



551
552
553
554
# File 'lib/openapi_client/api/resource_roles_api.rb', line 551

def remove_parent_resource_role(proj_id, env_id, resource_id, role_id, parent_role_id, opts = {})
  data, _status_code, _headers = remove_parent_resource_role_with_http_info(proj_id, env_id, resource_id, role_id, parent_role_id, opts)
  data
end