Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




Get Group Policy

POST GetGroupPolicy

Retrieves the specified inline policy document of the specified IAM Group.


Query Parameters

GroupNameName of the group to retrieve the inline policy.
PolicyNameName of the policy whose Policy Document needs to be retrieved.

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

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

Examples

Request
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>
Response
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>