调用 DeleteDBEndpoint 接口删除目标 MongoDB 实例中指定的连接地址。
异步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | mongo-shard-011d2479**** | 实例 ID。 说明 您可以调用 DescribeDBInstances 接口查询目标地域下所有 MongoDB 实例的基本信息,包括实例 ID。 |
EndpointId | String | 是 | V0tAA0hFUENIV00SSg**** | 连接地址 ID。 说明
|
MongosNodeIds | String[] | 否 | ["mongo-shard-9a554522****-0","mongo-shard-9a554522****-1"] | 需要释放公网连接地址的 Mongos 节点 ID。 说明
|
无。
释放副本集实例的公网地址。
POST https://mongodb.volcengineapi.com/?Action=DeleteDBEndpoint&Version=2022-01-01 HTTP/1.1 Host: mongodb.volcengineapi.com Content-Type: application/json; charset=utf-8 X-Date: 20201103T104027Z Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/mongodb/request,SignedHeaders=content-type;host;x-date,Signature=**** { "InstanceId":"mongo-replica-617a883d****", "EndpointId":"UUtGBkJJVB5EBE****" }
{ "ResponseMetadata": { "RequestId": "202203141832270102120352320B0D****", "Action": "DeleteDBEndpoint", "Version": "2022-01-01", "Service": "mongodb", "Region": "cn-beijing" }, "Result": null }
释放分片集群实例中 Configserver 节点或 Shard 分片的私网地址。
说明
释放私网地址前需先释放对应节点的公网地址。
POST https://mongodb.volcengineapi.com/?Action=DeleteDBEndpoint&Version=2022-01-01 HTTP/1.1 Host: mongodb.volcengineapi.com Content-Type: application/json; charset=utf-8 X-Date: 20201103T104027Z Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/mongodb/request,SignedHeaders=content-type;host;x-date,Signature=**** { "InstanceId":"mongo-shard-9a554522****", "EndpointId":"XhtEUk5EVUhEVkNCSg****" }
{ "ResponseMetadata": { "RequestId": "202203141832270102120352320B0D****", "Action": "DeleteDBEndpoint", "Version": "2022-01-01", "Service": "mongodb", "Region": "cn-beijing" }, "Result": null }
释放分片集群实例中两个 Mongos 节点的公网地址。
POST https://mongodb.volcengineapi.com/?Action=DeleteDBEndpoint&Version=2022-01-01 HTTP/1.1 Host: mongodb.volcengineapi.com Content-Type: application/json; charset=utf-8 X-Date: 20201103T104027Z Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/mongodb/request,SignedHeaders=content-type;host;x-date,Signature=**** { "InstanceId": "mongo-shard-9a554522****", "EndpointId": "XhtEUk5EVUhEVk****", "MongosNodeIds": [ "mongo-shard-9a554522****-0", "mongo-shard-9a554522****-1" ] }
{ "ResponseMetadata": { "RequestId": "202203141832270102120352320B0D****", "Action": "DeleteDBEndpoint", "Version": "2022-01-01", "Service": "mongodb", "Region": "cn-beijing" }, "Result": null }
更多详情,请参见错误码。