Sets the default version of a policy.


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

Request parameters

Parameter Type Required? Example value Description
Action String Yes SetDefaultPolicyVersion

The name of this action.

Value: SetDefaultPolicyVersion

PolicyName String Yes OSS-Administrator The policy name.
VersionId String Yes v2 The ID of the default policy version.

Response parameters

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


Request example
&<Common parameters>

Response example

XML format


JSON format



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