删除指定的项目限制。根据限制,Atlas 会将限制重置为其默认值或完全删除限制。要使用此资源,请求的服务账户或 API 密钥必须具有“项目所有者”角色。
人类可读标签,用于标识此项目限制。
| 限制名称 | 说明 | 默认 | API 覆盖限制 |
|---|---|---|---|
| atlas.project.deployment.clusters | 此项目中的集群数量限制 | 25 | 100 |
| atlas.project.deployment.nodesPerPrivateLinkRegion | 此项目中每个专用链接地区的节点数限制 | 50 | 90 |
| atlas.project.security.databaseAccess.customRoles | 此项目中自定义角色的数量限制 | 100 | 1400 |
| atlas.project.security.databaseAccess.users | 此项目中的数据库用户数量限制 | 100 | 100 |
| atlas.project.security.networkAccess.crossRegionEntries | 此项目跨区域网络访问入口数量限制 | 40 | 220 |
| atlas.project.security.networkAccess.entries | 此项目中网络访问入口的数量限制 | 200 | 20 |
| dataFederation.bytesProcessed.query | 单个 Data Federation 查询期间处理的字节数限制 | 不适用 | 不适用 |
| dataFederation.bytesProcessed.daily | 当日所有 Atlas Data Federation 租户中处理的字节数限制 | 不适用 | 不适用 |
| dataFederation.bytesProcessed.weekly | 当前一周所有 Atlas Data Federation 租户中处理的字节数限制 | 不适用 | 不适用 |
| dataFederation.bytesProcessed.monthly | 当月所有 Atlas Data Federation 租户中处理的字节数限制 | 不适用 | 不适用 |
| atlas.project.deployment.privateServiceConnectionsPerRegionGroup | 每个区域群组的私有服务连接数 | 50 | 100 |
| atlas.project.deployment.privateServiceConnectionsSubnetMask | GCP PSC 网络的子网掩码。下限为 20。 | 27 | 27 |
值为 atlas.project.security.databaseAccess.users、atlas.project.deployment.clusters、atlas.project.deployment.serverlessMTMs、atlas.project.security.databaseAccess.customRoles、atlas.project.security.networkAccess.entries、atlas.project.security.networkAccess.crossRegionEntries、atlas.project.deployment.nodesPerPrivateLinkRegion、dataFederation.bytesProcessed.query、dataFederation.bytesProcessed.daily、dataFederation.bytesProcessed.weekly、dataFederation.bytesProcessed.monthly、atlas.project.deployment.privateServiceConnectionsPerRegionGroup、或 atlas.project.deployment.privateServiceConnectionsSubnetMask。
用于标识项目的唯一 24-十六进制数字字符串。 使用 /groups 端点检索身份验证的用户有权访问权限的所有项目。
注意:群组和项目是同义词。您的群组 ID 与项目 ID 相同。对于现有群组,群组/项目 ID 保持不变。资源和相应的端点使用“群组”一词。
格式应符合以下模式:^([a-f0-9]{24})$。
指示应用程序是否将响应包装在envelope JSON 对象中的标志。某些 API 客户端无法访问 HTTP 响应标头或状态代码。要修复此问题,请在查询中设置 Envelope=true。返回结果列表的端点将结果对象用作 envelope。应用程序将状态参数添加到响应正文中。
默认值为false 。
指示响应正文是否应采用 prettyprint 格式的标记。
默认值为false 。
atlas api projects deleteGroupLimit --help
import (
"os"
"context"
"log"
sdk "go.mongodb.org/atlas-sdk/v20250312001/admin"
)
func main() {
ctx := context.Background()
clientID := os.Getenv("MONGODB_ATLAS_CLIENT_ID")
clientSecret := os.Getenv("MONGODB_ATLAS_CLIENT_SECRET")
// See https://dochub.mongodb.org/core/atlas-go-sdk-oauth
client, err := sdk.NewClient(sdk.UseOAuthAuth(clientID, clientSecret))
if err != nil {
log.Fatalf("Error: %v", err)
}
params = &sdk.DeleteGroupLimitApiParams{}
httpResp, err := client.ProjectsApi.
DeleteGroupLimitWithParams(ctx, params).
Execute()
}
curl --include --header "Authorization: Bearer ${ACCESS_TOKEN}" \
--header "Accept: application/vnd.atlas.2025-03-12+json" \
-X DELETE "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/limits/{limitName}"
curl --user "${PUBLIC_KEY}:${PRIVATE_KEY}" \
--digest --include \
--header "Accept: application/vnd.atlas.2025-03-12+json" \
-X DELETE "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/limits/{limitName}"
{
"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"
}
{
"error": 401,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Unauthorized",
"errorCode": "NOT_ORG_GROUP_CREATOR"
}
{
"error": 403,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Forbidden",
"errorCode": "CANNOT_CHANGE_GROUP_NAME"
}
{
"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"
}
{
"error": 409,
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot delete organization link while there is active migration in following project ids: 60c4fd418ebe251047c50554",
"reason": "Conflict",
"errorCode": "CANNOT_DELETE_ORG_ACTIVE_LIVE_MIGRATION_ATLAS_ORG_LINK"
}
{
"error": 500,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Internal Server Error",
"errorCode": "UNEXPECTED_ERROR"
}