Assign Policy

Assign Policy

Assigns policy to the given groups, and objects.

Request
URI
PUT
https://{api_host}/suite-api/api/policies/{id}/assign
COPY
Path Parameters
string
id
Required

id


Request Body

The Policy assignment object carrying ids of groups, ids and depths of resources

policy-assignment-param of type(s) application/json
Required
"{\n  \"groupIds\" : [ \"a580927d-8ac9-4a78-b6c6-8cc1d62d7e2e\", \"dc0afc11-f7f5-4175-8908-3570c9747b12\" ],\n  \"resourceAssignments\" : [ {\n    \"resourceId\" : \"b22353df-2fc8-4937-98b8-5011f8c8e5c4\",\n    \"depth\" : 0\n  }, {\n    \"resourceId\" : \"3b55bbcc-e8d0-416e-88da-cc2d191a1dcb\",\n    \"depth\" : 2\n  } ]\n}"
array of string
groupIds
Optional

Custom group ids, for policy assignment

array of object
resourceAssignments
Optional

Resource params for policy assignment

Authentication
This operation uses the following authentication methods.
Responses
200

The policy is assigned successfully

Returns policy-associations-update-result of type(s) application/json
"No Custom Example is Available"
array of string
assignedGroupIds
Optional

Custom group ids, of updated policy group associations

array of string
assignedResourceIds
Optional

Resource ids, of updated resource group associations

array of string
failedGroupIds
Optional

Invalid custom group ids

array of string
failedResourceIds
Optional

Invalid resource ids


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/suite-api/api/policies/{id}/assign