forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
6.5 KiB
6.5 KiB
Modifying a DB Instance Name
Function
This API is used to modify a DB instance name.
Constraints
The name of the DB instance that is being created or fails to be created cannot be modified.
URI
- URI format
PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/modify-name
- Parameter description
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Specifies the project ID of a tenant in a region.
instance_id
Yes
Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance.
Requests
- Parameter description
Table 2 Parameter description Name
Mandatory
Type
Description
new_instance_name
Yes
String
Specifies the DB instance name. The instance name can be the same as an existing instance name.
- The instance name must contain 4 to 64 characters and must start with a letter. It is case sensitive and can contain letters, digits, hyphens (-), and underscores (_). It cannot contain other special characters.
- Example requestPUT https://dds.eu-de.otc.t-systems.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/modify-name
{ "new_instance_name": "myNewName" }
Responses
- Response example
{}
Error Code
For more information, see Error Code.
Parent topic: DB Instance Management