You need to enable JavaScript to run this app.
导航

ModifyDBEndpointName

最近更新时间2023.11.15 22:39:52

首次发布时间2023.11.15 22:39:52

调用 ModifyDBEndpointName 接口修改连接终端名称。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdStringpostgres-0af11cd4****实例 ID。
EndpointIdStringpostgres-0af11cd4****-cluster实例连接终端 ID。

EndpointName

String

终端名称

实例连接终端名称。连接终端的命名规则如下:

  • 不能以数字、中划线(-)开头。
  • 只能包含中文、字母、数字、下划线(_)和中划线(-)。
  • 长度为 1~64 个字符。

返回参数

null

请求示例

POST /?Action=ModifyDBEndpointName&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20231002T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****
{
    "InstanceId": "postgres-0af11cd4****",
    "EndpointId": "postgres-0af11cd4****-cluster",
    "EndpointName":"NewEndpointName"
}

返回示例

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "20231011173017D04C48FD0CF4D00D0FE9",
        "Action": "ModifyDBEndpointName",
        "Version": "2022-01-01",
        "Service": "rds_postgresql",
        "Region": "cn-beijing"
    },
    "Result": null
}