management_groups
Creates, updates, deletes, gets or lists a management_groups resource.
Overview
| Name | management_groups |
| Type | Resource |
| Id | azure.log_analytics.management_groups |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The unique ID of the management group. |
name | string | The name of the management group. |
created | string (date-time) | The datetime that the management group was created. |
dataReceived | string (date-time) | The last datetime that the management group received data. |
isGateway | boolean | Gets or sets a value indicating whether the management group is a gateway. |
serverCount | integer | The number of servers connected to the management group. |
sku | string | The SKU of System Center that is managing the management group. |
version | string | The version of System Center that is managing the management group. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | resource_group_name, workspace_name, subscription_id | Gets a list of management groups connected to a workspace. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
workspace_name | string | The name of the workspace. Required. |
SELECT examples
- list
Gets a list of management groups connected to a workspace.
SELECT
id,
name,
created,
dataReceived,
isGateway,
serverCount,
sku,
version
FROM azure.log_analytics.management_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;