首頁(yè)
系統(tǒng)運(yùn)維管理
操作指南
自動(dòng)化任務(wù)
模板
公共模板
ApiGateway
ACS-ApiGateway-BulkyModifyApiGroupNetworkPolicy
ACS-ApiGateway-BulkyModifyApiGroupNetworkPolicy
更新時(shí)間:
模板名稱
ACS-ApiGateway-BulkyModifyApiGroupNetworkPolicy 修改API網(wǎng)關(guān)https版本支持tls1.2版本
模板描述
修改API網(wǎng)關(guān)https版本支持tls1.2版本
模板類型
自動(dòng)化
所有者
Alibaba Cloud
輸入?yún)?shù)
參數(shù)名稱 | 描述 | 類型 | 是否必填 | 默認(rèn)值 | 約束 |
groupId | API網(wǎng)關(guān)實(shí)例分組ID | String | 是 | ||
httpsPolicy | HTTPS安全策略 | String | 是 | ||
regionId | 地域ID | String | 否 | {{ ACS::RegionId }} | |
rateControl | 任務(wù)執(zhí)行的并發(fā)比率 | Json | 否 | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | OOS扮演的RAM角色 | String | 否 | "" |
輸出參數(shù)
無(wú)
執(zhí)行此模板需要的權(quán)限策略
{
"Version": "1",
"Statement": [
{
"Action": [
"cloudapi:DescribeApiGroups",
"cloudapi:ModifyApiGroupNetworkPolicy",
"cloudapi:ModifyInstanceAttribute"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳情
ACS-ApiGateway-BulkyModifyApiGroupNetworkPolicy詳情
模板內(nèi)容
FormatVersion: OOS-2019-06-01
Description:
en: Modify the https version of apigateway instance to support tls1.2
zh-cn: 修改API網(wǎng)關(guān)https版本支持tls1.2版本
name-en: ACS-ApiGateway-BulkyModifyApiGroupNetworkPolicy
name-zh-cn: 修改API網(wǎng)關(guān)https版本支持tls1.2版本
categories:
- security
Parameters:
regionId:
Label:
en: RegionId
zh-cn: 地域ID
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
groupId:
Label:
en: GroupId
zh-cn: API網(wǎng)關(guān)實(shí)例分組ID
Type: String
httpsPolicy:
Label:
en: HttpsPolicy
zh-cn: HTTPS安全策略
Type: String
AllowedValues:
- HTTPS1_1_TLS1_0
- HTTPS2_TLS1_0
- HTTPS2_TLS1_2
rateControl:
Label:
en: RateControl
zh-cn: 任務(wù)執(zhí)行的并發(fā)比率
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: describeApiGroups
Action: ACS::ExecuteAPI
Description:
en: Query the detailed instance type of apigateway
zh-cn: 查詢API網(wǎng)關(guān)實(shí)例類型
Properties:
Service: CLOUDAPI
API: DescribeApiGroups
Parameters:
RegionId: '{{ regionId }}'
GroupId: '{{ groupId }}'
Outputs:
instanceType:
Type: String
ValueSelector: .ApiGroupAttributes.ApiGroupAttribute[].InstanceType
instanceId:
Type: String
ValueSelector: .ApiGroupAttributes.ApiGroupAttribute[].InstanceId
- Name: checkInstanceType
Action: ACS::Choice
Description:
en: Identify the detailed instance type of apigateway
zh-cn: 判斷API網(wǎng)關(guān)實(shí)例類型
Properties:
DefaultTask: ACS::END
Choices:
- When:
Fn::Equals:
- VPC_SHARED
- '{{ describeApiGroups.instanceType }}'
NextTask: modifyApiGroupNetworkPolicyForShared
- When:
Fn::Equals:
- VPC_DEDICATED
- '{{ describeApiGroups.instanceType }}'
NextTask: modifyApiGroupNetworkPolicyForDedicated
- Name: modifyApiGroupNetworkPolicyForShared
Action: ACS::ExecuteAPI
OnSuccess: ACS::END
Description:
en: Modify the https version of shared apigateway instance to support tls1.2
zh-cn: 修改共享實(shí)例類型的API網(wǎng)關(guān)https版本支持tls1.2版本
Properties:
Service: CLOUDAPI
API: ModifyApiGroupNetworkPolicy
Parameters:
RegionId: '{{ regionId }}'
GroupId: '{{ groupId }}'
HttpsPolicy: '{{ httpsPolicy }}'
- Name: modifyApiGroupNetworkPolicyForDedicated
Action: ACS::ExecuteAPI
OnSuccess: ACS::END
Description:
en: Modify the https version of dedicated apigateway instance to support tls1.2
zh-cn: 修改專享實(shí)例類型的API網(wǎng)關(guān)https版本支持tls1.2版本
Properties:
Service: CLOUDAPI
API: ModifyInstanceAttribute
Parameters:
RegionId: '{{ regionId }}'
InstanceId: '{{ describeApiGroups.instanceId }}'
HttpsPolicy: '{{ httpsPolicy }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- httpsPolicy
Label:
default:
zh-cn: 設(shè)置參數(shù)
en: Configure Parameters
- Parameters:
- regionId
- groupId
Label:
default:
zh-cn: 選擇實(shí)例
en: Select Instance
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高級(jí)選項(xiàng)
en: Control Options
文檔內(nèi)容是否對(duì)您有幫助?