Dell Technologies ECS REST API

Search (SHIFT+S)




Get Policy Version

POST /iam?Action=GetPolicyVersion

Retrieves information about the specified version of the specified Managed Policy.


Query Parameters

PolicyArnARN of the IAM Managed policy to retrieve.
VersionIdPolicy Version to retrieve.

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

Field Description Type Notes
GetPolicyVersionResponse
GetPolicyVersionResult    
PolicyVersioin    
CreateDate The date and time, in ISO 8601 date-time format, when the policy was created. String
Document The policy document, URL-encoded compliant with RFC 3986. String
IsDefaultVersion Specifies whether the policy version is set as the policy's default version. Boolean
VersionId The identifier for the policy version. String
ResponseMetadata    
RequestId String

Examples

Request
POST https://192.168.0.0:4443/iam?PolicyArn=urn:ecs:iam::ns:policy/FinanceTeamPolicy&Action=GetPolicyVersion&VersionId=v2

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:GetPolicyVersionResponse xmlns:ns2="none">
    <ResponseMetadata>
        <RequestId>0af9f5b8:17178fe9282:fe25:1a</RequestId>
    </ResponseMetadata>
    <GetPolicyVersionResult>
        <PolicyVersion>
            <CreateDate>2020-04-15T21:57:14Z</CreateDate>
            <Document>%7B%22Version%22%3A%222012-10-17%22%2C%22Statement%22%3A%5B%7B%22Action%22%3A%5B%22iam%3AGetPolicyVersion%22%2C%22iam%3AGetUser%22%2C%22iam%3AGetPolicy%22%2C%22iam%3AGetGroupPolicy%22%2C%22iam%3AGetRole%22%2C%22iam%3AGetAccessKeyLastUsed%22%2C%22iam%3AGetGroup%22%2C%22iam%3AGetUserPolicy%22%5D%2C%22Resource%22%3A%22*%22%2C%22Effect%22%3A%22Allow%22%2C%22Sid%22%3A%22VisualEditor0%22%7D%5D%7D</Document>
            <IsDefaultVersion>false</IsDefaultVersion>
            <VersionId>v2</VersionId>
        </PolicyVersion>
    </GetPolicyVersionResult>
</ns2:GetPolicyVersionResponse>