Applying a Parameter Template

Function

This API is used to apply a parameter template to one or more DB instances.

Constraints

  • This API supports the following DB instances:
    • GaussDB(for Cassandra)
    • GaussDB(for Mongo) cluster 3.4 and replica set 4.0
    • GaussDB(for Influx)
  • This API is an asynchronous API. A successful response does not indicate that the parameter template is successfully applied.

URI

  • URI format

    PUT /v3/{project_id}/configurations/{config_id}/apply

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

    config_id

    Yes

    Specifies the parameter template ID.

Requests

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    instance_ids

    Yes

    Array of strings

    Specifies the instance IDs.

  • Request header
    PUT https://GaussDB NoSQL_Endpoint/v3/{project_id}/configurations/{config_id}/apply
  • Example request
    { 
        "instance_ids": ["73ea2bf70c73497f89ee0ad4ee008aa2in06"] 
    }

Responses

  • Parameter description
    Table 3 Parameter description

    Name

    Type

    Description

    job_id

    String

    Indicates the asynchronous task ID of the application parameter template.

    success

    Boolean

    Indicates whether the parameter template application task is successfully submitted.

    • If the value is true, the task is successfully submitted.
    • If the value is false, the task fails to be submitted.
  • Response example
    { 
        "job_id": "69cb9fc2-441d-40b0-8b03-388e711b0f17", 
        "success": false 
    }

Status Code

For more information, see Status Code.

Error Code

For more information, see Error Code.