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 /v3/{project_id}/configurations/{config_id}/copy
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain the value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are allowed. Default Value N/A |
config_id |
Yes |
String |
Definition Parameter template ID. Constraints N/A Range The value can contain 36 characters. Only letters and digits are allowed. Default Value N/A |
Request Parameters
Name |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Definition Name of a parameter template generated after replication. Constraints The name must be unique. Range The template name can contain 1 to 64 characters. Only letters (case-sensitive), digits, hyphens (-), underscores (_), and periods (.) are allowed. Default Value N/A |
description |
No |
String |
Definition Parameter template description. Constraints N/A Range The description can contain a maximum of 256 characters. Carriage return characters and the following special characters are not allowed: >!<"&'= Default Value It is left blank by default. |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
config_id |
String |
Definition ID of the replicated parameter template. Range N/A |
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 Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
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