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

ModifyDBEndpointDNS

最近更新时间2023.12.04 15:06:14

首次发布时间2023.02.02 17:41:22

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

请求类型

异步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdStringmysql-e26822cf****实例 ID。
EndpointIdStringmysql-e26822cf****-cluster实例连接终端 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: 20211202T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645a****

{
    "InstanceId": "mysql-62e07c2c****",
    "EndpointId": "mysql-62e07c2c****-cluster",
    "NetworkType": "Private",
    "DNSVisibility": true
}

返回示例

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230118155840AB43F2987AF578AE6958",
        "Action": "ModifyDBEndpointDNS",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-beijing"
    },
    "Result": null
}

错误码

更多详情,请参见错误码