Skip to content

Commit e71b35a

Browse files
add updates
1 parent dea0e15 commit e71b35a

2 files changed

Lines changed: 141 additions & 37 deletions

File tree

src/Dh/ChangeLog.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# 更新历史 #
2-
API版本:1.1.0
32

4-
|发布时间|版本号|更新|说明|
5-
|---|---|---|---|
6-
|2022-04-18 |1.1.0 |新增接口 | * 增加专有宿主机、专有宿主机池基本操作
3+
API版本:1.1.3
4+
5+
| 发布时间 | 版本号 | 更新 |说明|
6+
|-------------|-------|--------|---|
7+
| 2023-01-17 | 1.1.3 | 新增字段 | * 专有宿主机支持标签和资源组
8+
| 2022-12-21 | 1.1.2 | 新增字段 | * 增加专有宿主机CPU拓扑
9+
| 2022-04-18 | 1.1.1 | 新增接口 | * 增加专有宿主机、专有宿主机池基本操作

src/data/dh/v1/api-2.json.php

Lines changed: 134 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,49 @@
103103
],
104104
],
105105
'shapes' => [
106+
'BindInfo' => [
107+
'type' => 'structure',
108+
'members' => [
109+
'resourceId' => [ 'type' => 'string', 'locationName' => 'resourceId', ],
110+
'resourceName' => [ 'type' => 'string', 'locationName' => 'resourceName', ],
111+
'remark' => [ 'type' => 'string', 'locationName' => 'remark', ],
112+
],
113+
],
114+
'Socket' => [
115+
'type' => 'structure',
116+
'members' => [
117+
'id' => [ 'type' => 'integer', 'locationName' => 'id', ],
118+
'cores' => [ 'type' => 'list', 'member' => [ 'shape' => 'Core', ], ],
119+
],
120+
],
121+
'Thread' => [
122+
'type' => 'structure',
123+
'members' => [
124+
'id' => [ 'type' => 'integer', 'locationName' => 'id', ],
125+
'alloced' => [ 'type' => 'boolean', 'locationName' => 'alloced', ],
126+
],
127+
],
128+
'Numa' => [
129+
'type' => 'structure',
130+
'members' => [
131+
'id' => [ 'type' => 'integer', 'locationName' => 'id', ],
132+
'cores' => [ 'type' => 'list', 'member' => [ 'shape' => 'Core', ], ],
133+
],
134+
],
135+
'Core' => [
136+
'type' => 'structure',
137+
'members' => [
138+
'id' => [ 'type' => 'integer', 'locationName' => 'id', ],
139+
'threads' => [ 'type' => 'list', 'member' => [ 'shape' => 'Thread', ], ],
140+
],
141+
],
142+
'CpuTopology' => [
143+
'type' => 'structure',
144+
'members' => [
145+
'sockets' => [ 'type' => 'list', 'member' => [ 'shape' => 'Socket', ], ],
146+
'numas' => [ 'type' => 'list', 'member' => [ 'shape' => 'Numa', ], ],
147+
],
148+
],
106149
'LocalDevice' => [
107150
'type' => 'structure',
108151
'members' => [
@@ -115,6 +158,13 @@
115158
'resourceId' => [ 'type' => 'string', 'locationName' => 'resourceId', ],
116159
],
117160
],
161+
'Tag' => [
162+
'type' => 'structure',
163+
'members' => [
164+
'key' => [ 'type' => 'string', 'locationName' => 'key', ],
165+
'value' => [ 'type' => 'string', 'locationName' => 'value', ],
166+
],
167+
],
118168
'Charge' => [
119169
'type' => 'structure',
120170
'members' => [
@@ -141,6 +191,9 @@
141191
'instanceIds' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
142192
'charge' => [ 'shape' => 'Charge', ],
143193
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
194+
'cpuTopology' => [ 'shape' => 'CpuTopology', ],
195+
'tags' => [ 'type' => 'list', 'member' => [ 'shape' => 'Tag', ], ],
196+
'resourceGroupId' => [ 'type' => 'string', 'locationName' => 'resourceGroupId', ],
144197
],
145198
],
146199
'ResourceCapacity' => [
@@ -173,6 +226,26 @@
173226
'dedicatedHost' => [ 'type' => 'list', 'member' => [ 'shape' => 'DedicatedHostBreif', ], ],
174227
],
175228
],
229+
'DedicatedHostInternal' => [
230+
'type' => 'structure',
231+
'members' => [
232+
'dedicatedHostId' => [ 'type' => 'string', 'locationName' => 'dedicatedHostId', ],
233+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
234+
'az' => [ 'type' => 'string', 'locationName' => 'az', ],
235+
'dedicatedHostType' => [ 'type' => 'string', 'locationName' => 'dedicatedHostType', ],
236+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
237+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
238+
'dedicatedPoolId' => [ 'type' => 'string', 'locationName' => 'dedicatedPoolId', ],
239+
'logicRack' => [ 'type' => 'integer', 'locationName' => 'logicRack', ],
240+
'supportedInstanceType' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
241+
'capacity' => [ 'shape' => 'ResourceCapacity', ],
242+
'instanceIds' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
243+
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
244+
'localDevices' => [ 'type' => 'list', 'member' => [ 'shape' => 'LocalDevice', ], ],
245+
'cpuTopology' => [ 'shape' => 'CpuTopology', ],
246+
'rack' => [ 'type' => 'string', 'locationName' => 'rack', ],
247+
],
248+
],
176249
'DedicatedHostSpec' => [
177250
'type' => 'structure',
178251
'members' => [
@@ -181,6 +254,8 @@
181254
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
182255
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
183256
'charge' => [ 'shape' => 'ChargeSpec', ],
257+
'userTags' => [ 'type' => 'list', 'member' => [ 'shape' => 'Tag', ], ],
258+
'resourceGroupId' => [ 'type' => 'string', 'locationName' => 'resourceGroupId', ],
184259
],
185260
],
186261
'ChargeSpec' => [
@@ -230,6 +305,15 @@
230305
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
231306
],
232307
],
308+
'InstanceInfo' => [
309+
'type' => 'structure',
310+
'members' => [
311+
'resourceId' => [ 'type' => 'string', 'locationName' => 'resourceId', ],
312+
'resourceName' => [ 'type' => 'string', 'locationName' => 'resourceName', ],
313+
'remark' => [ 'type' => 'string', 'locationName' => 'remark', ],
314+
'bind' => [ 'type' => 'list', 'member' => [ 'shape' => 'BindInfo', ], ],
315+
],
316+
],
233317
'Quota' => [
234318
'type' => 'structure',
235319
'members' => [
@@ -238,11 +322,60 @@
238322
'used' => [ 'type' => 'integer', 'locationName' => 'used', ],
239323
],
240324
],
325+
'TagFilter' => [
326+
'type' => 'structure',
327+
'members' => [
328+
'key' => [ 'type' => 'string', 'locationName' => 'key', ],
329+
'values' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
330+
],
331+
],
332+
'Status' => [
333+
'type' => 'structure',
334+
'members' => [
335+
'resourceId' => [ 'type' => 'string', 'locationName' => 'resourceId', ],
336+
'validity' => [ 'type' => 'boolean', 'locationName' => 'validity', ],
337+
],
338+
],
339+
'ModifyDedicatedHostAttributeResultShape' => [
340+
'type' => 'structure',
341+
'members' => [
342+
],
343+
],
344+
'ReleaseDedicatedHostResponseShape' => [
345+
'type' => 'structure',
346+
'members' => [
347+
],
348+
],
349+
'ReleaseDedicatedHostRequestShape' => [
350+
'type' => 'structure',
351+
'members' => [
352+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
353+
'dedicatedHostId' => [ 'type' => 'string', 'locationName' => 'dedicatedHostId', ],
354+
],
355+
],
356+
'AllocDedicatedHostsRequestShape' => [
357+
'type' => 'structure',
358+
'members' => [
359+
'dedicatedHostSpec' => [ 'shape' => 'DedicatedHostSpec', ],
360+
'deployPolicy' => [ 'type' => 'string', 'locationName' => 'deployPolicy', ],
361+
'maxCount' => [ 'type' => 'integer', 'locationName' => 'maxCount', ],
362+
'clientToken' => [ 'type' => 'string', 'locationName' => 'clientToken', ],
363+
'enableCpuTopology' => [ 'type' => 'boolean', 'locationName' => 'enableCpuTopology', ],
364+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
365+
],
366+
],
367+
'AllocDedicatedHostsResultShape' => [
368+
'type' => 'structure',
369+
'members' => [
370+
'dedicatedHostIds' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
371+
],
372+
],
241373
'DescribeDedicatedHostsRequestShape' => [
242374
'type' => 'structure',
243375
'members' => [
244376
'pageNumber' => [ 'type' => 'integer', 'locationName' => 'pageNumber', ],
245377
'pageSize' => [ 'type' => 'integer', 'locationName' => 'pageSize', ],
378+
'tags' => [ 'type' => 'list', 'member' => [ 'shape' => 'TagFilter', ], ],
246379
'filters' => [ 'type' => 'list', 'member' => [ 'shape' => 'Filter', ], ],
247380
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
248381
],
@@ -261,11 +394,6 @@
261394
'totalCount' => [ 'type' => 'double', 'locationName' => 'totalCount', ],
262395
],
263396
],
264-
'ModifyDedicatedHostAttributeResultShape' => [
265-
'type' => 'structure',
266-
'members' => [
267-
],
268-
],
269397
'ReleaseDedicatedHostResultShape' => [
270398
'type' => 'structure',
271399
'members' => [
@@ -285,35 +413,13 @@
285413
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
286414
],
287415
],
288-
'ReleaseDedicatedHostResponseShape' => [
289-
'type' => 'structure',
290-
'members' => [
291-
],
292-
],
293416
'DescribeDedicatedHostsResponseShape' => [
294417
'type' => 'structure',
295418
'members' => [
296419
'result' => [ 'shape' => 'DescribeDedicatedHostsResultShape', ],
297420
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
298421
],
299422
],
300-
'ReleaseDedicatedHostRequestShape' => [
301-
'type' => 'structure',
302-
'members' => [
303-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
304-
'dedicatedHostId' => [ 'type' => 'string', 'locationName' => 'dedicatedHostId', ],
305-
],
306-
],
307-
'AllocDedicatedHostsRequestShape' => [
308-
'type' => 'structure',
309-
'members' => [
310-
'dedicatedHostSpec' => [ 'shape' => 'DedicatedHostSpec', ],
311-
'deployPolicy' => [ 'type' => 'string', 'locationName' => 'deployPolicy', ],
312-
'maxCount' => [ 'type' => 'integer', 'locationName' => 'maxCount', ],
313-
'clientToken' => [ 'type' => 'string', 'locationName' => 'clientToken', ],
314-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
315-
],
316-
],
317423
'AllocDedicatedHostsResponseShape' => [
318424
'type' => 'structure',
319425
'members' => [
@@ -326,6 +432,7 @@
326432
'members' => [
327433
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
328434
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
435+
'enableCpuTopology' => [ 'type' => 'boolean', 'locationName' => 'enableCpuTopology', ],
329436
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
330437
'dedicatedHostId' => [ 'type' => 'string', 'locationName' => 'dedicatedHostId', ],
331438
],
@@ -335,12 +442,6 @@
335442
'members' => [
336443
],
337444
],
338-
'AllocDedicatedHostsResultShape' => [
339-
'type' => 'structure',
340-
'members' => [
341-
'dedicatedHostIds' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
342-
],
343-
],
344445
'Filter' => [
345446
'type' => 'structure',
346447
'members' => [

0 commit comments

Comments
 (0)