Package com.datadog.api.client.v1.api
Class TagsApi
java.lang.Object
com.datadog.api.client.v1.api.TagsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class TagsApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to createHostTags.static classManage optional parameters to deleteHostTags.static classManage optional parameters to getHostTags.static classManage optional parameters to listHostTags.static classManage optional parameters to updateHostTags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHostTags(String hostName, HostTags body) Add tags to a host.createHostTags(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) Add tags to a host.createHostTagsAsync(String hostName, HostTags body) Add tags to a host.createHostTagsAsync(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) Add tags to a host.createHostTagsWithHttpInfo(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) This endpoint allows you to add new tags to a host, optionally specifying what source these tags come from.createHostTagsWithHttpInfoAsync(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) Add tags to a host.voiddeleteHostTags(String hostName) Remove host tags.voiddeleteHostTags(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) Remove host tags.deleteHostTagsAsync(String hostName) Remove host tags.deleteHostTagsAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) Remove host tags.deleteHostTagsWithHttpInfo(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) This endpoint allows you to remove all tags for a single host.deleteHostTagsWithHttpInfoAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) Remove host tags.Get the API client.getHostTags(String hostName) Get Host Tags.getHostTags(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) Get Host Tags.getHostTagsAsync(String hostName) Get Host Tags.getHostTagsAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) Get Host Tags.getHostTagsWithHttpInfo(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) Return the list of tags that apply to a given host.getHostTagsWithHttpInfoAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) Get Host Tags.Get All Host Tags.listHostTags(TagsApi.ListHostTagsOptionalParameters parameters) Get All Host Tags.Get All Host Tags.Get All Host Tags.Returns a mapping of tags to hosts.Get All Host Tags.voidsetApiClient(ApiClient apiClient) Set the API client.updateHostTags(String hostName, HostTags body) Update host tags.updateHostTags(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) Update host tags.updateHostTagsAsync(String hostName, HostTags body) Update host tags.updateHostTagsAsync(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) Update host tags.updateHostTagsWithHttpInfo(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) This endpoint allows you to update/replace all tags in an integration source with those supplied in the request.updateHostTagsWithHttpInfoAsync(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) Update host tags.
-
Constructor Details
-
TagsApi
public TagsApi() -
TagsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createHostTags
Add tags to a host.- Parameters:
hostName- Specified host name to add new tags (required)body- Update host tags request body. (required)- Returns:
- HostTags
- Throws:
ApiException- if fails to make API call
-
createHostTagsAsync
Add tags to a host.- Parameters:
hostName- Specified host name to add new tags (required)body- Update host tags request body. (required)- Returns:
- CompletableFuture<HostTags>
-
createHostTags
public HostTags createHostTags(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) throws ApiException Add tags to a host.- Parameters:
hostName- Specified host name to add new tags (required)body- Update host tags request body. (required)parameters- Optional parameters for the request.- Returns:
- HostTags
- Throws:
ApiException- if fails to make API call
-
createHostTagsAsync
public CompletableFuture<HostTags> createHostTagsAsync(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) Add tags to a host.- Parameters:
hostName- Specified host name to add new tags (required)body- Update host tags request body. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<HostTags>
-
createHostTagsWithHttpInfo
public ApiResponse<HostTags> createHostTagsWithHttpInfo(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) throws ApiException This endpoint allows you to add new tags to a host, optionally specifying what source these tags come from. If tags already exist, appends new tags to the tag list. If no source is specified, defaults to "user".- Parameters:
hostName- Specified host name to add new tags (required)body- Update host tags request body. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<HostTags>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
createHostTagsWithHttpInfoAsync
public CompletableFuture<ApiResponse<HostTags>> createHostTagsWithHttpInfoAsync(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) Add tags to a host.- Parameters:
hostName- Specified host name to add new tags (required)body- Update host tags request body. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<HostTags>>
-
deleteHostTags
Remove host tags.- Parameters:
hostName- Specified host name to delete tags (required)- Throws:
ApiException- if fails to make API call
-
deleteHostTagsAsync
Remove host tags.- Parameters:
hostName- Specified host name to delete tags (required)- Returns:
- CompletableFuture
-
deleteHostTags
public void deleteHostTags(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) throws ApiException Remove host tags.- Parameters:
hostName- Specified host name to delete tags (required)parameters- Optional parameters for the request.- Throws:
ApiException- if fails to make API call
-
deleteHostTagsAsync
public CompletableFuture<Void> deleteHostTagsAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) Remove host tags.- Parameters:
hostName- Specified host name to delete tags (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture
-
deleteHostTagsWithHttpInfo
public ApiResponse<Void> deleteHostTagsWithHttpInfo(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) throws ApiException This endpoint allows you to remove all tags for a single host. If no source is specified, only deletes from the source "User".- Parameters:
hostName- Specified host name to delete tags (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteHostTagsWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteHostTagsWithHttpInfoAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) Remove host tags.- Parameters:
hostName- Specified host name to delete tags (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getHostTags
Get Host Tags.- Parameters:
hostName- Name of the host to retrieve tags for (required)- Returns:
- HostTags
- Throws:
ApiException- if fails to make API call
-
getHostTagsAsync
Get Host Tags.- Parameters:
hostName- Name of the host to retrieve tags for (required)- Returns:
- CompletableFuture<HostTags>
-
getHostTags
public HostTags getHostTags(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) throws ApiException Get Host Tags.- Parameters:
hostName- Name of the host to retrieve tags for (required)parameters- Optional parameters for the request.- Returns:
- HostTags
- Throws:
ApiException- if fails to make API call
-
getHostTagsAsync
public CompletableFuture<HostTags> getHostTagsAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) Get Host Tags.- Parameters:
hostName- Name of the host to retrieve tags for (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<HostTags>
-
getHostTagsWithHttpInfo
public ApiResponse<HostTags> getHostTagsWithHttpInfo(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) throws ApiException Return the list of tags that apply to a given host.- Parameters:
hostName- Name of the host to retrieve tags for (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<HostTags>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getHostTagsWithHttpInfoAsync
public CompletableFuture<ApiResponse<HostTags>> getHostTagsWithHttpInfoAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) Get Host Tags.- Parameters:
hostName- Name of the host to retrieve tags for (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<HostTags>>
-
listHostTags
Get All Host Tags.See
listHostTagsWithHttpInfo(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).- Returns:
- TagToHosts
- Throws:
ApiException- if fails to make API call
-
listHostTagsAsync
Get All Host Tags.See
listHostTagsWithHttpInfoAsync(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).- Returns:
- CompletableFuture<TagToHosts>
-
listHostTags
public TagToHosts listHostTags(TagsApi.ListHostTagsOptionalParameters parameters) throws ApiException Get All Host Tags.See
listHostTagsWithHttpInfo(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).- Parameters:
parameters- Optional parameters for the request.- Returns:
- TagToHosts
- Throws:
ApiException- if fails to make API call
-
listHostTagsAsync
public CompletableFuture<TagToHosts> listHostTagsAsync(TagsApi.ListHostTagsOptionalParameters parameters) Get All Host Tags.See
listHostTagsWithHttpInfoAsync(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<TagToHosts>
-
listHostTagsWithHttpInfo
public ApiResponse<TagToHosts> listHostTagsWithHttpInfo(TagsApi.ListHostTagsOptionalParameters parameters) throws ApiException 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.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<TagToHosts>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
listHostTagsWithHttpInfoAsync
public CompletableFuture<ApiResponse<TagToHosts>> listHostTagsWithHttpInfoAsync(TagsApi.ListHostTagsOptionalParameters parameters) Get All Host Tags.See
listHostTagsWithHttpInfo(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<TagToHosts>>
-
updateHostTags
Update host tags.- Parameters:
hostName- Specified host name to change tags (required)body- Add tags to host (required)- Returns:
- HostTags
- Throws:
ApiException- if fails to make API call
-
updateHostTagsAsync
Update host tags.- Parameters:
hostName- Specified host name to change tags (required)body- Add tags to host (required)- Returns:
- CompletableFuture<HostTags>
-
updateHostTags
public HostTags updateHostTags(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) throws ApiException Update host tags.- Parameters:
hostName- Specified host name to change tags (required)body- Add tags to host (required)parameters- Optional parameters for the request.- Returns:
- HostTags
- Throws:
ApiException- if fails to make API call
-
updateHostTagsAsync
public CompletableFuture<HostTags> updateHostTagsAsync(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) Update host tags.- Parameters:
hostName- Specified host name to change tags (required)body- Add tags to host (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<HostTags>
-
updateHostTagsWithHttpInfo
public ApiResponse<HostTags> updateHostTagsWithHttpInfo(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) throws ApiException This endpoint allows you to update/replace all tags in an integration source with those supplied in the request.- Parameters:
hostName- Specified host name to change tags (required)body- Add tags to host (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<HostTags>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateHostTagsWithHttpInfoAsync
public CompletableFuture<ApiResponse<HostTags>> updateHostTagsWithHttpInfoAsync(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) Update host tags.- Parameters:
hostName- Specified host name to change tags (required)body- Add tags to host (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<HostTags>>
-