创建 VPC 私有端点

发布 /groups/{groupId}/apps/{appId}/security/private_endpoints

为应用配置新的私有端点。

路径参数

application/json

body 必需

  • cloud_provider_region 字符串 必需

    托管私有端点的云提供商区域。

  • cloud_provider_endpoint_id 字符串 必需

    云提供商的私有端点 ID。

  • comment 字符串

    描述端点的可选注释。

  • endpoint_type 字符串 必需

    终结点类型。有关终结点类型以及将废弃终结点迁移到 "general""sync" 的更多信息,请参阅使用 VPC 私有终结点

    值为 syncgeneral

响应

  • 201 application/json

    已创建

    隐藏响应属性 显示响应属性 对象
    • _id 字符串
    • cloud_provider_region 字符串

      托管私有端点的云提供商区域。

    • cloud_provider_endpoint_id 字符串

      云提供商的私有端点 ID。

    • comment 字符串

      描述端点的可选注释。

    • endpoint_type 字符串

      端点的类型。有关迁移已弃用的 "legacy" 端点的更多信息,请参阅迁移传统端点

      值为 syncgenerallegacy

  • 400
    • Bad Request
    • VPC 端点 ID(cloud_provider_endpoint_id)无效
    • 端点类型为“旧版”
POST /groups/{groupId}/apps/{appId}/security/private_endpoints
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/private_endpoints' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"cloud_provider_region":"aws-us-east-1","cloud_provider_endpoint_id":"vpce-12345678","comment":"string","endpoint_type":"sync"}'
请求示例
{
  "cloud_provider_region": "aws-us-east-1",
  "cloud_provider_endpoint_id": "vpce-12345678",
  "comment": "string",
  "endpoint_type": "sync"
}
响应示例 (201)
{
  "_id": "string",
  "cloud_provider_region": "aws-us-east-1",
  "cloud_provider_endpoint_id": "vpce-12345678",
  "comment": "string",
  "endpoint_type": "sync"
}