Skip to content

Commit ee246ce

Browse files
Supriya-R-Dixitzman-ms
authored andcommitted
Included files for resources system topic (#26162)
* Included files for resources system topic * included cloud event schema examples * removed extra spaces from subject and id fields * formatted the id and renamed event data * included "arm-id" format for the "id" property in deletedDetails
1 parent f3af296 commit ee246ce

File tree

7 files changed

+267
-2
lines changed

7 files changed

+267
-2
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2018-01-01",
5+
"title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications",
6+
"description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent."
7+
},
8+
"paths": {},
9+
"definitions": {
10+
"ResourceNotificationsResourceManagementCreatedOrUpdatedEventData": {
11+
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.CreatedOrUpdated event.",
12+
"type": "object",
13+
"allOf": [
14+
{
15+
"$ref": "./common.json#/definitions/ResourceNotificationsResourceUpdatedEventData"
16+
}
17+
],
18+
"x-ms-examples": {
19+
"ResourceNotificationsResourceCreatedOrUpdatedEventGridSchema": {
20+
"$ref": "./examples/event-grid-schema/Resources_CreatedOrUpdated.json"
21+
},
22+
"ResourceNotificationsResourceCreatedOrUpdatedCloudEventsSchema": {
23+
"$ref": "./examples/cloud-events-schema/Resources_CreatedOrUpdated.json"
24+
}
25+
}
26+
},
27+
"ResourceNotificationsResourceManagementDeletedEventData": {
28+
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.Deleted event.",
29+
"type": "object",
30+
"allOf": [
31+
{
32+
"$ref": "./common.json#/definitions/ResourceNotificationsResourceDeletedEventData"
33+
}
34+
],
35+
"x-ms-examples": {
36+
"ResourceNotificationsResourceDeletedEventGridSchema": {
37+
"$ref": "./examples/event-grid-schema/Resources_Deleted.json"
38+
},
39+
"ResourceNotificationsResourceDeletedCloudEventsSchema": {
40+
"$ref": "./examples/cloud-events-schema/Resources_Deleted.json"
41+
}
42+
}
43+
}
44+
}
45+
}

specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,49 @@
6060
"$ref": "#/definitions/ResourceNotificationsResourceUpdatedDetails",
6161
"x-ms-client-name": "resourceDetails"
6262
},
63+
"apiVersion": {
64+
"description": "api version of the resource properties bag",
65+
"type": "string"
66+
},
6367
"operationalInfo": {
6468
"description": "details about operational info",
6569
"$ref": "#/definitions/ResourceNotificationsOperationalDetails",
6670
"x-ms-client-name": "operationalDetails"
71+
}
72+
}
73+
},
74+
"ResourceNotificationsResourceDeletedDetails": {
75+
"description": "Describes the schema of the properties under resource info which are common across all ARN system topic delete events",
76+
"type": "object",
77+
"properties": {
78+
"id": {
79+
"description": "id of the resource for which the event is being emitted",
80+
"type": "string",
81+
"format": "arm-id"
6782
},
68-
"apiVersion": {
69-
"description": "api version of the resource properties bag",
83+
"name": {
84+
"description": "name of the resource for which the event is being emitted",
7085
"type": "string"
86+
},
87+
"type": {
88+
"description": "the type of the resource for which the event is being emitted",
89+
"type": "string"
90+
}
91+
}
92+
},
93+
"ResourceNotificationsResourceDeletedEventData": {
94+
"description": "Describes the schema of the common properties across all ARN system topic delete events",
95+
"type": "object",
96+
"properties": {
97+
"resourceInfo": {
98+
"description": "resourceInfo details for delete event",
99+
"$ref": "#/definitions/ResourceNotificationsResourceDeletedDetails",
100+
"x-ms-client-name": "resourceDetails"
101+
},
102+
"operationalInfo": {
103+
"description": "details about operational info",
104+
"$ref": "#/definitions/ResourceNotificationsOperationalDetails",
105+
"x-ms-client-name": "operationalDetails"
71106
}
72107
}
73108
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"id": "4eef929a-a65c-47dd-93e2-46b8c17c6c17",
3+
"source": "/subscriptions/{subscription-id}",
4+
"subject": "/subscriptions/{subscription-id} /resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
5+
"data": {
6+
"resourceInfo": {
7+
"tags": {},
8+
"id": "/subscriptions/{subcription-id} /resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
9+
"name": "StorageAccount-name",
10+
"type": "Microsoft.Storage/storageAccounts",
11+
"location": "eastus",
12+
"properties": {
13+
"privateEndpointConnections": [],
14+
"minimumTlsVersion": "TLS1_2",
15+
"allowBlobPublicAccess": 1,
16+
"allowSharedKeyAccess": 1,
17+
"networkAcls": {
18+
"bypass": "AzureServices",
19+
"virtualNetworkRules": [],
20+
"ipRules": [],
21+
"defaultAction": "Allow"
22+
},
23+
"supportsHttpsTrafficOnly": 1,
24+
"encryption": {
25+
"requireInfrastructureEncryption": 0,
26+
"services": {
27+
"file": {
28+
"keyType": "Account",
29+
"enabled": 1,
30+
"lastEnabledTime": "2023-07-28T20:12:50.6380308Z"
31+
},
32+
"blob": {
33+
"keyType": "Account",
34+
"enabled": 1,
35+
"lastEnabledTime": "2023-07-28T20:12:50.6380308Z"
36+
}
37+
},
38+
"keySource": "Microsoft.Storage"
39+
},
40+
"accessTier": "Hot",
41+
"provisioningState": "Succeeded",
42+
"creationTime": "2023-07-28T20:12:50.4661564Z",
43+
"primaryEndpoints": {
44+
"dfs": "https://{storageAccount-name}.dfs.core.windows.net/",
45+
"web": "https://{storageAccount-name}.z13.web.core.windows.net/",
46+
"blob": "https://{storageAccount-name}.blob.core.windows.net/",
47+
"queue": "https://{storageAccount-name}.queue.core.windows.net/",
48+
"table": "https://{storageAccount-name}.table.core.windows.net/",
49+
"file": "https://{storageAccount-name}.file.core.windows.net/"
50+
},
51+
"primaryLocation": "eastus",
52+
"statusOfPrimary": "available",
53+
"secondaryLocation": "westus",
54+
"statusOfSecondary": "available",
55+
"secondaryEndpoints": {
56+
"dfs": "https://{storageAccount-name} -secondary.dfs.core.windows.net/",
57+
"web": "https://{storageAccount-name}-secondary.z13.web.core.windows.net/",
58+
"blob": "https://{storageAccount-name}-secondary.blob.core.windows.net/",
59+
"queue": "https://{storageAccount-name}-secondary.queue.core.windows.net/",
60+
"table": "https://{storageAccount-name}-secondary.table.core.windows.net/"
61+
}
62+
}
63+
},
64+
"operationalInfo": {
65+
"resourceEventTime": "2023-07-28T20:13:10.8418063Z"
66+
},
67+
"apiVersion": "2019-06-01"
68+
},
69+
"type": "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated",
70+
"specversion": "1.0",
71+
"time": "2023-07-28T20:13:10.8418063Z"
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"id": "d4611260-d179-4f86-b196-3a9d4128be2d",
3+
"source": "/subscriptions/{subscription-id}",
4+
"subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
5+
"data": {
6+
"resourceInfo": {
7+
"id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
8+
"name": "storageAccount-name",
9+
"type": "Microsoft.Storage/storageAccounts"
10+
},
11+
"operationalInfo": {
12+
"resourceEventTime": "2023-07-28T20:11:36.6347858Z"
13+
}
14+
},
15+
"type": "Microsoft.ResourceNotifications.Resources.Deleted",
16+
"specversion": "1.0",
17+
"time": "2023-07-28T20:11:36.6347858Z"
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"id": "4eef929a-a65c-47dd-93e2-46b8c17c6c17",
3+
"topic": "/subscriptions/{subscription-id}",
4+
"subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
5+
"data": {
6+
"resourceInfo": {
7+
"tags": {},
8+
"id": "/subscriptions/{subcription-id}/resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
9+
"name": "StorageAccount-name",
10+
"type": "Microsoft.Storage/storageAccounts",
11+
"location": "eastus",
12+
"properties": {
13+
"privateEndpointConnections": [],
14+
"minimumTlsVersion": "TLS1_2",
15+
"allowBlobPublicAccess": 1,
16+
"allowSharedKeyAccess": 1,
17+
"networkAcls": {
18+
"bypass": "AzureServices",
19+
"virtualNetworkRules": [],
20+
"ipRules": [],
21+
"defaultAction": "Allow"
22+
},
23+
"supportsHttpsTrafficOnly": 1,
24+
"encryption": {
25+
"requireInfrastructureEncryption": 0,
26+
"services": {
27+
"file": {
28+
"keyType": "Account",
29+
"enabled": 1,
30+
"lastEnabledTime": "2023-07-28T20:12:50.6380308Z"
31+
},
32+
"blob": {
33+
"keyType": "Account",
34+
"enabled": 1,
35+
"lastEnabledTime": "2023-07-28T20:12:50.6380308Z"
36+
}
37+
},
38+
"keySource": "Microsoft.Storage"
39+
},
40+
"accessTier": "Hot",
41+
"provisioningState": "Succeeded",
42+
"creationTime": "2023-07-28T20:12:50.4661564Z",
43+
"primaryEndpoints": {
44+
"dfs": "https://{storageAccount-name}.dfs.core.windows.net/",
45+
"web": "https://{storageAccount-name}.z13.web.core.windows.net/",
46+
"blob": "https://{storageAccount-name}.blob.core.windows.net/",
47+
"queue": "https://{storageAccount-name}.queue.core.windows.net/",
48+
"table": "https://{storageAccount-name}.table.core.windows.net/",
49+
"file": "https://{storageAccount-name}.file.core.windows.net/"
50+
},
51+
"primaryLocation": "eastus",
52+
"statusOfPrimary": "available",
53+
"secondaryLocation": "westus",
54+
"statusOfSecondary": "available",
55+
"secondaryEndpoints": {
56+
"dfs": "https://{storageAccount-name} -secondary.dfs.core.windows.net/",
57+
"web": "https://{storageAccount-name}-secondary.z13.web.core.windows.net/",
58+
"blob": "https://{storageAccount-name}-secondary.blob.core.windows.net/",
59+
"queue": "https://{storageAccount-name}-secondary.queue.core.windows.net/",
60+
"table": "https://{storageAccount-name}-secondary.table.core.windows.net/"
61+
}
62+
}
63+
},
64+
"operationalInfo": {
65+
"resourceEventTime": "2023-07-28T20:13:10.8418063Z"
66+
},
67+
"apiVersion": "2019-06-01"
68+
},
69+
"eventType": "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated",
70+
"dataVersion": "1",
71+
"metadataVersion": "1",
72+
"eventTime": "2023-07-28T20:13:10.8418063Z"
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"id": "d4611260-d179-4f86-b196-3a9d4128be2d",
3+
"topic": "/subscriptions/{subscription-id}",
4+
"subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
5+
"data": {
6+
"resourceInfo": {
7+
"id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}",
8+
"name": "storageAccount-name",
9+
"type": "Microsoft.Storage/storageAccounts"
10+
},
11+
"operationalInfo": {
12+
"resourceEventTime": "2023-07-28T20:11:36.6347858Z"
13+
}
14+
},
15+
"eventType": "Microsoft.ResourceNotifications.Resources.Deleted",
16+
"dataVersion": "1",
17+
"metadataVersion": "1",
18+
"eventTime": "2023-07-28T20:11:36.6347858Z"
19+
}

specification/eventgrid/data-plane/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ input-file:
142142
- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
143143
- Microsoft.ResourceNotifications/stable/2018-01-01/common.json
144144
- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
145+
- Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
145146
```
146147

147148
### Tag: package-2023-06-01-preview
@@ -175,6 +176,7 @@ input-file:
175176
- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
176177
- Microsoft.ResourceNotifications/stable/2018-01-01/common.json
177178
- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
179+
- Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
178180
```
179181

180182
### Tag: package-2023-10-01-preview
@@ -299,6 +301,7 @@ input-file:
299301
- $(this-folder)/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
300302
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
301303
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
304+
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
302305
```
303306

304307
If there are files that should not be in the `all-api-versions` set,

0 commit comments

Comments
 (0)