@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TagsApi.CreateHostTagsOptionalParameters
Manage optional parameters to createHostTags.
|
static class |
TagsApi.DeleteHostTagsOptionalParameters
Manage optional parameters to deleteHostTags.
|
static class |
TagsApi.GetHostTagsOptionalParameters
Manage optional parameters to getHostTags.
|
static class |
TagsApi.ListHostTagsOptionalParameters
Manage optional parameters to listHostTags.
|
static class |
TagsApi.UpdateHostTagsOptionalParameters
Manage optional parameters to updateHostTags.
|
public TagsApi()
public TagsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic HostTags createHostTags(String hostName, HostTags body) throws ApiException
hostName - This endpoint allows you to add new tags to a host, optionally specifying where
the tags came from. (required)body - Update host tags request body. (required)ApiException - if fails to make API callpublic CompletableFuture<HostTags> createHostTagsAsync(String hostName, HostTags body)
hostName - This endpoint allows you to add new tags to a host, optionally specifying where
the tags came from. (required)body - Update host tags request body. (required)public HostTags createHostTags(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) throws ApiException
hostName - This endpoint allows you to add new tags to a host, optionally specifying where
the tags came from. (required)body - Update host tags request body. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<HostTags> createHostTagsAsync(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters)
hostName - This endpoint allows you to add new tags to a host, optionally specifying where
the tags came from. (required)body - Update host tags request body. (required)parameters - Optional parameters for the request.public ApiResponse<HostTags> createHostTagsWithHttpInfo(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) throws ApiException
hostName - This endpoint allows you to add new tags to a host, optionally specifying where
the tags came from. (required)body - Update host tags request body. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<HostTags>> createHostTagsWithHttpInfoAsync(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters)
hostName - This endpoint allows you to add new tags to a host, optionally specifying where
the tags came from. (required)body - Update host tags request body. (required)parameters - Optional parameters for the request.public void deleteHostTags(String hostName) throws ApiException
hostName - This endpoint allows you to remove all user-assigned tags for a single host.
(required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteHostTagsAsync(String hostName)
hostName - This endpoint allows you to remove all user-assigned tags for a single host.
(required)public void deleteHostTags(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) throws ApiException
hostName - This endpoint allows you to remove all user-assigned tags for a single host.
(required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Void> deleteHostTagsAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters)
hostName - This endpoint allows you to remove all user-assigned tags for a single host.
(required)parameters - Optional parameters for the request.public ApiResponse<Void> deleteHostTagsWithHttpInfo(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) throws ApiException
hostName - This endpoint allows you to remove all user-assigned tags for a single host.
(required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteHostTagsWithHttpInfoAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters)
hostName - This endpoint allows you to remove all user-assigned tags for a single host.
(required)parameters - Optional parameters for the request.public HostTags getHostTags(String hostName) throws ApiException
hostName - When specified, filters list of tags to those tags with the specified source.
(required)ApiException - if fails to make API callpublic CompletableFuture<HostTags> getHostTagsAsync(String hostName)
hostName - When specified, filters list of tags to those tags with the specified source.
(required)public HostTags getHostTags(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) throws ApiException
hostName - When specified, filters list of tags to those tags with the specified source.
(required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<HostTags> getHostTagsAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters)
hostName - When specified, filters list of tags to those tags with the specified source.
(required)parameters - Optional parameters for the request.public ApiResponse<HostTags> getHostTagsWithHttpInfo(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) throws ApiException
hostName - When specified, filters list of tags to those tags with the specified source.
(required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<HostTags>> getHostTagsWithHttpInfoAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters)
hostName - When specified, filters list of tags to those tags with the specified source.
(required)parameters - Optional parameters for the request.public TagToHosts listHostTags() throws ApiException
See listHostTagsWithHttpInfo(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<TagToHosts> listHostTagsAsync()
See listHostTagsWithHttpInfoAsync(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).
public TagToHosts listHostTags(TagsApi.ListHostTagsOptionalParameters parameters) throws ApiException
See listHostTagsWithHttpInfo(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TagToHosts> listHostTagsAsync(TagsApi.ListHostTagsOptionalParameters parameters)
See listHostTagsWithHttpInfoAsync(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).
parameters - Optional parameters for the request.public ApiResponse<TagToHosts> listHostTagsWithHttpInfo(TagsApi.ListHostTagsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TagToHosts>> listHostTagsWithHttpInfoAsync(TagsApi.ListHostTagsOptionalParameters parameters)
See listHostTagsWithHttpInfo(com.datadog.api.client.v1.api.TagsApi.ListHostTagsOptionalParameters).
parameters - Optional parameters for the request.public HostTags updateHostTags(String hostName, HostTags body) throws ApiException
hostName - This endpoint allows you to update/replace all in an integration source with
those supplied in the request. (required)body - Add tags to host (required)ApiException - if fails to make API callpublic CompletableFuture<HostTags> updateHostTagsAsync(String hostName, HostTags body)
hostName - This endpoint allows you to update/replace all in an integration source with
those supplied in the request. (required)body - Add tags to host (required)public HostTags updateHostTags(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) throws ApiException
hostName - This endpoint allows you to update/replace all in an integration source with
those supplied in the request. (required)body - Add tags to host (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<HostTags> updateHostTagsAsync(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters)
hostName - This endpoint allows you to update/replace all in an integration source with
those supplied in the request. (required)body - Add tags to host (required)parameters - Optional parameters for the request.public ApiResponse<HostTags> updateHostTagsWithHttpInfo(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) throws ApiException
hostName - This endpoint allows you to update/replace all in an integration source with
those supplied in the request. (required)body - Add tags to host (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<HostTags>> updateHostTagsWithHttpInfoAsync(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters)
hostName - This endpoint allows you to update/replace all in an integration source with
those supplied in the request. (required)body - Add tags to host (required)parameters - Optional parameters for the request.Copyright © 2024. All rights reserved.