diff --git a/pages/serverless-jobs/how-to/automate-resources-management.mdx b/pages/serverless-jobs/how-to/automate-resources-management.mdx index b05d4ef50d..94c595db8b 100644 --- a/pages/serverless-jobs/how-to/automate-resources-management.mdx +++ b/pages/serverless-jobs/how-to/automate-resources-management.mdx @@ -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. @@ -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**. @@ -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 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 next to the job run ID, and selecting **See on Cockpit**. \ No newline at end of file diff --git a/tutorials/power-on-off-instances-jobs/index.mdx b/tutorials/power-on-off-instances-jobs/index.mdx index 9010b41913..230fa640a8 100644 --- a/tutorials/power-on-off-instances-jobs/index.mdx +++ b/tutorials/power-on-off-instances-jobs/index.mdx @@ -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. @@ -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**. @@ -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**. @@ -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/) \ No newline at end of file