Skip to content

Commit 6032ac6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add containers API spec (#1723)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 6efa3ee commit 6032ac6

34 files changed

+1895
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-10-17 14:49:44.071476",
8-
"spec_repo_commit": "a9d493f5"
7+
"regenerated": "2023-10-18 20:16:50.314774",
8+
"spec_repo_commit": "a1e5664c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-17 14:49:44.215389",
13-
"spec_repo_commit": "a9d493f5"
12+
"regenerated": "2023-10-18 20:16:50.373970",
13+
"spec_repo_commit": "a1e5664c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3441,6 +3441,117 @@ components:
34413441
$ref: '#/components/schemas/ConfluentResourceResponseData'
34423442
type: array
34433443
type: object
3444+
Container:
3445+
description: Container object.
3446+
properties:
3447+
attributes:
3448+
$ref: '#/components/schemas/ContainerAttributes'
3449+
id:
3450+
description: Container ID.
3451+
type: string
3452+
type:
3453+
$ref: '#/components/schemas/ContainerType'
3454+
type: object
3455+
ContainerAttributes:
3456+
description: Attributes for a container.
3457+
properties:
3458+
container_id:
3459+
description: The ID of the container.
3460+
type: string
3461+
created_at:
3462+
description: Time the container was created.
3463+
type: string
3464+
host:
3465+
description: Hostname of the host running the container.
3466+
type: string
3467+
image_digest:
3468+
description: Digest of the compressed image manifest.
3469+
nullable: true
3470+
type: string
3471+
image_name:
3472+
description: Name of the associated container image.
3473+
type: string
3474+
image_tags:
3475+
description: List of image tags associated with the container image.
3476+
items:
3477+
type: string
3478+
nullable: true
3479+
type: array
3480+
name:
3481+
description: Name of the container.
3482+
type: string
3483+
started_at:
3484+
description: Time the container was started.
3485+
type: string
3486+
state:
3487+
description: State of the container. This depends on the container runtime.
3488+
type: string
3489+
tags:
3490+
description: List of tags associated with the container.
3491+
items:
3492+
type: string
3493+
type: array
3494+
type: object
3495+
ContainerGroup:
3496+
description: Container group object.
3497+
properties:
3498+
attributes:
3499+
$ref: '#/components/schemas/ContainerGroupAttributes'
3500+
id:
3501+
description: Container Group ID.
3502+
type: string
3503+
relationships:
3504+
$ref: '#/components/schemas/ContainerGroupRelationships'
3505+
type:
3506+
$ref: '#/components/schemas/ContainerGroupType'
3507+
type: object
3508+
ContainerGroupAttributes:
3509+
description: Attributes for a container group.
3510+
properties:
3511+
count:
3512+
description: Number of containers in the group.
3513+
format: int64
3514+
type: integer
3515+
tags:
3516+
description: Tags from the group name parsed in key/value format.
3517+
type: object
3518+
type: object
3519+
ContainerGroupRelationships:
3520+
description: Relationships to containers inside a container group.
3521+
properties:
3522+
containers:
3523+
$ref: '#/components/schemas/ContainerGroupRelationshipsLink'
3524+
type: object
3525+
ContainerGroupRelationshipsData:
3526+
description: Links data.
3527+
items:
3528+
description: A link data.
3529+
type: string
3530+
type: array
3531+
ContainerGroupRelationshipsLink:
3532+
description: Relationships to Containers inside a Container Group.
3533+
properties:
3534+
data:
3535+
$ref: '#/components/schemas/ContainerGroupRelationshipsData'
3536+
links:
3537+
$ref: '#/components/schemas/ContainerGroupRelationshipsLinks'
3538+
type: object
3539+
ContainerGroupRelationshipsLinks:
3540+
description: Links attributes.
3541+
properties:
3542+
related:
3543+
description: Link to related containers.
3544+
type: string
3545+
type: object
3546+
ContainerGroupType:
3547+
default: container_group
3548+
description: Type of container group.
3549+
enum:
3550+
- container_group
3551+
example: container_group
3552+
type: string
3553+
x-enum-varnames:
3554+
- CONTAINER_GROUP
34443555
ContainerImage:
34453556
description: Container Image object.
34463557
properties:
@@ -3751,6 +3862,96 @@ components:
37513862
description: Link to current page.
37523863
type: string
37533864
type: object
3865+
ContainerItem:
3866+
description: Possible Container models.
3867+
oneOf:
3868+
- $ref: '#/components/schemas/Container'
3869+
- $ref: '#/components/schemas/ContainerGroup'
3870+
ContainerMeta:
3871+
description: Response metadata object.
3872+
properties:
3873+
pagination:
3874+
$ref: '#/components/schemas/ContainerMetaPage'
3875+
type: object
3876+
ContainerMetaPage:
3877+
description: Paging attributes.
3878+
properties:
3879+
cursor:
3880+
description: The cursor used to get the current results, if any.
3881+
type: string
3882+
limit:
3883+
description: Number of results returned
3884+
format: int32
3885+
maximum: 10000
3886+
minimum: 0
3887+
type: integer
3888+
next_cursor:
3889+
description: The cursor used to get the next results, if any.
3890+
type: string
3891+
prev_cursor:
3892+
description: The cursor used to get the previous results, if any.
3893+
nullable: true
3894+
type: string
3895+
total:
3896+
description: Total number of records that match the query.
3897+
format: int64
3898+
type: integer
3899+
type:
3900+
$ref: '#/components/schemas/ContainerMetaPageType'
3901+
type: object
3902+
ContainerMetaPageType:
3903+
default: cursor_limit
3904+
description: Type of Container pagination.
3905+
enum:
3906+
- cursor_limit
3907+
example: cursor_limit
3908+
type: string
3909+
x-enum-varnames:
3910+
- CURSOR_LIMIT
3911+
ContainerType:
3912+
default: container
3913+
description: Type of container.
3914+
enum:
3915+
- container
3916+
example: container
3917+
type: string
3918+
x-enum-varnames:
3919+
- CONTAINER
3920+
ContainersResponse:
3921+
description: List of containers.
3922+
properties:
3923+
data:
3924+
description: Array of Container objects.
3925+
items:
3926+
$ref: '#/components/schemas/ContainerItem'
3927+
type: array
3928+
links:
3929+
$ref: '#/components/schemas/ContainersResponseLinks'
3930+
meta:
3931+
$ref: '#/components/schemas/ContainerMeta'
3932+
type: object
3933+
ContainersResponseLinks:
3934+
description: Pagination links.
3935+
properties:
3936+
first:
3937+
description: Link to the first page.
3938+
type: string
3939+
last:
3940+
description: Link to the last page.
3941+
nullable: true
3942+
type: string
3943+
next:
3944+
description: Link to the next page.
3945+
nullable: true
3946+
type: string
3947+
prev:
3948+
description: Link to previous page.
3949+
nullable: true
3950+
type: string
3951+
self:
3952+
description: Link to current page.
3953+
type: string
3954+
type: object
37543955
ContentEncoding:
37553956
description: HTTP header used to compress the media-type.
37563957
enum:
@@ -19814,6 +20015,86 @@ paths:
1981420015
x-unstable: '**Note**: This endpoint is in public beta.
1981520016

1981620017
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
20018+
/api/v2/containers:
20019+
get:
20020+
description: Get all containers for your organization.
20021+
operationId: ListContainers
20022+
parameters:
20023+
- description: Comma-separated list of tags to filter containers by.
20024+
example: env:prod,short_image:cassandra
20025+
in: query
20026+
name: filter[tags]
20027+
required: false
20028+
schema:
20029+
type: string
20030+
- description: Comma-separated list of tags to group containers by.
20031+
example: datacenter,cluster
20032+
in: query
20033+
name: group_by
20034+
required: false
20035+
schema:
20036+
type: string
20037+
- description: Attribute to sort containers by.
20038+
example: started_at
20039+
in: query
20040+
name: sort
20041+
required: false
20042+
schema:
20043+
type: string
20044+
- description: Maximum number of results returned.
20045+
in: query
20046+
name: page[size]
20047+
required: false
20048+
schema:
20049+
default: 1000
20050+
format: int32
20051+
maximum: 10000
20052+
minimum: 1
20053+
type: integer
20054+
- description: 'String to query the next page of results.
20055+
20056+
This key is provided with each valid response from the API in `meta.pagination.next_cursor`.'
20057+
in: query
20058+
name: page[cursor]
20059+
required: false
20060+
schema:
20061+
type: string
20062+
responses:
20063+
'200':
20064+
content:
20065+
application/json:
20066+
schema:
20067+
$ref: '#/components/schemas/ContainersResponse'
20068+
description: OK
20069+
'400':
20070+
content:
20071+
application/json:
20072+
schema:
20073+
$ref: '#/components/schemas/APIErrorResponse'
20074+
description: Bad Request
20075+
'403':
20076+
content:
20077+
application/json:
20078+
schema:
20079+
$ref: '#/components/schemas/APIErrorResponse'
20080+
description: Authentication Error
20081+
'429':
20082+
$ref: '#/components/responses/TooManyRequestsResponse'
20083+
security:
20084+
- apiKeyAuth: []
20085+
appKeyAuth: []
20086+
- AuthZ: []
20087+
summary: Get All Containers
20088+
tags:
20089+
- Containers
20090+
x-pagination:
20091+
cursorParam: page[cursor]
20092+
cursorPath: meta.pagination.next_cursor
20093+
limitParam: page[size]
20094+
resultsPath: data
20095+
x-unstable: '**Note**: This endpoint is in public beta.
20096+
20097+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1981720098
/api/v2/current_user/application_keys:
1981820099
get:
1981920100
description: List all application keys available for current user
@@ -29384,6 +29665,8 @@ tags:
2938429665
- description: The Container Images API allows you to query Container Image data for
2938529666
your organization.
2938629667
name: Container Images
29668+
- description: The Containers API allows you to query container data for your organization.
29669+
name: Containers
2938729670
- description: 'Interact with your dashboard lists through the API to
2938829671

2938929672
organize, find, and share all of your dashboards with your team and

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ container\_images\_api
6464
:members:
6565
:show-inheritance:
6666

67+
containers\_api
68+
---------------
69+
70+
.. automodule:: datadog_api_client.v2.api.containers_api
71+
:members:
72+
:show-inheritance:
73+
6774
dashboard\_lists\_api
6875
---------------------
6976

0 commit comments

Comments
 (0)