Queries versions of an encryption parameter.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListSecretParameterVersions

The operation that you want to perform. Set the value to ListSecretParameterVersions.

Name String Yes MySecretParameter

The name of the encryption parameter.

RegionId String No cn-hangzhou

The ID of the region.

MaxResults Integer No 10

The number of entries to return on each page. Valid values: 10 to 100. Default value: 50.

NextToken String No MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB

The pagination token.

ShareType String No Private

The share type of the encryption parameter.

WithDecryption Boolean No false

Specifies whether to decrypt the parameter value. The decrypted parameter value is returned only when this parameter is set to true. Otherwise, null is returned.

Response parameters

Parameter Type Example Description
CreatedBy String root(130900000)

The user who created the encryption parameter.

CreatedDate String 2020-09-01T08:01:43Z

The time when the encryption parameter was created.

Description String SecretParameter

The description of the encryption parameter.

Id String p-4c4b401cab6747xxxxxx

The ID of the encryption parameter.

MaxResults Integer 50

The number of entries returned per page.

Name String MySecretParameter

The name of the encryption parameter.

NextToken String MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB

The pagination token.

ParameterVersions Array of ParameterVersion

The version information of the encryption parameter.

ParameterVersion Integer 1
UpdatedBy String root(130900000)
UpdatedDate String 2020-09-01T08:01:43Z
Value String SecretParameter
RequestId String DBA6E6C8-F75D-41DE-AFF5-1FA03F551CA3

The ID of the request.

TotalCount Integer 1

The total number of entries returned.

Type String Secret

The data type of the encryption parameter.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListSecretParameterVersions
&Name=MySecretParameter
&<Common request parameters>

Sample success responses

XML format

<Parameters>
    <UpdatedBy>root(130900000)</UpdatedBy>
    <Type>Secret</Type>
    <CreatedBy>root(130900000)</CreatedBy>
    <Description>secret-test</Description>
    <UpdatedDate>2020-09-02T11:44:11Z</UpdatedDate>
    <ParameterVersion>3</ParameterVersion>
    <CreatedDate>2020-09-02T11:44:01Z</CreatedDate>
    <Id>p-e4e117b5c6c941xxxxxx</Id>
    <Name>secret-test1</Name>
    <ShareType>Private</ShareType>
</Parameters>
<RequestId>DBA6E6C8-F75D-41DE-AFF5-1FA03F551CA3</RequestId>
<MaxResults>50</MaxResults>

JSON format

{
	"Parameters": [
		{
			"UpdatedBy": "root(130900000)",
			"Type": "Secret",
			"CreatedBy": "root(130900000)",
			"Description": "secret-test",
			"UpdatedDate": "2020-09-02T11:44:11Z",
			"ParameterVersion": 3,
			"CreatedDate": "2020-09-02T11:44:01Z",
			"Id": "p-e4e117b5c6c941xxxxxx",
			"Name": "secret-test1",
			"ShareType": "Private"
		}
	],
	"RequestId": "DBA6E6C8-F75D-41DE-AFF5-1FA03F551CA3",
	"MaxResults": 50
}

Error codes

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