Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




Get Role Policy

POST GetRolePolicy

Gets the specified inline policy document that is embedded with the specified IAM Role in the caller's namespace or x-emc-namespace header if provided.


Query Parameters

RoleNameSimple name identifying the role.
PolicyNameSimple name identifying the policy.

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

Field Description Type Notes
GetRolePolicyResponse
GetRolePolicyResult    
RoleName Simple name identifying the role. 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?RoleName=FinanceRole&PolicyName=InlineRolePolicy&Action=GetRolePolicy

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:GetRolePolicyResponse xmlns:ns2="none">
    <ResponseMetadata>
        <RequestId>0af9f5b8:17178fe9282:dd62:0</RequestId>
    </ResponseMetadata>
    <GetRolePolicyResult>
        <PolicyDocument>{"Version":"2012-10-17","Statement":[{"Action":["iam:TagUser","iam:TagRole","iam:UntagUser","iam:UntagRole"],"Resource":"*","Effect":"Allow","Sid":"VisualEditor0"}]}</PolicyDocument>
        <PolicyName>InlineRolePolicy</PolicyName>
        <RoleName>FinanceRole</RoleName>
    </GetRolePolicyResult>
</ns2:GetRolePolicyResponse>