Updated on 2022-12-12 GMT+08:00

Changing a DB Instance Name

Scenarios

This section is used to change an instance name by calling the API described in Modifying a DB Instance Name.

Procedure

Change an instance name.
  • API information
    • URI format

      PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/modify-name

      Obtain {endpoint} from Regions and Endpoints.

    • URI example

      https://dds.ap-southeast-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/modify-name

    For details, see Modifying a DB Instance Name.

  • Example request
    {
        "new_instance_name": "myNewName"
    }
  • Response example
    {}