Skip to content

Commit 2a1692d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 71ffdbc of spec repo
1 parent 2c86284 commit 2a1692d

File tree

5 files changed

+64
-51
lines changed

5 files changed

+64
-51
lines changed

config/_default/menus/api.en.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4206,7 +4206,7 @@ menu:
42064206
- CreateHostTags
42074207
unstable: []
42084208
order: 3
4209-
- name: Get host tags
4209+
- name: Get Host Tags
42104210
url: '#get-host-tags'
42114211
identifier: tags-get-host-tags
42124212
parent: tags
@@ -4230,9 +4230,9 @@ menu:
42304230
- DeleteHostTags
42314231
unstable: []
42324232
order: 5
4233-
- name: Get Tags
4234-
url: '#get-tags'
4235-
identifier: tags-get-tags
4233+
- name: Get All Host Tags
4234+
url: '#get-all-host-tags'
4235+
identifier: tags-get-all-host-tags
42364236
parent: tags
42374237
generated: true
42384238
params:

content/en/api/v1/tags/examples.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
}
1111
},
12-
"html": "<div class=\"\"><div class=\"row hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> tags</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>A list of tags to apply to the host.</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">&lt;any-key&gt;</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of additional properties for tags.</p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div></div>"
12+
"html": "<div class=\"\"><div class=\"row hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> tags</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>A mapping of tags to host names</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">&lt;any-key&gt;</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of host names which contain this tag</p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div></div>"
1313
},
1414
"403": {
1515
"json": {
@@ -84,7 +84,7 @@
8484
"environment:production"
8585
]
8686
},
87-
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">host</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Your host name.</p></div>\n </div>\n \n </div>\n </div><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">tags</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of tags to apply to the host.</p></div>\n </div>\n \n </div>\n </div></div>"
87+
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">host</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Your host name.</p></div>\n </div>\n \n </div>\n </div><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">tags</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of tags attached to a given host.</p></div>\n </div>\n \n </div>\n </div></div>"
8888
},
8989
"403": {
9090
"json": {
@@ -126,7 +126,7 @@
126126
"environment:production"
127127
]
128128
},
129-
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">host</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Your host name.</p></div>\n </div>\n \n </div>\n </div><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">tags</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of tags to apply to the host.</p></div>\n </div>\n \n </div>\n </div></div>"
129+
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">host</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Your host name.</p></div>\n </div>\n \n </div>\n </div><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">tags</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of tags attached to a given host.</p></div>\n </div>\n \n </div>\n </div></div>"
130130
},
131131
"403": {
132132
"json": {
@@ -173,7 +173,7 @@
173173
"environment:production"
174174
]
175175
},
176-
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">host</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Your host name.</p></div>\n </div>\n \n </div>\n </div><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">tags</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of tags to apply to the host.</p></div>\n </div>\n \n </div>\n </div></div>"
176+
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">host</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Your host name.</p></div>\n </div>\n \n </div>\n </div><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">tags</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of tags attached to a given host.</p></div>\n </div>\n \n </div>\n </div></div>"
177177
},
178178
"403": {
179179
"json": {

data/api/v1/full_spec.yaml

Lines changed: 50 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4286,7 +4286,7 @@ components:
42864286
example: false
42874287
type: boolean
42884288
type: object
4289-
HostTags:
4289+
HostTagsInput:
42904290
description: Set of tags to associate with your host.
42914291
properties:
42924292
host:
@@ -4301,6 +4301,21 @@ components:
43014301
type: string
43024302
type: array
43034303
type: object
4304+
HostTagsOutput:
4305+
description: Host name and an array of its tags
4306+
properties:
4307+
host:
4308+
description: Your host name.
4309+
example: test.host
4310+
type: string
4311+
tags:
4312+
description: A list of tags attached to a given host.
4313+
items:
4314+
description: A given tag in a list.
4315+
example: environment:production
4316+
type: string
4317+
type: array
4318+
type: object
43044319
HostTotals:
43054320
description: Total number of host currently monitored by Datadog.
43064321
properties:
@@ -18925,18 +18940,18 @@ components:
1892518940
- match
1892618941
type: object
1892718942
TagToHosts:
18928-
description: In this object, the key is the tag, the value is a list of host
18929-
names that are reporting that tag.
18943+
description: In this object, the key is the tag, and the value is a list of
18944+
host names that are reporting that tag.
1893018945
properties:
1893118946
tags:
1893218947
additionalProperties:
18933-
description: A list of additional properties for tags.
18948+
description: A list of host names which contain this tag
1893418949
items:
1893518950
description: A given tag in a list.
1893618951
example: test.metric.host
1893718952
type: string
1893818953
type: array
18939-
description: A list of tags to apply to the host.
18954+
description: A mapping of tags to host names
1894018955
type: object
1894118956
type: object
1894218957
TargetFormatType:
@@ -36866,11 +36881,13 @@ paths:
3686636881
- synthetics_global_variable_write
3686736882
/api/v1/tags/hosts:
3686836883
get:
36869-
description: Return a mapping of tags to hosts for your whole infrastructure.
36884+
description: Returns a mapping of tags to hosts. For each tag, the response
36885+
returns a list of host names that contain this tag. There is a restriction
36886+
of 10k total host names from the org that can be attached to tags and returned.
3687036887
operationId: ListHostTags
3687136888
parameters:
36872-
- description: When specified, filters host list to those tags with the specified
36873-
source.
36889+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
36890+
Use "user" source for custom-defined tags.
3687436891
in: query
3687536892
name: source
3687636893
required: false
@@ -36901,7 +36918,7 @@ paths:
3690136918
- apiKeyAuth: []
3690236919
appKeyAuth: []
3690336920
- AuthZ: []
36904-
summary: Get Tags
36921+
summary: Get All Host Tags
3690536922
tags:
3690636923
- Tags
3690736924
x-menu-order: 1
@@ -36910,21 +36927,20 @@ paths:
3691036927
permissions: []
3691136928
/api/v1/tags/hosts/{host_name}:
3691236929
delete:
36913-
description: 'This endpoint allows you to remove all user-assigned tags
36930+
description: 'This endpoint allows you to remove all tags
3691436931

36915-
for a single host.'
36932+
for a single host. If no source is specified, only deletes tags with no source.'
3691636933
operationId: DeleteHostTags
3691736934
parameters:
36918-
- description: This endpoint allows you to remove all user-assigned tags for
36919-
a single host.
36935+
- description: Specified host name to delete tags
3692036936
in: path
3692136937
name: host_name
3692236938
required: true
3692336939
schema:
3692436940
type: string
36925-
- description: 'The source of the tags (for example chef, puppet).
36926-
36927-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
36941+
- description: Source of the tags to be deleted. [Complete list of source attribute
36942+
values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
36943+
Use "user" source for custom-defined tags.
3692836944
in: query
3692936945
name: source
3693036946
required: false
@@ -36955,14 +36971,14 @@ paths:
3695536971
description: Return the list of tags that apply to a given host.
3695636972
operationId: GetHostTags
3695736973
parameters:
36958-
- description: When specified, filters list of tags to those tags with the specified
36959-
source.
36974+
- description: Name of the host to retrieve tags for
3696036975
in: path
3696136976
name: host_name
3696236977
required: true
3696336978
schema:
3696436979
type: string
36965-
- description: Source to filter.
36980+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
36981+
Use "user" source for custom-defined tags.
3696636982
in: query
3696736983
name: source
3696836984
required: false
@@ -36973,7 +36989,7 @@ paths:
3697336989
content:
3697436990
application/json:
3697536991
schema:
36976-
$ref: '#/components/schemas/HostTags'
36992+
$ref: '#/components/schemas/HostTagsOutput'
3697736993
description: OK
3697836994
'403':
3697936995
content:
@@ -36989,26 +37005,24 @@ paths:
3698937005
description: Not Found
3699037006
'429':
3699137007
$ref: '#/components/responses/TooManyRequestsResponse'
36992-
summary: Get host tags
37008+
summary: Get Host Tags
3699337009
tags:
3699437010
- Tags
3699537011
x-menu-order: 2
3699637012
post:
3699737013
description: 'This endpoint allows you to add new tags to a host,
3699837014

36999-
optionally specifying where these tags come from.'
37015+
optionally specifying what source these tags come from.'
3700037016
operationId: CreateHostTags
3700137017
parameters:
37002-
- description: This endpoint allows you to add new tags to a host, optionally
37003-
specifying where the tags came from.
37018+
- description: Specified host name to add new tags
3700437019
in: path
3700537020
name: host_name
3700637021
required: true
3700737022
schema:
3700837023
type: string
37009-
- description: 'The source of the tags.
37010-
37011-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
37024+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
37025+
Use "user" source for custom-defined tags.
3701237026
example: chef
3701337027
in: query
3701437028
name: source
@@ -37019,15 +37033,15 @@ paths:
3701937033
content:
3702037034
application/json:
3702137035
schema:
37022-
$ref: '#/components/schemas/HostTags'
37036+
$ref: '#/components/schemas/HostTagsInput'
3702337037
description: Update host tags request body.
3702437038
required: true
3702537039
responses:
3702637040
'201':
3702737041
content:
3702837042
application/json:
3702937043
schema:
37030-
$ref: '#/components/schemas/HostTags'
37044+
$ref: '#/components/schemas/HostTagsOutput'
3703137045
description: Created
3703237046
'403':
3703337047
content:
@@ -37054,16 +37068,14 @@ paths:
3705437068
an integration source with those supplied in the request.'
3705537069
operationId: UpdateHostTags
3705637070
parameters:
37057-
- description: This endpoint allows you to update/replace all in an integration
37058-
source with those supplied in the request.
37071+
- description: Specified host name to change tags
3705937072
in: path
3706037073
name: host_name
3706137074
required: true
3706237075
schema:
3706337076
type: string
37064-
- description: 'The source of the tags (for example chef, puppet).
37065-
37066-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)'
37077+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
37078+
Use "user" source for custom-defined tags.
3706737079
in: query
3706837080
name: source
3706937081
required: false
@@ -37073,15 +37085,15 @@ paths:
3707337085
content:
3707437086
application/json:
3707537087
schema:
37076-
$ref: '#/components/schemas/HostTags'
37088+
$ref: '#/components/schemas/HostTagsInput'
3707737089
description: Add tags to host
3707837090
required: true
3707937091
responses:
3708037092
'201':
3708137093
content:
3708237094
application/json:
3708337095
schema:
37084-
$ref: '#/components/schemas/HostTags'
37096+
$ref: '#/components/schemas/HostTagsOutput'
3708537097
description: OK
3708637098
'403':
3708737099
content:
@@ -40195,7 +40207,8 @@ tags:
4019540207

4019640208
by a source. For example, some valid sources include nagios, hudson, jenkins,
4019740209

40198-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
40210+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete
40211+
list of source type names under [API Source Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
4019940212

4020040213

4020140214
Read more about tags on [Getting Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).'

data/api/v1/translate_actions.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,19 +1012,19 @@
10121012
"request_schema_description": "Details of the global variable to create."
10131013
},
10141014
"ListHostTags": {
1015-
"description": "Return a mapping of tags to hosts for your whole infrastructure.",
1016-
"summary": "Get Tags"
1015+
"description": "Returns a mapping of tags to hosts. For each tag, the response returns a list of host names that contain this tag. There is a restriction of 10k total host names from the org that can be attached to tags and returned.",
1016+
"summary": "Get All Host Tags"
10171017
},
10181018
"DeleteHostTags": {
1019-
"description": "This endpoint allows you to remove all user-assigned tags\nfor a single host.",
1019+
"description": "This endpoint allows you to remove all tags\nfor a single host. If no source is specified, only deletes tags with no source.",
10201020
"summary": "Remove host tags"
10211021
},
10221022
"GetHostTags": {
10231023
"description": "Return the list of tags that apply to a given host.",
1024-
"summary": "Get host tags"
1024+
"summary": "Get Host Tags"
10251025
},
10261026
"CreateHostTags": {
1027-
"description": "This endpoint allows you to add new tags to a host,\noptionally specifying where these tags come from.",
1027+
"description": "This endpoint allows you to add new tags to a host,\noptionally specifying what source these tags come from.",
10281028
"summary": "Add tags to a host",
10291029
"request_description": "Update host tags request body.",
10301030
"request_schema_description": "Set of tags to associate with your host."

0 commit comments

Comments
 (0)