You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/serverless-jobs/how-to/automate-resources-management.mdx
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@ categories:
10
10
- developer-tools
11
11
- jobs
12
12
dates:
13
-
validation: 2025-06-13
13
+
validation: 2025-06-23
14
14
posted: 2025-06-13
15
15
---
16
+
16
17
[Scaleway Serverless Jobs](/serverless-jobs/quickstart/) allows you to create and automate recurring tasks. This page shows how to create jobs to perform any operation available with the [Scaleway CLI](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md) to automate the management of your Scaleway resources.
17
18
18
19
Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not need autoscaling or exposure via a web server. Refer to the [documentation on differences between jobs, containers, and functions](/serverless-jobs/reference-content/difference-jobs-functions-containers/) for more information.
@@ -55,18 +56,18 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
55
56
-**Power on and off Instances**
56
57
```sh
57
58
# Power on
58
-
scw instance server start 11111111-1111-1111-1111-111111111111
59
+
/scw instance server start 11111111-1111-1111-1111-111111111111
59
60
60
61
# Power off
61
-
scw instance server stop 11111111-1111-1111-1111-111111111111
62
+
/scw instance server stop 11111111-1111-1111-1111-111111111111
scw instance server backup 11111111-1111-1111-1111-111111111111
70
+
/scw instance server backup 11111111-1111-1111-1111-111111111111
70
71
```
71
72
10. Click **Create job**.
72
73
@@ -76,4 +77,4 @@ Your Serverless Job will run the command periodically according to the [cron sch
76
77
77
78
From the **Overview** tab of the Serverless job you just created, click **Actions**, then select **Run job** from the contextual menu.
78
79
79
-
The execution appears in the **Job runs** section. You can access the logs of your job by clicking <Iconname="more" /> next to the job run ID, and selecting **See on Cockpit**.
80
+
The execution appears in the **Job runs** section. You can access the logs of your job by clicking <Iconname="more" /> next to the job run ID, and selecting **See on Cockpit**.
Copy file name to clipboardExpand all lines: tutorials/power-on-off-instances-jobs/index.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@ categories:
10
10
- instances
11
11
- jobs
12
12
dates:
13
-
validation: 2025-06-09
13
+
validation: 2025-06-23
14
14
posted: 2025-06-09
15
15
---
16
+
16
17
[Scaleway Serverless Jobs](/serverless-jobs/quickstart/) allows you to create and automate recurring tasks. This tutorial will guide you through the process of powering a [Scaleway Instance](/instances/quickstart/) on and off, on a recurring schedule using a Serverless Job.
17
18
18
19
Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not need autoscaling or exposure via a web server. Refer to the [documentation on differences between jobs, containers, and functions](/serverless-jobs/reference-content/difference-jobs-functions-containers/) for more information.
@@ -57,7 +58,7 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
57
58
9. In the **Execution** tab, define the command below, and replace the placeholder with the ID of your Instance:
58
59
59
60
```
60
-
scw instance server start 11111111-1111-1111-1111-111111111111
61
+
/scw instance server start 11111111-1111-1111-1111-111111111111
61
62
```
62
63
63
64
10. Click **Create job**.
@@ -94,7 +95,7 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
94
95
9. In the **Execution** tab, define the command below, and replace the placeholder with the ID of your Instance:
95
96
96
97
```sh
97
-
scw instance server stop 11111111-1111-1111-1111-111111111111
98
+
/scw instance server stop 11111111-1111-1111-1111-111111111111
98
99
```
99
100
100
101
10. Click **Create job**.
@@ -120,4 +121,4 @@ This tutorial is a lightweight example of how to manage the power cycle of an In
120
121
-[Serverless Jobs Documentation](/serverless-jobs/how-to/create-job/)
121
122
-[Other methods to deploy Jobs](/serverless-jobs/reference-content/deploy-job/)
0 commit comments