CreateDBEndpointAddress_云数据库 PolarDB_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

说明 支持为 PolarDB 集群的主地址、默认集群地址和自定义集群地址创建公网连接地址。

流控信息

请求速率为200/60(s)。更多流控信息,请前往配额中心查看

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
polardb:CreateDBEndpointAddress
Create
dbcluster
acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

请求参数

字段名称字段详情
DBClusterIdstring

集群 ID。

示例值:pc-**************参考取值来源:
    ModifyDBCluster
    CreateDBCluster
    DescribeDBClusters
    TransformDBClusterPayType
    RestartDBLink
    EnableDBClusterServerless
    DisableDBClusterServerless
DBEndpointIdstring

连接地址 ID。展开详情

示例值:pe-**************参考取值来源:
    DescribeDBClusterEndpoints
ConnectionStringPrefixstring

新的连接地址前缀。连接地址前缀需满足如下条件: 展开详情

示例值:test-1
NetTypestring

新增连接地址的网络类型,固定为 Public(公网)。

示例值:Public
VPCIdstring

专有网络 ID

示例值:vpc-**********
SecurityGroupIdstring

ECS 安全组 ID

示例值:sg-bp**************参考取值来源:
    ModifyGlobalSecurityIPGroup
    CreateGlobalSecurityIPGroup
    DescribeGlobalSecurityIPGroup
ZoneInfoarray<object>

可用区信息。

子级条数 <= 10

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:6BD9CDE4-5E7B-4BF3-9BB8-83C73E******

返回示例

错误返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
EndpointStatus.NotSupport
Current endpoint status does not support this operation.诊断
400
NetTypeExists
Specified net type already existed.诊断
400
MissParameter.NetType
When NetType is set to NlbVpc, the VPCId, SecurityGroupId and ZoneInfo is needed.诊断
400
InvalidDBEndpointId.Malformed
The specified parameter DBEndpointId is not valid.诊断
400
InvalidNetType.Malformed
The specified parameter NetType is not valid.诊断
400
InvalidConnectionStringPrefix.Malformed
The specified parameter ConnectionStringPrefix is not valid.诊断
404
InvalidDBClusterId.NotFound
The DBClusterId provided does not exist in our records.诊断
404
InvalidDBClusterId.Malformed
The specified parameter DBClusterId is not valid.诊断

变更历史

变更时间变更内容概要操作
2023-09-12
变更错误码400
变更错误码404
2023-06-12
变更错误码404
2023-05-11
变更错误码400
新增请求参数VPCId
新增请求参数SecurityGroupId
新增请求参数ZoneInfo
新增返回参数
2022-07-25
新增错误码400
变更错误码404