ListParameters
Queries a list of parameters.
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 |
| ProjectId |
integer |
No |
The ID of the workspace to query. This parameter is required when Scope is set to Project. You can obtain the ID by calling the ListProjects operation. |
1000 |
| Scope |
string |
No |
The scope of the parameter. Default value: Project. Other types are not currently supported. Valid values:
|
Project |
| Type |
string |
No |
The type of the parameter. Valid values:
Valid values:
|
PlainConstant |
| Ids |
array |
No |
The list of parameter IDs. |
|
|
integer |
No |
The parameter ID. |
123 |
|
| Names |
array |
No |
The list of full parameter names to query. Exact match by name. |
|
|
string |
No |
The parameter name. |
workspace.para |
|
| Owner |
string |
No |
The account ID of the owner. |
123456789 |
| SortBy |
string |
No |
The list of fields by which to sort the results. Fields such as modification time and creation time are supported. The format is SortField+SortOrder(Desc/Asc), where Asc can be omitted. Valid values for the sort field:
|
ModifyTime 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 parameters that meet the query conditions. |
100 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| Parameters |
array<object> |
The parameter list. |
|
|
array<object> |
The parameter information. |
||
| Id |
integer |
The parameter ID. |
12345 |
| Name |
string |
The parameter name. |
workspace.para |
| Type |
string |
The type of the parameter. Valid values:
|
PlainConstant |
| Scope |
string |
The scope of the parameter. |
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 creation time of the parameter. The value is a UNIX timestamp in milliseconds. |
1640000000000 |
| ModifyTime |
integer |
The modification time of the parameter settings for this version. 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 last modified the parameter. |
123456789 |
| Properties |
array<object> |
The parameter value configuration. |
|
|
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": 100,
"PageSize": 10,
"PageNumber": 1,
"Parameters": [
{
"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.