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
+35-33Lines changed: 35 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -4180,14 +4180,14 @@ components:
4180
4180
type: boolean
4181
4181
type: object
4182
4182
HostTags:
4183
-
description: Set of tags to associate with your host.
4183
+
description: Host name and an array of its tags
4184
4184
properties:
4185
4185
host:
4186
4186
description: Your host name.
4187
4187
example: test.host
4188
4188
type: string
4189
4189
tags:
4190
-
description: A list of tags to apply to the host.
4190
+
description: A list of tags associated with a host.
4191
4191
items:
4192
4192
description: A given tag in a list.
4193
4193
example: environment:production
@@ -18703,18 +18703,18 @@ components:
18703
18703
- match
18704
18704
type: object
18705
18705
TagToHosts:
18706
-
description: In this object, the key is the tag, the value is a list of host
18707
-
names that are reporting that tag.
18706
+
description: In this object, the key is the tag, and the value is a list of
18707
+
host names that are reporting that tag.
18708
18708
properties:
18709
18709
tags:
18710
18710
additionalProperties:
18711
-
description: A list of additional properties for tags.
18711
+
description: A list of host names which contain this tag
18712
18712
items:
18713
18713
description: A given tag in a list.
18714
18714
example: test.metric.host
18715
18715
type: string
18716
18716
type: array
18717
-
description: A list of tags to apply to the host.
18717
+
description: A mapping of tags to host names
18718
18718
type: object
18719
18719
type: object
18720
18720
TargetFormatType:
@@ -35726,11 +35726,13 @@ paths:
35726
35726
- synthetics_global_variable_write
35727
35727
/api/v1/tags/hosts:
35728
35728
get:
35729
-
description: Return a mapping of tags to hosts for your whole infrastructure.
35729
+
description: Returns a mapping of tags to hosts. For each tag, the response
35730
+
returns a list of host names that contain this tag. There is a restriction
35731
+
of 10k total host names from the org that can be attached to tags and returned.
35730
35732
operationId: ListHostTags
35731
35733
parameters:
35732
-
- description: When specified, filters host list to those tags with the specified
35733
-
source.
35734
+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35735
+
Use "user" source for custom-defined tags.
35734
35736
in: query
35735
35737
name: source
35736
35738
required: false
@@ -35761,29 +35763,29 @@ paths:
35761
35763
- apiKeyAuth: []
35762
35764
appKeyAuth: []
35763
35765
- AuthZ: []
35764
-
summary: Get Tags
35766
+
summary: Get All Host Tags
35765
35767
tags:
35766
35768
- Tags
35767
35769
x-permission:
35768
35770
operator: OPEN
35769
35771
permissions: []
35770
35772
/api/v1/tags/hosts/{host_name}:
35771
35773
delete:
35772
-
description: 'This endpoint allows you to remove all user-assigned tags
35774
+
description: 'This endpoint allows you to remove all tags
35773
35775
35774
-
for a single host.'
35776
+
for a single host. If no source is specified, only deletes from the source
35777
+
"User".'
35775
35778
operationId: DeleteHostTags
35776
35779
parameters:
35777
-
- description: This endpoint allows you to remove all user-assigned tags for
35778
-
a single host.
35780
+
- description: Specified host name to delete tags
35779
35781
in: path
35780
35782
name: host_name
35781
35783
required: true
35782
35784
schema:
35783
35785
type: string
35784
-
- description: 'The source of the tags (for example chef, puppet).
35785
-
35786
-
[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.
35814
35816
operationId: GetHostTags
35815
35817
parameters:
35816
-
- description: When specified, filters list of tags to those tags with the specified
35817
-
source.
35818
+
- description: Name of the host to retrieve tags for
35818
35819
in: path
35819
35820
name: host_name
35820
35821
required: true
35821
35822
schema:
35822
35823
type: string
35823
-
- 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,
35855
35857
35856
-
optionally specifying where these tags come from.'
35858
+
optionally specifying what source these tags come from. If tags exist, appends
35859
+
tags to the end of the existing tag list'
35857
35860
operationId: CreateHostTags
35858
35861
parameters:
35859
-
- description: This endpoint allows you to add new tags to a host, optionally
35860
-
specifying where the tags came from.
35862
+
- description: Specified host name to add new tags
35861
35863
in: path
35862
35864
name: host_name
35863
35865
required: true
35864
35866
schema:
35865
35867
type: string
35866
-
- description: 'The source of the tags.
35867
-
35868
-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35868
+
- description: Source to add tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35869
+
Use "user" source for custom-defined tags. If no source is specified, defaults
35870
+
to "user".
35869
35871
example: chef
35870
35872
in: query
35871
35873
name: source
@@ -35910,16 +35912,15 @@ paths:
35910
35912
an integration source with those supplied in the request.'
35911
35913
operationId: UpdateHostTags
35912
35914
parameters:
35913
-
- description: This endpoint allows you to update/replace all in an integration
35914
-
source with those supplied in the request.
35915
+
- description: Specified host name to change tags
35915
35916
in: path
35916
35917
name: host_name
35917
35918
required: true
35918
35919
schema:
35919
35920
type: string
35920
-
- description: 'The source of the tags (for example chef, puppet).
35921
-
35922
-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)'
35921
+
- description: Source to update tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35922
+
Use "user" source for custom-defined tags. If no source specified, defaults
35923
+
to "user".
35923
35924
in: query
35924
35925
name: source
35925
35926
required: false
@@ -38935,7 +38936,8 @@ tags:
38935
38936
38936
38937
by a source. For example, some valid sources include nagios, hudson, jenkins,
38937
38938
38938
-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
38939
+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete
38940
+
list of source type names under [API Source Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
38939
38941
38940
38942
38941
38943
Read more about tags on [Getting Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).'
Copy file name to clipboardExpand all lines: src/datadogV1/api/api_tags.rs
+19-25Lines changed: 19 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,12 @@ use std::io::Write;
14
14
#[non_exhaustive]
15
15
#[derive(Clone,Default,Debug)]
16
16
pubstructCreateHostTagsOptionalParams{
17
-
/// The source of the tags.
18
-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
17
+
/// Source to add tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source is specified, defaults to "user".
19
18
pubsource:Option<String>,
20
19
}
21
20
22
21
implCreateHostTagsOptionalParams{
23
-
/// The source of the tags.
24
-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
22
+
/// Source to add tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source is specified, defaults to "user".
/// The source of the tags (for example chef, puppet).
36
-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
33
+
/// Source of the tags to be deleted. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
37
34
pubsource:Option<String>,
38
35
}
39
36
40
37
implDeleteHostTagsOptionalParams{
41
-
/// The source of the tags (for example chef, puppet).
42
-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
38
+
/// Source of the tags to be deleted. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
54
50
pubsource:Option<String>,
55
51
}
56
52
57
53
implGetHostTagsOptionalParams{
58
-
/// Source to filter.
54
+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
/// When specified, filters host list to those tags with the specified source.
65
+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
70
66
pubsource:Option<String>,
71
67
}
72
68
73
69
implListHostTagsOptionalParams{
74
-
/// When specified, filters host list to those tags with the specified source.
70
+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
/// The source of the tags (for example chef, puppet).
86
-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>)
81
+
/// Source to update tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source specified, defaults to "user".
87
82
pubsource:Option<String>,
88
83
}
89
84
90
85
implUpdateHostTagsOptionalParams{
91
-
/// The source of the tags (for example chef, puppet).
92
-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>)
86
+
/// Source to update tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source specified, defaults to "user".
/// The component of your infrastructure responsible for a tag is identified
146
140
/// by a source. For example, some valid sources include nagios, hudson, jenkins,
147
-
/// users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
141
+
/// 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>).
148
142
///
149
143
/// Read more about tags on [Getting Started with Tags](<https://docs.datadoghq.com/getting_started/tagging/>).
150
144
#[derive(Debug,Clone)]
@@ -212,7 +206,7 @@ impl TagsAPI {
212
206
}
213
207
214
208
/// This endpoint allows you to add new tags to a host,
215
-
/// optionally specifying where these tags come from.
209
+
/// optionally specifying what source these tags come from. If tags exist, appends tags to the end of the existing tag list
216
210
pubasyncfncreate_host_tags(
217
211
&self,
218
212
host_name:String,
@@ -237,7 +231,7 @@ impl TagsAPI {
237
231
}
238
232
239
233
/// This endpoint allows you to add new tags to a host,
240
-
/// optionally specifying where these tags come from.
234
+
/// optionally specifying what source these tags come from. If tags exist, appends tags to the end of the existing tag list
241
235
pubasyncfncreate_host_tags_with_http_info(
242
236
&self,
243
237
host_name:String,
@@ -378,8 +372,8 @@ impl TagsAPI {
378
372
}
379
373
}
380
374
381
-
/// This endpoint allows you to remove all user-assigned tags
382
-
/// for a single host.
375
+
/// This endpoint allows you to remove all tags
376
+
/// for a single host. If no source is specified, only deletes from the source "User".
383
377
pubasyncfndelete_host_tags(
384
378
&self,
385
379
host_name:String,
@@ -394,8 +388,8 @@ impl TagsAPI {
394
388
}
395
389
}
396
390
397
-
/// This endpoint allows you to remove all user-assigned tags
398
-
/// for a single host.
391
+
/// This endpoint allows you to remove all tags
392
+
/// for a single host. If no source is specified, only deletes from the source "User".
399
393
pubasyncfndelete_host_tags_with_http_info(
400
394
&self,
401
395
host_name:String,
@@ -594,7 +588,7 @@ impl TagsAPI {
594
588
}
595
589
}
596
590
597
-
/// Return a mapping of tags to hosts for your whole infrastructure.
591
+
/// 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.
598
592
pubasyncfnlist_host_tags(
599
593
&self,
600
594
params:ListHostTagsOptionalParams,
@@ -613,7 +607,7 @@ impl TagsAPI {
613
607
}
614
608
}
615
609
616
-
/// Return a mapping of tags to hosts for your whole infrastructure.
610
+
/// 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.
0 commit comments