ListParameterVersions
Queries the list of parameter versions.
Operation description
You must purchase DataWorks Professional Edition or higher to use this feature.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the parameter whose version records you want to query. You can obtain the ID from the |
12345 |
| SortBy |
string |
No |
The sort order by version number. Valid values:
|
Version Desc |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 20. |
20 |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| PagingInfo |
object |
The response data. |
|
| TotalCount |
integer |
The total number of versions for the parameter. |
10 |
| PageSize |
integer |
The number of entries returned per page. |
20 |
| PageNumber |
integer |
The page number. |
1 |
| ParameterVersion |
array<object> |
The list of parameter versions. Each item contains the parameter settings of the version. You can obtain the target version number required for a rollback from the |
|
|
array<object> |
The parameter version information. |
||
| Id |
integer |
The parameter ID. |
12345 |
| Name |
string |
The parameter name. |
workspace.para |
| Type |
string |
The parameter type. Valid values:
|
PlainConstant |
| Scope |
string |
The parameter scope. |
Project |
| ProjectId |
integer |
The workspace ID. |
1000 |
| Version |
integer |
The version number. |
1 |
| Description |
string |
The description. |
This is a test parameter |
| CreateTime |
integer |
The time when the parameter was created. The value is a UNIX timestamp in milliseconds. |
1640000000000 |
| ModifyTime |
integer |
The time when the parameter settings of this version were updated. The value is a UNIX timestamp in milliseconds. |
1640000000000 |
| Owner |
string |
The owner. |
123456789 |
| CreateUser |
string |
The user who created the parameter. |
123456789 |
| ModifyUser |
string |
The user who updated the parameter. |
123456789 |
| Properties |
array<object> |
The parameter value configurations. |
|
|
object |
The parameter value configuration item. |
||
| EnvType |
string |
The project environment. Valid values:
|
Prod |
| Value |
string |
The parameter value. |
value123 |
| RequestId |
string |
The request ID. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"PagingInfo": {
"TotalCount": 10,
"PageSize": 20,
"PageNumber": 1,
"ParameterVersion": [
{
"Id": 12345,
"Name": "workspace.para",
"Type": "PlainConstant",
"Scope": "Project",
"ProjectId": 1000,
"Version": 1,
"Description": "This is a test parameter",
"CreateTime": 1640000000000,
"ModifyTime": 1640000000000,
"Owner": "123456789",
"CreateUser": "123456789",
"ModifyUser": "123456789",
"Properties": [
{
"EnvType": "Prod",
"Value": "value123"
}
]
}
]
},
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.