All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint

Last Updated:Sep 20, 2024

Template name

ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint

Execute Now

Template description

Modifies the time when a snapshot is created for multiple automatic snapshot policies.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

instanceIds

The IDs of automatic snapshot policies.

List

Yes

timePoints

The points in time at which the automatic snapshots are created.

String

Yes

OOSAssumeRole

The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS).

String

Yes

regionId

The region ID.

String

No

{{ ACS::RegionId }}

rateControl

The rate control settings.

Json

No

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}

Output parameters

None

Permission policy that is required to execute the template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ecs:ModifyAutoSnapshotPolicyEx"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

For more information, see ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint.yml at GitHub.

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: Modifies timepoints of AutoSnapshotPolicy
  zh-cn: the description in Chinese
  name-en: ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint
  name-zh-cn: the description in Chinese
  categories:
    - security
Parameters:
  regionId:
    Label:
      en: RegionId
      zh-cn: the description in Chinese
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  instanceIds:
    Label:
      en: The ids of AutoSnapshotPolicy
      zh-cn: the description in Chinese
    Type: List
  timePoints:
    Description:
      en: The time must be in UTC+8. Unit hours. Valid values are 0 to 23, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, a value of 1 indicates 01:00:00.
      zh-cn: the description in Chinese  
    Label:
      en: The maintain time of the instance autosnapshot
      zh-cn: the description in Chinese 
    Type: String

  rateControl:
    Label:
      en: RateControl
      zh-cn: the description in Chinese
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: the description in Chinese
    Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: ModifyAutoSnapshotPolicyEx
    Action: ACS::ExecuteAPI
    Description:
      en: Modifies timepoints of ecs AutoSnapshotPolicy
      zh-cn: the description in Chinese
    Properties:
      Service: ECS
      API: ModifyAutoSnapshotPolicyEx
      Parameters:
        RegionId: '{{ RegionId }}'
        autoSnapshotPolicyId: '{{ ACS::TaskLoopItem }}'
        timePoints: '{{ timePoints }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ instanceIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - timePoints
        Label:
          default:
            zh-cn: the description in Chinese
            en: Configure timepoints
      - Parameters:
          - regionId
          - instanceIds
        Label:
          default:
            zh-cn: the description in Chinese
            en: Select policy
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: the description in Chinese
            en: Control Options