Applying a Parameter Template
Function
This API is used to apply a parameter template. Before calling this API:
- Learn how to authenticate this API.
URI
PUT https://{Endpoint}/v3/{project_id}/configurations/{config_id}/apply
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Explanation: Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Restrictions: None Value range: The value can contain 32 characters. Only letters and digits are allowed. Default value: None |
| config_id | Yes | String | Parameter template ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| instance_ids | Yes | Array of strings | Instance IDs. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| job_id | String | Asynchronous task ID for applying a parameter template. |
Example Request
Applying a parameter template
PUT https://gaussdb-opengauss.eu-west-101.myhuaweicloud.eu/v3/054b61972980d4552f0bc00ac8d3f5cd/configurations/3ca44134a16d4bbab8eb701e025b19f7pr14/apply
{
"instance_ids" : [ "5362449138da4e408dbae5152ca26640in14", "ea926816f0154066830d12ebebc8562din14" ]
} Example Response
Parameter template applied.
{
"job_id" : "bf26cf3c-d046-4080-bb45-f114be7afa5f"
} Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.