Package com.datadog.api.client.v1.api
Class UsersApi
java.lang.Object
com.datadog.api.client.v1.api.UsersApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class UsersApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUser(User body) Create a user.createUserAsync(User body) Create a user.createUserWithHttpInfo(User body) Create a user for your organization.Create a user.disableUser(String userHandle) Disable a user.disableUserAsync(String userHandle) Disable a user.disableUserWithHttpInfo(String userHandle) Delete a user from an organization.disableUserWithHttpInfoAsync(String userHandle) Disable a user.Get the API client.Get user details.getUserAsync(String userHandle) Get user details.getUserWithHttpInfo(String userHandle) Get a user's details.getUserWithHttpInfoAsync(String userHandle) Get user details.List all users.List all users.List all users for your organization.List all users.voidsetApiClient(ApiClient apiClient) Set the API client.updateUser(String userHandle, User body) Update a user.updateUserAsync(String userHandle, User body) Update a user.updateUserWithHttpInfo(String userHandle, User body) Update a user information.updateUserWithHttpInfoAsync(String userHandle, User body) Update a user.
-
Constructor Details
-
UsersApi
public UsersApi() -
UsersApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createUser
Create a user.See
createUserWithHttpInfo(com.datadog.api.client.v1.model.User).- Parameters:
body- User object that needs to be created. (required)- Returns:
- UserResponse
- Throws:
ApiException- if fails to make API call
-
createUserAsync
Create a user.See
createUserWithHttpInfoAsync(com.datadog.api.client.v1.model.User).- Parameters:
body- User object that needs to be created. (required)- Returns:
- CompletableFuture<UserResponse>
-
createUserWithHttpInfo
Create a user for your organization.Note: Users can only be created with the admin access role if application keys belong to administrators.
- Parameters:
body- User object that needs to be created. (required)- Returns:
- ApiResponse<UserResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 User created - 400 Bad Request - 403 Authentication error - 409 Conflict - 429 Too many requests -
-
createUserWithHttpInfoAsync
Create a user.See
createUserWithHttpInfo(com.datadog.api.client.v1.model.User).- Parameters:
body- User object that needs to be created. (required)- Returns:
- CompletableFuture<ApiResponse<UserResponse>>
-
disableUser
Disable a user.- Parameters:
userHandle- The handle of the user. (required)- Returns:
- UserDisableResponse
- Throws:
ApiException- if fails to make API call
-
disableUserAsync
Disable a user.- Parameters:
userHandle- The handle of the user. (required)- Returns:
- CompletableFuture<UserDisableResponse>
-
disableUserWithHttpInfo
public ApiResponse<UserDisableResponse> disableUserWithHttpInfo(String userHandle) throws ApiException Delete a user from an organization.Note: This endpoint can only be used with application keys belonging to administrators.
- Parameters:
userHandle- The handle of the user. (required)- Returns:
- ApiResponse<UserDisableResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 User disabled - 400 Bad Request - 403 Authentication error - 404 Not Found - 429 Too many requests -
-
disableUserWithHttpInfoAsync
public CompletableFuture<ApiResponse<UserDisableResponse>> disableUserWithHttpInfoAsync(String userHandle) Disable a user.- Parameters:
userHandle- The handle of the user. (required)- Returns:
- CompletableFuture<ApiResponse<UserDisableResponse>>
-
getUser
Get user details.- Parameters:
userHandle- The ID of the user. (required)- Returns:
- UserResponse
- Throws:
ApiException- if fails to make API call
-
getUserAsync
Get user details.- Parameters:
userHandle- The ID of the user. (required)- Returns:
- CompletableFuture<UserResponse>
-
getUserWithHttpInfo
Get a user's details.- Parameters:
userHandle- The ID of the user. (required)- Returns:
- ApiResponse<UserResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK for get user - 403 Authentication error - 404 Not Found - 429 Too many requests -
-
getUserWithHttpInfoAsync
Get user details.- Parameters:
userHandle- The ID of the user. (required)- Returns:
- CompletableFuture<ApiResponse<UserResponse>>
-
listUsers
List all users.- Returns:
- UserListResponse
- Throws:
ApiException- if fails to make API call
-
listUsersAsync
List all users.- Returns:
- CompletableFuture<UserListResponse>
-
listUsersWithHttpInfo
List all users for your organization.- Returns:
- ApiResponse<UserListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication error - 429 Too many requests -
-
listUsersWithHttpInfoAsync
List all users.- Returns:
- CompletableFuture<ApiResponse<UserListResponse>>
-
updateUser
Update a user.See
updateUserWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.User).- Parameters:
userHandle- The ID of the user. (required)body- Description of the update. (required)- Returns:
- UserResponse
- Throws:
ApiException- if fails to make API call
-
updateUserAsync
Update a user.See
updateUserWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.User).- Parameters:
userHandle- The ID of the user. (required)body- Description of the update. (required)- Returns:
- CompletableFuture<UserResponse>
-
updateUserWithHttpInfo
public ApiResponse<UserResponse> updateUserWithHttpInfo(String userHandle, User body) throws ApiException Update a user information.Note: It can only be used with application keys belonging to administrators.
- Parameters:
userHandle- The ID of the user. (required)body- Description of the update. (required)- Returns:
- ApiResponse<UserResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 User updated - 400 Bad Request - 403 Authentication error - 404 Not Found - 429 Too many requests -
-
updateUserWithHttpInfoAsync
public CompletableFuture<ApiResponse<UserResponse>> updateUserWithHttpInfoAsync(String userHandle, User body) Update a user.See
updateUserWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.User).- Parameters:
userHandle- The ID of the user. (required)body- Description of the update. (required)- Returns:
- CompletableFuture<ApiResponse<UserResponse>>
-