Retrieves the specified inline policy document of the specified IAM Group.
GroupName | Name of the group to retrieve the inline policy. |
PolicyName | Name of the policy whose Policy Document needs to be retrieved. |
This call has no restrictions.
No Request Payload
Field | Description | Type | Notes |
GetGroupPolicyResponse | |||
GetGroupPolicyResult | |||
GroupName | Friendly name of the group. | String | |
PolicyName | Simple name identifying the policy. | String | |
PolicyDocument | The policy Document. | String | |
ResponseMetadata | |||
RequestId | String |
POST https://192.168.0.0:4443/iam?GroupName=TestGroup&PolicyName=InlinePolicy&Action=GetGroupPolicy Accept: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> x-emc-namespace: <namespace>
HTTP/1.1 200 OK <ns2:GetGroupPolicyResponse xmlns:ns2="none"> <ResponseMetadata> <RequestId>0af9f5b8:17178fe9282:1f40d:b</RequestId> </ResponseMetadata> <GetGroupPolicyResult> <PolicyDocument>{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "iam:ListAttachedGroupPolicies", "iam:ListUsers", "iam:ListPolicies", "iam:ListUserPolicies" ], "Resource": "*" } ] }</PolicyDocument> <PolicyName>InlinePolicy</PolicyName> <GroupName>TestGroup</GroupName> </GetGroupPolicyResult> </ns2:GetGroupPolicyResponse>