Add Schedule Action
POST
/api/v1/nodes/{node_id}/scheduled_actions/Path parameters
node_idPathstringrequiredPath parameter
node_id.
Query parameters
project_idQuerystringoptionalIdentifier of the project to scope the request to. Optional; if omitted, the account's default project is used.
- optional
- if omitted, the request is applied to the default project
example{{project_id}}apikeyQuerystringoptionalAPI key used for authentication
- required
- non-empty string
example{{api_key}}locationQuerystringoptionalLocation identifier for the schedule
- must be a non-empty string
- should be URL-encoded if it contains special characters
example{{location}}
Request body
application/json
Time zone identifier for the schedule
example
Asia/Calcutta- required
- must be a valid IANA time zone identifier
Identifier for the schedule action to perform
example
pow-off- must be a non-empty string
- may contain only letters, numbers, and hyphens
Specifies the schedule action to perform
example
poweroff- must be a non-empty string
- must be one of the supported actions such as "poweroff", "reboot", "sleep"
Specifies the type of schedule to add
example
periodic- must be a non-empty string
- allowed values: periodic, once, cron
Responses
200Successful response
HTTP status code indicating the result of adding a schedule
example
200- must be a valid HTTP status code
- must be a three-digit integer
Identifier of the created schedule
example
123456- must be a non-negative integer
- must fit within a 32-bit signed integer
Human-readable status message for the add schedule operation
example
successfully added scheduled action to your virtual machine- must be a non-empty string
- maximum length 256 characters