Help Center/ Identity and Access Management/ API Reference/ Out-of-Date APIs/ Removing the Permissions of a User Group Associated with an Enterprise Project
Updated on 2022-12-08 GMT+08:00

Removing the Permissions of a User Group Associated with an Enterprise Project

Function Description

This API is used to remove the permissions of a user group associated with an enterprise project.

This API can be invoked using the global domain name iam.myhuaweicloud.com.

This API will be deprecated soon. Please use the API described in Removing Permissions of a User Group Associated with an Enterprise Project instead.

URI

  • URI format

    DELETE /v3.0/OS-PAP/enterprise-projects/{enterprise_project_id}/groups/{group_id}/roles/{role_id}

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    enterprise_project_id

    Yes

    String

    ID of an enterprise project.

    group_id

    Yes

    String

    ID of a user group.

    role_id

    Yes

    String

    ID of a role (policy) associated with the user group.

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Authenticated token with Security Administrator permissions.

    Content-Type

    Yes

    String

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

  • Sample request
    curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X DELETE https://iam.myhuaweicloud.com/v3.0/OS-PAP/enterprise-projects/535fb147-6148-4c71-a679-b79a2cb0e.../groups/10d8104f395d43468094753f28692.../roles/013ad036ee4c4d108327f02cbb479...

Response

No response body.

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

Access denied.

404

The server could not find the requested page.

500

Internal server error.