@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OrganizationsApi extends Object
| Constructor and Description |
|---|
OrganizationsApi() |
OrganizationsApi(ApiClient apiClient) |
public OrganizationsApi()
public OrganizationsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic OrganizationCreateResponse createChildOrg(OrganizationCreateBody body) throws ApiException
See createChildOrgWithHttpInfo(com.datadog.api.client.v1.model.OrganizationCreateBody).
body - Organization object that needs to be created (required)ApiException - if fails to make API callpublic CompletableFuture<OrganizationCreateResponse> createChildOrgAsync(OrganizationCreateBody body)
See createChildOrgWithHttpInfoAsync(com.datadog.api.client.v1.model.OrganizationCreateBody).
body - Organization object that needs to be created (required)public ApiResponse<OrganizationCreateResponse> createChildOrgWithHttpInfo(OrganizationCreateBody body) throws ApiException
This endpoint requires the multi-organization account feature and must be enabled by contacting support.
Once a new child organization is created, you can interact with it by using the
org.public_id, api_key.key, and application_key.hash provided
in the response.
body - Organization object that needs to be created (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrganizationCreateResponse>> createChildOrgWithHttpInfoAsync(OrganizationCreateBody body)
See createChildOrgWithHttpInfo(com.datadog.api.client.v1.model.OrganizationCreateBody).
body - Organization object that needs to be created (required)public OrgDowngradedResponse downgradeOrg(String publicId) throws ApiException
publicId - The public_id of the organization you are operating within.
(required)ApiException - if fails to make API callpublic CompletableFuture<OrgDowngradedResponse> downgradeOrgAsync(String publicId)
publicId - The public_id of the organization you are operating within.
(required)public ApiResponse<OrgDowngradedResponse> downgradeOrgWithHttpInfo(String publicId) throws ApiException
publicId - The public_id of the organization you are operating within.
(required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrgDowngradedResponse>> downgradeOrgWithHttpInfoAsync(String publicId)
publicId - The public_id of the organization you are operating within.
(required)public OrganizationResponse getOrg(String publicId) throws ApiException
publicId - The public_id of the organization you are operating within.
(required)ApiException - if fails to make API callpublic CompletableFuture<OrganizationResponse> getOrgAsync(String publicId)
publicId - The public_id of the organization you are operating within.
(required)public ApiResponse<OrganizationResponse> getOrgWithHttpInfo(String publicId) throws ApiException
publicId - The public_id of the organization you are operating within.
(required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrganizationResponse>> getOrgWithHttpInfoAsync(String publicId)
publicId - The public_id of the organization you are operating within.
(required)public OrganizationListResponse listOrgs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<OrganizationListResponse> listOrgsAsync()
public ApiResponse<OrganizationListResponse> listOrgsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrganizationListResponse>> listOrgsWithHttpInfoAsync()
public OrganizationResponse updateOrg(String publicId, Organization body) throws ApiException
See updateOrgWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Organization).
publicId - The public_id of the organization you are operating within.
(required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<OrganizationResponse> updateOrgAsync(String publicId, Organization body)
See updateOrgWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.Organization).
publicId - The public_id of the organization you are operating within.
(required)body - (required)public ApiResponse<OrganizationResponse> updateOrgWithHttpInfo(String publicId, Organization body) throws ApiException
publicId - The public_id of the organization you are operating within.
(required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrganizationResponse>> updateOrgWithHttpInfoAsync(String publicId, Organization body)
See updateOrgWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Organization).
publicId - The public_id of the organization you are operating within.
(required)body - (required)public IdpResponse uploadIdPForOrg(String publicId, File idpFile) throws ApiException
See uploadIdPForOrgWithHttpInfo(java.lang.String, java.io.File).
publicId - The public_id of the organization you are operating with
(required)idpFile - The path to the XML metadata file you wish to upload. (required)ApiException - if fails to make API callpublic CompletableFuture<IdpResponse> uploadIdPForOrgAsync(String publicId, File idpFile)
See uploadIdPForOrgWithHttpInfoAsync(java.lang.String, java.io.File).
publicId - The public_id of the organization you are operating with
(required)idpFile - The path to the XML metadata file you wish to upload. (required)public ApiResponse<IdpResponse> uploadIdPForOrgWithHttpInfo(String publicId, File idpFile) throws ApiException
Multipart Form-Data: Post the IdP metadata file using a form post.
XML Body: Post the IdP metadata file as the body of the request.
publicId - The public_id of the organization you are operating with
(required)idpFile - The path to the XML metadata file you wish to upload. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 415 | Unsupported Media Type | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IdpResponse>> uploadIdPForOrgWithHttpInfoAsync(String publicId, File idpFile)
See uploadIdPForOrgWithHttpInfo(java.lang.String, java.io.File).
publicId - The public_id of the organization you are operating with
(required)idpFile - The path to the XML metadata file you wish to upload. (required)Copyright © 2024. All rights reserved.