Update Project RBAC Details

put

/ic/api/integration/v1/projects/{id}/acl

Updates Role-Based Access Control details of the project. The request body must contain:

  • administrators: specifies the owners of the project. For example:
    "administrators":{"allowAll":false,"allowed":[{"id":"123456abcdef","displayName":"test admin user","type":"user"},{"id":"654321abcdef","displayName":"ServiceAdministrator","type": "group"}]}
  • editors: specifies who can edit the project. For example:
    "editors":{"allowAll":false,"allowed":[{"id":"234561abcdef","displayName":"test developer user","type":"user"},{"id":"123456abcdef","displayName":"test admin user","type": "user"}]}
  • viewers: specifies who can view the project. If everyone can view the project allowAll can be set to true and allowed list can be empty. For example:
    "viewers":{"allowAll":true,"allowed":[]}
  • monitors: specifies who can monitor the project. For example:
    "monitors":{"allowAll":true,"allowed":[]}

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : AclRoleRs
Type: object
Show Source
Nested Schema : allowed
Type: array
Allowed List
Show Source
Nested Schema : AclRoleItem
Type: object
Show Source
Back to Top

Response

204 Response

Successful operation

404 Response

Project not found

500 Response

Server error
Back to Top

Examples

The following examples show how to update the RBAC details of a project by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Update RBAC details of the project TEST_PROJECT

curl -X PUT -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d
      @acl.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/acl?integrationInstance=service-instance

The following code sample shows the contents of the acl.json file listed in the cURL command.

Example: Request Body to update a user and a group as administrators, two users as editors, and everyone as viewer and monitor of the project

The id is the user/group id from IDCS.

{
  "administrators": {
    "allowAll": false,
    "allowed": [
      {
        "id": "123456abcdef",
        "displayName": "test admin user",
        "type": "user"
      },
      {
        "id": "654321abcdef",
        "displayName": "ServiceAdministrator",
        "type": "group"
      }
    ]
  },
  "editors": {
    "allowAll": false,
    "allowed": [
      {
        "id": "234561abcdef",
        "displayName": "test developer user",
        "type": "user"
      },
      {
        "id": "123456abcdef",
        "displayName": "test admin user",
        "type": "user"
      }
    ]
  },
  "viewers": {
    "allowAll": true,
    "allowed": [
    ]
  },
  "monitors": {
    "allowAll": true,
    "allowed": [
    ]
  }
}
Back to Top