Replicating a Parameter Template
Function
This API is used to replicate a parameter template. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
URI
POST https://{Endpoint}/v3/{project_id}/configurations/{config_id}/copy
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 |
ID of the parameter template to be replicated. |
Request Parameters
Name |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Name of the replicated parameter template, which cannot be the same as that of an existing parameter template. The value can contain 1 to 64 characters. It can contain only letters (case-sensitive), digits, hyphens (-), underscores (_), and periods (.). |
description |
No |
String |
Parameter template description. This parameter is left blank by default. The description must consist of up to 256 characters. Carriage return characters or special characters (>!<"&'=) are not allowed. |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
config_id |
String |
ID of the replicated parameter template. |
Example Request
POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/configurations/3ca44134a16d4bbab8eb701e025b19f7pr14/copy { "name" : "paramTemplate-1233", "description": "Description" }
Example Response
Parameter template replicated.
{ "config_id" : "3ca44134a16d4bbab8eb701e025b19f7pr14" }
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot