@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OrganizationsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OrganizationsApi.ListGlobalOrgsOptionalParameters
Manage optional parameters to listGlobalOrgs.
|
static class |
OrganizationsApi.ListOrgsOptionalParameters
Manage optional parameters to listOrgs.
|
static class |
OrganizationsApi.UploadIdPMetadataOptionalParameters
Manage optional parameters to uploadIdPMetadata.
|
| 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 OrgConfigGetResponse getOrgConfig(String orgConfigName) throws ApiException
orgConfigName - The name of an Org Config. (required)ApiException - if fails to make API callpublic CompletableFuture<OrgConfigGetResponse> getOrgConfigAsync(String orgConfigName)
orgConfigName - The name of an Org Config. (required)public ApiResponse<OrgConfigGetResponse> getOrgConfigWithHttpInfo(String orgConfigName) throws ApiException
orgConfigName - The name of an Org Config. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrgConfigGetResponse>> getOrgConfigWithHttpInfoAsync(String orgConfigName)
orgConfigName - The name of an Org Config. (required)public SAMLConfigurationResponse getSAMLConfiguration(String samlConfigUuid) throws ApiException
samlConfigUuid - The UUID of the SAML configuration. (required)ApiException - if fails to make API callpublic CompletableFuture<SAMLConfigurationResponse> getSAMLConfigurationAsync(String samlConfigUuid)
See getSAMLConfigurationWithHttpInfoAsync(java.lang.String).
samlConfigUuid - The UUID of the SAML configuration. (required)public ApiResponse<SAMLConfigurationResponse> getSAMLConfigurationWithHttpInfo(String samlConfigUuid) throws ApiException
samlConfigUuid - The UUID of the SAML configuration. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication Error | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SAMLConfigurationResponse>> getSAMLConfigurationWithHttpInfoAsync(String samlConfigUuid)
samlConfigUuid - The UUID of the SAML configuration. (required)public GlobalOrgsResponse listGlobalOrgs(String userHandle) throws ApiException
userHandle - The handle of the authenticated user. (required)ApiException - if fails to make API callpublic CompletableFuture<GlobalOrgsResponse> listGlobalOrgsAsync(String userHandle)
userHandle - The handle of the authenticated user. (required)public GlobalOrgsResponse listGlobalOrgs(String userHandle, OrganizationsApi.ListGlobalOrgsOptionalParameters parameters) throws ApiException
userHandle - The handle of the authenticated user. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<GlobalOrgsResponse> listGlobalOrgsAsync(String userHandle, OrganizationsApi.ListGlobalOrgsOptionalParameters parameters)
userHandle - The handle of the authenticated user. (required)parameters - Optional parameters for the request.public PaginationIterable<GlobalOrgData> listGlobalOrgsWithPagination(String userHandle)
userHandle - The handle of the authenticated user. (required)public PaginationIterable<GlobalOrgData> listGlobalOrgsWithPagination(String userHandle, OrganizationsApi.ListGlobalOrgsOptionalParameters parameters)
userHandle - The handle of the authenticated user. (required)public ApiResponse<GlobalOrgsResponse> listGlobalOrgsWithHttpInfo(String userHandle, OrganizationsApi.ListGlobalOrgsOptionalParameters parameters) throws ApiException
user_handle
query parameter must match the authenticated user's handle.userHandle - The handle of the authenticated user. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<GlobalOrgsResponse>> listGlobalOrgsWithHttpInfoAsync(String userHandle, OrganizationsApi.ListGlobalOrgsOptionalParameters parameters)
userHandle - The handle of the authenticated user. (required)parameters - Optional parameters for the request.public OrgConfigListResponse listOrgConfigs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<OrgConfigListResponse> listOrgConfigsAsync()
public ApiResponse<OrgConfigListResponse> listOrgConfigsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrgConfigListResponse>> listOrgConfigsWithHttpInfoAsync()
public ManagedOrgsResponse listOrgs() throws ApiException
See listOrgsWithHttpInfo(com.datadog.api.client.v2.api.OrganizationsApi.ListOrgsOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<ManagedOrgsResponse> listOrgsAsync()
See listOrgsWithHttpInfoAsync(com.datadog.api.client.v2.api.OrganizationsApi.ListOrgsOptionalParameters).
public ManagedOrgsResponse listOrgs(OrganizationsApi.ListOrgsOptionalParameters parameters) throws ApiException
See listOrgsWithHttpInfo(com.datadog.api.client.v2.api.OrganizationsApi.ListOrgsOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ManagedOrgsResponse> listOrgsAsync(OrganizationsApi.ListOrgsOptionalParameters parameters)
See listOrgsWithHttpInfoAsync(com.datadog.api.client.v2.api.OrganizationsApi.ListOrgsOptionalParameters).
parameters - Optional parameters for the request.public ApiResponse<ManagedOrgsResponse> listOrgsWithHttpInfo(OrganizationsApi.ListOrgsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ManagedOrgsResponse>> listOrgsWithHttpInfoAsync(OrganizationsApi.ListOrgsOptionalParameters parameters)
See listOrgsWithHttpInfo(com.datadog.api.client.v2.api.OrganizationsApi.ListOrgsOptionalParameters).
parameters - Optional parameters for the request.public SAMLConfigurationsResponse listSAMLConfigurations() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<SAMLConfigurationsResponse> listSAMLConfigurationsAsync()
public ApiResponse<SAMLConfigurationsResponse> listSAMLConfigurationsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication Error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SAMLConfigurationsResponse>> listSAMLConfigurationsWithHttpInfoAsync()
public void updateLoginOrgConfigsMaxSessionDuration(MaxSessionDurationUpdateRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> updateLoginOrgConfigsMaxSessionDurationAsync(MaxSessionDurationUpdateRequest body)
body - (required)public ApiResponse<Void> updateLoginOrgConfigsMaxSessionDurationWithHttpInfo(MaxSessionDurationUpdateRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> updateLoginOrgConfigsMaxSessionDurationWithHttpInfoAsync(MaxSessionDurationUpdateRequest body)
body - (required)public OrgConfigGetResponse updateOrgConfig(String orgConfigName, OrgConfigWriteRequest body) throws ApiException
See updateOrgConfigWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.OrgConfigWriteRequest).
orgConfigName - The name of an Org Config. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<OrgConfigGetResponse> updateOrgConfigAsync(String orgConfigName, OrgConfigWriteRequest body)
orgConfigName - The name of an Org Config. (required)body - (required)public ApiResponse<OrgConfigGetResponse> updateOrgConfigWithHttpInfo(String orgConfigName, OrgConfigWriteRequest body) throws ApiException
orgConfigName - The name of an Org Config. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OrgConfigGetResponse>> updateOrgConfigWithHttpInfoAsync(String orgConfigName, OrgConfigWriteRequest body)
See updateOrgConfigWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.OrgConfigWriteRequest).
orgConfigName - The name of an Org Config. (required)body - (required)public void updateOrgSamlConfigurations(OrgSAMLPreferencesUpdateRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> updateOrgSamlConfigurationsAsync(OrgSAMLPreferencesUpdateRequest body)
body - (required)public ApiResponse<Void> updateOrgSamlConfigurationsWithHttpInfo(OrgSAMLPreferencesUpdateRequest body) throws ApiException
Use this endpoint to set the just-in-time (JIT) provisioning domains and the default role assigned to just-in-time provisioned users.
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> updateOrgSamlConfigurationsWithHttpInfoAsync(OrgSAMLPreferencesUpdateRequest body)
body - (required)public SAMLConfigurationResponse updateSAMLConfiguration(String samlConfigUuid, SAMLConfigurationUpdateRequest body) throws ApiException
samlConfigUuid - The UUID of the SAML configuration. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<SAMLConfigurationResponse> updateSAMLConfigurationAsync(String samlConfigUuid, SAMLConfigurationUpdateRequest body)
samlConfigUuid - The UUID of the SAML configuration. (required)body - (required)public ApiResponse<SAMLConfigurationResponse> updateSAMLConfigurationWithHttpInfo(String samlConfigUuid, SAMLConfigurationUpdateRequest body) throws ApiException
Use this endpoint to enable or disable identity-provider-initiated login, set the just-in-time provisioning domains, and set the default role assigned to just-in-time provisioned users. A default role is required to enable just-in-time provisioning.
samlConfigUuid - The UUID of the SAML configuration. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication Error | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SAMLConfigurationResponse>> updateSAMLConfigurationWithHttpInfoAsync(String samlConfigUuid, SAMLConfigurationUpdateRequest body)
samlConfigUuid - The UUID of the SAML configuration. (required)body - (required)public void uploadIdPMetadata()
throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<Void> uploadIdPMetadataAsync()
public void uploadIdPMetadata(OrganizationsApi.UploadIdPMetadataOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Void> uploadIdPMetadataAsync(OrganizationsApi.UploadIdPMetadataOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<Void> uploadIdPMetadataWithHttpInfo(OrganizationsApi.UploadIdPMetadataOptionalParameters parameters) throws ApiException
Use this endpoint to upload or replace IdP metadata for SAML login configuration.
parameters - Optional parameters for the request.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<Void>> uploadIdPMetadataWithHttpInfoAsync(OrganizationsApi.UploadIdPMetadataOptionalParameters parameters)
parameters - Optional parameters for the request.Copyright © 2026. All rights reserved.