-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathExportHistoryWebApp.http
More file actions
88 lines (73 loc) · 2.87 KB
/
ExportHistoryWebApp.http
File metadata and controls
88 lines (73 loc) · 2.87 KB
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
### Variables
@baseUrl = http://localhost:5009
@jobId = export-job-12345
### Create a new batch export job
# @name createBatchExportJob
POST {{baseUrl}}/export-jobs
Content-Type: application/json
{
"jobId": "{{jobId}}",
"mode": "Batch",
"completedTimeFrom": "2025-10-01T00:00:00Z",
"completedTimeTo": "2025-11-06T23:59:59Z",
"container": "export-history",
"prefix": "batch-exports/",
"maxInstancesPerBatch": 1,
"runtimeStatus": []
}
### Create a new continuous export job
# @name createContinuousExportJob
POST {{baseUrl}}/export-jobs
Content-Type: application/json
{
"jobId": "export-job-continuous-123",
"mode": "Continuous",
"completedTimeFrom": "2025-10-01T00:00:00Z",
"container": "export-history",
"prefix": "continuous-exports/",
"maxInstancesPerBatch": 1000
}
### Create an export job with default storage (no container specified)
# @name createExportJobWithDefaultStorage
POST {{baseUrl}}/export-jobs
Content-Type: application/json
{
"jobId": "export-job-default-storage",
"mode": "Batch",
"completedTimeFrom": "2024-01-01T00:00:00Z",
"completedTimeTo": "2024-12-31T23:59:59Z",
"maxInstancesPerBatch": 100
}
### Get a specific export job by ID
# Note: This endpoint can be used to verify the export job was created and check its status
# The ID in the URL should match the jobId used in create request
GET {{baseUrl}}/export-jobs/{{jobId}}
### List all export jobs
GET {{baseUrl}}/export-jobs/list
### List export jobs with filters
### Filter by status
GET {{baseUrl}}/export-jobs/list?status=Active
### Filter by job ID prefix
GET {{baseUrl}}/export-jobs/list?jobIdPrefix=export-job-
### Filter by creation time range
GET {{baseUrl}}/export-jobs/list?createdFrom=2024-01-01T00:00:00Z&createdTo=2024-12-31T23:59:59Z
### Combined filters
GET {{baseUrl}}/export-jobs/list?status=Completed&jobIdPrefix=export-job-&pageSize=50
### Delete an export job
# DELETE {{baseUrl}}/export-jobs/{{jobId}}
# Delete a continuous export job
DELETE {{baseUrl}}/export-jobs/export-job-continuous-123
### Tips:
# - Replace the baseUrl variable if your application runs on a different port
# - The jobId variable can be changed to test different export job instances
# - Export modes:
# - "Batch": Exports all instances within a time range (requires completedTimeTo)
# - "Continuous": Continuously exports instances from a start time (completedTimeTo must be null)
# - Runtime status filters (valid values):
# - "Completed": Exports only completed orchestrations
# - "Failed": Exports only failed orchestrations
# - "Terminated": Exports only terminated orchestrations
# - Dates are in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)
# - You can use the REST Client extension in VS Code to execute these requests
# - The @name directive allows referencing the response in subsequent requests
# - Export jobs run asynchronously; use GET to check the status after creation