Update Project RBAC Details
/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
-
id(required): string
Project identifier
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
- application/json
object
-
administrators: object
AclRoleRs
-
created-by: string
Created By
-
created-date: string
(date-time)
Created Date
-
editors: object
AclRoleRs
-
monitors: object
AclRoleRs
-
updated-by: string
Updated By
-
updated-date: string
(date-time)
Updated Date
-
viewers: object
AclRoleRs
object
-
allow-all(required): boolean
Allow All Flag
-
allowed(required): array
allowed
Allowed List
object
-
display-name(required): string
User/Group Display Name
-
id(required): string
User/Group Identifier
-
id-not-found: boolean
User/Group Id Not Found Flag
-
type(required): string
Type - User/Group
Response
204 Response
404 Response
500 Response
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": [
]
}
}