You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import CopyableCode from '@site/src/components/CopyableCode/CopyableCode';
@@ -29,9 +29,100 @@ Creates, updates, deletes, gets or lists a <code>changes</code> resource.
29
29
</tbody></table>
30
30
31
31
## Fields
32
-
`SELECT` not supported for this resource, use `SHOW METHODS` to view available operations for the resource.
32
+
<Tabs
33
+
defaultValue="view"
34
+
values={[
35
+
{ label: 'vw_changes', value: 'view', },
36
+
{ label: 'changes', value: 'resource', },
37
+
]
38
+
}>
39
+
<TabItemvalue="view">
33
40
41
+
| Name | Datatype | Description |
42
+
|:-----|:---------|:------------|
43
+
| <CopyableCodecode="id" /> |`text`| Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
44
+
| <CopyableCodecode="name" /> |`text`| The name of the resource |
45
+
| <CopyableCodecode="changeResourceId" /> |`text`| field from the `properties` object |
46
+
| <CopyableCodecode="change_attributes" /> |`text`| field from the `properties` object |
47
+
| <CopyableCodecode="change_type" /> |`text`| field from the `properties` object |
48
+
| <CopyableCodecode="changes" /> |`text`| field from the `properties` object |
49
+
| <CopyableCodecode="resourceGroupName" /> |`text`| field from the `properties` object |
50
+
| <CopyableCodecode="resourceName" /> |`text`| field from the `properties` object |
51
+
| <CopyableCodecode="resourceProviderNamespace" /> |`text`| field from the `properties` object |
52
+
| <CopyableCodecode="resourceType" /> |`text`| field from the `properties` object |
53
+
| <CopyableCodecode="subscriptionId" /> |`text`| field from the `properties` object |
54
+
| <CopyableCodecode="target_resource_id" /> |`text`| field from the `properties` object |
55
+
| <CopyableCodecode="target_resource_type" /> |`text`| field from the `properties` object |
56
+
| <CopyableCodecode="type" /> |`text`| The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
57
+
</TabItem>
58
+
<TabItemvalue="resource">
59
+
60
+
| Name | Datatype | Description |
61
+
|:-----|:---------|:------------|
62
+
| <CopyableCodecode="id" /> |`string`| Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
63
+
| <CopyableCodecode="name" /> |`string`| The name of the resource |
64
+
| <CopyableCodecode="properties" /> |`object`| The properties of a change |
65
+
| <CopyableCodecode="type" /> |`string`| The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
66
+
</TabItem></Tabs>
34
67
35
68
## Methods
36
69
| Name | Accessible by | Required Params | Description |
| <CopyableCodecode="get" /> |`SELECT`| <CopyableCodecode="changeResourceId, resourceGroupName, resourceName, resourceProviderNamespace, resourceType, subscriptionId" /> | Obtains the specified change resource for the target resource |
72
+
| <CopyableCodecode="list" /> |`SELECT`| <CopyableCodecode="resourceGroupName, resourceName, resourceProviderNamespace, resourceType, subscriptionId" /> | Obtains a list of change resources from the past 14 days for the target resource |
73
+
74
+
## `SELECT` examples
75
+
76
+
Obtains a list of change resources from the past 14 days for the target resource
77
+
78
+
<Tabs
79
+
defaultValue="view"
80
+
values={[
81
+
{ label: 'vw_changes', value: 'view', },
82
+
{ label: 'changes', value: 'resource', },
83
+
]
84
+
}>
85
+
<TabItemvalue="view">
86
+
87
+
```sql
88
+
SELECT
89
+
id,
90
+
name,
91
+
changeResourceId,
92
+
change_attributes,
93
+
change_type,
94
+
changes,
95
+
resourceGroupName,
96
+
resourceName,
97
+
resourceProviderNamespace,
98
+
resourceType,
99
+
subscriptionId,
100
+
target_resource_id,
101
+
target_resource_type,
102
+
type
103
+
FROMazure.resources.vw_changes
104
+
WHERE resourceGroupName ='{{ resourceGroupName }}'
105
+
AND resourceName ='{{ resourceName }}'
106
+
AND resourceProviderNamespace ='{{ resourceProviderNamespace }}'
107
+
AND resourceType ='{{ resourceType }}'
108
+
AND subscriptionId ='{{ subscriptionId }}';
109
+
```
110
+
</TabItem>
111
+
<TabItemvalue="resource">
112
+
113
+
114
+
```sql
115
+
SELECT
116
+
id,
117
+
name,
118
+
properties,
119
+
type
120
+
FROMazure.resources.changes
121
+
WHERE resourceGroupName ='{{ resourceGroupName }}'
122
+
AND resourceName ='{{ resourceName }}'
123
+
AND resourceProviderNamespace ='{{ resourceProviderNamespace }}'
0 commit comments