@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 - Specified host name to add new tags (required)body - Update host tags request body. (required)ApiException - if fails to make API callpublic CompletableFuture<HostTags> createHostTagsAsync(String hostName, HostTags body)
hostName - Specified host name to add new tags (required)body - Update host tags request body. (required)public HostTags createHostTags(String hostName, HostTags body, TagsApi.CreateHostTagsOptionalParameters parameters) throws ApiException
hostName - Specified host name to add new tags (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 - Specified host name to add new tags (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 - Specified host name to add new tags (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 - Specified host name to add new tags (required)body - Update host tags request body. (required)parameters - Optional parameters for the request.public void deleteHostTags(String hostName) throws ApiException
hostName - Specified host name to delete tags (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteHostTagsAsync(String hostName)
hostName - Specified host name to delete tags (required)public void deleteHostTags(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) throws ApiException
hostName - Specified host name to delete tags (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Void> deleteHostTagsAsync(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters)
hostName - Specified host name to delete tags (required)parameters - Optional parameters for the request.public ApiResponse<Void> deleteHostTagsWithHttpInfo(String hostName, TagsApi.DeleteHostTagsOptionalParameters parameters) throws ApiException
hostName - Specified host name to delete tags (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 - Specified host name to delete tags (required)parameters - Optional parameters for the request.public HostTags getHostTags(String hostName) throws ApiException
hostName - Name of the host to retrieve tags for (required)ApiException - if fails to make API callpublic CompletableFuture<HostTags> getHostTagsAsync(String hostName)
hostName - Name of the host to retrieve tags for (required)public HostTags getHostTags(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) throws ApiException
hostName - Name of the host to retrieve tags for (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<HostTags> getHostTagsAsync(String hostName, TagsApi.GetHostTagsOptionalParameters parameters)
hostName - Name of the host to retrieve tags for (required)parameters - Optional parameters for the request.public ApiResponse<HostTags> getHostTagsWithHttpInfo(String hostName, TagsApi.GetHostTagsOptionalParameters parameters) throws ApiException
hostName - Name of the host to retrieve tags for (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 - Name of the host to retrieve tags for (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 - Specified host name to change tags (required)body - Add tags to host (required)ApiException - if fails to make API callpublic CompletableFuture<HostTags> updateHostTagsAsync(String hostName, HostTags body)
hostName - Specified host name to change tags (required)body - Add tags to host (required)public HostTags updateHostTags(String hostName, HostTags body, TagsApi.UpdateHostTagsOptionalParameters parameters) throws ApiException
hostName - Specified host name to change tags (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 - Specified host name to change tags (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 - Specified host name to change tags (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 - Specified host name to change tags (required)body - Add tags to host (required)parameters - Optional parameters for the request.Copyright © 2026. All rights reserved.