List All Policy Objects

Retrieves a list of all policy objects for the authenticated user.

Request
Security:
query Parameters
o
required
integer

Organization ID for retrieving policies

page
integer
Default: 0

The page of results you wish to be returned with page numbers starting at 0. See About Automox API - Pagination

limit
integer [ 1 .. 500 ]
Default: 500

A limit on the number of results to be returned, between 1 and 500, with a default of 500. Use with page parameter. See About Automox API - Pagination

Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

get/policies
Request samples
$apiKey = 'your_automox_api_key'

$headers = @{ "Authorization" = "Bearer $apiKey" }

$url = "https://console.automox.com/api/policies?o=0000"


$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
[
  • {
    • "id": 0,
    • "organization_id": 0,
    • "name": "string",
    • "policy_type_name": "patch",
    • "configuration": {
      • "auto_patch": true,
      • "auto_reboot": true,
      • "notify_user": true,
      • "missed_patch_window": true,
      • "patch_rule": "all",
      • "device_filters_enabled": true,
      • "device_filters": [
        • {
          • "field": "tag",
          • "op": "in",
          • "value": [
            • "Windows",
            • "Win10"
            ]
          }
        ],
      • "include_optional": true,
      • "notify_reboot_user": true,
      • "notify_deferred_reboot_user": true,
      • "custom_notification_patch_message": "Necessary Windows updates are about to be installed!",
      • "custom_notification_patch_message_mac": "Necessary Mac updates are about to be installed!",
      • "custom_notification_reboot_message": "Necessary Windows updates are about to be installed! Reboot Needed!",
      • "custom_notification_reboot_message_mac": "Necessary Mac updates are about to be installed! Reboot Needed!",
      • "custom_notification_max_delays": 0,
      • "custom_notification_deferment_periods": [
        • 1,
        • 4,
        • 8
        ],
      • "custom_pending_reboot_notification_message": "Your computer needs to restart to finish installing updates!",
      • "custom_pending_reboot_notification_message_mac": "Your Mac needs to restart to finish installing updates!",
      • "custom_pending_reboot_notification_max_delays": 0,
      • "custom_pending_reboot_notification_deferment_periods": [
        • 2,
        • 4,
        • 6
        ],
      • "notify_user_message_timeout": 15,
      • "notify_deferred_reboot_user_timeout": 15,
      • "notify_user_auto_deferral_enabled": false,
      • "notify_deferred_reboot_user_auto_deferral_enabled": false
      },
    • "schedule_days": 0,
    • "schedule_weeks_of_month": 0,
    • "schedule_months": 0,
    • "schedule_time": "string",
    • "server_groups": [
      • 0
      ]
    }
]