Files
doc-exports/docs/rds/api-ref/rds_09_0309.html
wangdengke2 1ddaec1a62 rds_api
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-01-29 11:28:26 +00:00

16 KiB

Replicating a Parameter Template

Function

This API is used to replicate a parameter template.

URI

  • URI format

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

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the 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

    Specifies the parameter template ID.

Request

  • Parameter description
    Table 2 Request header parameters

    Parameter

    Mandatory

    Type

    Description

    Content-Type

    Yes

    String

    The content type.

    The default value is application/json.

    X-Auth-Token

    Yes

    String

    Specifies the user token.

    The user token is a response to the API used to obtain a user token.

    Table 3 Parameter description

    Name

    Mandatory

    Type

    Description

    name

    Yes

    String

    Name of the new parameter template.

    The name can contain 1 to 64 characters. It is case-sensitive and can contain only letters, digits, periods (.), underscores (_), and hyphens (-).

    description

    No

    String

    Description of the new parameter template.

    The description can contain 0 to 256 characters and cannot contain the following characters: ! < > = & " '

Example Request

POST https://rds.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/configurations/66251c9024774eeb9edd8663a4cbb0a1pr04/copy

{
   "name" : "copy_by_v31",
   "description" : "copy"
 }

Response

  • Normal response
    Table 4 Parameter description

    Name

    Type

    Description

    id

    String

    Parameter template ID.

    name

    String

    Parameter template name.

    description

    String

    Parameter template description.

    datastore_version_name

    String

    Database version name.

    datastore_name

    String

    Database name.

    create_time

    String

    Creation time.

    The value is in the yyyy-MM-ddTHH:mm:ssZ format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.

    update_time

    String

    Update time.

    The value is in the yyyy-MM-ddTHH:mm:ssZ format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.

  • Example normal response
    {
      "id" : "a73a272e50ba427397e90992fbb96f3cpr04",
      "name" : "copy_by_v31",
      "description" : "copy",
      "datastore_version_name" : "mysql5.7",
      "datastore_name" : "mysql",
      "create_time" : "2022-10-31T08:24:06+0000",
      "update_time" : "2022-10-31T08:24:06+0000"
    }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.