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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
|
<?php return [
'version' => '1.0',
'info' => [
'style' => 'RPC',
'product' => 'BPStudio',
'version' => '2020-07-10',
],
'directories' => [
[
'id' => 0,
'title' => '其它',
'type' => 'directory',
'children' => [
'GetDeployDetail',
],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'GetDeployDetail' => [
'summary' => '分页查询部署清单。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '104355',
'abilityTreeNodes' => [
'FEATUREbpstudioJLICAE',
],
],
'parameters' => [
[
'name' => 'AppId',
'in' => 'formData',
'schema' => [
'description' => '应用ID',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => '30GRJUY95TMYWBYJ',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'formData',
'schema' => [
'description' => '资源组ID',
'type' => 'string',
'required' => false,
'example' => 'rg-aekz44tg3bnpyba',
],
],
[
'name' => 'NextToken',
'in' => 'formData',
'schema' => [
'description' => '下一个分页',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '1',
],
],
[
'name' => 'MaxResults',
'in' => 'formData',
'schema' => [
'description' => '允许返回的最大结果数目',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '40',
],
],
[
'name' => 'ResourceId',
'in' => 'formData',
'schema' => [
'description' => '资源ID',
'type' => 'string',
'required' => false,
'example' => 'vsw-xxxxxxxxxxxx',
],
],
[
'name' => 'ResourceType',
'in' => 'formData',
'schema' => [
'description' => '产品CODE',
'type' => 'string',
'required' => false,
'example' => 'ecs',
],
],
[
'name' => 'ResourceName',
'in' => 'formData',
'schema' => [
'description' => '实例名称',
'type' => 'string',
'required' => false,
'example' => 'rgm-ecs',
],
],
[
'name' => 'RefId',
'in' => 'formData',
'schema' => [
'description' => '节点编号',
'type' => 'string',
'required' => false,
'example' => '1713597738',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => [
'description' => '返回信息',
'type' => 'string',
'example' => 'Success',
],
'RequestId' => [
'description' => '请求ID',
'type' => 'string',
'example' => 'E15B71B4-5D8F-5484-BC07-989E2987EE7C',
],
'Data' => [
'description' => '部署清单',
'type' => 'array',
'items' => [
'description' => '部署详情数组。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '当前操作状态',
'type' => 'string',
'example' => 'Revised',
],
'OrderIdList' => [
'description' => '订单id集合',
'type' => 'array',
'items' => [
'description' => '订单id集合',
'type' => 'string',
'example' => '[11396641]',
],
],
'AppId' => [
'description' => '应用ID',
'type' => 'string',
'example' => 'EQ4W772D0VJ33IV1',
],
'CreateTime' => [
'description' => '创建时间',
'type' => 'integer',
'format' => 'int64',
'example' => '1645516991000',
],
'ResourceList' => [
'description' => '资源列表',
'type' => 'array',
'items' => [
'description' => '资源列表',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '阶段状态'."\n"
.'FINISH 运行完成'."\n"
.'RUNNING 运行中'."\n"
.'CANCELED 已取消'."\n"
.'WAITING 等待中'."\n"
.'INIT 未开始'."\n"
.'SUCCESS 成功',
'type' => 'string',
'example' => 'Finish',
],
'ResourceType' => [
'description' => '资源类型',
'type' => 'string',
'example' => 'vpc',
],
'ModifiedTime' => [
'description' => '修改时间',
'type' => 'integer',
'format' => 'int64',
'example' => '1714031840000',
],
'Remark' => [
'description' => '备注',
'type' => 'string',
'example' => '{\\"Description\\":\\"\\",\\"ClassicLinkEnabled\\":false,\\"ResourceGroupId\\":\\"rg-acfm4mlwqjalz7a\\",\\"SecondaryCidrBlocks\\":[],\\"CidrBlock\\":\\"192.168.0.0/16\\",\\"UserCidrs\\":[],\\"NetworkAclNum\\":\\"0\\",\\"VRouterId\\":\\"vrt-m5ek7vcyld0x5ym8m9hix\\",\\"OwnerId\\":1986207497633020,\\"AssociatedCens\\":[],\\"id\\":\\"vpc-m5e3c9nz4lj19byan9m2g\\",\\"CloudResources\\":[{\\"ResourceCount\\":1,\\"ResourceType\\":\\"VSwitch\\"},{\\"ResourceCount\\":1,\\"ResourceType\\":\\"VRouter\\"},{\\"ResourceCount\\":1,\\"ResourceType\\":\\"RouteTable\\"}],\\"Tags\\":[],\\"Status\\":\\"Available\\",\\"IsDefault\\":false,\\"RequestId\\":\\"494646FB-14C0-5B4C-9684-B6EFBF4DF01C\\",\\"SupportIpv4Gateway\\":false,\\"Ipv4GatewayId\\":\\"\\",\\"VSwitchIds\\":[\\"vsw-m5egl9wtppiadysjwlgb1\\"],\\"VpcId\\":\\"vpc-m5e3c9nz4lj19byan9m2g\\",\\"CreationTime\\":\\"2024-04-25T07:56:59Z\\",\\"VpcName\\":\\"vpc\\",\\"refId\\":\\"1714031764_0\\",\\"RegionId\\":\\"cn-qingdao\\",\\"Ipv6CidrBlock\\":\\"\\",\\"Ipv6CidrBlocks\\":[]}',
],
'NodeName' => [
'description' => '节点名称',
'type' => 'string',
'example' => 'vpc',
],
'ChargeType' => [
'description' => '付费类型',
'type' => 'string',
'example' => 'Free',
],
'BuyDuration' => [
'description' => '购买类型',
'type' => 'string',
'example' => '1=新购,0=已保有',
],
'ResourceId' => [
'description' => '资源 ID',
'type' => 'string',
'example' => 'i-2zehnzxqixu1pywsfbx1',
],
'ResourceCode' => [
'description' => '资源Code',
'type' => 'string',
'example' => 'ecs',
],
'RefId' => [
'description' => '节点编号',
'type' => 'integer',
'format' => 'int64',
'example' => '1716049421',
],
'MonitorURL' => [
'description' => '监控地址',
'type' => 'string',
'example' => 'https://cloudmonitor.console.aliyun.com/?#/generalcharts/product=vpc&group=&type=&return®ion=cn-hangzhou&dimension=instanceId:vpc-bp1n6uc5jqxtff2euhnx5',
],
'ExecutionStrategy' => [
'description' => '部署策略',
'type' => 'string',
'example' => 'OpenApi',
],
'Operation' => [
'description' => '本次操作类型,是修改产品的操作类型,有的操作类型是通用,有的是单独使用。'."\n"
.'下面为ecs的相关编配示例:'."\n"
.'- ecs的名称:rename'."\n"
.'- ecs的规格:modifyInstanceType'."\n"
.'- ecs的启动:modifyInstanceType'."\n"
.'- ecs的停止:modifyInstanceType'."\n"
.'- ecs的重启:modifyInstanceType'."\n"
.'- ecs添加标签:addTags'."\n"
.'- ecs的删除:ecsDelete'."\n"
.'- ecs的付费类型:modifyPayType',
'type' => 'object',
'properties' => [
'Name' => [
'description' => '操作名称',
'type' => 'string',
'example' => 'ecsDelete',
],
'Operations' => [
'description' => '操作描述信息'."\n"
."\n",
'type' => 'object',
'example' => '{"mode":"sync","display":"修改实例名","show":{},"attributes":{"instance_name":{"controlType":"Input","display":"VSWITCH名","format":"^[\\\\u4e00-\\\\u9fa5A-Za-z]{1}[\\\\u4e00-\\\\u9fa5\\\\w\\\\-\\\\_]{1,127}$","orderBy":0,"tip":"长度为2~128个字符,以英文大小字母或中文开头,可包含数字、下划线(_)和连字符(-)。","required":true}},"type":"window","properties":{"instanceId":"ResourceId","regionId":"region","appId":"appId"}}',
],
],
],
'ResourceTimeList' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'id' => [
'type' => 'integer',
'format' => 'int64',
],
'BizId' => [
'type' => 'string',
],
'CreationStartTime' => [
'type' => 'integer',
'format' => 'int64',
],
'CreationEndTime' => [
'type' => 'integer',
'format' => 'int64',
],
],
],
],
'ExpiredTime' => [
'type' => 'integer',
'format' => 'int64',
],
],
],
],
'Error' => [
'description' => '错误消息',
'type' => 'string',
'example' => 'OperationNotSupport.SubscriptionCommodityCanNotDelete',
],
'FailStatus' => [
'description' => '部署失败是否回滚',
'type' => 'integer',
'format' => 'int32',
'example' => '1, 否; 2, 是',
],
'TerraformScriptUrl' => [
'description' => 'TF脚本下载地址',
'type' => 'string',
'example' => 'https://cadt-studio-publish.oss-cn-hangzhou.aliyuncs.com/1986207497633020/app_EXN4FNUR12M35KJM.tf?Expires=1716967763&OSSAccessKeyId=*******nw4rvYAweFuQc3&Signature=%2********lYROqJLNvyA8g6qD9U%3D',
],
'ExecutionTime' => [
'description' => '任务执行时间',
'type' => 'integer',
'format' => 'int32',
'example' => '3010,单位ms',
],
'PdfUrl' => [
'description' => '部署报告地址',
'type' => 'string',
'example' => 'https://cadt-studio-publish.oss-cn-hangzhou.aliyuncs.com/1986207497633020/deployReport-EXN4FNUR12M35KJM.pdf?Expires=1716967763&OSSAccessKeyId=********nw4rvYAweFuQc3&Signature=*******fKo6164wykT9jBOsSGeQ%3D',
],
'ResourceGroupId' => [
'description' => '资源组ID',
'type' => 'string',
'example' => 'rg-aekzhfgmw4e6fwq',
],
'CurrentProcess' => [
'title' => '当前流程: IMPORT/DEPLOY',
'description' => '当前流程',
'type' => 'string',
'example' => 'DEPLOY',
],
'DeployPercent' => [
'description' => '部署进度',
'type' => 'number',
'format' => 'double',
'example' => '0',
],
'DeployingNodeList' => [
'description' => '部署中的节点类型',
'type' => 'array',
'items' => [
'description' => '部署中的节点类型',
'type' => 'object',
'example' => '[{"nodeNameList":"vpc","nodeType":"vpc"},{"nodeNameList":"vswitch","nodeType":"vswitch"}]',
],
],
'DeployedNodeList' => [
'description' => '部署结束的节点类型',
'type' => 'array',
'items' => [
'description' => '部署结束的节点类型',
'type' => 'object',
'example' => '[{"nodeNameList":"vpc","nodeType":"vpc"},{"nodeNameList":"vswitch","nodeType":"vswitch"}]',
],
],
'DeletingNodeList' => [
'description' => '释放中的节点类型',
'type' => 'array',
'items' => [
'description' => '释放中的节点类型',
'type' => 'object',
'example' => '[{"nodeNameList":"vpc","nodeType":"vpc"},{"nodeNameList":"vswitch","nodeType":"vswitch"}]',
],
],
],
],
],
'Code' => [
'description' => '返回码',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'TotalCount' => [
'description' => '总记录数',
'type' => 'integer',
'format' => 'int64',
'example' => '10',
],
'NextToken' => [
'description' => '下一个分页',
'type' => 'integer',
'format' => 'int64',
'example' => '0',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"E15B71B4-5D8F-5484-BC07-989E2987EE7C\\",\\n \\"Data\\": [\\n {\\n \\"Status\\": \\"Revised\\",\\n \\"OrderIdList\\": [\\n \\"[11396641]\\"\\n ],\\n \\"AppId\\": \\"EQ4W772D0VJ33IV1\\",\\n \\"CreateTime\\": 1645516991000,\\n \\"ResourceList\\": [\\n {\\n \\"Status\\": \\"Finish\\",\\n \\"ResourceType\\": \\"vpc\\",\\n \\"ModifiedTime\\": 1714031840000,\\n \\"Remark\\": \\"{\\\\\\\\\\\\\\"Description\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"ClassicLinkEnabled\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"ResourceGroupId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"rg-acfm4mlwqjalz7a\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"SecondaryCidrBlocks\\\\\\\\\\\\\\":[],\\\\\\\\\\\\\\"CidrBlock\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"192.168.0.0/16\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"UserCidrs\\\\\\\\\\\\\\":[],\\\\\\\\\\\\\\"NetworkAclNum\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"VRouterId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"vrt-m5ek7vcyld0x5ym8m9hix\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"OwnerId\\\\\\\\\\\\\\":1986207497633020,\\\\\\\\\\\\\\"AssociatedCens\\\\\\\\\\\\\\":[],\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"vpc-m5e3c9nz4lj19byan9m2g\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"CloudResources\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"ResourceCount\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"ResourceType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"VSwitch\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"ResourceCount\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"ResourceType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"VRouter\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"ResourceCount\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"ResourceType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"RouteTable\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"Tags\\\\\\\\\\\\\\":[],\\\\\\\\\\\\\\"Status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Available\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"IsDefault\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"RequestId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"494646FB-14C0-5B4C-9684-B6EFBF4DF01C\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"SupportIpv4Gateway\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"Ipv4GatewayId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"VSwitchIds\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"vsw-m5egl9wtppiadysjwlgb1\\\\\\\\\\\\\\"],\\\\\\\\\\\\\\"VpcId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"vpc-m5e3c9nz4lj19byan9m2g\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"CreationTime\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"2024-04-25T07:56:59Z\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"VpcName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"vpc\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"refId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1714031764_0\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"RegionId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"cn-qingdao\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Ipv6CidrBlock\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Ipv6CidrBlocks\\\\\\\\\\\\\\":[]}\\",\\n \\"NodeName\\": \\"vpc\\",\\n \\"ChargeType\\": \\"Free\\",\\n \\"BuyDuration\\": \\"1=新购,0=已保有\\",\\n \\"ResourceId\\": \\"i-2zehnzxqixu1pywsfbx1\\",\\n \\"ResourceCode\\": \\"ecs\\",\\n \\"RefId\\": 1716049421,\\n \\"MonitorURL\\": \\"https://cloudmonitor.console.aliyun.com/?#/generalcharts/product=vpc&group=&type=&return®ion=cn-hangzhou&dimension=instanceId:vpc-bp1n6uc5jqxtff2euhnx5\\",\\n \\"ExecutionStrategy\\": \\"OpenApi\\",\\n \\"Operation\\": {\\n \\"Name\\": \\"ecsDelete\\",\\n \\"Operations\\": {\\n \\"mode\\": \\"sync\\",\\n \\"display\\": \\"修改实例名\\",\\n \\"show\\": {},\\n \\"attributes\\": {\\n \\"instance_name\\": {\\n \\"controlType\\": \\"Input\\",\\n \\"display\\": \\"VSWITCH名\\",\\n \\"format\\": \\"^[\\\\\\\\u4e00-\\\\\\\\u9fa5A-Za-z]{1}[\\\\\\\\u4e00-\\\\\\\\u9fa5\\\\\\\\w\\\\\\\\-\\\\\\\\_]{1,127}$\\",\\n \\"orderBy\\": 0,\\n \\"tip\\": \\"长度为2~128个字符,以英文大小字母或中文开头,可包含数字、下划线(_)和连字符(-)。\\",\\n \\"required\\": true\\n }\\n },\\n \\"type\\": \\"window\\",\\n \\"properties\\": {\\n \\"instanceId\\": \\"ResourceId\\",\\n \\"regionId\\": \\"region\\",\\n \\"appId\\": \\"appId\\"\\n }\\n }\\n },\\n \\"ResourceTimeList\\": [\\n {\\n \\"id\\": 0,\\n \\"BizId\\": \\"\\",\\n \\"CreationStartTime\\": 0,\\n \\"CreationEndTime\\": 0\\n }\\n ],\\n \\"ExpiredTime\\": 0\\n }\\n ],\\n \\"Error\\": \\"OperationNotSupport.SubscriptionCommodityCanNotDelete\\",\\n \\"FailStatus\\": 0,\\n \\"TerraformScriptUrl\\": \\"https://cadt-studio-publish.oss-cn-hangzhou.aliyuncs.com/1986207497633020/app_EXN4FNUR12M35KJM.tf?Expires=1716967763&OSSAccessKeyId=*******nw4rvYAweFuQc3&Signature=%2********lYROqJLNvyA8g6qD9U%3D\\",\\n \\"ExecutionTime\\": 0,\\n \\"PdfUrl\\": \\"https://cadt-studio-publish.oss-cn-hangzhou.aliyuncs.com/1986207497633020/deployReport-EXN4FNUR12M35KJM.pdf?Expires=1716967763&OSSAccessKeyId=********nw4rvYAweFuQc3&Signature=*******fKo6164wykT9jBOsSGeQ%3D\\",\\n \\"ResourceGroupId\\": \\"rg-aekzhfgmw4e6fwq\\",\\n \\"CurrentProcess\\": \\"DEPLOY\\",\\n \\"DeployPercent\\": 0,\\n \\"DeployingNodeList\\": [\\n [\\n {\\n \\"nodeNameList\\": \\"vpc\\",\\n \\"nodeType\\": \\"vpc\\"\\n },\\n {\\n \\"nodeNameList\\": \\"vswitch\\",\\n \\"nodeType\\": \\"vswitch\\"\\n }\\n ]\\n ],\\n \\"DeployedNodeList\\": [\\n [\\n {\\n \\"nodeNameList\\": \\"vpc\\",\\n \\"nodeType\\": \\"vpc\\"\\n },\\n {\\n \\"nodeNameList\\": \\"vswitch\\",\\n \\"nodeType\\": \\"vswitch\\"\\n }\\n ]\\n ],\\n \\"DeletingNodeList\\": [\\n [\\n {\\n \\"nodeNameList\\": \\"vpc\\",\\n \\"nodeType\\": \\"vpc\\"\\n },\\n {\\n \\"nodeNameList\\": \\"vswitch\\",\\n \\"nodeType\\": \\"vswitch\\"\\n }\\n ]\\n ]\\n }\\n ],\\n \\"Code\\": 200,\\n \\"TotalCount\\": 10,\\n \\"NextToken\\": 0\\n}","type":"json"}]',
'title' => '分页查询部署清单',
'description' => '分页查询部署清单。',
],
],
'endpoints' => [
[
'regionId' => 'cn-hangzhou',
'endpoint' => 'bpstudio.cn-hangzhou.aliyuncs.com',
],
[
'regionId' => 'ap-southeast-1',
'endpoint' => 'bpstudio.ap-southeast-1.aliyuncs.com',
],
],
];
|