All Products
Search
Document Center

CloudOps Orchestration Service:ACS-PolarDB-BulkyModifyDBClusterMaintainTime

Last Updated:Nov 22, 2024

Template name

ACS-PolarDB-BulkyModifyDBClusterMaintainTime

Execute Now

Template description

Modifies the maintenance window of a cluster.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

instanceIds

The IDs of PolarDB clusters.

List

Yes

maintainTime

The maintenance window of the cluster.

String

Yes

OOSAssumeRole

The 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": [
                "polardb:ModifyDBClusterMaintainTime"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

For more information, see ACS-PolarDB-BulkyModifyDBClusterMaintainTime.yml at GitHub.

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: Modifies maintain time of polardb clusters
   
  name-en: ACS-PolarDB-BulkyModifyDBClusterMaintainTime
   
  categories:
    - security
Parameters:
  regionId:
    Label:
      en: RegionId
       
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  instanceIds:
    Label:
      en: The ids of polardb clusters
       
    Type: List
  maintainTime:
    Description:
      en:  The format is HH:mmZ-HH:mmZ. For example, 16:00Z-17:00Z means that routine maintenance can be performed from 0:00 to 1:00 (UTC+08:00).
        
    Label:
      en: The maintain time of the cluster
       
    Type: String
  rateControl:
    Label:
      en: RateControl
       
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
       
    Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: ModifyInstanceMaintainTime
    Action: ACS::ExecuteAPI
    Description:
      en: Modifies maintain time of polardb cluster
       
    Properties:
      Service: POLARDB
      API: ModifyDBClusterMaintainTime
      Parameters:
        RegionId: '{{ regionId }}'
        DBClusterId: '{{ ACS::TaskLoopItem }}'
        MaintainTime: '{{ maintainTime }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ instanceIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - maintainTime
        Label:
          default:
             
            en: Configure Maintain Time
      - Parameters:
          - regionId
          - instanceIds
        Label:
          default:
             
            en: Select Clusters
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
             
            en: Control Options