修改 VPC 私有端点

PUT /groups/{groupId}/apps/{appId}/security/private_endpoints/{privateEndpointId}

更新私有端点的配置。

路径参数

application/json

body 必需

  • cloud_provider_region 字符串 必需

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

  • cloud_provider_endpoint_id 字符串 必需

    云提供商的私有端点 ID。

  • comment 字符串

    描述端点的可选注释。

  • endpoint_type 字符串 必需

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

    值为 syncgeneral

响应

  • 200 application/json

    Updated

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

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

    • cloud_provider_endpoint_id 字符串

      云提供商的私有端点 ID。

    • comment 字符串

      描述端点的可选注释。

    • endpoint_type 字符串

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

      值为 syncgenerallegacy

  • 400
    • VPC 端点 ID(cloud_provider_endpoint_id)无效
    • 试图更改端点类型
  • 404

    未找到

PUT /groups/{groupId}/apps/{appId}/security/private_endpoints/{privateEndpointId}
curl \
 --request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/private_endpoints/{privateEndpointId}' \
 --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"
}
响应示例 (200)
{
  "_id": "string",
  "cloud_provider_region": "aws-us-east-1",
  "cloud_provider_endpoint_id": "vpce-12345678",
  "comment": "string",
  "endpoint_type": "sync"
}