@@ -839,6 +839,11 @@ components:
839
839
type: string
840
840
x-enum-varnames:
841
841
- BILLING_DIMENSIONS
842
+ ApiID:
843
+ description: API identifier.
844
+ example: 90646597-5fdb-4a17-a240-647003f8c028
845
+ format: uuid
846
+ type: string
842
847
ApmRetentionFilterType:
843
848
default: apm_retention_filter
844
849
description: The type of the resource.
@@ -4873,6 +4878,29 @@ components:
4873
4878
type: string
4874
4879
x-enum-varnames:
4875
4880
- COST_BY_ORG
4881
+ CreateOpenAPIResponse:
4882
+ description: Response for `CreateOpenAPI` operation.
4883
+ properties:
4884
+ data:
4885
+ $ref: '#/components/schemas/CreateOpenAPIResponseData'
4886
+ type: object
4887
+ CreateOpenAPIResponseAttributes:
4888
+ description: Attributes for `CreateOpenAPI`.
4889
+ properties:
4890
+ failed_endpoints:
4891
+ description: List of endpoints which couldn't be parsed.
4892
+ items:
4893
+ $ref: '#/components/schemas/OpenAPIEndpoint'
4894
+ type: array
4895
+ type: object
4896
+ CreateOpenAPIResponseData:
4897
+ description: Data envelope for `CreateOpenAPIResponse`.
4898
+ properties:
4899
+ attributes:
4900
+ $ref: '#/components/schemas/CreateOpenAPIResponseAttributes'
4901
+ id:
4902
+ $ref: '#/components/schemas/ApiID'
4903
+ type: object
4876
4904
CreateRuleRequest:
4877
4905
description: Scorecard create rule request.
4878
4906
properties:
@@ -12079,6 +12107,24 @@ components:
12079
12107
type: string
12080
12108
x-enum-varnames:
12081
12109
- ON_DEMAND_CONCURRENCY_CAP
12110
+ OpenAPIEndpoint:
12111
+ description: Endpoint info extracted from an `OpenAPI` specification.
12112
+ properties:
12113
+ method:
12114
+ description: The endpoint method.
12115
+ type: string
12116
+ path:
12117
+ description: The endpoint path.
12118
+ type: string
12119
+ type: object
12120
+ OpenAPIFile:
12121
+ description: Object for API data in an `OpenAPI` format as a file.
12122
+ properties:
12123
+ openapi_spec_file:
12124
+ description: Binary `OpenAPI` spec file
12125
+ format: binary
12126
+ type: string
12127
+ type: object
12082
12128
OpsgenieServiceCreateAttributes:
12083
12129
description: The Opsgenie service attributes for a create request.
12084
12130
properties:
@@ -20284,6 +20330,29 @@ components:
20284
20330
example: min
20285
20331
type: string
20286
20332
type: object
20333
+ UpdateOpenAPIResponse:
20334
+ description: Response for `UpdateOpenAPI`.
20335
+ properties:
20336
+ data:
20337
+ $ref: '#/components/schemas/UpdateOpenAPIResponseData'
20338
+ type: object
20339
+ UpdateOpenAPIResponseAttributes:
20340
+ description: Attributes for `UpdateOpenAPI`.
20341
+ properties:
20342
+ failed_endpoints:
20343
+ description: List of endpoints which couldn't be parsed.
20344
+ items:
20345
+ $ref: '#/components/schemas/OpenAPIEndpoint'
20346
+ type: array
20347
+ type: object
20348
+ UpdateOpenAPIResponseData:
20349
+ description: Data envelope for `UpdateOpenAPIResponse`.
20350
+ properties:
20351
+ attributes:
20352
+ $ref: '#/components/schemas/UpdateOpenAPIResponseAttributes'
20353
+ id:
20354
+ $ref: '#/components/schemas/ApiID'
20355
+ type: object
20287
20356
UsageApplicationSecurityMonitoringResponse:
20288
20357
description: Application Security Monitoring usage response.
20289
20358
properties:
@@ -21110,6 +21179,195 @@ paths:
21110
21179
tags:
21111
21180
- Key Management
21112
21181
x-codegen-request-body-name: body
21182
+ /api/v2/apicatalog/api/{id}:
21183
+ delete:
21184
+ description: Delete a specific API by ID.
21185
+ operationId: DeleteOpenAPI
21186
+ parameters:
21187
+ - description: ID of the API to delete
21188
+ in: path
21189
+ name: id
21190
+ required: true
21191
+ schema:
21192
+ $ref: '#/components/schemas/ApiID'
21193
+ responses:
21194
+ '204':
21195
+ description: API deleted successfully
21196
+ '400':
21197
+ content:
21198
+ application/json:
21199
+ schema:
21200
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21201
+ description: Bad request
21202
+ '403':
21203
+ content:
21204
+ application/json:
21205
+ schema:
21206
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21207
+ description: Forbidden
21208
+ '404':
21209
+ content:
21210
+ application/json:
21211
+ schema:
21212
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21213
+ description: API not found error
21214
+ '429':
21215
+ $ref: '#/components/responses/TooManyRequestsResponse'
21216
+ summary: Delete an API
21217
+ tags:
21218
+ - API Management
21219
+ x-unstable: '**Note**: This endpoint is in public beta.
21220
+
21221
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
21222
+ /api/v2/apicatalog/api/{id}/openapi:
21223
+ get:
21224
+ description: Retrieve information about a specific API in [OpenAPI](https://spec.openapis.org/oas/latest.html)
21225
+ format file.
21226
+ operationId: GetOpenAPI
21227
+ parameters:
21228
+ - description: ID of the API to retrieve
21229
+ in: path
21230
+ name: id
21231
+ required: true
21232
+ schema:
21233
+ $ref: '#/components/schemas/ApiID'
21234
+ responses:
21235
+ '200':
21236
+ content:
21237
+ multipart/form-data:
21238
+ schema:
21239
+ format: binary
21240
+ type: string
21241
+ description: OK
21242
+ '400':
21243
+ content:
21244
+ application/json:
21245
+ schema:
21246
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21247
+ description: Bad request
21248
+ '403':
21249
+ content:
21250
+ application/json:
21251
+ schema:
21252
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21253
+ description: Forbidden
21254
+ '404':
21255
+ content:
21256
+ application/json:
21257
+ schema:
21258
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21259
+ description: API not found error
21260
+ '429':
21261
+ $ref: '#/components/responses/TooManyRequestsResponse'
21262
+ summary: Get an API
21263
+ tags:
21264
+ - API Management
21265
+ x-unstable: '**Note**: This endpoint is in public beta.
21266
+
21267
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
21268
+ put:
21269
+ description: 'Update information about a specific API. The given content will
21270
+ replace all API content of the given ID.
21271
+
21272
+ The ID is returned by the create API, or can be found in the URL in the API
21273
+ catalog UI.
21274
+
21275
+ '
21276
+ operationId: UpdateOpenAPI
21277
+ parameters:
21278
+ - description: ID of the API to modify
21279
+ in: path
21280
+ name: id
21281
+ required: true
21282
+ schema:
21283
+ $ref: '#/components/schemas/ApiID'
21284
+ requestBody:
21285
+ content:
21286
+ multipart/form-data:
21287
+ schema:
21288
+ $ref: '#/components/schemas/OpenAPIFile'
21289
+ required: true
21290
+ responses:
21291
+ '200':
21292
+ content:
21293
+ application/json:
21294
+ schema:
21295
+ $ref: '#/components/schemas/UpdateOpenAPIResponse'
21296
+ description: API updated successfully
21297
+ '400':
21298
+ content:
21299
+ application/json:
21300
+ schema:
21301
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21302
+ description: Bad request
21303
+ '403':
21304
+ content:
21305
+ application/json:
21306
+ schema:
21307
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21308
+ description: Forbidden
21309
+ '404':
21310
+ content:
21311
+ application/json:
21312
+ schema:
21313
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21314
+ description: API not found error
21315
+ '429':
21316
+ $ref: '#/components/responses/TooManyRequestsResponse'
21317
+ summary: Update an API
21318
+ tags:
21319
+ - API Management
21320
+ x-unstable: '**Note**: This endpoint is in public beta.
21321
+
21322
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
21323
+ /api/v2/apicatalog/openapi:
21324
+ post:
21325
+ description: 'Create a new API from the [OpenAPI](https://spec.openapis.org/oas/latest.html)
21326
+ specification given.
21327
+
21328
+ It supports version `2.0`, `3.0` and `3.1` of the specification. A specific
21329
+ extension section, `x-datadog`,
21330
+
21331
+ let you specify the `teamHandle` for your team responsible for the API in
21332
+ Datadog.
21333
+
21334
+ It returns the created API ID.
21335
+
21336
+ '
21337
+ operationId: CreateOpenAPI
21338
+ requestBody:
21339
+ content:
21340
+ multipart/form-data:
21341
+ schema:
21342
+ $ref: '#/components/schemas/OpenAPIFile'
21343
+ required: true
21344
+ responses:
21345
+ '201':
21346
+ content:
21347
+ application/json:
21348
+ schema:
21349
+ $ref: '#/components/schemas/CreateOpenAPIResponse'
21350
+ description: API created successfully
21351
+ '400':
21352
+ content:
21353
+ application/json:
21354
+ schema:
21355
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21356
+ description: Bad request
21357
+ '403':
21358
+ content:
21359
+ application/json:
21360
+ schema:
21361
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
21362
+ description: Forbidden
21363
+ '429':
21364
+ $ref: '#/components/responses/TooManyRequestsResponse'
21365
+ summary: Create a new API
21366
+ tags:
21367
+ - API Management
21368
+ x-unstable: '**Note**: This endpoint is in public beta.
21369
+
21370
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
21113
21371
/api/v2/apm/config/metrics:
21114
21372
get:
21115
21373
description: Get the list of configured span-based metrics with their definitions.
@@ -33173,6 +33431,8 @@ servers:
33173
33431
default: api
33174
33432
description: The subdomain where the API is deployed.
33175
33433
tags:
33434
+ - description: Configure your API endpoints through the Datadog API.
33435
+ name: API Management
33176
33436
- description: Manage configuration of [APM retention filters](https://app.datadoghq.com/apm/traces/retention-filters)
33177
33437
for your organization. You need an API and application key with Admin rights to
33178
33438
interact with this endpoint. See [retention filters](https://docs.datadoghq.com/tracing/trace_pipeline/trace_retention/#retention-filters)
0 commit comments