auth0 5.6.0 → 5.8.0
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/dist/cjs/management/api/requests/requests.d.ts +41 -2
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +43 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +152 -0
- package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/logStreams/client/Client.d.ts +465 -300
- package/dist/cjs/management/api/resources/logStreams/client/Client.js +465 -300
- package/dist/cjs/management/api/types/types.d.ts +200 -37
- package/dist/cjs/management/api/types/types.js +104 -46
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/api/requests/requests.d.mts +41 -2
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +43 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +152 -0
- package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/logStreams/client/Client.d.mts +465 -300
- package/dist/esm/management/api/resources/logStreams/client/Client.mjs +465 -300
- package/dist/esm/management/api/types/types.d.mts +200 -37
- package/dist/esm/management/api/types/types.mjs +94 -36
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +673 -323
|
@@ -20,72 +20,77 @@ export class LogStreamsClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieve details on
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
23
|
+
* Retrieve details on [log streams](https://auth0.com/docs/logs/streams).
|
|
24
|
+
*
|
|
25
|
+
* **Sample Response**
|
|
26
|
+
*
|
|
27
|
+
* ```json
|
|
28
|
+
* [{
|
|
29
|
+
* "id": "string",
|
|
30
|
+
* "name": "string",
|
|
31
|
+
* "type": "eventbridge",
|
|
32
|
+
* "status": "active|paused|suspended",
|
|
33
|
+
* "sink": {
|
|
34
|
+
* "awsAccountId": "string",
|
|
35
|
+
* "awsRegion": "string",
|
|
36
|
+
* "awsPartnerEventSource": "string"
|
|
37
|
+
* }
|
|
34
38
|
* }, {
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
39
|
+
* "id": "string",
|
|
40
|
+
* "name": "string",
|
|
41
|
+
* "type": "http",
|
|
42
|
+
* "status": "active|paused|suspended",
|
|
43
|
+
* "sink": {
|
|
44
|
+
* "httpContentFormat": "JSONLINES|JSONARRAY",
|
|
45
|
+
* "httpContentType": "string",
|
|
46
|
+
* "httpEndpoint": "string",
|
|
47
|
+
* "httpAuthorization": "string"
|
|
48
|
+
* }
|
|
45
49
|
* },
|
|
46
50
|
* {
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
51
|
+
* "id": "string",
|
|
52
|
+
* "name": "string",
|
|
53
|
+
* "type": "eventgrid",
|
|
54
|
+
* "status": "active|paused|suspended",
|
|
55
|
+
* "sink": {
|
|
56
|
+
* "azureSubscriptionId": "string",
|
|
57
|
+
* "azureResourceGroup": "string",
|
|
58
|
+
* "azureRegion": "string",
|
|
59
|
+
* "azurePartnerTopic": "string"
|
|
60
|
+
* }
|
|
57
61
|
* },
|
|
58
62
|
* {
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
63
|
+
* "id": "string",
|
|
64
|
+
* "name": "string",
|
|
65
|
+
* "type": "splunk",
|
|
66
|
+
* "status": "active|paused|suspended",
|
|
67
|
+
* "sink": {
|
|
68
|
+
* "splunkDomain": "string",
|
|
69
|
+
* "splunkToken": "string",
|
|
70
|
+
* "splunkPort": "string",
|
|
71
|
+
* "splunkSecure": "boolean"
|
|
72
|
+
* }
|
|
69
73
|
* },
|
|
70
74
|
* {
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
75
|
+
* "id": "string",
|
|
76
|
+
* "name": "string",
|
|
77
|
+
* "type": "sumo",
|
|
78
|
+
* "status": "active|paused|suspended",
|
|
79
|
+
* "sink": {
|
|
80
|
+
* "sumoSourceAddress": "string"
|
|
81
|
+
* }
|
|
78
82
|
* },
|
|
79
83
|
* {
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* }]
|
|
84
|
+
* "id": "string",
|
|
85
|
+
* "name": "string",
|
|
86
|
+
* "type": "datadog",
|
|
87
|
+
* "status": "active|paused|suspended",
|
|
88
|
+
* "sink": {
|
|
89
|
+
* "datadogRegion": "string",
|
|
90
|
+
* "datadogApiKey": "string"
|
|
91
|
+
* }
|
|
92
|
+
* }]
|
|
93
|
+
* ```
|
|
89
94
|
*
|
|
90
95
|
* @param {LogStreamsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
96
|
*
|
|
@@ -142,131 +147,202 @@ export class LogStreamsClient {
|
|
|
142
147
|
}
|
|
143
148
|
/**
|
|
144
149
|
* Create a log stream.
|
|
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
|
-
* Request
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
150
|
+
*
|
|
151
|
+
* **Log Stream Types**
|
|
152
|
+
*
|
|
153
|
+
* The `type` of log stream being created determines the properties required in the `sink` payload.
|
|
154
|
+
*
|
|
155
|
+
* **HTTP Stream**
|
|
156
|
+
*
|
|
157
|
+
* For an `http` Stream, the `sink` properties are listed in the payload below.
|
|
158
|
+
*
|
|
159
|
+
* **Request:**
|
|
160
|
+
* ```json
|
|
161
|
+
* {
|
|
162
|
+
* "name": "string",
|
|
163
|
+
* "type": "http",
|
|
164
|
+
* "sink": {
|
|
165
|
+
* "httpEndpoint": "string",
|
|
166
|
+
* "httpContentType": "string",
|
|
167
|
+
* "httpContentFormat": "JSONLINES|JSONARRAY",
|
|
168
|
+
* "httpAuthorization": "string"
|
|
169
|
+
* }
|
|
170
|
+
* }
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* **Response:**
|
|
174
|
+
* ```json
|
|
175
|
+
* {
|
|
176
|
+
* "id": "string",
|
|
177
|
+
* "name": "string",
|
|
178
|
+
* "type": "http",
|
|
179
|
+
* "status": "active",
|
|
180
|
+
* "sink": {
|
|
181
|
+
* "httpEndpoint": "string",
|
|
182
|
+
* "httpContentType": "string",
|
|
183
|
+
* "httpContentFormat": "JSONLINES|JSONARRAY",
|
|
184
|
+
* "httpAuthorization": "string"
|
|
185
|
+
* }
|
|
186
|
+
* }
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* **Amazon EventBridge Stream**
|
|
190
|
+
*
|
|
191
|
+
* For an `eventbridge` Stream, the `sink` properties are listed in the payload below.
|
|
192
|
+
*
|
|
193
|
+
* **Request:**
|
|
194
|
+
* ```json
|
|
195
|
+
* {
|
|
196
|
+
* "name": "string",
|
|
197
|
+
* "type": "eventbridge",
|
|
198
|
+
* "sink": {
|
|
199
|
+
* "awsRegion": "string",
|
|
200
|
+
* "awsAccountId": "string"
|
|
201
|
+
* }
|
|
202
|
+
* }
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* The response will include an additional field `awsPartnerEventSource` in the `sink`:
|
|
206
|
+
*
|
|
207
|
+
* **Response:**
|
|
208
|
+
* ```json
|
|
209
|
+
* {
|
|
210
|
+
* "id": "string",
|
|
211
|
+
* "name": "string",
|
|
212
|
+
* "type": "eventbridge",
|
|
213
|
+
* "status": "active",
|
|
214
|
+
* "sink": {
|
|
215
|
+
* "awsAccountId": "string",
|
|
216
|
+
* "awsRegion": "string",
|
|
217
|
+
* "awsPartnerEventSource": "string"
|
|
218
|
+
* }
|
|
219
|
+
* }
|
|
220
|
+
* ```
|
|
221
|
+
*
|
|
222
|
+
* **Azure Event Grid Stream**
|
|
223
|
+
*
|
|
224
|
+
* For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below.
|
|
225
|
+
*
|
|
226
|
+
* **Request:**
|
|
227
|
+
* ```json
|
|
228
|
+
* {
|
|
229
|
+
* "name": "string",
|
|
230
|
+
* "type": "eventgrid",
|
|
231
|
+
* "sink": {
|
|
232
|
+
* "azureSubscriptionId": "string",
|
|
233
|
+
* "azureResourceGroup": "string",
|
|
234
|
+
* "azureRegion": "string"
|
|
235
|
+
* }
|
|
236
|
+
* }
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
239
|
+
* **Response:**
|
|
240
|
+
* ```json
|
|
241
|
+
* {
|
|
242
|
+
* "id": "string",
|
|
243
|
+
* "name": "string",
|
|
244
|
+
* "type": "http",
|
|
245
|
+
* "status": "active",
|
|
246
|
+
* "sink": {
|
|
247
|
+
* "azureSubscriptionId": "string",
|
|
248
|
+
* "azureResourceGroup": "string",
|
|
249
|
+
* "azureRegion": "string",
|
|
250
|
+
* "azurePartnerTopic": "string"
|
|
251
|
+
* }
|
|
252
|
+
* }
|
|
253
|
+
* ```
|
|
254
|
+
*
|
|
255
|
+
* **Datadog Stream**
|
|
256
|
+
*
|
|
257
|
+
* For a `Datadog` Stream, the `sink` properties are listed in the payload below.
|
|
258
|
+
*
|
|
259
|
+
* **Request:**
|
|
260
|
+
* ```json
|
|
261
|
+
* {
|
|
262
|
+
* "name": "string",
|
|
263
|
+
* "type": "datadog",
|
|
264
|
+
* "sink": {
|
|
265
|
+
* "datadogRegion": "string",
|
|
266
|
+
* "datadogApiKey": "string"
|
|
267
|
+
* }
|
|
268
|
+
* }
|
|
269
|
+
* ```
|
|
270
|
+
*
|
|
271
|
+
* **Response:**
|
|
272
|
+
* ```json
|
|
273
|
+
* {
|
|
274
|
+
* "id": "string",
|
|
275
|
+
* "name": "string",
|
|
276
|
+
* "type": "datadog",
|
|
277
|
+
* "status": "active",
|
|
278
|
+
* "sink": {
|
|
279
|
+
* "datadogRegion": "string",
|
|
280
|
+
* "datadogApiKey": "string"
|
|
281
|
+
* }
|
|
282
|
+
* }
|
|
283
|
+
* ```
|
|
284
|
+
*
|
|
285
|
+
* **Splunk Stream**
|
|
286
|
+
*
|
|
287
|
+
* For a `Splunk` Stream, the `sink` properties are listed in the payload below.
|
|
288
|
+
*
|
|
289
|
+
* **Request:**
|
|
290
|
+
* ```json
|
|
291
|
+
* {
|
|
292
|
+
* "name": "string",
|
|
293
|
+
* "type": "splunk",
|
|
294
|
+
* "sink": {
|
|
295
|
+
* "splunkDomain": "string",
|
|
296
|
+
* "splunkToken": "string",
|
|
297
|
+
* "splunkPort": "string",
|
|
298
|
+
* "splunkSecure": "boolean"
|
|
299
|
+
* }
|
|
300
|
+
* }
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* **Response:**
|
|
304
|
+
* ```json
|
|
305
|
+
* {
|
|
306
|
+
* "id": "string",
|
|
307
|
+
* "name": "string",
|
|
308
|
+
* "type": "splunk",
|
|
309
|
+
* "status": "active",
|
|
310
|
+
* "sink": {
|
|
311
|
+
* "splunkDomain": "string",
|
|
312
|
+
* "splunkToken": "string",
|
|
313
|
+
* "splunkPort": "string",
|
|
314
|
+
* "splunkSecure": "boolean"
|
|
315
|
+
* }
|
|
316
|
+
* }
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* **Sumo Logic Stream**
|
|
320
|
+
*
|
|
321
|
+
* For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below.
|
|
322
|
+
*
|
|
323
|
+
* **Request:**
|
|
324
|
+
* ```json
|
|
325
|
+
* {
|
|
326
|
+
* "name": "string",
|
|
327
|
+
* "type": "sumo",
|
|
328
|
+
* "sink": {
|
|
329
|
+
* "sumoSourceAddress": "string"
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
332
|
+
* ```
|
|
333
|
+
*
|
|
334
|
+
* **Response:**
|
|
335
|
+
* ```json
|
|
336
|
+
* {
|
|
337
|
+
* "id": "string",
|
|
338
|
+
* "name": "string",
|
|
339
|
+
* "type": "sumo",
|
|
340
|
+
* "status": "active",
|
|
341
|
+
* "sink": {
|
|
342
|
+
* "sumoSourceAddress": "string"
|
|
343
|
+
* }
|
|
344
|
+
* }
|
|
345
|
+
* ```
|
|
270
346
|
*
|
|
271
347
|
* @param {Management.CreateLogStreamRequestContent} request
|
|
272
348
|
* @param {LogStreamsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -338,107 +414,157 @@ export class LogStreamsClient {
|
|
|
338
414
|
}
|
|
339
415
|
/**
|
|
340
416
|
* Retrieve a log stream configuration and status.
|
|
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
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
417
|
+
*
|
|
418
|
+
* **Sample responses**
|
|
419
|
+
*
|
|
420
|
+
* **Amazon EventBridge Log Stream**
|
|
421
|
+
*
|
|
422
|
+
* ```json
|
|
423
|
+
* {
|
|
424
|
+
* "id": "string",
|
|
425
|
+
* "name": "string",
|
|
426
|
+
* "type": "eventbridge",
|
|
427
|
+
* "status": "active|paused|suspended",
|
|
428
|
+
* "sink": {
|
|
429
|
+
* "awsAccountId": "string",
|
|
430
|
+
* "awsRegion": "string",
|
|
431
|
+
* "awsPartnerEventSource": "string"
|
|
432
|
+
* }
|
|
433
|
+
* }
|
|
434
|
+
* ```
|
|
435
|
+
*
|
|
436
|
+
* **HTTP Log Stream**
|
|
437
|
+
*
|
|
438
|
+
* ```json
|
|
439
|
+
* {
|
|
440
|
+
* "id": "string",
|
|
441
|
+
* "name": "string",
|
|
442
|
+
* "type": "http",
|
|
443
|
+
* "status": "active|paused|suspended",
|
|
444
|
+
* "sink": {
|
|
445
|
+
* "httpContentFormat": "JSONLINES|JSONARRAY",
|
|
446
|
+
* "httpContentType": "string",
|
|
447
|
+
* "httpEndpoint": "string",
|
|
448
|
+
* "httpAuthorization": "string"
|
|
449
|
+
* }
|
|
450
|
+
* }
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* **Datadog Log Stream**
|
|
454
|
+
*
|
|
455
|
+
* ```json
|
|
456
|
+
* {
|
|
457
|
+
* "id": "string",
|
|
458
|
+
* "name": "string",
|
|
459
|
+
* "type": "datadog",
|
|
460
|
+
* "status": "active|paused|suspended",
|
|
461
|
+
* "sink": {
|
|
462
|
+
* "datadogRegion": "string",
|
|
463
|
+
* "datadogApiKey": "string"
|
|
464
|
+
* }
|
|
465
|
+
* }
|
|
466
|
+
* ```
|
|
467
|
+
*
|
|
468
|
+
* **Mixpanel**
|
|
469
|
+
*
|
|
470
|
+
* **Request:**
|
|
471
|
+
*
|
|
472
|
+
* ```json
|
|
473
|
+
* {
|
|
474
|
+
* "name": "string",
|
|
475
|
+
* "type": "mixpanel",
|
|
476
|
+
* "sink": {
|
|
477
|
+
* "mixpanelRegion": "string",
|
|
478
|
+
* "mixpanelProjectId": "string",
|
|
479
|
+
* "mixpanelServiceAccountUsername": "string",
|
|
480
|
+
* "mixpanelServiceAccountPassword": "string"
|
|
481
|
+
* }
|
|
482
|
+
* }
|
|
483
|
+
* ```
|
|
484
|
+
*
|
|
485
|
+
* **Response:**
|
|
486
|
+
*
|
|
487
|
+
* ```json
|
|
488
|
+
* {
|
|
489
|
+
* "id": "string",
|
|
490
|
+
* "name": "string",
|
|
491
|
+
* "type": "mixpanel",
|
|
492
|
+
* "status": "active",
|
|
493
|
+
* "sink": {
|
|
494
|
+
* "mixpanelRegion": "string",
|
|
495
|
+
* "mixpanelProjectId": "string",
|
|
496
|
+
* "mixpanelServiceAccountUsername": "string",
|
|
497
|
+
* "mixpanelServiceAccountPassword": "string"
|
|
498
|
+
* }
|
|
499
|
+
* }
|
|
500
|
+
* ```
|
|
501
|
+
*
|
|
502
|
+
* **Segment**
|
|
503
|
+
*
|
|
504
|
+
* **Request:**
|
|
505
|
+
*
|
|
506
|
+
* ```json
|
|
507
|
+
* {
|
|
508
|
+
* "name": "string",
|
|
509
|
+
* "type": "segment",
|
|
510
|
+
* "sink": {
|
|
511
|
+
* "segmentWriteKey": "string"
|
|
512
|
+
* }
|
|
513
|
+
* }
|
|
514
|
+
* ```
|
|
515
|
+
*
|
|
516
|
+
* **Response:**
|
|
517
|
+
*
|
|
518
|
+
* ```json
|
|
519
|
+
* {
|
|
520
|
+
* "id": "string",
|
|
521
|
+
* "name": "string",
|
|
522
|
+
* "type": "segment",
|
|
523
|
+
* "status": "active",
|
|
524
|
+
* "sink": {
|
|
525
|
+
* "segmentWriteKey": "string"
|
|
526
|
+
* }
|
|
527
|
+
* }
|
|
528
|
+
* ```
|
|
529
|
+
*
|
|
530
|
+
* **Splunk Log Stream**
|
|
531
|
+
*
|
|
532
|
+
* ```json
|
|
533
|
+
* {
|
|
534
|
+
* "id": "string",
|
|
535
|
+
* "name": "string",
|
|
536
|
+
* "type": "splunk",
|
|
537
|
+
* "status": "active|paused|suspended",
|
|
538
|
+
* "sink": {
|
|
539
|
+
* "splunkDomain": "string",
|
|
540
|
+
* "splunkToken": "string",
|
|
541
|
+
* "splunkPort": "string",
|
|
542
|
+
* "splunkSecure": "boolean"
|
|
543
|
+
* }
|
|
544
|
+
* }
|
|
545
|
+
* ```
|
|
546
|
+
*
|
|
547
|
+
* **Sumo Logic Log Stream**
|
|
548
|
+
*
|
|
549
|
+
* ```json
|
|
550
|
+
* {
|
|
551
|
+
* "id": "string",
|
|
552
|
+
* "name": "string",
|
|
553
|
+
* "type": "sumo",
|
|
554
|
+
* "status": "active|paused|suspended",
|
|
555
|
+
* "sink": {
|
|
556
|
+
* "sumoSourceAddress": "string"
|
|
557
|
+
* }
|
|
558
|
+
* }
|
|
559
|
+
* ```
|
|
560
|
+
*
|
|
561
|
+
* **Status**
|
|
562
|
+
*
|
|
563
|
+
* The `status` of a log stream maybe any of the following:
|
|
564
|
+
*
|
|
565
|
+
* 1. `active` - Stream is currently enabled.
|
|
566
|
+
* 2. `paused` - Stream is currently user disabled and will not attempt log delivery.
|
|
567
|
+
* 3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery.
|
|
442
568
|
*
|
|
443
569
|
* @param {string} id - The id of the log stream to get
|
|
444
570
|
* @param {LogStreamsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -559,40 +685,79 @@ export class LogStreamsClient {
|
|
|
559
685
|
}
|
|
560
686
|
/**
|
|
561
687
|
* Update a log stream.
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
688
|
+
*
|
|
689
|
+
* **Examples of how to use the PATCH endpoint.**
|
|
690
|
+
*
|
|
691
|
+
* The following fields may be updated in a PATCH operation:
|
|
692
|
+
*
|
|
693
|
+
* - name
|
|
694
|
+
* - status
|
|
695
|
+
* - sink
|
|
696
|
+
*
|
|
697
|
+
* Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted.
|
|
698
|
+
*
|
|
699
|
+
* **Update the status of a log stream**
|
|
700
|
+
*
|
|
701
|
+
* ```json
|
|
702
|
+
* {
|
|
703
|
+
* "status": "active|paused"
|
|
704
|
+
* }
|
|
705
|
+
* ```
|
|
706
|
+
*
|
|
707
|
+
* **Update the name of a log stream**
|
|
708
|
+
*
|
|
709
|
+
* ```json
|
|
710
|
+
* {
|
|
711
|
+
* "name": "string"
|
|
712
|
+
* }
|
|
713
|
+
* ```
|
|
714
|
+
*
|
|
715
|
+
* **Update the sink properties of a stream of type `http`**
|
|
716
|
+
*
|
|
717
|
+
* ```json
|
|
718
|
+
* {
|
|
570
719
|
* "sink": {
|
|
571
720
|
* "httpEndpoint": "string",
|
|
572
721
|
* "httpContentType": "string",
|
|
573
722
|
* "httpContentFormat": "JSONARRAY|JSONLINES",
|
|
574
723
|
* "httpAuthorization": "string"
|
|
575
724
|
* }
|
|
576
|
-
* }
|
|
577
|
-
*
|
|
725
|
+
* }
|
|
726
|
+
* ```
|
|
727
|
+
*
|
|
728
|
+
* **Update the sink properties of a stream of type `datadog`**
|
|
729
|
+
*
|
|
730
|
+
* ```json
|
|
731
|
+
* {
|
|
578
732
|
* "sink": {
|
|
579
|
-
*
|
|
580
|
-
*
|
|
733
|
+
* "datadogRegion": "string",
|
|
734
|
+
* "datadogApiKey": "string"
|
|
581
735
|
* }
|
|
582
|
-
* }
|
|
583
|
-
*
|
|
736
|
+
* }
|
|
737
|
+
* ```
|
|
738
|
+
*
|
|
739
|
+
* **Update the sink properties of a stream of type `splunk`**
|
|
740
|
+
*
|
|
741
|
+
* ```json
|
|
742
|
+
* {
|
|
584
743
|
* "sink": {
|
|
585
744
|
* "splunkDomain": "string",
|
|
586
745
|
* "splunkToken": "string",
|
|
587
746
|
* "splunkPort": "string",
|
|
588
747
|
* "splunkSecure": "boolean"
|
|
589
748
|
* }
|
|
590
|
-
* }
|
|
591
|
-
*
|
|
749
|
+
* }
|
|
750
|
+
* ```
|
|
751
|
+
*
|
|
752
|
+
* **Update the sink properties of a stream of type `sumo`**
|
|
753
|
+
*
|
|
754
|
+
* ```json
|
|
755
|
+
* {
|
|
592
756
|
* "sink": {
|
|
593
757
|
* "sumoSourceAddress": "string"
|
|
594
758
|
* }
|
|
595
|
-
* }
|
|
759
|
+
* }
|
|
760
|
+
* ```
|
|
596
761
|
*
|
|
597
762
|
* @param {string} id - The id of the log stream to get
|
|
598
763
|
* @param {Management.UpdateLogStreamRequestContent} request
|