doc-exports/docs/opengauss/api-ref/opengauss_api_0022.html
Wang , Deng Ke a96a12ecf1 openGauss API 20221109 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-14 16:40:26 +00:00

10 KiB

Modifying a DB Instance Name

Function

This API is used to change a DB instance name.

URI

Request

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    name

    Yes

    String

    Specifies the DB instance name. DB instances of the same type can have same names under the same tenant.

    The value consists of 4 to 64 characters and starts with a letter. It is case-sensitive and contains only letters, digits, hyphens (-), and underscores (_).

  • Example request
    {
      "name": "instance-name"
    }

Response

  • Normal responses
    Table 3 Parameter description

    Name

    Type

    Description

    job_id

    String

    Indicates the ID of the task for changing a DB instance name.

  • Example normal response
    {
    	"job_id": "2b414788a6004883a02390e2eb0ea227"
    }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.