|
| 1 | +.. _mcli-cm-backup-snapshots-schedule-describe-cmd: |
| 2 | + |
| 3 | +========================================================= |
| 4 | +mongocli cloud-manager backup snapshots schedule describe |
| 5 | +========================================================= |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +The ``backup snapshots schedule describe`` command retrieves the backup |
| 16 | +snapshot schedule for the specified cluster. You can also view the |
| 17 | +backup snapshot schedule through the |cloud-short| :cloudmgr:`UI |
| 18 | +</tutorial/edit-backup/#edit-snapshot-schedule-and-retention-policy>` |
| 19 | +or :cloudmgr:`API </reference/api/backup/get-snapshot-schedule>`. |
| 20 | + |
| 21 | +.. _mcli-cm-backup-snapshots-schedule-describe-syntax: |
| 22 | + |
| 23 | +Syntax |
| 24 | +------ |
| 25 | + |
| 26 | +.. code-block:: sh |
| 27 | + |
| 28 | + mongocli cloud-manager|cm backup(s) snapshot(s) schedule describe|get |
| 29 | + --clusterId <cluster-id> |
| 30 | + [ --output|-o <output-format> ] |
| 31 | + [ --profile|-P <profile-name> ] |
| 32 | + [ --projectId <project-ID> ] |
| 33 | + |
| 34 | +.. include:: /includes/fact-command-line-help.rst |
| 35 | + |
| 36 | +.. _mcli-cm-backup-snapshots-schedule-describe-options: |
| 37 | + |
| 38 | +Options |
| 39 | +------- |
| 40 | + |
| 41 | +.. list-table:: |
| 42 | + :header-rows: 1 |
| 43 | + :widths: 20 10 60 10 |
| 44 | + |
| 45 | + * - Option |
| 46 | + - Type |
| 47 | + - Description |
| 48 | + - Required? |
| 49 | + |
| 50 | + * - ``--clusterId`` |
| 51 | + - string |
| 52 | + - Unique identifier of the cluster for which you want to retrieve |
| 53 | + its backup snapshot schedule. |
| 54 | + - yes |
| 55 | + |
| 56 | + * - ``--output``, ``-o`` |
| 57 | + - string |
| 58 | + - .. include:: /includes/extracts/fact-basic-options-output.rst |
| 59 | + - no |
| 60 | + |
| 61 | + * - ``--profile``, ``-P`` |
| 62 | + - string |
| 63 | + - Name of the profile where the project ID and the |svc-api-key|\s |
| 64 | + for the project are saved. If omitted, uses the {+default-profile+}. |
| 65 | + To learn more about creating a profile, see :ref:`mcli-configure`. |
| 66 | + - no |
| 67 | + |
| 68 | + * - ``--projectId`` |
| 69 | + - string |
| 70 | + - .. include:: /includes/extracts/fact-basic-options-project-id.rst |
| 71 | + - no |
| 72 | + |
| 73 | +.. _mcli-cm-backup-snapshots-schedule-describe-output: |
| 74 | + |
| 75 | +Output |
| 76 | +------ |
| 77 | + |
| 78 | +.. include:: /includes/command-output-intro.rst |
| 79 | + |
| 80 | +.. code-block:: sh |
| 81 | + :copyable: false |
| 82 | + |
| 83 | + PROJECT ID CLUSTER ID MONTHLY SNAPSHOT RETENTION MONTHS POINT IN TIME WINDOW HOURS |
| 84 | + 5f1f39ffc902201990f53873 5f457bd5c90220199051210c 1 24 |
| 85 | + |
| 86 | +.. include:: /includes/fact-default-output.rst |
| 87 | + |
| 88 | +- :cloudmgr:`Cloud Manager API </reference/api/backup/get-snapshot-schedule/>` |
| 89 | + |
| 90 | +.. _mcli-cm-backup-snapshots-schedule-describe-eg: |
| 91 | + |
| 92 | +Examples |
| 93 | +-------- |
| 94 | + |
| 95 | +.. tabs:: |
| 96 | + |
| 97 | + .. tab:: Default Output |
| 98 | + :tabid: default-output |
| 99 | + |
| 100 | + The following command retrieves the backup snapshot schedule for |
| 101 | + the specified cluster. The command uses the {+default-profile+}, |
| 102 | + which contains |cloud-short| credentials. The {+mcli+} returns the |
| 103 | + output in the default format. |
| 104 | + |
| 105 | + .. code-block:: sh |
| 106 | + :copyable: false |
| 107 | + |
| 108 | + mongocli cm backup snapshot schedule describe \ |
| 109 | + --clusterId 5f457bd5c90220199051210c |
| 110 | + |
| 111 | + The previous command prints the following to the terminal. |
| 112 | + |
| 113 | + .. code-block:: sh |
| 114 | + :copyable: false |
| 115 | + |
| 116 | + PROJECT ID CLUSTER ID MONTHLY SNAPSHOT RETENTION MONTHS POINT IN TIME WINDOW HOURS |
| 117 | + 5f1f39ffc902201990f53873 5f457bd5c90220199051210c 1 24 |
| 118 | + |
| 119 | + .. tab:: JSON Output |
| 120 | + :tabid: json-output |
| 121 | + |
| 122 | + The following command retrieves the backup snapshot schedule for |
| 123 | + the specified cluster. The command uses the {+default-profile+}, |
| 124 | + which contains |cloud-short| credentials. The {+mcli+} returns the |
| 125 | + output in |json| format. |
| 126 | + |
| 127 | + .. code-block:: sh |
| 128 | + :copyable: false |
| 129 | + |
| 130 | + mongocli cm backup snapshot schedule describe \ |
| 131 | + --clusterId 5f457bd5c90220199051210c -o json |
| 132 | + |
| 133 | + The previous command prints the following to the terminal in |
| 134 | + |json| format. |
| 135 | + |
| 136 | + .. code-block:: json |
| 137 | + :copyable: false |
| 138 | + :linenos: |
| 139 | + |
| 140 | + { |
| 141 | + "clusterId": "5f457bd5c90220199051210c", |
| 142 | + "groupId": "5f1f39ffc902201990f53873", |
| 143 | + "links": [ |
| 144 | + { |
| 145 | + "rel": "self", |
| 146 | + "href": "http://cloud.mongodb.com/api/public/v1.0/groups/5f1f39ffc902201990f53873/backupConfigs/5f457bd5c90220199051210c/snapshotSchedule" |
| 147 | + }, |
| 148 | + { |
| 149 | + "rel": "http://mms.mongodb.com/cluster", |
| 150 | + "href": "http://cloud.mongodb.com/api/public/v1.0/groups/5f1f39ffc902201990f53873/clusters/5f457bd5c90220199051210c" |
| 151 | + }, |
| 152 | + { |
| 153 | + "rel": "http://mms.mongodb.com/backupConfig", |
| 154 | + "href": "http://cloud.mongodb.com/api/public/v1.0/groups/5f1f39ffc902201990f53873/backupConfigs/5f457bd5c90220199051210c" |
| 155 | + }, |
| 156 | + { |
| 157 | + "rel": "http://mms.mongodb.com/group", |
| 158 | + "href": "http://cloud.mongodb.com/api/public/v1.0/groups/5f1f39ffc902201990f53873" |
| 159 | + } |
| 160 | + ], |
| 161 | + "monthlySnapshotRetentionMonths": 1, |
| 162 | + "pointInTimeWindowHours": 24, |
| 163 | + "snapshotIntervalHours": 24, |
| 164 | + "snapshotRetentionDays": 2, |
| 165 | + "weeklySnapshotRetentionWeeks": 2 |
| 166 | + } |
0 commit comments