Skip to content

Commit 0a9d908

Browse files
add updates
1 parent 2879d66 commit 0a9d908

3 files changed

Lines changed: 109 additions & 29 deletions

File tree

src/Starshield/ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# 更新历史 #
2-
API版本:0.0.5
2+
API版本:0.0.8
33

44
| 发布时间 | 版本号 | 更新 | 说明 |
55
| ---------- | ------ | ------------- | -------------- |
6+
| 2023-03-01 | 0.0.8 | 调整数据概览、日志分析部分接口返回参数格式 ||
7+
| 2023-03-01 | 0.0.7 | 提供关闭BOT接口 ||
8+
| 2023-02-28 | 0.0.6 | 1.listDNSRecords修改字段:responses#ty_pe=>type<br/>2.listZones新增字段:response#cname_suffix ||
69
| 2023-02-20 | 0.0.5 | 提供数据概览、日志分析、日志服务接口 ||
710
| 2023-01-06 | 0.0.4 | 1.提供上传、编辑自定义SSL证书接口<br/>2.创建实例增加请求头参数<br/>3.完善文档描述 ||
811
| 2021-12-01 | 0.0.3 | 提供自动下单功能,提供根据订单号查询实例详情接口 ||

src/Starshield/StarshieldClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
* @method \GuzzleHttp\Promise\Promise describeBotStatusAsync(array $args = [])
105105
* @method \Jdcloud\Result openFirewallBot(array $args = [])
106106
* @method \GuzzleHttp\Promise\Promise openFirewallBotAsync(array $args = [])
107+
* @method \Jdcloud\Result closeFirewallBot(array $args = [])
108+
* @method \GuzzleHttp\Promise\Promise closeFirewallBotAsync(array $args = [])
107109
* @method \Jdcloud\Result describeInstances(array $args = [])
108110
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
109111
* @method \Jdcloud\Result createInstance(array $args = [])

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

