Viewing Parameter Change History of an Instance
Function
This API is used to view change history of parameters of an instance.
URI
GET /v3/{project_id}/instances/{instance_id}/configuration-histories
Name |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. |
instance_id |
Yes |
String |
DB instance ID. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
The index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The default value is 0, indicating that the query starts from the first piece of data. The value must be a positive number. |
limit |
No |
Integer |
Maximum records to be queried.
|
Request Parameters
Name |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. For details, see Authentication. |
Response Parameters
Status code: 200
Name |
Type |
Description |
---|---|---|
histories |
Array of objects |
Change history of parameters of an instance. For details, see Table 5. |
Name |
Type |
Description |
---|---|---|
parameter_name |
String |
The parameter name. |
old_value |
String |
Value before modification. |
new_value |
String |
New value. |
update_result |
String |
Update result. |
applied |
Boolean |
Whether the new value has been applied to the instance.
|
updated_at |
String |
Modification time. The format is "yyyy-MM-ddTHH:mm:ssZ". T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Beijing time zone, the time zone offset is shown as +0800. |
applied_at |
String |
Application time. The format is "yyyy-MM-ddTHH:mm:ssZ". T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Beijing time zone, the time zone offset is shown as +0800. |
Status code: 400
Name |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 500
Name |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: default
Name |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Request
GET https://{Endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/c4e095105bc64797bc3be633ae7201eein12/configuration-histories?offset=0&limit=10
Example Response
{ "histories" : [ { "parameter_name" : "rateLimit.mbps", "old_value" : "500", "new_value" : "350", "update_result" : "SUCCESS", "applied" : true, "updated_at" : "2022-06-07T09:25:45+0000", "applied_at" : "2022-06-07T09:25:45+0000" } ] }
SDK
Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot