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

CreateDBEndpointPublicAddress

最近更新时间2023.11.27 16:26:50

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

调用 CreateDBEndpointPublicAddress 接口为实例开启公网访问。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdStringpostgres-ca7b7019****实例 ID。
EndpointIdStringpostgres-ca7b7019****-custom-f07b实例连接终端 ID。如不设定,默认选择默认终端。
EipIdStringeip-3jhjud2zgy1og3pncmeh7****EIP 的 ID。可使用 DescribeEipAddressAttributes 接口查询 EIP 的基本信息。

返回参数

null

请求示例

POST /?Action=CreateDBEndpointPublicAddress&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",
        "EipId": "eip-3jhjud2zgy1og3pncmeh7****"
}

返回示例

null

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "202308021632037746FBCF122026EECAB5",
        "Action": "CreateDBEndpointPublicAddress",
        "Version": "2022-01-01",
        "Service": "rds_postgresql",
        "Region": "cn-beijing"
    },
    "Result": null
}