-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtransaction-service-openapi.yaml
266 lines (266 loc) · 8.78 KB
/
transaction-service-openapi.yaml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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
255
256
257
258
259
260
261
262
263
264
265
266
openapi: 3.0.1
info:
title: Cisco Security Cloud Control API
description: Use the documentation to explore the endpoints Security Cloud Control
has to offer
contact:
name: Cisco Security Cloud Control TAC
email: [email protected]
version: 1.5.0
servers:
- url: https://edge.us.cdo.cisco.com/api/rest
description: US
- url: https://edge.eu.cdo.cisco.com/api/rest
description: EU
- url: https://edge.apj.cdo.cisco.com/api/rest
description: APJ
- url: https://edge.aus.cdo.cisco.com/api/rest
description: AUS
- url: https://edge.in.cdo.cisco.com/api/rest
description: IN
- url: https://edge.staging.cdo.cisco.com/api/rest
description: Staging
- url: https://edge.scale.cdo.cisco.com/api/rest
description: Scale
- url: https://edge.ci.cdo.cisco.com/api/rest
description: CI
paths:
/v1/transactions/{transactionUid}:
get:
tags:
- Transactions
summary: Get Transaction
description: "Get information on an in-progress CDO transaction. An CDO transaction\
\ is an entity used to monitor progress of, and provide feedback on, long-running\
\ operations. All asynchronous operations in CDO's API create Security Cloud\
\ Control transactions."
operationId: getTransaction
parameters:
- name: transactionUid
in: path
required: true
schema:
type: string
format: uuid
responses:
"403":
$ref: '#/components/responses/http403Forbidden'
"404":
$ref: '#/components/responses/http404NotFound'
"200":
description: "CDO Transaction that has completed, either successfully or\
\ unsuccessfully. Note: failed Security Cloud Control Transactions do\
\ not roll back."
content:
application/json:
schema:
$ref: '#/components/schemas/CdoTransaction'
"401":
$ref: '#/components/responses/http401Unauthorised'
"400":
$ref: '#/components/responses/http400BadRequest'
"202":
description: Security Cloud Control Transaction that is pending or in progress.
content:
application/json:
schema:
$ref: '#/components/schemas/CdoTransaction'
"500":
description: Internal server error.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
security:
- bearerAuth: []
components:
schemas:
CdoTransaction:
type: object
properties:
tenantUid:
type: string
description: The unique identifier of the tenant that the transaction triggered
on.
format: uuid
example: 5131daad-e813-4b8f-8f42-be1e241e2cdb
transactionUid:
type: string
description: The unique identifier of the transaction triggered.
format: uuid
example: 7131daad-e813-4b8f-8f42-be1e241e8cdb
entityUid:
type: string
description: "The unique identifier of the entity that the transaction is\
\ triggered on. This can be empty, for a transaction that is not tied\
\ to an entity, such as transactions which refresh RA VPN sessions."
format: uuid
example: f5f660d4-4b81-4374-877d-fbc4bee894e2
entityUrl:
type: string
description: A URL to access the entity that the transaction is triggered
on. This can also be empty
example: https://edge.us.cdo.cisco.com/platform/public-api/v1/inventory/devices/f5f660d4-4b81-4374-877d-fbc4bee894e2
transactionPollingUrl:
type: string
description: The URL to poll to track the progress of the transaction.
example: https://edge.us.cdo.cisco.com/platform/v1/transactions/7131daad-e813-4b8f-8f42-be1e241e8cdb
submissionTime:
type: string
description: The time (UTC; represented using the RFC-3339 standard) at
which the transaction was triggered
format: date-time
example: 2023-12-13T05:15:44Z
lastUpdatedTime:
type: string
description: The time (UTC; represented using the RFC-3339 standard) at
which the transaction status was last updated
format: date-time
example: 2023-12-13T08:15:44Z
transactionDetails:
type: object
additionalProperties:
type: string
description: "Transaction details, if any"
description: "Transaction details, if any"
errorMessage:
type: string
description: "Transaction error message, if any"
errorDetails:
type: object
additionalProperties:
type: string
description: "Transaction error details, if any"
description: "Transaction error details, if any"
transactionType:
type: string
description: the type of the transaction
example: ONBOARD_ASA
enum:
- ONBOARD_ASA
- ONBOARD_IOS
- ONBOARD_DUO_ADMIN_PANEL
- CREATE_FTD
- ONBOARD_FTD_ZTP
- REGISTER_FTD
- DELETE_CDFMC_MANAGED_FTD
- RECONNECT_ASA
- READ_ASA
- EXECUTE_CLI_COMMAND
- DEPLOY_ASA_DEVICE_CHANGES
- INDEX_TENANT
- TERMINATE_DEVICE_RA_VPN_SESSIONS
- REFRESH_RA_VPN_SESSIONS
- TERMINATE_USER_RA_VPN_SESSIONS
- DEVICE_UPGRADE
- UPGRADE_ASA
- UPGRADE_FTD
- CREATE_SDC
- SEND_AI_ASSISTANT_MESSAGE
- MSP_CREATE_TENANT
- MSP_ADD_USERS_TO_TENANT
- MSP_ADD_USER_GROUPS_TO_TENANT
- MSP_DELETE_USERS_FROM_TENANT
- MSP_DELETE_USER_GROUPS_FROM_TENANT
- MSP_ADD_EXISTING_TENANT
- MSP_ENABLE_MULTICLOUD_DEFENSE
- MSP_PROVISION_CDFMC
cdoTransactionStatus:
type: string
description: The status of the transaction
example: IN_PROGRESS
enum:
- PENDING
- IN_PROGRESS
- DONE
- ERROR
AuthenticationError:
type: object
properties:
error:
type: string
description: A human-readable error description in English.
example: invalid_token
errorDescription:
type: string
description: A human-readable error description in English.
example: Your token is invalid
CommonApiError:
type: object
properties:
errorCode:
type: string
description: A unique code that describes the error.
example: INVALID_INPUT
enum:
- INVALID_INPUT
- UNAUTHORIZED
- FORBIDDEN
- NOT_FOUND
- METHOD_NOT_ALLOWED
- CONFLICT
- TOO_MANY_REQUESTS
- SERVER_ERROR
- PROXY_ERROR
- BAD_REQUEST
- UNPROCESSABLE_ENTITY
errorMsg:
type: string
description: A human-readable error description in English.
example: sample error
details:
type: object
additionalProperties:
type: object
description: "Additional details, if any, on the error"
example: {}
description: "Additional details, if any, on the error"
example: {}
responses:
http400BadRequest:
description: Invalid input provided. Check the response for details.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
http401Unauthorised:
description: Request not authorized.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticationError'
http403Forbidden:
description: User does not have sufficient privileges to perform this operation.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
http404NotFound:
description: Entity not found.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
http405MethodNotAllowed:
description: Method not allowed.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
http409Conflict:
description: Conflict.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
http422UnprocessableEntity:
description: Unprocessable entity.
content:
application/json:
schema:
$ref: '#/components/schemas/CommonApiError'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT