-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS-ApiGateway-BulkyModifyApi.yml
180 lines (180 loc) · 5.4 KB
/
ACS-ApiGateway-BulkyModifyApi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
FormatVersion: OOS-2019-06-01
Description:
en: Modify API to private
zh-cn: 修改API为私有类型
name-en: ACS-ApiGateway-BulkyModifyApi
name-zh-cn: 修改API为私有类型
categories:
- security
Parameters:
regionId:
Label:
en: RegionId
zh-cn: 地域ID
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceId:
Label:
en: InstanceId
zh-cn: API网关实例ID
Type: String
rateControl:
Label:
en: RateControl
zh-cn: 任务执行的并发比率
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: describeApi
Action: 'ACS::ExecuteAPI'
Description:
en: Query parameters
zh-cn: 查询API参数信息
Properties:
Service: CLOUDAPI
API: DescribeApi
Parameters:
RegionId: '{{ regionId }}'
ApiId: '{{ instanceId }}'
Outputs:
ApiName:
Type: String
ValueSelector: .ApiName
RequestConfig:
Type: String
ValueSelector: .RequestConfig
ServiceConfig:
Type: String
ValueSelector: .ServiceConfig
GroupId:
Type: String
ValueSelector: .GroupId
Description:
Type: String
ValueSelector: .Description
AuthType:
Type: String
ValueSelector: .AuthType
ForceNonceCheck:
Type: Boolean
ValueSelector: .ForceNonceCheck
RequestParameters:
Type: String
ValueSelector: .RequestParameters.RequestParameter
ServiceParameters:
Type: String
ValueSelector: .ServiceParameters.ServiceParameter
ServiceParametersMap:
Type: String
ValueSelector: .ServiceParametersMap.ServiceParameterMap
ResultType:
Type: String
ValueSelector: .ResultType
ResultSample:
Type: String
ValueSelector: .ResultSample
FailResultSample:
Type: String
ValueSelector: .FailResultSample
ErrorCodeSamples:
Type: String
ValueSelector: .ErrorCodeSamples.ErrorCodeSample
AllowSignatureMethod:
Type: String
ValueSelector: .AllowSignatureMethod
WebSocketApiType:
Type: String
ValueSelector: .WebSocketApiType
DisableInternet:
Type: Boolean
ValueSelector: .DisableInternet
AppCodeAuthType:
Type: String
ValueSelector: .AppCodeAuthType
SystemParameters:
Type: String
ValueSelector: .SystemParameters.SystemParameter
ConstantParameters:
Type: String
ValueSelector: .ConstantParameters.ConstantParameter
ResultDescriptions:
Type: String
ValueSelector: .ResultDescriptions.ResultDescription
OpenIdConnectConfig:
Type: String
ValueSelector: .OpenIdConnectConfig
ResultBodyModel:
Type: String
ValueSelector: .ResultBodyModel
BackendId:
Type: String
ValueSelector: .BackendConfig.BackendId
BackendEnable:
Type: Boolean
ValueSelector: .BackendEnable
- Name: modifyApi
Action: ACS::ExecuteAPI
Description:
en: Modify API to private
zh-cn: 修改API为私有类型
Properties:
Service: CLOUDAPI
API: ModifyApi
Parameters:
RegionId: '{{ regionId }}'
ApiId: '{{ instanceId }}'
ApiName: '{{ describeApi.ApiName }}'
RequestConfig: '{{ describeApi.RequestConfig }}'
ServiceConfig: '{{ describeApi.ServiceConfig }}'
Visibility: PRIVATE
GroupId: '{{ describeApi.GroupId }}'
Description: '{{ describeApi.Description }}'
AuthType: '{{ describeApi.AuthType }}'
RequestParameters: '{{ describeApi.RequestParameters }}'
ServiceParameters: '{{ describeApi.ServiceParameters }}'
ServiceParametersMap: '{{ describeApi.ServiceParametersMap }}'
ResultType: '{{ describeApi.ResultType }}'
ResultSample: '{{ describeApi.ResultSample }}'
FailResultSample: '{{ describeApi.FailResultSample }}'
ErrorCodeSamples: '{{ describeApi.ErrorCodeSamples }}'
AllowSignatureMethod: '{{ describeApi.AllowSignatureMethod }}'
WebSocketApiType: '{{ describeApi.WebSocketApiType }}'
ForceNonceCheck: '{{ describeApi.ForceNonceCheck }}'
DisableInternet: '{{ describeApi.DisableInternet }}'
AppCodeAuthType: '{{ describeApi.AppCodeAuthType }}'
SystemParameters: '{{ describeApi.SystemParameters }}'
ConstantParameters: '{{ describeApi.ConstantParameters }}'
ResultDescriptions: '{{ describeApi.ResultDescriptions }}'
OpenIdConnectConfig: '{{ describeApi.OpenIdConnectConfig }}'
ResultBodyModel: '{{ describeApi.ResultBodyModel }}'
BackendId: '{{ describeApi.BackendId }}'
BackendEnable: '{{ describeApi.BackendEnable }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- instanceId
Label:
default:
zh-cn: 选择实例
en: Select instance
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高级选项
en: Control Options