Updated on 2025-08-11 GMT+08:00

Replicating a Parameter Template

Function

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

URI

POST /v3/{project_id}/configurations/{config_id}/copy

Table 1 Parameter description

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

Table 2 Parameter description

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

Table 3 Parameter description

Parameter

Type

Description

config_id

String

Definition

ID of the replicated parameter template.

Range

N/A

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 Codes

Error Codes

For details, see Error Codes.