Class OrganizationsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a child organization.Create a child organization.Create a child organization.Create a child organization.downgradeOrg(String publicId) Spin-off Child Organization.downgradeOrgAsync(String publicId) Spin-off Child Organization.downgradeOrgWithHttpInfo(String publicId) Only available for MSP customers.downgradeOrgWithHttpInfoAsync(String publicId) Spin-off Child Organization.Get the API client.Get organization information.getOrgAsync(String publicId) Get organization information.getOrgWithHttpInfo(String publicId) Get organization information.getOrgWithHttpInfoAsync(String publicId) Get organization information.listOrgs()List your managed organizations.List your managed organizations.This endpoint returns data on your top-level organization.List your managed organizations.voidsetApiClient(ApiClient apiClient) Set the API client.updateOrg(String publicId, Organization body) Update your organization.updateOrgAsync(String publicId, Organization body) Update your organization.updateOrgWithHttpInfo(String publicId, Organization body) Update your organization.updateOrgWithHttpInfoAsync(String publicId, Organization body) Update your organization.uploadIdPForOrg(String publicId, File idpFile) Upload IdP metadata.uploadIdPForOrgAsync(String publicId, File idpFile) Upload IdP metadata.uploadIdPForOrgWithHttpInfo(String publicId, File idpFile) There are a couple of options for updating the Identity Provider (IdP) metadata from your SAML IdP.uploadIdPForOrgWithHttpInfoAsync(String publicId, File idpFile) Upload IdP metadata.
-
Constructor Details
-
OrganizationsApi
public OrganizationsApi() -
OrganizationsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createChildOrg
Create a child organization.See
createChildOrgWithHttpInfo(com.datadog.api.client.v1.model.OrganizationCreateBody).- Parameters:
body- Organization object that needs to be created (required)- Returns:
- OrganizationCreateResponse
- Throws:
ApiException- if fails to make API call
-
createChildOrgAsync
public CompletableFuture<OrganizationCreateResponse> createChildOrgAsync(OrganizationCreateBody body) Create a child organization.See
createChildOrgWithHttpInfoAsync(com.datadog.api.client.v1.model.OrganizationCreateBody).- Parameters:
body- Organization object that needs to be created (required)- Returns:
- CompletableFuture<OrganizationCreateResponse>
-
createChildOrgWithHttpInfo
public ApiResponse<OrganizationCreateResponse> createChildOrgWithHttpInfo(OrganizationCreateBody body) throws ApiException Create a child organization.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, andapplication_key.hashprovided in the response.- Parameters:
body- Organization object that needs to be created (required)- Returns:
- ApiResponse<OrganizationCreateResponse>
- 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 - 429 Too many requests -
-
createChildOrgWithHttpInfoAsync
public CompletableFuture<ApiResponse<OrganizationCreateResponse>> createChildOrgWithHttpInfoAsync(OrganizationCreateBody body) Create a child organization.See
createChildOrgWithHttpInfo(com.datadog.api.client.v1.model.OrganizationCreateBody).- Parameters:
body- Organization object that needs to be created (required)- Returns:
- CompletableFuture<ApiResponse<OrganizationCreateResponse>>
-
downgradeOrg
Spin-off Child Organization.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- OrgDowngradedResponse
- Throws:
ApiException- if fails to make API call
-
downgradeOrgAsync
Spin-off Child Organization.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- CompletableFuture<OrgDowngradedResponse>
-
downgradeOrgWithHttpInfo
public ApiResponse<OrgDowngradedResponse> downgradeOrgWithHttpInfo(String publicId) throws ApiException Only available for MSP customers. Removes a child organization from the hierarchy of the master organization and places the child organization on a 30-day trial.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- ApiResponse<OrgDowngradedResponse>
- 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 - 429 Too many requests -
-
downgradeOrgWithHttpInfoAsync
public CompletableFuture<ApiResponse<OrgDowngradedResponse>> downgradeOrgWithHttpInfoAsync(String publicId) Spin-off Child Organization.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- CompletableFuture<ApiResponse<OrgDowngradedResponse>>
-
getOrg
Get organization information.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- OrganizationResponse
- Throws:
ApiException- if fails to make API call
-
getOrgAsync
Get organization information.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- CompletableFuture<OrganizationResponse>
-
getOrgWithHttpInfo
Get organization information.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- ApiResponse<OrganizationResponse>
- 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 - 429 Too many requests -
-
getOrgWithHttpInfoAsync
public CompletableFuture<ApiResponse<OrganizationResponse>> getOrgWithHttpInfoAsync(String publicId) Get organization information.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)- Returns:
- CompletableFuture<ApiResponse<OrganizationResponse>>
-
listOrgs
List your managed organizations.- Returns:
- OrganizationListResponse
- Throws:
ApiException- if fails to make API call
-
listOrgsAsync
List your managed organizations.- Returns:
- CompletableFuture<OrganizationListResponse>
-
listOrgsWithHttpInfo
This endpoint returns data on your top-level organization.- Returns:
- ApiResponse<OrganizationListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listOrgsWithHttpInfoAsync
List your managed organizations.- Returns:
- CompletableFuture<ApiResponse<OrganizationListResponse>>
-
updateOrg
Update your organization.See
updateOrgWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Organization).- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)body- (required)- Returns:
- OrganizationResponse
- Throws:
ApiException- if fails to make API call
-
updateOrgAsync
Update your organization.See
updateOrgWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.Organization).- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)body- (required)- Returns:
- CompletableFuture<OrganizationResponse>
-
updateOrgWithHttpInfo
public ApiResponse<OrganizationResponse> updateOrgWithHttpInfo(String publicId, Organization body) throws ApiException Update your organization.- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)body- (required)- Returns:
- ApiResponse<OrganizationResponse>
- 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 - 429 Too many requests -
-
updateOrgWithHttpInfoAsync
public CompletableFuture<ApiResponse<OrganizationResponse>> updateOrgWithHttpInfoAsync(String publicId, Organization body) Update your organization.See
updateOrgWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Organization).- Parameters:
publicId- Thepublic_idof the organization you are operating within. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<OrganizationResponse>>
-
uploadIdPForOrg
Upload IdP metadata.See
uploadIdPForOrgWithHttpInfo(java.lang.String, java.io.File).- Parameters:
publicId- Thepublic_idof the organization you are operating with (required)idpFile- The path to the XML metadata file you wish to upload. (required)- Returns:
- IdpResponse
- Throws:
ApiException- if fails to make API call
-
uploadIdPForOrgAsync
Upload IdP metadata.See
uploadIdPForOrgWithHttpInfoAsync(java.lang.String, java.io.File).- Parameters:
publicId- Thepublic_idof the organization you are operating with (required)idpFile- The path to the XML metadata file you wish to upload. (required)- Returns:
- CompletableFuture<IdpResponse>
-
uploadIdPForOrgWithHttpInfo
public ApiResponse<IdpResponse> uploadIdPForOrgWithHttpInfo(String publicId, File idpFile) throws ApiException There are a couple of options for updating the Identity Provider (IdP) metadata from your SAML IdP.-
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.
- Parameters:
publicId- Thepublic_idof the organization you are operating with (required)idpFile- The path to the XML metadata file you wish to upload. (required)- Returns:
- ApiResponse<IdpResponse>
- 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 - 415 Unsupported Media Type - 429 Too many requests -
-
-
uploadIdPForOrgWithHttpInfoAsync
public CompletableFuture<ApiResponse<IdpResponse>> uploadIdPForOrgWithHttpInfoAsync(String publicId, File idpFile) Upload IdP metadata.See
uploadIdPForOrgWithHttpInfo(java.lang.String, java.io.File).- Parameters:
publicId- Thepublic_idof the organization you are operating with (required)idpFile- The path to the XML metadata file you wish to upload. (required)- Returns:
- CompletableFuture<ApiResponse<IdpResponse>>
-