resource_changes
Creates, updates, deletes, gets or lists a resource_changes resource.
Overview
| Name | resource_changes |
| Type | Resource |
| Id | azure.change_analysis.resource_changes |
Fields
The following fields are returned by SELECT queries:
- 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. |
changeType | string | The type of the change. Known values are: "Add", "Remove", and "Update". |
initiatedByList | array | The list of identities who might initiated the change. The identity could be user name (email address) or the object ID of the Service Principal. |
propertyChanges | array | The list of detailed changes at json property level. |
resourceId | string | The resource id that the change is attached to. |
timeStamp | string (date-time) | The time when the change is detected. |
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 |
|---|---|---|---|---|
list | select | resource_id, $startTime, $endTime | $skipToken | List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access. List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access. |
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 |
|---|---|---|
$endTime | string (date-time) | Specifies the end time of the changes request. Required. |
$startTime | string (date-time) | Specifies the start time of the changes request. Required. |
resource_id | string | The identifier of the resource. Required. |
$skipToken | string | A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. |
SELECT examples
- list
List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access. List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access.
SELECT
id,
name,
changeType,
initiatedByList,
propertyChanges,
resourceId,
timeStamp,
type
FROM azure.change_analysis.resource_changes
WHERE resource_id = '{{ resource_id }}' -- required
AND $startTime = '{{ $startTime }}' -- required
AND $endTime = '{{ $endTime }}' -- required
AND $skipToken = '{{ $skipToken }}'
;