List All Group Objects

Retrieves all server group objects for the authenticated user.

Request
Security:
query Parameters
o
required
integer

Organization ID for retrieving groups.

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/servergroups
Request samples
$apiKey = 'your_automox_api_key'

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

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


$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
[
  • {
    • "id": 0,
    • "organization_id": 0,
    • "name": "string",
    • "refresh_interval": 0,
    • "parent_server_group_id": 0,
    • "ui_color": "string",
    • "notes": "string",
    • "enable_os_auto_update": true,
    • "server_count": 0,
    • "wsus_config": {
      • "id": 0,
      • "server_group_id": 0,
      • "is_managed": true,
      • "server_url": "string",
      • "created_at": "string",
      • "updated_at": "string"
      },
    • "policies": [
      • 0
      ]
    }
]