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 Details

    • DevicePostureCheckApi

      public DevicePostureCheckApi()
    • DevicePostureCheckApi

      public DevicePostureCheckApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 ApiException
      Create 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

      public void deleteDevicePostureCheck(String postureCheckId) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getDevicePostureCheck

      public DevicePostureCheck getDevicePostureCheck(String postureCheckId) throws ApiException
      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 ApiException
      Retrieve 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

      public List<DevicePostureCheck> listDefaultDevicePostureChecks() throws ApiException
      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 ApiException
      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`.
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<DevicePostureCheck>
      Throws:
      ApiException - if fails to make API call
    • listDefaultDevicePostureChecksPaged

      public Iterable<DevicePostureCheck> 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

      public List<DevicePostureCheck> listDevicePostureChecks() throws ApiException
      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 ApiException
      List 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

      public Iterable<DevicePostureCheck> 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 ApiException
      Replace 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()