Attach Group Policy
POST /iam?Action=AttachGroupPolicy
Attaches the specified managed policy to the specified group.
Query Parameters
PolicyArn | Arn of the policy to attach. |
GroupName | Name of the group to attach the policy. |
Required Roles
This call has no restrictions.
Request Payload
No Request Payload
Response Body
Field |
Description |
Type |
Notes |
AttachGroupPolicyResponse |
|
|
|
ResponseMetadata |
|
|
|
RequestId |
|
String |
|
Examples
Request
POST https://192.168.0.0:4443/iam?GroupName=TestGroup&PolicyArn=urn:ecs:iam:::policy/ECSS3FullAccess&Action=AttachGroupPolicy
Accept: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
x-emc-namespace: <namespace>
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:AttachGroupPolicyResponse xmlns:ns2="none">
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:1e8a8:3b</RequestId>
</ResponseMetadata>
</ns2:AttachGroupPolicyResponse>
Request
POST https://192.168.0.0:4443/iam?GroupName=TestGroup&PolicyArn=urn:ecs:iam:::policy/ECSS3FullAccess&Action=AttachGroupPolicy
Accept: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
x-emc-namespace: <namespace>
Response
HTTP/1.1 200 OK
{
"ResponseMetadata": {
"RequestId": "0af9f5b8:17178fe9282:97f4:ce"
}
}
Request
curl -H $token -H "Content-Type: application/xml" -H "x-emc-namespace: <namespace>" -X POST https://$nodeIp:4443/iam?GroupName=TestGroup&PolicyArn=urn
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:AttachGroupPolicyResponse xmlns:ns2="none">
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:1e8a8:3b</RequestId>
</ResponseMetadata>
</ns2:AttachGroupPolicyResponse>