Lines changed: 103 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,15 @@
389389
'input' => [ 'shape' => 'OpenFirewallBotRequestShape', ],
390390
'output' => [ 'shape' => 'OpenFirewallBotResponseShape', ],
391391
],
392+
'CloseFirewallBot' => [
393+
'name' => 'CloseFirewallBot',
394+
'http' => [
395+
'method' => 'DELETE',
396+
'requestUri' => '/v1/bot/{zoneId}',
397+
],
398+
'input' => [ 'shape' => 'CloseFirewallBotRequestShape', ],
399+
'output' => [ 'shape' => 'CloseFirewallBotResponseShape', ],
400+
],
392401
'DescribeInstances' => [
393402
'name' => 'DescribeInstances',
394403
'http' => [
@@ -2040,6 +2049,7 @@
20402049
'created_on' => [ 'type' => 'string', 'locationName' => 'created_on', ],
20412050
'proxiable' => [ 'type' => 'boolean', 'locationName' => 'proxiable', ],
20422051
'content' => [ 'type' => 'string', 'locationName' => 'content', ],
2052+
'type' => [ 'type' => 'string', 'locationName' => 'type', ],
20432053
'ty_pe' => [ 'type' => 'string', 'locationName' => 'ty_pe', ],
20442054
'id' => [ 'type' => 'string', 'locationName' => 'id', ],
20452055
'proxied' => [ 'type' => 'boolean', 'locationName' => 'proxied', ],
@@ -3173,6 +3183,7 @@
31733183
'name_servers' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
31743184
'original_registrar' => [ 'type' => 'string', 'locationName' => 'original_registrar', ],
31753185
'enableCname2Rs' => [ 'type' => 'integer', 'locationName' => 'enableCname2Rs', ],
3186+
'cname_suffix' => [ 'type' => 'string', 'locationName' => 'cname_suffix', ],
31763187
],
31773188
],
31783189
'Plan_pending' => [
@@ -3641,7 +3652,8 @@
36413652
'DashboardResultShape' => [
36423653
'type' => 'structure',
36433654
'members' => [
3644-
'zoneAnalytics' => [ 'shape' => 'ZoneAnalytics', ],
3655+
'totals' => [ 'shape' => 'Totals', ],
3656+
'timeseries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Totals', ], ],
36453657
],
36463658
],
36473659
'BpsZoneResponseShape' => [
@@ -3776,13 +3788,41 @@
37763788
'CacheTopKResultShape' => [
37773789
'type' => 'structure',
37783790
'members' => [
3779-
'topkAnalytics' => [ 'shape' => 'TopkAnalytics', ],
3791+
'countries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3792+
'topCountries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3793+
'topDeviceTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3794+
'topHosts' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3795+
'topPaths' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3796+
'topContentTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3797+
'topStatusCodes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3798+
'topIPs' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3799+
'topUserAgents' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3800+
'topHttpMethods' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3801+
'topASNs' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3802+
'topFirewallRuleIds' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3803+
'topFirewallRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3804+
'topWafRuleIds' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3805+
'topWafRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
37803806
],
37813807
],
37823808
'FirewallTopKResultShape' => [
37833809
'type' => 'structure',
37843810
'members' => [
3785-
'topkAnalytics' => [ 'shape' => 'TopkAnalytics', ],
3811+
'countries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3812+
'topCountries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3813+
'topDeviceTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3814+
'topHosts' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3815+
'topPaths' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3816+
'topContentTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3817+
'topStatusCodes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3818+
'topIPs' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3819+
'topUserAgents' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3820+
'topHttpMethods' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3821+
'topASNs' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3822+
'topFirewallRuleIds' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3823+
'topFirewallRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3824+
'topWafRuleIds' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3825+
'topWafRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
37863826
],
37873827
],
37883828
'FirewallTopKRequestShape' => [
@@ -3901,7 +3941,21 @@
39013941
'CacheBandwidthTopKResultShape' => [
39023942
'type' => 'structure',
39033943
'members' => [
3904-
'topkAnalytics' => [ 'shape' => 'TopkAnalytics', ],
3944+
'countries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3945+
'topCountries' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3946+
'topDeviceTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3947+
'topHosts' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3948+
'topPaths' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3949+
'topContentTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3950+
'topStatusCodes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3951+
'topIPs' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3952+
'topUserAgents' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3953+
'topHttpMethods' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3954+
'topASNs' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3955+
'topFirewallRuleIds' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3956+
'topFirewallRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3957+
'topWafRuleIds' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
3958+
'topWafRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Item', ], ],
39053959
],
39063960
],
39073961
'BpsZoneResultShape' => [
@@ -4431,6 +4485,38 @@
44314485
'id' => [ 'type' => 'string', 'locationName' => 'id', ],
44324486
],
44334487
],
4488+
'OpenFirewallBotRequestShape' => [
4489+
'type' => 'structure',
4490+
'members' => [
4491+
'zoneId' => [ 'type' => 'string', 'locationName' => 'zoneId', ],
4492+
],
4493+
],
4494+
'DescribeBotStatusResponseShape' => [
4495+
'type' => 'structure',
4496+
'members' => [
4497+
'result' => [ 'shape' => 'DescribeBotStatusResultShape', ],
4498+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
4499+
],
4500+
],
4501+
'CloseFirewallBotResponseShape' => [
4502+
'type' => 'structure',
4503+
'members' => [
4504+
'result' => [ 'shape' => 'CloseFirewallBotResultShape', ],
4505+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
4506+
],
4507+
],
4508+
'CloseFirewallBotResultShape' => [
4509+
'type' => 'structure',
4510+
'members' => [
4511+
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
4512+
],
4513+
],
4514+
'CloseFirewallBotRequestShape' => [
4515+
'type' => 'structure',
4516+
'members' => [
4517+
'zoneId' => [ 'type' => 'string', 'locationName' => 'zoneId', ],
4518+
],
4519+
],
44344520
'DeleteIndividualFirewallRulesRequestShape' => [
44354521
'type' => 'structure',
44364522
'members' => [
@@ -4471,25 +4557,12 @@
44714557
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
44724558
],
44734559
],
4474-
'OpenFirewallBotRequestShape' => [
4475-
'type' => 'structure',
4476-
'members' => [
4477-
'zoneId' => [ 'type' => 'string', 'locationName' => 'zoneId', ],
4478-
],
4479-
],
44804560
'DeleteIndividualFirewallRulesResultShape' => [
44814561
'type' => 'structure',
44824562
'members' => [
44834563
'data' => [ 'shape' => 'FirewallRule', ],
44844564
],
44854565
],
4486-
'DescribeBotStatusResponseShape' => [
4487-
'type' => 'structure',
4488-
'members' => [
4489-
'result' => [ 'shape' => 'DescribeBotStatusResultShape', ],
4490-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
4491-
],
4492-
],
44934566
'ListOfFirewallRulesRequestShape' => [
44944567
'type' => 'structure',
44954568
'members' => [
@@ -4786,13 +4859,13 @@
47864859
'InstanceTrafficSumResultShape' => [
47874860
'type' => 'structure',
47884861
'members' => [
4789-
'data' => [ 'shape' => 'CdnSingleMetric', ],
4862+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
47904863
],
47914864
],
47924865
'InstanceBandwidthAvgResultShape' => [
47934866
'type' => 'structure',
47944867
'members' => [
4795-
'data' => [ 'shape' => 'CdnSingleMetric', ],
4868+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
47964869
],
47974870
],
47984871
'InstanceRequestMultiDateHistogramRequestShape' => [
@@ -4807,7 +4880,7 @@
48074880
'InstanceRequestSumResultShape' => [
48084881
'type' => 'structure',
48094882
'members' => [
4810-
'data' => [ 'shape' => 'CdnSingleMetric', ],
4883+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
48114884
],
48124885
],
48134886
'InstanceRequestSumResponseShape' => [
@@ -4984,7 +5057,7 @@
49845057
'type' => 'structure',
49855058
'members' => [
49865059
'total' => [ 'type' => 'double', 'locationName' => 'total', ],
4987-
'dataList' => [ 'type' => 'list', 'member' => [ 'shape' => 'CdnZoneBandwidth', ], ],
5060+
'cdnZoneBandwidths' => [ 'type' => 'list', 'member' => [ 'shape' => 'CdnZoneBandwidth', ], ],
49885061
],
49895062
],
49905063
'InstanceRequestDateHistogramResultShape' => [
@@ -5014,7 +5087,8 @@
50145087
'InstanceBandwidthMaxResultShape' => [
50155088
'type' => 'structure',
50165089
'members' => [
5017-
'data' => [ 'shape' => 'CdnBandwidthMax', ],
5090+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
5091+
'timestamp' => [ 'type' => 'double', 'locationName' => 'timestamp', ],
50185092
],
50195093
],
50205094
'InstanceRequestDateHistogramRequestShape' => [
@@ -5051,7 +5125,7 @@
50515125
'InstanceBandwidthP95ResultShape' => [
50525126
'type' => 'structure',
50535127
'members' => [
5054-
'data' => [ 'shape' => 'CdnSingleMetric', ],
5128+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
50555129
],
50565130
],
50575131
'InstanceBandwidthMultiDateHistogramResponseShape' => [
@@ -5699,7 +5773,7 @@
56995773
'ZoneBandwidthAvgResultShape' => [
57005774
'type' => 'structure',
57015775
'members' => [
5702-
'data' => [ 'shape' => 'CdnSingleMetric', ],
5776+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
57035777
],
57045778
],
57055779
'ZoneBandwidthDateHistogramResponseShape' => [
@@ -5807,7 +5881,7 @@
58075881
'ZoneRequestSumResultShape' => [
58085882
'type' => 'structure',
58095883
'members' => [
5810-
'data' => [ 'shape' => 'CdnSingleMetric', ],
5884+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
58115885
],
58125886
],
58135887
'ZoneRequestMultiDateHistogramRequestShape' => [
@@ -5843,7 +5917,7 @@
58435917
'ZoneBandwidthP95ResultShape' => [
58445918
'type' => 'structure',
58455919
'members' => [
5846-
'data' => [ 'shape' => 'CdnSingleMetric', ],
5920+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
58475921
],
58485922
],
58495923
'ZoneBandwidthDateHistogramRequestShape' => [
@@ -5859,7 +5933,8 @@
58595933
'ZoneBandwidthMaxResultShape' => [
58605934
'type' => 'structure',
58615935
'members' => [
5862-
'data' => [ 'shape' => 'CdnBandwidthMax', ],
5936+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
5937+
'timestamp' => [ 'type' => 'double', 'locationName' => 'timestamp', ],
58635938
],
58645939
],
58655940
'ZoneRequestDateHistogramResponseShape' => [
@@ -5886,7 +5961,7 @@
58865961
'ZoneTrafficSumResultShape' => [
58875962
'type' => 'structure',
58885963
'members' => [
5889-
'data' => [ 'shape' => 'CdnSingleMetric', ],
5964+
'value' => [ 'type' => 'double', 'locationName' => 'value', ],
58905965
],
58915966
],
58925967
'ZoneBandwidthAvgRequestShape' => [

0 commit comments

Comments
 (0)