• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. Permission
  6. Deleting Permissions of a User Group Under a Domain

Deleting Permissions of a User Group Under a Domain

Function Description

This interface is used to delete permissions of a specified user group under a domain. This interface applies only to domain names in the Global zone.

URI

  • URI format

    DELETE /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    domain_id

    Yes

    String

    ID of the domain to which a user group belongs.

    group_id

    Yes

    String

    ID of a user group.

    role_id

    Yes

    String

    ID of a role.

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    Content-Type

    Yes

    String

    Fill application/json;charset=utf8 in this field.

    X-Auth-Token

    Yes

    String

    Valid token (the token of a user with the op_auth permission or the token of a user with the secu_admin permission under the current domain)

  • Sample request
    curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X DELETE https://10.22.44.158:31943/v3/domains/d54061ebcb5145dd814f8eb3fe9b7ac0/groups/47d79cabc2cf4c35b13493d919a5bb3d/roles/e62d9ba0d6a544cd878d9e8a4663f6e2

Response

  • Sample response (request successful)

    No response body.

  • Sample response (request failed)
{
    "error": {
        "message": "Could not find role: bc4d11be6e9f4ef8bfdd7689c40492c",
        "code": 404,
        "title": "Not Found"
    }
}

Status Codes

Status Code

Description

204

The request is successful.

400

The server failed to process the request.

401

You must enter a username and password to access the requested page.

403

You are forbidden to access the requested page.

404

The server could not find the requested page.