Package com.datadog.api.client.v2.api
Class CustomerOrgApi
java.lang.Object
com.datadog.api.client.v2.api.CustomerOrgApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomerOrgApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDisable the authenticated customer organization.Disable the authenticated customer organization.Disable the Datadog organization associated with the authenticated user or API key.Disable the authenticated customer organization.Get the API client.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
CustomerOrgApi
public CustomerOrgApi() -
CustomerOrgApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
disableCustomerOrg
public CustomerOrgDisableResponse disableCustomerOrg(CustomerOrgDisableRequest body) throws ApiException Disable the authenticated customer organization.See
disableCustomerOrgWithHttpInfo(com.datadog.api.client.v2.model.CustomerOrgDisableRequest).- Parameters:
body- (required)- Returns:
- CustomerOrgDisableResponse
- Throws:
ApiException- if fails to make API call
-
disableCustomerOrgAsync
public CompletableFuture<CustomerOrgDisableResponse> disableCustomerOrgAsync(CustomerOrgDisableRequest body) Disable the authenticated customer organization.See
disableCustomerOrgWithHttpInfoAsync(com.datadog.api.client.v2.model.CustomerOrgDisableRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<CustomerOrgDisableResponse>
-
disableCustomerOrgWithHttpInfo
public ApiResponse<CustomerOrgDisableResponse> disableCustomerOrgWithHttpInfo(CustomerOrgDisableRequest body) throws ApiException Disable the Datadog organization associated with the authenticated user or API key. The request body uses JSON:API format. Iforg_uuidis supplied, it must match the authenticated org or the request is rejected. Successful calls disable the org and return the resulting state from the downstream service. Requires theorg_managementpermission.- Parameters:
body- (required)- Returns:
- ApiResponse<CustomerOrgDisableResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests - 500 Internal Server Error -
-
disableCustomerOrgWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomerOrgDisableResponse>> disableCustomerOrgWithHttpInfoAsync(CustomerOrgDisableRequest body) Disable the authenticated customer organization.See
disableCustomerOrgWithHttpInfo(com.datadog.api.client.v2.model.CustomerOrgDisableRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<CustomerOrgDisableResponse>>
-