从一个联合中删除一个组织配置
从指定联合中删除一个已连接的组织配置。要使用此资源,请求的服务帐户或 API 密钥必须具有“组织所有者”角色。注意:如果联合中仅存在一个已连接的组织,则此请求将失败。
路径参数
-
用于标识联合的唯一的 24 位十六进制数字字符串。
格式应符合以下模式:
^([a-f0-9]{24})$
。 -
唯一的 24 位十六进制数字字符串,用于标识要删除的连接组织配置。
格式应符合以下模式:
^([a-f0-9]{24})$
。
DELETE /API/Atlas/v1.0/federationSettings/{federationSettingsId}/connectedOrgConfigs/{orgId}
curl \
--request DELETE 'https://cloud.mongodb.com/api/atlas/v1.0/federationSettings/55fa922fb343282757d9554e/connectedOrgConfigs/32b6e34b3d91647abb20e7b8' \
--header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (400)
{
"error": 400,
"detail": "(This is just an example, the exception may not be related to this endpoint) No provider AWS exists.",
"reason": "Bad Request",
"errorCode": "VALIDATION_ERROR"
}
响应示例 (401)
{
"error": 401,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Unauthorized",
"errorCode": "NOT_ORG_GROUP_CREATOR"
}
响应示例 (403)
{
"error": 403,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Forbidden",
"errorCode": "CANNOT_CHANGE_GROUP_NAME"
}
响应示例 (404)
{
"error": 404,
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot find resource AWS",
"reason": "Not Found",
"errorCode": "RESOURCE_NOT_FOUND"
}
响应示例 (500)
{
"error": 500,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Internal Server Error",
"errorCode": "UNEXPECTED_ERROR"
}