Deletes a version of a specified policy.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeletePolicyVersion

The name of this action.

Value: DeletePolicyVersion

PolicyName String Yes OSS-Administrator The policy name.
VersionId String Yes v3 The ID of the target policy version.

Response parameters

Parameter Type Example value Description
RequestId String 9B34724D-54B0-4A51-B34D-4512372FE1BE The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=DeletePolicyVersion
&PolicyName=OSS-Administrator
&VersionId=v3
&<Common parameters>

Response example

XML format

<DeletePolicyVersionResponse>
  <RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
</DeletePolicyVersionResponse>

JSON format

{
    "RequestId":"9B34724D-54B0-4A51-B34D-4512372FE1BE"
}

Errors

For a list of error codes, visit the API Error Center.