@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RolesApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RolesApi.ListRolesOptionalParameters
Manage optional parameters to listRoles.
|
static class |
RolesApi.ListRoleUsersOptionalParameters
Manage optional parameters to listRoleUsers.
|
| Constructor and Description |
|---|
RolesApi() |
RolesApi(ApiClient apiClient) |
public RolesApi()
public RolesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic PermissionsResponse addPermissionToRole(String roleId, RelationshipToPermission body) throws ApiException
roleId - The unique identifier of the role. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<PermissionsResponse> addPermissionToRoleAsync(String roleId, RelationshipToPermission body)
roleId - The unique identifier of the role. (required)body - (required)public ApiResponse<PermissionsResponse> addPermissionToRoleWithHttpInfo(String roleId, RelationshipToPermission body) throws ApiException
roleId - The unique identifier of the role. (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 | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PermissionsResponse>> addPermissionToRoleWithHttpInfoAsync(String roleId, RelationshipToPermission body)
roleId - The unique identifier of the role. (required)body - (required)public UsersResponse addUserToRole(String roleId, RelationshipToUser body) throws ApiException
See addUserToRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RelationshipToUser).
roleId - The unique identifier of the role. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<UsersResponse> addUserToRoleAsync(String roleId, RelationshipToUser body)
See addUserToRoleWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.RelationshipToUser).
roleId - The unique identifier of the role. (required)body - (required)public ApiResponse<UsersResponse> addUserToRoleWithHttpInfo(String roleId, RelationshipToUser body) throws ApiException
roleId - The unique identifier of the role. (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 | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UsersResponse>> addUserToRoleWithHttpInfoAsync(String roleId, RelationshipToUser body)
See addUserToRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RelationshipToUser).
roleId - The unique identifier of the role. (required)body - (required)public RoleResponse cloneRole(String roleId, RoleCloneRequest body) throws ApiException
See cloneRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RoleCloneRequest).
roleId - The unique identifier of the role. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<RoleResponse> cloneRoleAsync(String roleId, RoleCloneRequest body)
See cloneRoleWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.RoleCloneRequest).
roleId - The unique identifier of the role. (required)body - (required)public ApiResponse<RoleResponse> cloneRoleWithHttpInfo(String roleId, RoleCloneRequest body) throws ApiException
roleId - The unique identifier of the role. (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 | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RoleResponse>> cloneRoleWithHttpInfoAsync(String roleId, RoleCloneRequest body)
See cloneRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RoleCloneRequest).
roleId - The unique identifier of the role. (required)body - (required)public RoleCreateResponse createRole(RoleCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<RoleCreateResponse> createRoleAsync(RoleCreateRequest body)
body - (required)public ApiResponse<RoleCreateResponse> createRoleWithHttpInfo(RoleCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RoleCreateResponse>> createRoleWithHttpInfoAsync(RoleCreateRequest body)
body - (required)public void deleteRole(String roleId) throws ApiException
roleId - The unique identifier of the role. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteRoleAsync(String roleId)
roleId - The unique identifier of the role. (required)public ApiResponse<Void> deleteRoleWithHttpInfo(String roleId) throws ApiException
roleId - The unique identifier of the role. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteRoleWithHttpInfoAsync(String roleId)
roleId - The unique identifier of the role. (required)public RoleResponse getRole(String roleId) throws ApiException
roleId - The unique identifier of the role. (required)ApiException - if fails to make API callpublic CompletableFuture<RoleResponse> getRoleAsync(String roleId)
roleId - The unique identifier of the role. (required)public ApiResponse<RoleResponse> getRoleWithHttpInfo(String roleId) throws ApiException
role_id.roleId - The unique identifier of the role. (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<RoleResponse>> getRoleWithHttpInfoAsync(String roleId)
roleId - The unique identifier of the role. (required)public PermissionsResponse listPermissions() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<PermissionsResponse> listPermissionsAsync()
public ApiResponse<PermissionsResponse> listPermissionsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PermissionsResponse>> listPermissionsWithHttpInfoAsync()
public PermissionsResponse listRolePermissions(String roleId) throws ApiException
roleId - The unique identifier of the role. (required)ApiException - if fails to make API callpublic CompletableFuture<PermissionsResponse> listRolePermissionsAsync(String roleId)
roleId - The unique identifier of the role. (required)public ApiResponse<PermissionsResponse> listRolePermissionsWithHttpInfo(String roleId) throws ApiException
roleId - The unique identifier of the role. (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<PermissionsResponse>> listRolePermissionsWithHttpInfoAsync(String roleId)
roleId - The unique identifier of the role. (required)public RolesResponse listRoles() throws ApiException
See listRolesWithHttpInfo(com.datadog.api.client.v2.api.RolesApi.ListRolesOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<RolesResponse> listRolesAsync()
See listRolesWithHttpInfoAsync(com.datadog.api.client.v2.api.RolesApi.ListRolesOptionalParameters).
public RolesResponse listRoles(RolesApi.ListRolesOptionalParameters parameters) throws ApiException
See listRolesWithHttpInfo(com.datadog.api.client.v2.api.RolesApi.ListRolesOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<RolesResponse> listRolesAsync(RolesApi.ListRolesOptionalParameters parameters)
See listRolesWithHttpInfoAsync(com.datadog.api.client.v2.api.RolesApi.ListRolesOptionalParameters).
parameters - Optional parameters for the request.public ApiResponse<RolesResponse> listRolesWithHttpInfo(RolesApi.ListRolesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RolesResponse>> listRolesWithHttpInfoAsync(RolesApi.ListRolesOptionalParameters parameters)
See listRolesWithHttpInfo(com.datadog.api.client.v2.api.RolesApi.ListRolesOptionalParameters).
parameters - Optional parameters for the request.public UsersResponse listRoleUsers(String roleId) throws ApiException
roleId - The unique identifier of the role. (required)ApiException - if fails to make API callpublic CompletableFuture<UsersResponse> listRoleUsersAsync(String roleId)
roleId - The unique identifier of the role. (required)public UsersResponse listRoleUsers(String roleId, RolesApi.ListRoleUsersOptionalParameters parameters) throws ApiException
roleId - The unique identifier of the role. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<UsersResponse> listRoleUsersAsync(String roleId, RolesApi.ListRoleUsersOptionalParameters parameters)
roleId - The unique identifier of the role. (required)parameters - Optional parameters for the request.public ApiResponse<UsersResponse> listRoleUsersWithHttpInfo(String roleId, RolesApi.ListRoleUsersOptionalParameters parameters) throws ApiException
roleId - The unique identifier of the role. (required)parameters - Optional parameters for the request.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<UsersResponse>> listRoleUsersWithHttpInfoAsync(String roleId, RolesApi.ListRoleUsersOptionalParameters parameters)
roleId - The unique identifier of the role. (required)parameters - Optional parameters for the request.public PermissionsResponse removePermissionFromRole(String roleId, RelationshipToPermission body) throws ApiException
roleId - The unique identifier of the role. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<PermissionsResponse> removePermissionFromRoleAsync(String roleId, RelationshipToPermission body)
roleId - The unique identifier of the role. (required)body - (required)public ApiResponse<PermissionsResponse> removePermissionFromRoleWithHttpInfo(String roleId, RelationshipToPermission body) throws ApiException
roleId - The unique identifier of the role. (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 | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PermissionsResponse>> removePermissionFromRoleWithHttpInfoAsync(String roleId, RelationshipToPermission body)
roleId - The unique identifier of the role. (required)body - (required)public UsersResponse removeUserFromRole(String roleId, RelationshipToUser body) throws ApiException
See removeUserFromRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RelationshipToUser).
roleId - The unique identifier of the role. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<UsersResponse> removeUserFromRoleAsync(String roleId, RelationshipToUser body)
roleId - The unique identifier of the role. (required)body - (required)public ApiResponse<UsersResponse> removeUserFromRoleWithHttpInfo(String roleId, RelationshipToUser body) throws ApiException
roleId - The unique identifier of the role. (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 | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UsersResponse>> removeUserFromRoleWithHttpInfoAsync(String roleId, RelationshipToUser body)
See removeUserFromRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RelationshipToUser).
roleId - The unique identifier of the role. (required)body - (required)public RoleUpdateResponse updateRole(String roleId, RoleUpdateRequest body) throws ApiException
See updateRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RoleUpdateRequest).
roleId - The unique identifier of the role. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<RoleUpdateResponse> updateRoleAsync(String roleId, RoleUpdateRequest body)
See updateRoleWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.RoleUpdateRequest).
roleId - The unique identifier of the role. (required)body - (required)public ApiResponse<RoleUpdateResponse> updateRoleWithHttpInfo(String roleId, RoleUpdateRequest body) throws ApiException
roleId - The unique identifier of the role. (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<RoleUpdateResponse>> updateRoleWithHttpInfoAsync(String roleId, RoleUpdateRequest body)
See updateRoleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.RoleUpdateRequest).
roleId - The unique identifier of the role. (required)body - (required)Copyright © 2024. All rights reserved.