Updated on 2024-05-21 GMT+08:00

Replicating a Parameter Template

Function

This API is used to replicate a parameter template. Before calling this API:

URI

POST https://{Endpoint}/v3/{project_id}/configurations/{config_id}/copy

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

config_id

Yes

String

ID of the parameter template to be replicated.

Request Parameters

Table 2 Parameter description

Name

Mandatory

Type

Description

name

Yes

String

Name of the replicated 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

Table 3 Parameter description

Parameter

Type

Description

config_id

String

ID of the replicated parameter template.

Example Request

Replicating a parameter template
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

Error Code

For details, see Error Codes.