Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Dec 17, 2024

Ticket: CLOUDP-285949

This PR adds support for Flex Cluster to atlas backup snapshot ls

Flex Cluster
./bin/atlas backup snapshots list ClusterFlex -P prod

ID                         STATUS      MONGODB VERSION   START TIME                      FINISH TIME                     EXPIRATION
675acf673a6b85483b198fd9   COMPLETED   8.0.3             2024-12-12 11:56:29 +0000 UTC   2024-12-12 11:58:09 +0000 UTC   2024-12-20 11:56:22 +0000 UTC
675c210196f62d6daa176b5c   COMPLETED   8.0.3             2024-12-13 11:56:55 +0000 UTC   2024-12-13 11:58:34 +0000 UTC   2024-12-21 11:56:22 +0000 UTC
675d728f52708c2243e0b536   COMPLETED   8.0.3             2024-12-14 11:57:09 +0000 UTC   2024-12-14 11:58:50 +0000 UTC   2024-12-22 11:56:22 +0000 UTC
675ec41052708c22432f5ad6   COMPLETED   8.0.3             2024-12-15 11:57:10 +0000 UTC   2024-12-15 11:58:50 +0000 UTC   2024-12-23 11:56:22 +0000 UTC
6760158f52708c22437edb7a   COMPLETED   8.0.3             2024-12-16 11:57:09 +0000 UTC   2024-12-16 11:58:50 +0000 UTC   2024-12-24 11:56:22 +0000 UTC
6761671152708c2243d5258c   COMPLETED   8.0.3             2024-12-17 11:57:10 +0000 UTC   2024-12-17 11:58:44 +0000 UTC   2024-12-25 11:56:22 +0000 UTC
./bin/atlas backup snapshots list ClusterFlex -P prod -o json                                                                     
{
  "links": [
    {
      "href": "https://cloud.mongodb.com/api/atlas/v2/groups/663268874ddd3b236fd2f107/flexClusters/ClusterFlex/backup/snapshots?includeCount=true\u0026pageNum=1\u0026itemsPerPage=100",
      "rel": "self"
    }
  ],
  "results": [
    {
      "expiration": "2024-12-20T11:56:22Z",
      "finishTime": "2024-12-12T11:58:09Z",
      "id": "675acf673a6b85483b198fd9",
      "mongoDBVersion": "8.0.3",
      "scheduledTime": "2024-12-12T11:56:22Z",
      "startTime": "2024-12-12T11:56:29Z",
      "status": "COMPLETED"
    },
    {
      "expiration": "2024-12-21T11:56:22Z",
      "finishTime": "2024-12-13T11:58:34Z",
      "id": "675c210196f62d6daa176b5c",
      "mongoDBVersion": "8.0.3",
      "scheduledTime": "2024-12-13T11:56:22Z",
      "startTime": "2024-12-13T11:56:55Z",
      "status": "COMPLETED"
    },
    {
      "expiration": "2024-12-22T11:56:22Z",
      "finishTime": "2024-12-14T11:58:50Z",
      "id": "675d728f52708c2243e0b536",
      "mongoDBVersion": "8.0.3",
      "scheduledTime": "2024-12-14T11:56:22Z",
      "startTime": "2024-12-14T11:57:09Z",
      "status": "COMPLETED"
    },
    {
      "expiration": "2024-12-23T11:56:22Z",
      "finishTime": "2024-12-15T11:58:50Z",
      "id": "675ec41052708c22432f5ad6",
      "mongoDBVersion": "8.0.3",
      "scheduledTime": "2024-12-15T11:56:22Z",
      "startTime": "2024-12-15T11:57:10Z",
      "status": "COMPLETED"
    },
    {
      "expiration": "2024-12-24T11:56:22Z",
      "finishTime": "2024-12-16T11:58:50Z",
      "id": "6760158f52708c22437edb7a",
      "mongoDBVersion": "8.0.3",
      "scheduledTime": "2024-12-16T11:56:22Z",
      "startTime": "2024-12-16T11:57:09Z",
      "status": "COMPLETED"
    },
    {
      "expiration": "2024-12-25T11:56:22Z",
      "finishTime": "2024-12-17T11:58:44Z",
      "id": "6761671152708c2243d5258c",
      "mongoDBVersion": "8.0.3",
      "scheduledTime": "2024-12-17T11:56:22Z",
      "startTime": "2024-12-17T11:57:10Z",
      "status": "COMPLETED"
    }
  ],
  "totalCount": 6
}
Dedicated Cluster
./bin/atlas backup snapshots list ClusterDedicated -P prod                                                                               
ID                         TYPE       STATUS      CREATED AT                      EXPIRES AT
676145dc6af0b746ef72aaec   onDemand   completed   2024-12-17 09:37:50 +0000 UTC   2024-12-20 09:39:07 +0000 UTC

@andreaangiolillo andreaangiolillo marked this pull request as ready for review December 17, 2024 13:12
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner December 17, 2024 13:12
@apix-bot
Copy link
Contributor

apix-bot bot commented Dec 17, 2024

Coverage Report 📈

Branch Commit Coverage
CLOUDP-287238_flex_cluster_feature_branch 94ba52d 38.4%
CLOUDP-285949 d54bc61 38.5%
Difference .1%

@andreaangiolillo andreaangiolillo merged commit 7db2572 into CLOUDP-287238_flex_cluster_feature_branch Dec 17, 2024
19 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-285949 branch December 17, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants