Package com.datadog.api.client.v2.api
Class IpAllowlistApi
java.lang.Object
com.datadog.api.client.v2.api.IpAllowlistApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IpAllowlistApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.Get IP Allowlist.Get IP Allowlist.Returns the IP allowlist and its enabled or disabled state.Get IP Allowlist.voidsetApiClient(ApiClient apiClient) Set the API client.Update IP Allowlist.Update IP Allowlist.Edit the entries in the IP allowlist, and enable or disable it.Update IP Allowlist.
-
Constructor Details
-
IpAllowlistApi
public IpAllowlistApi() -
IpAllowlistApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
getIPAllowlist
Get IP Allowlist.- Returns:
- IPAllowlistResponse
- Throws:
ApiException- if fails to make API call
-
getIPAllowlistAsync
Get IP Allowlist.- Returns:
- CompletableFuture<IPAllowlistResponse>
-
getIPAllowlistWithHttpInfo
Returns the IP allowlist and its enabled or disabled state.- Returns:
- ApiResponse<IPAllowlistResponse>
- 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 -
-
getIPAllowlistWithHttpInfoAsync
Get IP Allowlist.- Returns:
- CompletableFuture<ApiResponse<IPAllowlistResponse>>
-
updateIPAllowlist
Update IP Allowlist.See
updateIPAllowlistWithHttpInfo(com.datadog.api.client.v2.model.IPAllowlistUpdateRequest).- Parameters:
body- (required)- Returns:
- IPAllowlistResponse
- Throws:
ApiException- if fails to make API call
-
updateIPAllowlistAsync
Update IP Allowlist.See
updateIPAllowlistWithHttpInfoAsync(com.datadog.api.client.v2.model.IPAllowlistUpdateRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<IPAllowlistResponse>
-
updateIPAllowlistWithHttpInfo
public ApiResponse<IPAllowlistResponse> updateIPAllowlistWithHttpInfo(IPAllowlistUpdateRequest body) throws ApiException Edit the entries in the IP allowlist, and enable or disable it.- Parameters:
body- (required)- Returns:
- ApiResponse<IPAllowlistResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateIPAllowlistWithHttpInfoAsync
public CompletableFuture<ApiResponse<IPAllowlistResponse>> updateIPAllowlistWithHttpInfoAsync(IPAllowlistUpdateRequest body) Update IP Allowlist.See
updateIPAllowlistWithHttpInfo(com.datadog.api.client.v2.model.IPAllowlistUpdateRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<IPAllowlistResponse>>
-