monitored_subscriptions
Creates, updates, deletes, gets or lists a monitored_subscriptions resource.
Overview
| Name | monitored_subscriptions |
| Type | Resource |
| Id | azure_isv.elastic.monitored_subscriptions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The id of the monitored subscription resource. |
name | string | Name of the monitored subscription resource. |
monitoredSubscriptionList | array | List of subscriptions and the state of the monitoring. |
operation | string | The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". |
provisioningState | string | Provisioning State of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". |
type | string | The type of the monitored subscription resource. |
| Name | Datatype | Description |
|---|---|---|
id | string | The id of the monitored subscription resource. |
name | string | Name of the monitored subscription resource. |
monitoredSubscriptionList | array | List of subscriptions and the state of the monitoring. |
operation | string | The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". |
provisioningState | string | Provisioning State of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". |
type | string | The type of the monitored subscription resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, monitor_name, configuration_name, subscription_id | Get detailed information about all subscriptions currently being monitored by the Elastic monitor resource. Get detailed information about all subscriptions currently being monitored by the Elastic monitor resource. | |
list | select | resource_group_name, monitor_name, subscription_id | List all subscriptions currently being monitored by the Elastic monitor resource, helping you manage observability. List all subscriptions currently being monitored by the Elastic monitor resource, helping you manage observability. | |
createor_update | insert | resource_group_name, monitor_name, configuration_name, subscription_id | Add subscriptions to be monitored by the Elastic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the Elastic monitor resource, enabling observability and monitoring. | |
update | update | resource_group_name, monitor_name, configuration_name, subscription_id | Update subscriptions to be monitored by the Elastic monitor resource, ensuring optimal observability and performance. Update subscriptions to be monitored by the Elastic monitor resource, ensuring optimal observability and performance. | |
delete | delete | resource_group_name, monitor_name, configuration_name, subscription_id | Delete subscriptions being monitored by the Elastic monitor resource, removing their observability and monitoring capabilities. Delete subscriptions being monitored by the Elastic monitor resource, removing their observability and monitoring capabilities. |
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 |
|---|---|---|
configuration_name | string | The configuration name. Only 'default' value is supported. Required. |
monitor_name | string | Monitor resource name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
Get detailed information about all subscriptions currently being monitored by the Elastic monitor resource. Get detailed information about all subscriptions currently being monitored by the Elastic monitor resource.
SELECT
id,
name,
monitoredSubscriptionList,
operation,
provisioningState,
type
FROM azure_isv.elastic.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List all subscriptions currently being monitored by the Elastic monitor resource, helping you manage observability. List all subscriptions currently being monitored by the Elastic monitor resource, helping you manage observability.
SELECT
id,
name,
monitoredSubscriptionList,
operation,
provisioningState,
type
FROM azure_isv.elastic.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- createor_update
- Manifest
Add subscriptions to be monitored by the Elastic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the Elastic monitor resource, enabling observability and monitoring.
INSERT INTO azure_isv.elastic.monitored_subscriptions (
properties,
resource_group_name,
monitor_name,
configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ monitor_name }}',
'{{ configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;
# Description fields are for documentation purposes
- name: monitored_subscriptions
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: monitor_name
value: "{{ monitor_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: configuration_name
value: "{{ configuration_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the monitored_subscriptions resource.
- name: properties
description: |
The request to update subscriptions needed to be monitored by the Elastic monitor resource.
value:
operation: "{{ operation }}"
monitoredSubscriptionList:
- subscriptionId: "{{ subscriptionId }}"
status: "{{ status }}"
error: "{{ error }}"
tagRules:
provisioningState: "{{ provisioningState }}"
logRules:
sendAadLogs: {{ sendAadLogs }}
sendSubscriptionLogs: {{ sendSubscriptionLogs }}
sendActivityLogs: {{ sendActivityLogs }}
filteringTags:
- name: "{{ name }}"
value: "{{ value }}"
action: "{{ action }}"
provisioningState: "{{ provisioningState }}"
UPDATE examples
- update
Update subscriptions to be monitored by the Elastic monitor resource, ensuring optimal observability and performance. Update subscriptions to be monitored by the Elastic monitor resource, ensuring optimal observability and performance.
UPDATE azure_isv.elastic.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;
DELETE examples
- delete
Delete subscriptions being monitored by the Elastic monitor resource, removing their observability and monitoring capabilities. Delete subscriptions being monitored by the Elastic monitor resource, removing their observability and monitoring capabilities.
DELETE FROM azure_isv.elastic.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;