-
Notifications
You must be signed in to change notification settings - Fork 5.8k
including all json files and examples for system topics introduced by ARN #25848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 26 commits
ae8cc2d
63c4f66
83906d0
33873dd
efab60b
7d2f16c
69f7432
b83dbd0
374bd61
c925127
f3bd8e4
2e82c8f
6d5dfc9
bc47b06
b26f95a
b9ff29a
b968d58
0fcc077
8cec4fb
c413ef0
884eca5
1eaf8f3
c563439
f104fb8
593d50d
bfa8e2b
5f920b6
827ccf9
5c9e1a4
eeb894e
0697502
57b6fd1
3447549
ba3ae19
d253b82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be pointing to health resources. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for description.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| "description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsEmittedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/HealthResources_AvailabilityStatusChanged.json" | ||
| }, | ||
| "ResourceNotificationsHealthResourcesAvailabilityStatusChangedCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/HealthResources_AvailabilityStatusChanged.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceNotificationsHealthResourcesAnnotatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsEmittedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsHealthResourcesAnnotatedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/HealthResources_ResourceAnnotated.json" | ||
| }, | ||
| "ResourceNotificationsHealthResourcesAnnotatedCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/HealthResources_ResourceAnnotated.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications", | ||
| "description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceNotificationsMaintenanceResourcesScheduledEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.MaintenanceResources.ScheduledEventEmitted event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsEmittedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsMaintenanceResourcesScheduledEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/MaintenanceResources_ScheduledEventEmitted.json" | ||
| }, | ||
| "ResourceNotificationsMaintenanceResourcesScheduledCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/MaintenanceResources_ScheduledEventEmitted.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications", | ||
| "description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceNotificationsRsourceCreatedOrUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.CreatedOrUpdated event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsEmittedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsResourceCreatedOrUpdatedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/Resources_CreatedOrUpdated.json" | ||
| }, | ||
| "ResourceNotificationsResourceCreatedOrUpdatedCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/Resources_CreatedOrUpdated.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceNotificationsResourceDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.Deleted event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsDeletedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsResourceDeletedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/Resources_Deleted.json" | ||
| }, | ||
| "ResourceNotificationsResourceDeletedCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/Resources_Deleted.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of the common properties for Azure Resource Notifications (ARN) System topics", | ||
| "description": "Describes the schema of the the common properties across all topic types published by ARN to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceNotificationsEmittedEventData": { | ||
| "description": "Describes the schema of the common properties across all ARN system topic events", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
| "description": "details of resourceInfo", | ||
| "type": "object", | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "properties": { | ||
| "id": { | ||
| "description": "id of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "location": { | ||
| "description": "the location of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "tags": { | ||
| "description": "the tags on the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "properties in the payload of the resource for which the event is being emitted", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "description": "properties in the payload of the resource for which the event is being emitted" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "description": "details of operational info", | ||
| "type": "object", | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "properties": { | ||
| "resourceEventTime": { | ||
| "description": "Date and Time when resource was updated", | ||
| "type": "string", | ||
| "format": "date-time" | ||
| } | ||
| } | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource properties bag", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceNotificationsDeletedEventData": { | ||
| "description": "Describes the schema of the common properties across all ARN system topic deleted events", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
|
JoshLove-msft marked this conversation as resolved.
|
||
| "description": "Data specific to the resource", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the resource which is being deleted", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource being deleted", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource being deleted", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "description": "details of operational info", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceEventTime": { | ||
| "description": "Date and Time when resource was updated", | ||
| "type": "string", | ||
| "format": "date-time" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "ResourceManagementDeletedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/Resources_Deleted.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "id": "1fb6fa94-d965-4306-abeq-4810f0774e97", | ||
| "source": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}/providers/Microsoft.ResourceHealth/availabilityStatuses/{event-id}", | ||
| "name": "{event-id}", | ||
| "type": "Microsoft.ResourceHealth/availabilityStatuses", | ||
| "properties": { | ||
| "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "targetResourceType": "Microsoft.Compute/virtualMachines", | ||
| "occurredTime": "2023-07-24T19:20:37.9245071Z", | ||
| "previousAvailabilityState": "Unavailable", | ||
| "availabilityState": "Available" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-24T19:20:37.9245071Z" | ||
| }, | ||
| "apiVersion": "2023-12-01" | ||
| }, | ||
| "type": "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged", | ||
| "specversion": "1.0", | ||
| "time": "2023-07-24T19:20:37.9245071Z" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "id": "8945cf9b-e220-496e-ab4f-f3a239318995", | ||
| "source": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}/providers/Microsoft.ResourceHealth/resourceAnnotations/{event-id}", | ||
| "name": "{event-id}", | ||
| "type": "Microsoft.ResourceHealth/resourceAnnotations", | ||
| "properties": { | ||
| "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "targetResourceType": "Microsoft.Compute/virtualMachines", | ||
| "occurredTime": "2023-07-24T19:20:37.9245071Z", | ||
| "annotationName": "VirtualMachineDeallocationInitiated", | ||
| "reason": "Stopping and deallocating", | ||
| "summary": "This virtual machine is stopped and deallocated as requested by an authorized user or process.", | ||
| "context": "Customer Initiated", | ||
| "category": "Not Applicable" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-24T19:20:37.9245071Z" | ||
| }, | ||
| "apiVersion": "2022-08-01" | ||
| }, | ||
| "type": "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated", | ||
| "specversion": "1.0", | ||
| "time": "2023-07-24T19:20:37.9245071Z" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "id": "3da1b9aa-5204-4335-8c33-c54e315dcffe", | ||
| "source": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/providers/microsoft.maintenance/scheduledevents/{event-id}", | ||
| "name": "{event-id}", | ||
| "type": "Microsoft.Maintenance/scheduledEvents", | ||
| "location": "eastus", | ||
| "properties": { | ||
| "DurationInSeconds": 5, | ||
| "Description": "Virtual machine is being paused because of a memory-preserving Live Migration operation.", | ||
| "EventId": "3da1b9aa-5204-4335-8c33-c54e315dcffe", | ||
| "EventSource": "Platform", | ||
| "EventStatus": "Started", | ||
| "EventType": "Freeze", | ||
| "NotBefore": "Mon, 19 Sep 2016 18:29:47 GMT", | ||
| "Resources": [ | ||
| "myvmss_1", | ||
| "myvmss_2" | ||
| ], | ||
| "ResourceType": "VirtualMachine" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2017-06-26T18:41:00.9584103Z" | ||
| }, | ||
| "apiVersion": "2023-07-01" | ||
| }, | ||
| "type": "Microsoft.ResourceNotifications.MaintenanceResources.ScheduledEventEmitted", | ||
| "specversion": "1.0", | ||
| "time": "2017-06-26T18:41:00.9584103Z" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| { | ||
| "id": "4eef929a-a65c-47dd-93e2-46b8c17c6c17", | ||
| "source": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id} /resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "tags": {}, | ||
| "id": "/subscriptions/{subcription-id} /resourceGroups/{rg-name}/providers/Microsoft.Storage/storageAccounts/{storageAccount-name}", | ||
| "name": "StorageAccount-name", | ||
| "type": "Microsoft.Storage/storageAccounts", | ||
| "location": "eastus", | ||
| "properties": { | ||
| "privateEndpointConnections": [], | ||
| "minimumTlsVersion": "TLS1_2", | ||
| "allowBlobPublicAccess": 1, | ||
| "allowSharedKeyAccess": 1, | ||
| "networkAcls": { | ||
| "bypass": "AzureServices", | ||
| "virtualNetworkRules": [], | ||
| "ipRules": [], | ||
| "defaultAction": "Allow" | ||
| }, | ||
| "supportsHttpsTrafficOnly": 1, | ||
| "encryption": { | ||
| "requireInfrastructureEncryption": 0, | ||
| "services": { | ||
| "file": { | ||
| "keyType": "Account", | ||
| "enabled": 1, | ||
| "lastEnabledTime": "2023-07-28T20:12:50.6380308Z" | ||
| }, | ||
| "blob": { | ||
| "keyType": "Account", | ||
| "enabled": 1, | ||
| "lastEnabledTime": "2023-07-28T20:12:50.6380308Z" | ||
| } | ||
| }, | ||
| "keySource": "Microsoft.Storage" | ||
| }, | ||
| "accessTier": "Hot", | ||
| "provisioningState": "Succeeded", | ||
| "creationTime": "2023-07-28T20:12:50.4661564Z", | ||
| "primaryEndpoints": { | ||
| "dfs": "https://{storageAccount-name}.dfs.core.windows.net/", | ||
| "web": "https://{storageAccount-name}.z13.web.core.windows.net/", | ||
| "blob": "https://{storageAccount-name}.blob.core.windows.net/", | ||
| "queue": "https://{storageAccount-name}.queue.core.windows.net/", | ||
| "table": "https://{storageAccount-name}.table.core.windows.net/", | ||
| "file": "https://{storageAccount-name}.file.core.windows.net/" | ||
| }, | ||
| "primaryLocation": "eastus", | ||
| "statusOfPrimary": "available", | ||
| "secondaryLocation": "westus", | ||
| "statusOfSecondary": "available", | ||
| "secondaryEndpoints": { | ||
| "dfs": "https://{storageAccount-name} -secondary.dfs.core.windows.net/", | ||
| "web": "https://{storageAccount-name}-secondary.z13.web.core.windows.net/", | ||
| "blob": "https://{storageAccount-name}-secondary.blob.core.windows.net/", | ||
| "queue": "https://{storageAccount-name}-secondary.queue.core.windows.net/", | ||
| "table": "https://{storageAccount-name}-secondary.table.core.windows.net/" | ||
| } | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-28T20:13:10.8418063Z" | ||
| }, | ||
| "apiVersion": "2019-06-01" | ||
| }, | ||
| "type": "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated", | ||
| "specversion": "1.0", | ||
| "time": "2023-07-28T20:13:10.8418063Z" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.