Package com.okta.sdk.resource.api
Class DevicePostureCheckApi
java.lang.Object
com.okta.sdk.resource.api.DevicePostureCheckApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class DevicePostureCheckApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDevicePostureCheck(DevicePostureCheck devicePostureCheck) Create a device posture check Creates a device posture checkcreateDevicePostureCheck(DevicePostureCheck devicePostureCheck, Map<String, String> additionalHeaders) Create a device posture check Creates a device posture checkvoiddeleteDevicePostureCheck(String postureCheckId) Delete a device posture check Deletes a device posture check by `postureCheckId`.voiddeleteDevicePostureCheck(String postureCheckId, Map<String, String> additionalHeaders) Delete a device posture check Deletes a device posture check by `postureCheckId`.getDevicePostureCheck(String postureCheckId) Retrieve a device posture check Retrieves a device posture check by `postureCheckId`getDevicePostureCheck(String postureCheckId, Map<String, String> additionalHeaders) Retrieve a device posture check Retrieves a device posture check by `postureCheckId`protected static com.fasterxml.jackson.databind.ObjectMapperList all default device posture checks Lists all default device posture checks.listDefaultDevicePostureChecks(Map<String, String> additionalHeaders) List all default device posture checks Lists all default device posture checks.List all default device posture checks (Paginated) Lists all default device posture checks.listDefaultDevicePostureChecksPaged(Map<String, String> additionalHeaders) List all default device posture checks (Paginated with additional headers) Lists all default device posture checks.List all device posture checks Lists all device posture checkslistDevicePostureChecks(Map<String, String> additionalHeaders) List all device posture checks Lists all device posture checksList all device posture checks (Paginated) Lists all device posture checks This method returns a lazy, paginated iterable that automatically handles pagination.listDevicePostureChecksPaged(Map<String, String> additionalHeaders) List all device posture checks (Paginated with additional headers) Lists all device posture checks This method returns a lazy, paginated iterable that automatically handles pagination.replaceDevicePostureCheck(String postureCheckId, DevicePostureCheck devicePostureCheck) Replace a device posture check Replaces a device posture check by `postureCheckId`replaceDevicePostureCheck(String postureCheckId, DevicePostureCheck devicePostureCheck, Map<String, String> additionalHeaders) Replace a device posture check Replaces a device posture check by `postureCheckId`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
DevicePostureCheckApi
public DevicePostureCheckApi() -
DevicePostureCheckApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createDevicePostureCheck
public DevicePostureCheck createDevicePostureCheck(DevicePostureCheck devicePostureCheck) throws ApiException Create a device posture check Creates a device posture check- Parameters:
devicePostureCheck- (required)- Returns:
- DevicePostureCheck
- Throws:
ApiException- if fails to make API call
-
createDevicePostureCheck
public DevicePostureCheck createDevicePostureCheck(DevicePostureCheck devicePostureCheck, Map<String, String> additionalHeaders) throws ApiExceptionCreate a device posture check Creates a device posture check- Parameters:
devicePostureCheck- (required)additionalHeaders- additionalHeaders for this call- Returns:
- DevicePostureCheck
- Throws:
ApiException- if fails to make API call
-
deleteDevicePostureCheck
Delete a device posture check Deletes a device posture check by `postureCheckId`. You can't delete the device posture check if it's used in a device assurance policy.- Parameters:
postureCheckId- ID of the device posture check (required)- Throws:
ApiException- if fails to make API call
-
deleteDevicePostureCheck
public void deleteDevicePostureCheck(String postureCheckId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a device posture check Deletes a device posture check by `postureCheckId`. You can't delete the device posture check if it's used in a device assurance policy.- Parameters:
postureCheckId- ID of the device posture check (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getDevicePostureCheck
Retrieve a device posture check Retrieves a device posture check by `postureCheckId`- Parameters:
postureCheckId- ID of the device posture check (required)- Returns:
- DevicePostureCheck
- Throws:
ApiException- if fails to make API call
-
getDevicePostureCheck
public DevicePostureCheck getDevicePostureCheck(String postureCheckId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a device posture check Retrieves a device posture check by `postureCheckId`- Parameters:
postureCheckId- ID of the device posture check (required)additionalHeaders- additionalHeaders for this call- Returns:
- DevicePostureCheck
- Throws:
ApiException- if fails to make API call
-
listDefaultDevicePostureChecks
List all default device posture checks Lists all default device posture checks. Default device posture checks are defined by Okta. Their type will always be `BUILTIN`.- Returns:
- List<DevicePostureCheck>
- Throws:
ApiException- if fails to make API call
-
listDefaultDevicePostureChecks
public List<DevicePostureCheck> listDefaultDevicePostureChecks(Map<String, String> additionalHeaders) throws ApiExceptionList all default device posture checks Lists all default device posture checks. Default device posture checks are defined by Okta. Their type will always be `BUILTIN`.- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- List<DevicePostureCheck>
- Throws:
ApiException- if fails to make API call
-
listDefaultDevicePostureChecksPaged
List all default device posture checks (Paginated) Lists all default device posture checks. Default device posture checks are defined by Okta. Their type will always be `BUILTIN`. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Returns:
- Iterable<DevicePostureCheck> lazy iterable over all pages
-
listDefaultDevicePostureChecksPaged
public Iterable<DevicePostureCheck> listDefaultDevicePostureChecksPaged(Map<String, String> additionalHeaders) List all default device posture checks (Paginated with additional headers) Lists all default device posture checks. Default device posture checks are defined by Okta. Their type will always be `BUILTIN`. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
additionalHeaders- additional headers for this call- Returns:
- Iterable<DevicePostureCheck> lazy iterable over all pages
-
listDevicePostureChecks
List all device posture checks Lists all device posture checks- Returns:
- List<DevicePostureCheck>
- Throws:
ApiException- if fails to make API call
-
listDevicePostureChecks
public List<DevicePostureCheck> listDevicePostureChecks(Map<String, String> additionalHeaders) throws ApiExceptionList all device posture checks Lists all device posture checks- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- List<DevicePostureCheck>
- Throws:
ApiException- if fails to make API call
-
listDevicePostureChecksPaged
List all device posture checks (Paginated) Lists all device posture checks This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Returns:
- Iterable<DevicePostureCheck> lazy iterable over all pages
-
listDevicePostureChecksPaged
public Iterable<DevicePostureCheck> listDevicePostureChecksPaged(Map<String, String> additionalHeaders) List all device posture checks (Paginated with additional headers) Lists all device posture checks This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
additionalHeaders- additional headers for this call- Returns:
- Iterable<DevicePostureCheck> lazy iterable over all pages
-
replaceDevicePostureCheck
public DevicePostureCheck replaceDevicePostureCheck(String postureCheckId, DevicePostureCheck devicePostureCheck) throws ApiException Replace a device posture check Replaces a device posture check by `postureCheckId`- Parameters:
postureCheckId- ID of the device posture check (required)devicePostureCheck- (required)- Returns:
- DevicePostureCheck
- Throws:
ApiException- if fails to make API call
-
replaceDevicePostureCheck
public DevicePostureCheck replaceDevicePostureCheck(String postureCheckId, DevicePostureCheck devicePostureCheck, Map<String, String> additionalHeaders) throws ApiExceptionReplace a device posture check Replaces a device posture check by `postureCheckId`- Parameters:
postureCheckId- ID of the device posture check (required)devicePostureCheck- (required)additionalHeaders- additionalHeaders for this call- Returns:
- DevicePostureCheck
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-