Returns a specific server group object for the authenticated user. See Using Global API Keys for more information on permission and scope requirements.
Successful Operation
Invalid Request
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/servergroups/12345?o=0000" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
{- "summary": "Server group example",
- "description": "Example of a server group object with configuration settings, WSUS configuration, and associated policies",
- "value": {
- "id": 654231,
- "organization_id": 250624,
- "name": "My Test Server Group",
- "refresh_interval": 1440,
- "parent_server_group_id": 90125,
- "ui_color": "#3C78D8",
- "notes": "Here's some notes",
- "enable_os_auto_update": true,
- "server_count": 1,
- "wsus_config": {
- "id": 954368,
- "server_group_id": 654321,
- "is_managed": null,
- "server_url": null,
- "created_at": "2021-10-20T04:03:25+0000",
- "updated_at": "2021-10-20T04:03:25+0000"
}, - "policies": [
- 421365,
- 587321
]
}
}