路径参数
-
Atlas 项目/组 ID。
-
您的应用程序的 ObjectID。App Services API 项目和应用程序 ID 部分演示了如何查找此值。
body
必需
-
托管私有端点的云提供商区域。
-
云提供商的私有端点 ID。
-
描述端点的可选注释。
-
终结点类型。有关终结点类型以及将废弃终结点迁移到
"general"
或"sync"
的更多信息,请参阅使用 VPC 私有终结点。值为
sync
或general
。
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"
}