Register a schedule

Method URI Description
POST /autoscale_schedulers Registers a schedule

Normal response codes: 200

CAUTION:

  • Registration of schedules must be performed by the same user who created the stack for executing schedules.
  • In addition to the above condition, registration of schedules when using custom roles must be performed by a user for whom the orch_scheduler_create and orch_create roles were set.
  • While the schedule feature is being used, do not delete the roles specified for the user when creating stacks and registering schedules.

Request

This table shows the URI parameters for the request body.

Name Type Description
name String Specify a name for identifying the schedule.

A unique name is required for all projects in a region.

Specify a name using up to 64 alphanumeric characters (a-z, A-Z, 0-9). The name is case-sensitive.

method String Specify POST.
url String Specify the signal URL.

CAUTION:

Note: Specify http for a URL scheme.

time String Specify a datetime for executing the REST API (Specify using UTC).

The format must comply with the cron command.

project_id String Specify the ID of the project for which schedule processing will be executed.

Example. Create schedule: JSON request


{
	"name": "sample2",
	"time": "*/5 * * * *",
	"url":" http://orchestration.jp-east-1.cloud.global.fujitsu.com/v1/2801e5de00d142a388b17b65256f7ad4/stacks/s1_step2/0ffc2720-a7ba-4e0f-8ca6-82142f14f6eb/resources/web_server_scaleup_policy/signal",
	"method":"POST",
	"project_id":"2801e5de00d142a388b17b65256f7ad4"
}
     

Response

Example. Create server group: JSON response


{
	"name":"sample2",
	"method":"POST",
	"url":" http://orchestration.jp-east-1.cloud.global.fujitsu.com/v1/2801e5de00d142a388b17b65256f7ad4/stacks/s1_step2/0ffc2720-a7ba-4e0f-8ca6-82142f14f6eb/resources/web_server_scaleup_policy/signal",
	"time":"*/5 * * * *",
	"project_id":"2801e5de00d142a388b17b65256f7ad4"
}