Retrieves a list of all policy objects for the authenticated user.
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 |
Successful Operation
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Invalid Request
$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
[- {
- "id": 167240,
- "uuid": "110a7065-5910-47e5-9e26-cd9ca07c9150",
- "name": "Apply All Patches",
- "policy_type_name": "patch",
- "organization_id": 634520,
- "configuration": {
- "auto_patch": true,
- "patch_rule": "all",
- "auto_reboot": false,
- "filter_type": "null",
- "notify_user": false,
- "device_filters": [ ],
- "include_optional": false,
- "notify_reboot_user": true,
- "missed_patch_window": true,
- "install_deferral_enabled": true,
- "notify_deferred_reboot_user": true,
- "notify_user_message_timeout": 15,
- "custom_notification_max_delays": 3,
- "pending_reboot_deferral_enabled": true,
- "custom_notification_patch_message": "System Update: An important update will be installed.",
- "notify_user_auto_deferral_enabled": true,
- "custom_notification_reboot_message": "An important update will be installed; reboot may be required.",
- "custom_notification_deferment_periods": [
- 1,
- 2,
- 4
], - "custom_notification_patch_message_mac": "System Update: An important update will be installed.",
- "custom_notification_reboot_message_mac": "An important update will be installed; reboot may be required.",
- "custom_pending_reboot_notification_message": "Updates require reboot: Please save your work.",
- "notify_deferred_reboot_user_message_timeout": 15,
- "custom_pending_reboot_notification_max_delays": 6,
- "custom_pending_reboot_notification_message_mac": "Updates require reboot: Please save your work.",
- "notify_deferred_reboot_user_auto_deferral_enabled": true,
- "custom_pending_reboot_notification_deferment_periods": [
- 1,
- 4,
- 8
], - "secrets": { }
}, - "schedule_days": 254,
- "schedule_weeks_of_month": 62,
- "schedule_months": 8190,
- "schedule_time": "03:00",
- "use_scheduled_timezone": false,
- "notes": "",
- "create_time": "2023-03-07T17:11:170000",
- "server_groups": [
- 102243,
- 134198
], - "server_count": 2,
- "status": "inactive",
- "community_worklet_id": null,
- "community_worklet_uuid": null,
- "policy_template_id": null
}
]