changes
Creates, updates, deletes, gets or lists a changes resource.
Overview
| Name | changes |
| Type | Resource |
| Id | azure.resource.changes |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
changeAttributes | object | Details about the change resource. |
changeType | string | The type of change that was captured in the resource. Known values are: "Update", "Delete", and "Create". |
changes | object | A dictionary with changed property name as a key and the change details as the value. |
targetResourceId | string | The fully qualified ID of the target resource that was changed. |
targetResourceType | string | The namespace and type of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
changeAttributes | object | Details about the change resource. |
changeType | string | The type of change that was captured in the resource. Known values are: "Update", "Delete", and "Create". |
changes | object | A dictionary with changed property name as a key and the change details as the value. |
targetResourceId | string | The fully qualified ID of the target resource that was changed. |
targetResourceType | string | The namespace and type of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, resource_provider_namespace, resource_type, resource_name, change_resource_id, subscription_id | Obtains the specified change resource for the target resource. | |
list | select | resource_group_name, resource_provider_namespace, resource_type, resource_name, subscription_id | $top, $skipToken | Obtains a list of change resources from the past 14 days for the target resource. |
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 |
|---|---|---|
change_resource_id | string | The ID of the change resource. Required. |
resource_group_name | string | The name of the resource group. Required. |
resource_name | string | The name of the resource. Required. |
resource_provider_namespace | string | The name of the resource provider namespace. Required. |
resource_type | string | The name of the resource type. Required. |
subscription_id | string | |
$skipToken | string | (Optional) The page-continuation token. Default value is None. |
$top | integer | (Optional) Set the maximum number of results per response. Default value is 100. |
SELECT examples
- get
- list
Obtains the specified change resource for the target resource.
SELECT
id,
name,
changeAttributes,
changeType,
changes,
targetResourceId,
targetResourceType,
type
FROM azure.resource.changes
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_provider_namespace = '{{ resource_provider_namespace }}' -- required
AND resource_type = '{{ resource_type }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND change_resource_id = '{{ change_resource_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Obtains a list of change resources from the past 14 days for the target resource.
SELECT
id,
name,
changeAttributes,
changeType,
changes,
targetResourceId,
targetResourceType,
type
FROM azure.resource.changes
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_provider_namespace = '{{ resource_provider_namespace }}' -- required
AND resource_type = '{{ resource_type }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
;