All Products
Search
Document Center

ACS__Sleep

Last Updated: Nov 24, 2019

Features

The ACS::Sleep action can be used if waiting is required during O&M. For example, a newly created ECS instance with an application needs to be pre-loaded for a period of time before the subsequent O&M operations can be performed.

Syntax

  • YAML format
  1. Tasks:
  2. - Name: sleepTask # The name of the task.
  3. Action: ACS::Sleep
  4. Properties:
  5. Duration: PT15M # Required. The waiting duration.
  • JSON format (For more information, see the parameter description for the YAML format.)
  1. {
  2. "Tasks": [
  3. {
  4. "Name": "sleepTask",
  5. "Action": "ACS::Sleep",
  6. "Properties": {
  7. "Duration": "PT15M"
  8. }
  9. }
  10. ]
  11. }

Description

Duration

  • The ISO 8601 standard is used to define the waiting duration.
  • The duration ranges from 1 minute to 4 hours.
  • The value is not case-sensitive.

Examples:

  • 1M or 1m: indicates 1 minute in the contracted form.
  • 1H or 1h: indicates 1 hour in the contracted form.
  • 1H2M: indicates 1 hour and 2 minutes in the contracted form.
  • PT1H2M: indicates 1 hour and 2 minutes in the standard form.