This API is used to change a DB instance name.
PUT https://{Endpoint}/opengauss/v3/{project_id}/instances/{instance_id}/name
https://gaussdb.eu-de.otc.t-systems.com/opengauss/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/name
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. |
instance_id |
Yes |
Specifies the DB instance ID, which is compliant with the UUID format. |
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 (_). |
{ "name": "instance-name" }
Name |
Type |
Description |
---|---|---|
job_id |
String |
Indicates the ID of the task for changing a DB instance name. |
{ "job_id": "2b414788a6004883a02390e2eb0ea227" }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.