Querying Parameters of a Specified DDM Instance
Function
This API is used to query parameters of a specified DDM instance.
Constraints
None
URI
GET /v3/{project_id}/instances/{instance_id}/configurations?offset={offset}&limit={limit}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID of a tenant in a region To obtain this value, see Obtaining a Project ID. |
| instance_id | Yes | String | DDM instance ID |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| offset | No | Integer | Index offset. The query starts from the next piece of data indexed by this parameter. The value is 0 by default. The value must be a non-negative number. |
| limit | No | Integer | Maximum records to be queried. Value range: 1 to 128. If the parameter value is not specified, 128 nodes are queried by default. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Language | No | String | Language. The value can be zh-cn or en-us. The default value is zh-cn. |
| X-Auth-Token | Yes | String | User token You can obtain the token by calling the IAM API used to obtain a user token. |
Example Request
Querying parameters of a specified DDM instance
GET https://{endpoint}/v3/{project_id}/instances/{instance_id}/configurations?offset={offset}&limit={limit} Response Parameters
- Normal response
| Parameter | Type | Description |
|---|---|---|
| updated | String | Time when DDM instance parameters are last updated |
| configuration_parameter | Array of ConfigurationParameterList objects | Information about DDM instance parameters |
| offset | Integer | Which page the server starts returning items |
| limit | Integer | Number of records displayed on each page |
| total | Integer | Total collections |
| id | String | Parameter template ID |
| name | String | Parameter template name |
| description | String | Parameter template description |
| Parameter | Type | Description |
|---|---|---|
| name | String | Parameter name |
| value | String | Parameter value |
| need_restart | String | Whether the instance needs to be restarted |
| read_only | String | Whether the parameter is read-only |
| value_range | String | Parameter value range |
| data_type | String | Parameter type. |
| description | String | Parameter description |
Example Response
- Normal response example
{ "id": "08142a7de30d40549f04fe4757c6660cpr09", "name": "ddm_69873de2-072", "description": "ParamGroup for instance", "updated" : "2021-11-09 03:26:52", "configuration_parameter" : [ { "name" : "temp_table_size_limit", "value" : "1000000", "need_restart" : "0", "read_only" : "0", "value_range" : "500000-2000000000", "data_type" : "integer", "description" : "Maximum size of the temporary table." } ], "offset" : 0, "limit" : 128, "total" : 22 }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.