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

ModifyDBEndpointDNS

最近更新时间2023.12.06 16:52:17

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

调用 ModifyDBEndpointDNS 接口修改实例私网地址的解析方式。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdStringpostgres-21a3333b****实例 ID。
EndpointIdStringpostgres-ca7b7019****-custom-f07b实例连接终端 ID。如不设定,默认选择默认终端。
NetworkTypeStringPrivate网络类型,取值为 Private(私网地址)。

DNSVisibility

Boolean

false

是否开启公网解析。

  • false:默认值,火山引擎私网解析。
  • true:火山引擎私网以及公网解析。

返回参数

null

请求示例

POST /?Action=ModifyDBEndpointDNS&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-ca7b7019****",
        "EndpointId": "postgres-ca7b7019****-custom-f07b",
        "DNSVisibility": true,
        "NetworkType": "Private"
}

返回示例

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230802162934534215E5A7894CF84238",
        "Action": "ModifyDBEndpointDNS",
        "Version": "2022-01-01",
        "Service": "rds_postgresql",
        "Region": "cn-beijing"
    },
    "Result": null
}