ksyun-sdk-node 1.0.5 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +12 -0
- package/dist/base/BaseClient.js +133 -52
- package/dist/index.js +9 -12
- package/dist/lib/fetch.js +4 -5
- package/dist/lib/sign.js +31 -33
- package/dist/lib/signautreV4.js +167 -0
- package/dist/service/Actiontrail/v20190401/index.js +34 -37
- package/dist/service/Aicp/v20240612/index.js +511 -0
- package/dist/service/Bill/v20180601/index.js +49 -88
- package/dist/service/Bill/v20220601/index.js +64 -0
- package/dist/service/Bill_union/v20200101/index.js +151 -77
- package/dist/service/Bill_union/v20221222/index.js +142 -0
- package/dist/service/Bill_union/v20250801/index.js +66 -0
- package/dist/service/Bws/v20160304/index.js +111 -94
- package/dist/service/Cdn/v20160901/index.js +89 -0
- package/dist/service/Cdn/v20200630/index.js +410 -0
- package/dist/service/Cdn/v20200901/index.js +162 -0
- package/dist/service/Cdn/v20211201/index.js +45 -0
- package/dist/service/Cdn/v20250503/index.js +71 -0
- package/dist/service/Cen/v20160304/index.js +460 -0
- package/dist/service/Clickhouse/v20210101/index.js +546 -0
- package/dist/service/Ebs/v20160304/index.js +265 -268
- package/dist/service/Eip/v20160304/index.js +104 -107
- package/dist/service/Epc/v20151101/index.js +1735 -784
- package/dist/service/Iam/v20151101/index.js +872 -711
- package/dist/service/Iam/v20240513/index.js +47 -0
- package/dist/service/Iam/v20240703/index.js +44 -0
- package/dist/service/Kad/v20161122/index.js +84 -87
- package/dist/service/Kce/v20180314/index.js +320 -0
- package/dist/service/Kce/v20190806/index.js +482 -0
- package/dist/service/Kce/v20201231/index.js +63 -0
- package/dist/service/Kcf/v20211215/index.js +203 -0
- package/dist/service/Kcm/v20160304/index.js +120 -0
- package/dist/service/Kcrs/v20211109/index.js +851 -0
- package/dist/service/Kcs/v20160701/index.js +1106 -0
- package/dist/service/Kcs/v20170401/index.js +81 -0
- package/dist/service/Kead/v20200101/index.js +28 -31
- package/dist/service/Kec/v20160304/index.js +1695 -1466
- package/dist/service/Kes/v20201215/index.js +171 -0
- package/dist/service/Ket/v20170101/index.js +141 -0
- package/dist/service/Kkms/v20160304/index.js +167 -0
- package/dist/service/Klog/v20200731/index.js +331 -0
- package/dist/service/Kls/v20170101/index.js +194 -0
- package/dist/service/Kmr/v20210902/index.js +422 -0
- package/dist/service/Kmr/v20231231/index.js +154 -0
- package/dist/service/Kmr/v20240814/index.js +370 -0
- package/dist/service/Krds/v20160701/index.js +1302 -0
- package/dist/service/Krds/v20200825/index.js +174 -0
- package/dist/service/Memcached/v20180627/index.js +249 -0
- package/dist/service/Mongodb/v20170101/index.js +516 -501
- package/dist/service/Monitor/v20100525/index.js +70 -0
- package/dist/service/Monitor/v20181114/index.js +49 -0
- package/dist/service/Monitor/v20210101/index.js +216 -0
- package/dist/service/Monitor/v20220101/index.js +58 -0
- package/dist/service/Monitor/v20250101/index.js +71 -0
- package/dist/service/Rabbitmq/v20191017/index.js +242 -0
- package/dist/service/Resourcemanager/v20210320/index.js +113 -116
- package/dist/service/Sks/v20151101/index.js +72 -75
- package/dist/service/Slb/v20160304/index.js +1299 -790
- package/dist/service/Sts/v20151101/index.js +26 -29
- package/dist/service/Tagv2/v20200901/index.js +174 -0
- package/dist/service/Tidb/v20210520/index.js +363 -0
- package/dist/service/Trade/v20200114/index.js +23 -26
- package/dist/service/Trade/v20200831/index.js +25 -28
- package/dist/service/Vpc/v20160304/index.js +2015 -1045
- package/dist/service/Waf/v20200707/index.js +248 -0
- package/example/iam.js +2 -1
- package/example/res.js +2 -1
- package/package.json +1 -1
- package/src/base/BaseClient.js +131 -35
- package/src/lib/signautreV4.js +166 -0
- package/src/service/Actiontrail/v20190401/index.js +42 -42
- package/src/service/Aicp/v20240612/index.js +503 -0
- package/src/service/Bill/v20180601/index.js +61 -102
- package/src/service/Bill/v20220601/index.js +56 -0
- package/src/service/Bill_union/v20200101/index.js +181 -109
- package/src/service/Bill_union/v20221222/index.js +134 -0
- package/src/service/Bill_union/v20250801/index.js +58 -0
- package/src/service/Bws/v20160304/index.js +139 -119
- package/src/service/Cdn/v20160901/index.js +81 -0
- package/src/service/Cdn/v20200630/index.js +402 -0
- package/src/service/Cdn/v20200901/index.js +154 -0
- package/src/service/Cdn/v20211201/index.js +37 -0
- package/src/service/Cdn/v20250503/index.js +63 -0
- package/src/service/Cen/v20160304/index.js +452 -0
- package/src/service/Clickhouse/v20210101/index.js +538 -0
- package/src/service/Ebs/v20160304/index.js +365 -368
- package/src/service/Eip/v20160304/index.js +135 -136
- package/src/service/Epc/v20151101/index.js +1984 -1033
- package/src/service/Iam/v20151101/index.js +1155 -993
- package/src/service/Iam/v20240513/index.js +39 -0
- package/src/service/Iam/v20240703/index.js +36 -0
- package/src/service/Kad/v20161122/index.js +112 -112
- package/src/service/Kce/v20180314/index.js +312 -0
- package/src/service/Kce/v20190806/index.js +474 -0
- package/src/service/Kce/v20201231/index.js +55 -0
- package/src/service/Kcf/v20211215/index.js +195 -0
- package/src/service/Kcm/v20160304/index.js +112 -0
- package/src/service/Kcrs/v20211109/index.js +843 -0
- package/src/service/Kcs/v20160701/index.js +1098 -0
- package/src/service/Kcs/v20170401/index.js +73 -0
- package/src/service/Kead/v20200101/index.js +36 -36
- package/src/service/Kec/v20160304/index.js +2061 -1838
- package/src/service/Kes/v20201215/index.js +163 -0
- package/src/service/Ket/v20170101/index.js +133 -0
- package/src/service/Kkms/v20160304/index.js +159 -0
- package/src/service/Klog/v20200731/index.js +323 -0
- package/src/service/Kls/v20170101/index.js +186 -0
- package/src/service/Kmr/v20210902/index.js +414 -0
- package/src/service/Kmr/v20231231/index.js +146 -0
- package/src/service/Kmr/v20240814/index.js +362 -0
- package/src/service/Krds/v20160701/index.js +1294 -0
- package/src/service/Krds/v20200825/index.js +166 -0
- package/src/service/Memcached/v20180627/index.js +241 -0
- package/src/service/Mongodb/v20170101/index.js +672 -654
- package/src/service/Monitor/v20100525/index.js +62 -0
- package/src/service/Monitor/v20181114/index.js +41 -0
- package/src/service/Monitor/v20210101/index.js +208 -0
- package/src/service/Monitor/v20220101/index.js +50 -0
- package/src/service/Monitor/v20250101/index.js +63 -0
- package/src/service/Rabbitmq/v20191017/index.js +234 -0
- package/src/service/Resourcemanager/v20210320/index.js +157 -158
- package/src/service/Sks/v20151101/index.js +95 -96
- package/src/service/Slb/v20160304/index.js +1471 -959
- package/src/service/Sts/v20151101/index.js +34 -34
- package/src/service/Tagv2/v20200901/index.js +166 -0
- package/src/service/Tidb/v20210520/index.js +355 -0
- package/src/service/Trade/v20200114/index.js +31 -31
- package/src/service/Trade/v20200831/index.js +33 -33
- package/src/service/Vpc/v20160304/index.js +2404 -1432
- package/src/service/Waf/v20200707/index.js +240 -0
- package/src/service/Bill_union/v20211209/index.js +0 -35
- package/src/service/Slb/v20171210/index.js +0 -39
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "monitor.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "monitor",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
GetMetricStatistics: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "GET",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2010-05-25",
|
|
25
|
+
Action: "GetMetricStatistics",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/json",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {
|
|
32
|
+
Namespace: "String",
|
|
33
|
+
InstanceID: "String",
|
|
34
|
+
MetricName: "String",
|
|
35
|
+
StartTime: "String",
|
|
36
|
+
EndTime: "String",
|
|
37
|
+
Aggregate: "String",
|
|
38
|
+
Period: "String",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
ListMetrics: {
|
|
42
|
+
url: "/",
|
|
43
|
+
method: "GET",
|
|
44
|
+
config: {
|
|
45
|
+
query: {
|
|
46
|
+
Version: "2010-05-25",
|
|
47
|
+
Action: "ListMetrics",
|
|
48
|
+
},
|
|
49
|
+
headers: {
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
paramsType: {
|
|
54
|
+
Namespace: "String",
|
|
55
|
+
InstanceID: "String",
|
|
56
|
+
MetricName: "String",
|
|
57
|
+
PageIndex: "Int",
|
|
58
|
+
PageSize: "Int",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "monitor.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "monitor",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
GetMetricStatisticsBatch: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "POST",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2018-11-14",
|
|
25
|
+
Action: "GetMetricStatisticsBatch",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/json",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {
|
|
32
|
+
Namespace: "String",
|
|
33
|
+
StartTime: "String",
|
|
34
|
+
EndTime: "String",
|
|
35
|
+
Aggregate: "Array",
|
|
36
|
+
Period: "Int",
|
|
37
|
+
Metrics: "Array",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "monitor.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "monitor",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
ListAlarmPolicy: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "GET",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2021-01-01",
|
|
25
|
+
Action: "ListAlarmPolicy",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/json",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {
|
|
32
|
+
PageIndex: "Int",
|
|
33
|
+
PageSize: "Int",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
DescribeAlarmPolicy: {
|
|
37
|
+
url: "/",
|
|
38
|
+
method: "GET",
|
|
39
|
+
config: {
|
|
40
|
+
query: {
|
|
41
|
+
Version: "2021-01-01",
|
|
42
|
+
Action: "DescribeAlarmPolicy",
|
|
43
|
+
},
|
|
44
|
+
headers: {
|
|
45
|
+
"Content-Type": "application/json",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
paramsType: {
|
|
49
|
+
PolicyId: "Int",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
DescribePolicyObject: {
|
|
53
|
+
url: "/",
|
|
54
|
+
method: "GET",
|
|
55
|
+
config: {
|
|
56
|
+
query: {
|
|
57
|
+
Version: "2021-01-01",
|
|
58
|
+
Action: "DescribePolicyObject",
|
|
59
|
+
},
|
|
60
|
+
headers: {
|
|
61
|
+
"Content-Type": "application/json",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
paramsType: {
|
|
65
|
+
PolicyId: "Int",
|
|
66
|
+
PageIndex: "Int",
|
|
67
|
+
PageSize: "Int",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
DescribeAlarmReceives: {
|
|
71
|
+
url: "/",
|
|
72
|
+
method: "GET",
|
|
73
|
+
config: {
|
|
74
|
+
query: {
|
|
75
|
+
Version: "2021-01-01",
|
|
76
|
+
Action: "DescribeAlarmReceives",
|
|
77
|
+
},
|
|
78
|
+
headers: {
|
|
79
|
+
"Content-Type": "application/json",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
paramsType: {
|
|
83
|
+
PolicyId: "Int",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
AddAlarmReceives: {
|
|
87
|
+
url: "/",
|
|
88
|
+
method: "POST",
|
|
89
|
+
config: {
|
|
90
|
+
query: {
|
|
91
|
+
Version: "2021-01-01",
|
|
92
|
+
Action: "AddAlarmReceives",
|
|
93
|
+
},
|
|
94
|
+
headers: {
|
|
95
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
paramsType: {
|
|
99
|
+
PolicyId: "Int",
|
|
100
|
+
ContactFlag: "Int",
|
|
101
|
+
ContactWay: "Int",
|
|
102
|
+
ContactId: "Array",
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
DeleteAlarmReceives: {
|
|
106
|
+
url: "/",
|
|
107
|
+
method: "POST",
|
|
108
|
+
config: {
|
|
109
|
+
query: {
|
|
110
|
+
Version: "2021-01-01",
|
|
111
|
+
Action: "DeleteAlarmReceives",
|
|
112
|
+
},
|
|
113
|
+
headers: {
|
|
114
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
paramsType: {
|
|
118
|
+
PolicyId: "Int",
|
|
119
|
+
ContactFlag: "Int",
|
|
120
|
+
ContactId: "Array",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
GetUserGroup: {
|
|
124
|
+
url: "/",
|
|
125
|
+
method: "GET",
|
|
126
|
+
config: {
|
|
127
|
+
query: {
|
|
128
|
+
Version: "2021-01-01",
|
|
129
|
+
Action: "GetUserGroup",
|
|
130
|
+
},
|
|
131
|
+
headers: {
|
|
132
|
+
"Content-Type": "application/json",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
paramsType: {},
|
|
136
|
+
},
|
|
137
|
+
GetAlertUser: {
|
|
138
|
+
url: "/",
|
|
139
|
+
method: "GET",
|
|
140
|
+
config: {
|
|
141
|
+
query: {
|
|
142
|
+
Version: "2021-01-01",
|
|
143
|
+
Action: "GetAlertUser",
|
|
144
|
+
},
|
|
145
|
+
headers: {
|
|
146
|
+
"Content-Type": "application/json",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
paramsType: {
|
|
150
|
+
UserGrpId: "Filter",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
UpdateAlertUserStatus: {
|
|
154
|
+
url: "/",
|
|
155
|
+
method: "POST",
|
|
156
|
+
config: {
|
|
157
|
+
query: {
|
|
158
|
+
Version: "2021-01-01",
|
|
159
|
+
Action: "UpdateAlertUserStatus",
|
|
160
|
+
},
|
|
161
|
+
headers: {
|
|
162
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
paramsType: {
|
|
166
|
+
UserId: "Array",
|
|
167
|
+
UserStatus: "Int",
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
DescribeSysEventGroupList: {
|
|
171
|
+
url: "/",
|
|
172
|
+
method: "GET",
|
|
173
|
+
config: {
|
|
174
|
+
query: {
|
|
175
|
+
Version: "2021-01-01",
|
|
176
|
+
Action: "DescribeSysEventGroupList",
|
|
177
|
+
},
|
|
178
|
+
headers: {
|
|
179
|
+
"Content-Type": "application/json",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
paramsType: {
|
|
183
|
+
Namespace: "String",
|
|
184
|
+
StartTime: "Int",
|
|
185
|
+
EndTime: "Int",
|
|
186
|
+
EventName: "String",
|
|
187
|
+
InstanceId: "Array",
|
|
188
|
+
Order: "Boolean",
|
|
189
|
+
PageIndex: "Int",
|
|
190
|
+
PageSize: "Int",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
DescribeMonitorProductList: {
|
|
194
|
+
url: "/",
|
|
195
|
+
method: "GET",
|
|
196
|
+
config: {
|
|
197
|
+
query: {
|
|
198
|
+
Version: "2021-01-01",
|
|
199
|
+
Action: "DescribeMonitorProductList",
|
|
200
|
+
},
|
|
201
|
+
headers: {
|
|
202
|
+
"Content-Type": "application/json",
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
paramsType: {},
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "monitor.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "monitor",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
CreateAlarmPolicy: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "POST",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2022-01-01",
|
|
25
|
+
Action: "CreateAlarmPolicy",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {},
|
|
32
|
+
},
|
|
33
|
+
DeleteAlarmPolicy: {
|
|
34
|
+
url: "/",
|
|
35
|
+
method: "POST",
|
|
36
|
+
config: {
|
|
37
|
+
query: {
|
|
38
|
+
Version: "2022-01-01",
|
|
39
|
+
Action: "DeleteAlarmPolicy",
|
|
40
|
+
},
|
|
41
|
+
headers: {
|
|
42
|
+
"Content-Type": "application/json",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
paramsType: {
|
|
46
|
+
PolicyIds: "Array",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "monitor.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "monitor",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
DescribeAlertingResources: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "GET",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2025-01-01",
|
|
25
|
+
Action: "DescribeAlertingResources",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/json",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {
|
|
32
|
+
Namespace: "String",
|
|
33
|
+
StartTime: "Int",
|
|
34
|
+
EndTime: "Int",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
DescribeSystemEventAttributes: {
|
|
38
|
+
url: "/",
|
|
39
|
+
method: "GET",
|
|
40
|
+
config: {
|
|
41
|
+
query: {
|
|
42
|
+
Version: "2025-01-01",
|
|
43
|
+
Action: "DescribeSystemEventAttributes",
|
|
44
|
+
},
|
|
45
|
+
headers: {
|
|
46
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
paramsType: {
|
|
50
|
+
StartTime: "Int",
|
|
51
|
+
EndTime: "Int",
|
|
52
|
+
Namespace: "String",
|
|
53
|
+
EventType: "String",
|
|
54
|
+
EventName: "String",
|
|
55
|
+
Level: "String",
|
|
56
|
+
Status: "String",
|
|
57
|
+
SearchKeywords: "String",
|
|
58
|
+
PageIndex: "Int",
|
|
59
|
+
PageSize: "Int",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "rabbitmq.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "rabbitmq",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
CreateInstance: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "POST",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2019-10-17",
|
|
25
|
+
Action: "CreateInstance",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {
|
|
32
|
+
ProjectId: "String",
|
|
33
|
+
InstanceName: "String",
|
|
34
|
+
InstancePassword: "String",
|
|
35
|
+
VpcId: "String",
|
|
36
|
+
SubnetId: "String",
|
|
37
|
+
EngineVersion: "String",
|
|
38
|
+
BillType: "Int",
|
|
39
|
+
Duration: "Int",
|
|
40
|
+
Mode: "String",
|
|
41
|
+
InstanceType: "String",
|
|
42
|
+
SsdDisk: "Int",
|
|
43
|
+
NodeNum: "Int",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
DeleteInstance: {
|
|
47
|
+
url: "/",
|
|
48
|
+
method: "POST",
|
|
49
|
+
config: {
|
|
50
|
+
query: {
|
|
51
|
+
Version: "2019-10-17",
|
|
52
|
+
Action: "DeleteInstance",
|
|
53
|
+
},
|
|
54
|
+
headers: {
|
|
55
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
paramsType: {
|
|
59
|
+
InstanceId: "String",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
DescribeInstances: {
|
|
63
|
+
url: "/",
|
|
64
|
+
method: "GET",
|
|
65
|
+
config: {
|
|
66
|
+
query: {
|
|
67
|
+
Version: "2019-10-17",
|
|
68
|
+
Action: "DescribeInstances",
|
|
69
|
+
},
|
|
70
|
+
headers: {
|
|
71
|
+
"Content-Type": "application/json",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
paramsType: {
|
|
75
|
+
InstanceId: "String",
|
|
76
|
+
InstanceName: "String",
|
|
77
|
+
VpcId: "String",
|
|
78
|
+
SubnetId: "String",
|
|
79
|
+
Offset: "Int",
|
|
80
|
+
Limit: "Int",
|
|
81
|
+
OrderBy: "String",
|
|
82
|
+
ProjectId: "String",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
DescribeInstance: {
|
|
86
|
+
url: "/",
|
|
87
|
+
method: "GET",
|
|
88
|
+
config: {
|
|
89
|
+
query: {
|
|
90
|
+
Version: "2019-10-17",
|
|
91
|
+
Action: "DescribeInstance",
|
|
92
|
+
},
|
|
93
|
+
headers: {
|
|
94
|
+
"Content-Type": "application/json",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
paramsType: {
|
|
98
|
+
InstanceId: "String",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
DescribeInstanceNodes: {
|
|
102
|
+
url: "/",
|
|
103
|
+
method: "GET",
|
|
104
|
+
config: {
|
|
105
|
+
query: {
|
|
106
|
+
Version: "2019-10-17",
|
|
107
|
+
Action: "DescribeInstanceNodes",
|
|
108
|
+
},
|
|
109
|
+
headers: {
|
|
110
|
+
"Content-Type": "application/json",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
paramsType: {
|
|
114
|
+
InstanceId: "String",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
DescribeValidRegion: {
|
|
118
|
+
url: "/",
|
|
119
|
+
method: "GET",
|
|
120
|
+
config: {
|
|
121
|
+
query: {
|
|
122
|
+
Version: "2019-10-17",
|
|
123
|
+
Action: "DescribeValidRegion",
|
|
124
|
+
},
|
|
125
|
+
headers: {
|
|
126
|
+
"Content-Type": "application/json",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
paramsType: {
|
|
130
|
+
Action: "String",
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
DescribeRegions: {
|
|
134
|
+
url: "/",
|
|
135
|
+
method: "GET",
|
|
136
|
+
config: {
|
|
137
|
+
query: {
|
|
138
|
+
Version: "2019-10-17",
|
|
139
|
+
Action: "DescribeRegions",
|
|
140
|
+
},
|
|
141
|
+
headers: {
|
|
142
|
+
"Content-Type": "application/json",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
paramsType: {
|
|
146
|
+
Action: "String",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
DescribeSecurityGroupRules: {
|
|
150
|
+
url: "/",
|
|
151
|
+
method: "GET",
|
|
152
|
+
config: {
|
|
153
|
+
query: {
|
|
154
|
+
Version: "2019-10-17",
|
|
155
|
+
Action: "DescribeSecurityGroupRules",
|
|
156
|
+
},
|
|
157
|
+
headers: {
|
|
158
|
+
"Content-Type": "application/json",
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
paramsType: {
|
|
162
|
+
InstanceId: "String",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
AddSecurityGroupRule: {
|
|
166
|
+
url: "/",
|
|
167
|
+
method: "POST",
|
|
168
|
+
config: {
|
|
169
|
+
query: {
|
|
170
|
+
Version: "2019-10-17",
|
|
171
|
+
Action: "AddSecurityGroupRule",
|
|
172
|
+
},
|
|
173
|
+
headers: {
|
|
174
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
paramsType: {
|
|
178
|
+
InstanceId: "String",
|
|
179
|
+
Cidrs: "String",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
DeleteSecurityGroupRules: {
|
|
183
|
+
url: "/",
|
|
184
|
+
method: "POST",
|
|
185
|
+
config: {
|
|
186
|
+
query: {
|
|
187
|
+
Version: "2019-10-17",
|
|
188
|
+
Action: "DeleteSecurityGroupRules",
|
|
189
|
+
},
|
|
190
|
+
headers: {
|
|
191
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
paramsType: {
|
|
195
|
+
InstanceId: "String",
|
|
196
|
+
Cidrs: "String",
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
ResetPassword: {
|
|
200
|
+
url: "/",
|
|
201
|
+
method: "POST",
|
|
202
|
+
config: {
|
|
203
|
+
query: {
|
|
204
|
+
Version: "2019-10-17",
|
|
205
|
+
Action: "ResetPassword",
|
|
206
|
+
},
|
|
207
|
+
headers: {
|
|
208
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
paramsType: {
|
|
212
|
+
InstanceId: "String",
|
|
213
|
+
InstancePassword: "String",
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
Rename: {
|
|
217
|
+
url: "/",
|
|
218
|
+
method: "POST",
|
|
219
|
+
config: {
|
|
220
|
+
query: {
|
|
221
|
+
Version: "2019-10-17",
|
|
222
|
+
Action: "Rename",
|
|
223
|
+
},
|
|
224
|
+
headers: {
|
|
225
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
paramsType: {
|
|
229
|
+
InstanceId: "String",
|
|
230
|
+
InstanceName: "String",
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
};
|