|
31 | 31 | name: Clusters
|
32 | 32 | paths:
|
33 | 33 | /api/atlas/v2/groups/{groupId}/clusters:
|
| 34 | + get: |
| 35 | + description: Returns the details for all clusters in the specific project to which you have access. Clusters contain a group of hosts that maintain the same data set. The response includes clusters with asymmetrically-sized shards. To use this resource, the requesting API Key must have the Project Read Only role. This feature is not available for serverless clusters. |
| 36 | + operationId: listClusters |
| 37 | + x-xgen-atlascli: |
| 38 | + skip: true |
| 39 | + parameters: |
| 40 | + - $ref: '#/components/parameters/envelope' |
| 41 | + - $ref: '#/components/parameters/groupId' |
| 42 | + - $ref: '#/components/parameters/includeCount' |
| 43 | + - $ref: '#/components/parameters/itemsPerPage' |
| 44 | + - $ref: '#/components/parameters/pageNum' |
| 45 | + - $ref: '#/components/parameters/pretty' |
| 46 | + - description: Flag that indicates whether to return Clusters with retain backups. |
| 47 | + in: query |
| 48 | + name: includeDeletedWithRetainedBackups |
| 49 | + schema: |
| 50 | + default: false |
| 51 | + type: boolean |
| 52 | + responses: |
| 53 | + '200': |
| 54 | + content: |
| 55 | + application/vnd.atlas.2023-01-01+json: |
| 56 | + schema: |
| 57 | + $ref: '#/components/schemas/PaginatedLegacyClusterView' |
| 58 | + x-sunset: '2025-06-01' |
| 59 | + x-xgen-version: '2023-01-01' |
| 60 | + application/vnd.atlas.2023-02-01+json: |
| 61 | + schema: |
| 62 | + $ref: '#/components/schemas/PaginatedAdvancedClusterDescriptionView' |
| 63 | + x-sunset: '2026-03-01' |
| 64 | + x-xgen-version: '2023-02-01' |
| 65 | + application/vnd.atlas.2024-08-05+json: |
| 66 | + schema: |
| 67 | + $ref: '#/components/schemas/PaginatedClusterDescription20240805' |
| 68 | + x-xgen-version: '2024-08-05' |
| 69 | + description: OK |
| 70 | + '401': |
| 71 | + $ref: '#/components/responses/unauthorized' |
| 72 | + '500': |
| 73 | + $ref: '#/components/responses/internalServerError' |
| 74 | + summary: Return All Clusters in One Project |
| 75 | + tags: |
| 76 | + - Clusters |
| 77 | + x-xgen-owner-team: Atlas Dedicated |
34 | 78 | post:
|
35 | 79 | description: Creates one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. This resource can create clusters with asymmetrically-sized shards. Each project supports up to 25 database deployments. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters.
|
36 | 80 | x-xgen-atlascli:
|
@@ -263,6 +307,33 @@ components:
|
263 | 307 | minLength: 24
|
264 | 308 | pattern: ^([a-f0-9]{24})$
|
265 | 309 | type: string
|
| 310 | + includeCount: |
| 311 | + description: Flag that indicates whether the response returns the total number of items (**totalCount**) in the response. |
| 312 | + in: query |
| 313 | + name: includeCount |
| 314 | + schema: |
| 315 | + default: true |
| 316 | + example: true |
| 317 | + type: boolean |
| 318 | + itemsPerPage: |
| 319 | + description: Number of items that the response returns per page. |
| 320 | + in: query |
| 321 | + name: itemsPerPage |
| 322 | + schema: |
| 323 | + default: 100 |
| 324 | + example: 100 |
| 325 | + maximum: 500 |
| 326 | + minimum: 1 |
| 327 | + type: integer |
| 328 | + pageNum: |
| 329 | + description: Number of the page that displays the current set of the total objects that the response returns. |
| 330 | + in: query |
| 331 | + name: pageNum |
| 332 | + schema: |
| 333 | + default: 1 |
| 334 | + example: 1 |
| 335 | + minimum: 1 |
| 336 | + type: integer |
266 | 337 | pretty:
|
267 | 338 | description: Flag that indicates whether the response body should be in the <a href="https://en.wikipedia.org/wiki/Prettyprint" target="_blank" rel="noopener noreferrer">prettyprint</a> format.
|
268 | 339 | in: query
|
@@ -6252,6 +6323,78 @@ components:
|
6252 | 6323 | uniqueItems: true
|
6253 | 6324 | readOnly: true
|
6254 | 6325 | type: object
|
| 6326 | + PaginatedAdvancedClusterDescriptionView: |
| 6327 | + properties: |
| 6328 | + links: |
| 6329 | + description: List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. |
| 6330 | + externalDocs: |
| 6331 | + description: Web Linking Specification (RFC 5988) |
| 6332 | + url: https://datatracker.ietf.org/doc/html/rfc5988 |
| 6333 | + items: |
| 6334 | + $ref: '#/components/schemas/Link' |
| 6335 | + readOnly: true |
| 6336 | + type: array |
| 6337 | + results: |
| 6338 | + description: List of returned documents that MongoDB Cloud provides when completing this request. |
| 6339 | + items: |
| 6340 | + $ref: '#/components/schemas/AdvancedClusterDescription' |
| 6341 | + readOnly: true |
| 6342 | + type: array |
| 6343 | + totalCount: |
| 6344 | + description: Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. |
| 6345 | + format: int32 |
| 6346 | + minimum: 0 |
| 6347 | + readOnly: true |
| 6348 | + type: integer |
| 6349 | + type: object |
| 6350 | + PaginatedClusterDescription20240805: |
| 6351 | + properties: |
| 6352 | + links: |
| 6353 | + description: List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. |
| 6354 | + externalDocs: |
| 6355 | + description: Web Linking Specification (RFC 5988) |
| 6356 | + url: https://datatracker.ietf.org/doc/html/rfc5988 |
| 6357 | + items: |
| 6358 | + $ref: '#/components/schemas/Link' |
| 6359 | + readOnly: true |
| 6360 | + type: array |
| 6361 | + results: |
| 6362 | + description: List of returned documents that MongoDB Cloud provides when completing this request. |
| 6363 | + items: |
| 6364 | + $ref: '#/components/schemas/ClusterDescription20240805' |
| 6365 | + readOnly: true |
| 6366 | + type: array |
| 6367 | + totalCount: |
| 6368 | + description: Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. |
| 6369 | + format: int32 |
| 6370 | + minimum: 0 |
| 6371 | + readOnly: true |
| 6372 | + type: integer |
| 6373 | + type: object |
| 6374 | + PaginatedLegacyClusterView: |
| 6375 | + properties: |
| 6376 | + links: |
| 6377 | + description: List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. |
| 6378 | + externalDocs: |
| 6379 | + description: Web Linking Specification (RFC 5988) |
| 6380 | + url: https://datatracker.ietf.org/doc/html/rfc5988 |
| 6381 | + items: |
| 6382 | + $ref: '#/components/schemas/Link' |
| 6383 | + readOnly: true |
| 6384 | + type: array |
| 6385 | + results: |
| 6386 | + description: List of returned documents that MongoDB Cloud provides when completing this request. |
| 6387 | + items: |
| 6388 | + $ref: '#/components/schemas/LegacyAtlasCluster' |
| 6389 | + readOnly: true |
| 6390 | + type: array |
| 6391 | + totalCount: |
| 6392 | + description: Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. |
| 6393 | + format: int32 |
| 6394 | + minimum: 0 |
| 6395 | + readOnly: true |
| 6396 | + type: integer |
| 6397 | + type: object |
6255 | 6398 | PeriodicCpsSnapshotSource:
|
6256 | 6399 | allOf:
|
6257 | 6400 | - $ref: '#/components/schemas/IngestionSource'
|
|
0 commit comments