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.
RoleName | Simple name identifying the role. |
PolicyName | Simple name identifying the policy. |
This call has no restrictions.
No Request Payload
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 |
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>
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>