Updated on 2023-11-24 GMT+08:00

Viewing Application Records of a Parameter Template

API Description

This API is used to view application records of a parameter template.

Restrictions

After an instance is deleted, application records of the parameter template that the instance uses are also deleted.

URI

  • URI format

    GET https://{Endpoint}/v3/{project_id}/configurations/{config_id}/applied-histories

  • URI example

    https://dds.ap-southeast-1.myhuaweicloud.com/v3/056538411200d4cd2f79c003c7606412/configurations/7a8d539ba30f43adaf1b16d08b1df4bdpr02/applied-histories?offset=0&limit=10

Table 1 Request parameters

Name

Type

IN

Mandatory

Description

X-Auth-Token

string

header

Yes

User token obtained from IAM. For details, see Authentication.

project_id

string

path

Yes

Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.

Table 2 Path parameters

Name

Mandatory

Type

Description

config_id

Yes

String

Parameter template ID.

Table 3 Query parameters

Name

Mandatory

Type

Description

offset

No

Integer

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

Number of records to be queried. The default value is 100. The value must be a positive integer. The minimum value is 1 and the maximum value is 100.

Requests

None

Responses

  • Parameter description
    Table 4 Response body parameters

    Name

    Type

    Description

    histories

    Array of Table 5-5 objects

    Application records of a parameter template.

    Table 5 ApplicableInstancesInfo

    Name

    Type

    Description

    instance_id

    String

    DB instance ID.

    instance_name

    String

    DB instance name.

    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.

    apply_result

    String

    Application result. SUCCESS indicates that the application of the parameter template is successful. FAILED indicates that the application fails. APPLYING indicates that the application is in progress.

    failure_reason

    String

    Failure cause.

  • Example response
{ 
  "histories" : [ { 
    "instance_id" : "1967d9d9d6ef4c5ea38bd5a754f5737ein02", 
    "instance_name" : "dds-4525",
    "applied_at" : "2022-06-07T09:25:45+0000", 
    "apply_result" : "SUCCESS" 
  } ] 
}

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.