Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions pages/serverless-jobs/how-to/automate-resources-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ categories:
- developer-tools
- jobs
dates:
validation: 2025-06-13
validation: 2025-06-23
posted: 2025-06-13
---

[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.

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.
Expand Down Expand Up @@ -55,18 +56,18 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
- **Power on and off Instances**
```sh
# Power on
scw instance server start 11111111-1111-1111-1111-111111111111
/scw instance server start 11111111-1111-1111-1111-111111111111

# Power off
scw instance server stop 11111111-1111-1111-1111-111111111111
/scw instance server stop 11111111-1111-1111-1111-111111111111
```
- **Create a snapshot of an Instance volume**
```sh
scw instance snapshot create volume-id=11111111-1111-1111-1111-111111111111
/scw instance snapshot create volume-id=11111111-1111-1111-1111-111111111111
```
- **Create a backup of an Instance**
```sh
scw instance server backup 11111111-1111-1111-1111-111111111111
/scw instance server backup 11111111-1111-1111-1111-111111111111
```
10. Click **Create job**.

Expand All @@ -76,4 +77,4 @@ Your Serverless Job will run the command periodically according to the [cron sch

From the **Overview** tab of the Serverless job you just created, click **Actions**, then select **Run job** from the contextual menu.

The execution appears in the **Job runs** section. You can access the logs of your job by clicking <Icon name="more" /> next to the job run ID, and selecting **See on Cockpit**.
The execution appears in the **Job runs** section. You can access the logs of your job by clicking <Icon name="more" /> next to the job run ID, and selecting **See on Cockpit**.
9 changes: 5 additions & 4 deletions tutorials/power-on-off-instances-jobs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ categories:
- instances
- jobs
dates:
validation: 2025-06-09
validation: 2025-06-23
posted: 2025-06-09
---

[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.

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.
Expand Down Expand Up @@ -57,7 +58,7 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
9. In the **Execution** tab, define the command below, and replace the placeholder with the ID of your Instance:

```
scw instance server start 11111111-1111-1111-1111-111111111111
/scw instance server start 11111111-1111-1111-1111-111111111111
```

10. Click **Create job**.
Expand Down Expand Up @@ -94,7 +95,7 @@ Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not n
9. In the **Execution** tab, define the command below, and replace the placeholder with the ID of your Instance:

```sh
scw instance server stop 11111111-1111-1111-1111-111111111111
/scw instance server stop 11111111-1111-1111-1111-111111111111
```

10. Click **Create job**.
Expand All @@ -120,4 +121,4 @@ This tutorial is a lightweight example of how to manage the power cycle of an In
- [Serverless Jobs Documentation](/serverless-jobs/how-to/create-job/)
- [Other methods to deploy Jobs](/serverless-jobs/reference-content/deploy-job/)
- [API keys documentation](/iam/how-to/create-api-keys/)
- [CRON schedule reference](/serverless-jobs/reference-content/cron-schedules/)
- [CRON schedule reference](/serverless-jobs/reference-content/cron-schedules/)
Loading