Skip to content

Commit c4c539c

Browse files
committed
docs(srv): update
1 parent 9e0beb9 commit c4c539c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

pages/serverless-jobs/how-to/automate-resources-management.mdx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,22 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
5252
For more details about variables used by `cli`, refer to the [CLI config documentation](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md).
5353

5454
9. In the **Execution** tab, define the desired Scaleway CLI command, as shown in the examples below:
55-
56-
<Tabs id="cli-examples">
57-
<TabsTab label="">
58-
</TabsTab>
59-
<TabsTab label="">
60-
</TabsTab>
61-
</Tabs>
62-
55+
- **Power on and off Instances**
56+
```sh
57+
# Power on
58+
scw instance server start 11111111-1111-1111-1111-111111111111
59+
60+
# Power off
61+
scw instance server stop 11111111-1111-1111-1111-111111111111
62+
```
63+
- **Create a snapshot of an Instance volume**
64+
```sh
65+
scw instance snapshot create volume-id=11111111-1111-1111-1111-111111111111
66+
```
67+
- **Create a backup of an Instance**
68+
```sh
69+
scw instance server backup 11111111-1111-1111-1111-111111111111
70+
```
6371
10. Click **Create job**.
6472

6573
## Running the job

0 commit comments

Comments
 (0)