You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .generator/schemas/v1/openapi.yaml
+50-37Lines changed: 50 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -4179,7 +4179,7 @@ components:
4179
4179
example: false
4180
4180
type: boolean
4181
4181
type: object
4182
-
HostTags:
4182
+
HostTagsInput:
4183
4183
description: Set of tags to associate with your host.
4184
4184
properties:
4185
4185
host:
@@ -4194,6 +4194,21 @@ components:
4194
4194
type: string
4195
4195
type: array
4196
4196
type: object
4197
+
HostTagsOutput:
4198
+
description: Host name and an array of its tags
4199
+
properties:
4200
+
host:
4201
+
description: Your host name.
4202
+
example: test.host
4203
+
type: string
4204
+
tags:
4205
+
description: A list of tags attached to a given host.
4206
+
items:
4207
+
description: A given tag in a list.
4208
+
example: environment:production
4209
+
type: string
4210
+
type: array
4211
+
type: object
4197
4212
HostTotals:
4198
4213
description: Total number of host currently monitored by Datadog.
4199
4214
properties:
@@ -18689,18 +18704,18 @@ components:
18689
18704
- match
18690
18705
type: object
18691
18706
TagToHosts:
18692
-
description: In this object, the key is the tag, the value is a list of host
18693
-
names that are reporting that tag.
18707
+
description: In this object, the key is the tag, and the value is a list of
18708
+
host names that are reporting that tag.
18694
18709
properties:
18695
18710
tags:
18696
18711
additionalProperties:
18697
-
description: A list of additional properties for tags.
18712
+
description: A list of host names which contain this tag
18698
18713
items:
18699
18714
description: A given tag in a list.
18700
18715
example: test.metric.host
18701
18716
type: string
18702
18717
type: array
18703
-
description: A list of tags to apply to the host.
18718
+
description: A mapping of tags to host names
18704
18719
type: object
18705
18720
type: object
18706
18721
TargetFormatType:
@@ -35712,11 +35727,13 @@ paths:
35712
35727
- synthetics_global_variable_write
35713
35728
/api/v1/tags/hosts:
35714
35729
get:
35715
-
description: Return a mapping of tags to hosts for your whole infrastructure.
35730
+
description: Returns a mapping of tags to hosts. For each tag, the response
35731
+
returns a list of host names that contain this tag. There is a restriction
35732
+
of 10k total host names from the org that can be attached to tags and returned.
35716
35733
operationId: ListHostTags
35717
35734
parameters:
35718
-
- description: When specified, filters host list to those tags with the specified
35719
-
source.
35735
+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35736
+
Use "user" source for custom-defined tags.
35720
35737
in: query
35721
35738
name: source
35722
35739
required: false
@@ -35747,29 +35764,28 @@ paths:
35747
35764
- apiKeyAuth: []
35748
35765
appKeyAuth: []
35749
35766
- AuthZ: []
35750
-
summary: Get Tags
35767
+
summary: Get All Host Tags
35751
35768
tags:
35752
35769
- Tags
35753
35770
x-permission:
35754
35771
operator: OPEN
35755
35772
permissions: []
35756
35773
/api/v1/tags/hosts/{host_name}:
35757
35774
delete:
35758
-
description: 'This endpoint allows you to remove all user-assigned tags
35775
+
description: 'This endpoint allows you to remove all tags
35759
35776
35760
-
for a single host.'
35777
+
for a single host. If no source is specified, only deletes tags with no source.'
35761
35778
operationId: DeleteHostTags
35762
35779
parameters:
35763
-
- description: This endpoint allows you to remove all user-assigned tags for
35764
-
a single host.
35780
+
- description: Specified host name to delete tags
35765
35781
in: path
35766
35782
name: host_name
35767
35783
required: true
35768
35784
schema:
35769
35785
type: string
35770
-
- description: 'The source of the tags (for example chef, puppet).
35771
-
35772
-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35786
+
- description: Source of the tags to be deleted. [Complete list of source attribute
description: Return the list of tags that apply to a given host.
35800
35816
operationId: GetHostTags
35801
35817
parameters:
35802
-
- description: When specified, filters list of tags to those tags with the specified
35803
-
source.
35818
+
- description: Name of the host to retrieve tags for
35804
35819
in: path
35805
35820
name: host_name
35806
35821
required: true
35807
35822
schema:
35808
35823
type: string
35809
-
- description: Source to filter.
35824
+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
description: 'This endpoint allows you to add new tags to a host,
35841
35857
35842
-
optionally specifying where these tags come from.'
35858
+
optionally specifying what source these tags come from.'
35843
35859
operationId: CreateHostTags
35844
35860
parameters:
35845
-
- description: This endpoint allows you to add new tags to a host, optionally
35846
-
specifying where the tags came from.
35861
+
- description: Specified host name to add new tags
35847
35862
in: path
35848
35863
name: host_name
35849
35864
required: true
35850
35865
schema:
35851
35866
type: string
35852
-
- description: 'The source of the tags.
35853
-
35854
-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35867
+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35868
+
Use "user" source for custom-defined tags.
35855
35869
example: chef
35856
35870
in: query
35857
35871
name: source
@@ -35862,15 +35876,15 @@ paths:
35862
35876
content:
35863
35877
application/json:
35864
35878
schema:
35865
-
$ref: '#/components/schemas/HostTags'
35879
+
$ref: '#/components/schemas/HostTagsInput'
35866
35880
description: Update host tags request body.
35867
35881
required: true
35868
35882
responses:
35869
35883
'201':
35870
35884
content:
35871
35885
application/json:
35872
35886
schema:
35873
-
$ref: '#/components/schemas/HostTags'
35887
+
$ref: '#/components/schemas/HostTagsOutput'
35874
35888
description: Created
35875
35889
'403':
35876
35890
content:
@@ -35896,16 +35910,14 @@ paths:
35896
35910
an integration source with those supplied in the request.'
35897
35911
operationId: UpdateHostTags
35898
35912
parameters:
35899
-
- description: This endpoint allows you to update/replace all in an integration
35900
-
source with those supplied in the request.
35913
+
- description: Specified host name to change tags
35901
35914
in: path
35902
35915
name: host_name
35903
35916
required: true
35904
35917
schema:
35905
35918
type: string
35906
-
- description: 'The source of the tags (for example chef, puppet).
35907
-
35908
-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)'
35919
+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35920
+
Use "user" source for custom-defined tags.
35909
35921
in: query
35910
35922
name: source
35911
35923
required: false
@@ -35915,15 +35927,15 @@ paths:
35915
35927
content:
35916
35928
application/json:
35917
35929
schema:
35918
-
$ref: '#/components/schemas/HostTags'
35930
+
$ref: '#/components/schemas/HostTagsInput'
35919
35931
description: Add tags to host
35920
35932
required: true
35921
35933
responses:
35922
35934
'201':
35923
35935
content:
35924
35936
application/json:
35925
35937
schema:
35926
-
$ref: '#/components/schemas/HostTags'
35938
+
$ref: '#/components/schemas/HostTagsOutput'
35927
35939
description: OK
35928
35940
'403':
35929
35941
content:
@@ -38918,7 +38930,8 @@ tags:
38918
38930
38919
38931
by a source. For example, some valid sources include nagios, hudson, jenkins,
38920
38932
38921
-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
38933
+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete
38934
+
list of source type names under [API Source Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
38922
38935
38923
38936
38924
38937
Read more about tags on [Getting Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).'
Copy file name to clipboardExpand all lines: services/tags/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ tags to a particular host.
10
10
11
11
The component of your infrastructure responsible for a tag is identified
12
12
by a source. For example, some valid sources include nagios, hudson, jenkins,
13
-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
13
+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete list of source type names under [API Source Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
14
14
15
15
Read more about tags on [Getting Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).
0 commit comments