Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Dec 17, 2024

Ticket: CLOUDP-285951

This PR updates atas backup restores start to support flex clusters

Flex Cluster
./bin/atlas backup restore start automated \                                                                                           
         --clusterName ClusterFlex \
         --snapshotId 6760158f52708c22437edb7a \
         --targetClusterName ClusterFlex \
         --targetProjectId 663268874ddd3b236fd2f107 -P prod -o json
{
  "deliveryType": "RESTORE",
  "expirationDate": "2024-12-19T17:23:03Z",
  "id": "676402177f4259644976042a",
  "instanceName": "ClusterFlex",
  "projectId": "663268874ddd3b236fd2f107",
  "restoreScheduledDate": "2024-12-19T11:23:03Z",
  "snapshotFinishedDate": "2024-12-16T11:58:50Z",
  "snapshotId": "6760158f52708c22437edb7a",
  "status": "PENDING",
  "targetDeploymentItemName": "ClusterFlex",
  "targetProjectId": "663268874ddd3b236fd2f107"
}
./bin/atlas backup restore start automated \                                                                                          
         --clusterName ClusterFlex \
         --snapshotId 6760158f52708c22437edb7a \
         --targetClusterName ClusterFlex \
         --targetProjectId 663268874ddd3b236fd2f107 -P prod

Restore job '676402726e011b10bca48912' successfully started
Dedicated Cluster
./bin/atlas backup restore start automated \                                                                                             
         --clusterName ClusterDedicated \
         --snapshotId 6762b92b701c1678be0c4ccb \
         --targetClusterName ClusterFlex1 \
         --targetProjectId 663268874ddd3b236fd2f107 -P prod -o json
{
  "cancelled": false,
  "deliveryType": "automated",
  "deliveryUrl": [],
  "desiredTimestamp": {},
  "expired": false,
  "failed": false,
  "id": "676402cb266ae74ba94a8aee",
  "links": [
    {
      "href": "https://cloud.mongodb.com/api/atlas/v2/groups/663268874ddd3b236fd2f107/clusters/ClusterFlex1/backup/restoreJobs/676402cb266ae74ba94a8aee",
      "rel": "self"
    },
    {
      "href": "https://cloud.mongodb.com/api/atlas/v2/groups/663268874ddd3b236fd2f107/clusters/ClusterFlex1/backup/snapshots/6762b92b701c1678be0c4ccb",
      "rel": "https://cloud.mongodb.com/snapshot"
    },
    {
      "href": "https://cloud.mongodb.com/api/atlas/v2/groups/663268874ddd3b236fd2f107/clusters/ClusterFlex1",
      "rel": "https://cloud.mongodb.com/cluster"
    },
    {
      "href": "https://cloud.mongodb.com/api/atlas/v2/groups/663268874ddd3b236fd2f107",
      "rel": "https://cloud.mongodb.com/group"
    }
  ],
  "snapshotId": "6762b92b701c1678be0c4ccb",
  "targetClusterName": "ClusterDedicated",
  "targetGroupId": "663268874ddd3b236fd2f107",
  "timestamp": "2024-12-18T12:02:35Z"
}

@andreaangiolillo andreaangiolillo changed the title CLOUDP-285951: add support for flex clusters to "atlas backup restores start CLOUDP-285951: add support for flex clusters to atlas backup restores start Dec 17, 2024
@apix-bot
Copy link
Contributor

apix-bot bot commented Dec 19, 2024

Coverage Report 📈

Branch Commit Coverage
CLOUDP-287238_flex_cluster_feature_branch 64f15eb 38.7%
CLOUDP-285951 7f1e178 38.8%
Difference .1%

@andreaangiolillo andreaangiolillo marked this pull request as ready for review December 19, 2024 11:26
@andreaangiolillo andreaangiolillo requested review from a team as code owners December 19, 2024 11:26
@github-actions github-actions bot added the need-doc-review Improvements or additions to documentation, will be reviewed by the docs team label Dec 19, 2024
@mongodb mongodb deleted a comment from github-actions bot Dec 19, 2024
Copy link
Collaborator

@blva blva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andreaangiolillo andreaangiolillo merged commit 2fd2432 into CLOUDP-287238_flex_cluster_feature_branch Dec 19, 2024
18 of 19 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-285951 branch December 19, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

need-doc-review Improvements or additions to documentation, will be reviewed by the docs team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants