diff --git a/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json b/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json new file mode 100644 index 000000000000..34ebbf945954 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json @@ -0,0 +1,311 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "Schema of Azure resource events published to Azure Event Grid", + "description": "Describes the schema of the Azure resource events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." + }, + "paths": {}, + "definitions": { + "ResourceWriteSuccessData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteSuccess event. This is raised when a resource create or update operation succeeds.", + "type": "object", + "properties": { + "tenantId": { + "description": "The tenant ID of the resource.", + "type": "string" + }, + "subscriptionId": { + "description": "The subscription ID of the resource.", + "type": "string" + }, + "resourceGroup": { + "description": "The resource group of the resource.", + "type": "string" + }, + "resourceProvider": { + "description": "The resource provider performing the operation.", + "type": "string" + }, + "resourceUri": { + "description": "The URI of the resource in the operation.", + "type": "string" + }, + "operationName": { + "description": "The operation that was performed.", + "type": "string" + }, + "status": { + "description": "The status of the operation.", + "type": "string" + }, + "authorization": { + "description": "The requested authorization for the operation.", + "type": "string" + }, + "claims": { + "description": "The properties of the claims.", + "type": "string" + }, + "correlationId": { + "description": "An operation ID used for troubleshooting.", + "type": "string" + }, + "httpRequest": { + "description": "The details of the operation.", + "type": "string" + } + } + }, + "ResourceWriteFailureData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure event. This is raised when a resource create or update operation fails.", + "type": "object", + "properties": { + "tenantId": { + "description": "The tenant ID of the resource.", + "type": "string" + }, + "subscriptionId": { + "description": "The subscription ID of the resource.", + "type": "string" + }, + "resourceGroup": { + "description": "The resource group of the resource.", + "type": "string" + }, + "resourceProvider": { + "description": "The resource provider performing the operation.", + "type": "string" + }, + "resourceUri": { + "description": "The URI of the resource in the operation.", + "type": "string" + }, + "operationName": { + "description": "The operation that was performed.", + "type": "string" + }, + "status": { + "description": "The status of the operation.", + "type": "string" + }, + "authorization": { + "description": "The requested authorization for the operation.", + "type": "string" + }, + "claims": { + "description": "The properties of the claims.", + "type": "string" + }, + "correlationId": { + "description": "An operation ID used for troubleshooting.", + "type": "string" + }, + "httpRequest": { + "description": "The details of the operation.", + "type": "string" + } + } + }, + "ResourceWriteCancelData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteCancel event. This is raised when a resource create or update operation is canceled.", + "type": "object", + "properties": { + "tenantId": { + "description": "The tenant ID of the resource.", + "type": "string" + }, + "subscriptionId": { + "description": "The subscription ID of the resource.", + "type": "string" + }, + "resourceGroup": { + "description": "The resource group of the resource.", + "type": "string" + }, + "resourceProvider": { + "description": "The resource provider performing the operation.", + "type": "string" + }, + "resourceUri": { + "description": "The URI of the resource in the operation.", + "type": "string" + }, + "operationName": { + "description": "The operation that was performed.", + "type": "string" + }, + "status": { + "description": "The status of the operation.", + "type": "string" + }, + "authorization": { + "description": "The requested authorization for the operation.", + "type": "string" + }, + "claims": { + "description": "The properties of the claims.", + "type": "string" + }, + "correlationId": { + "description": "An operation ID used for troubleshooting.", + "type": "string" + }, + "httpRequest": { + "description": "The details of the operation.", + "type": "string" + } + } + }, + "ResourceDeleteSuccessData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a resource delete operation succeeds.", + "type": "object", + "properties": { + "tenantId": { + "description": "The tenant ID of the resource.", + "type": "string" + }, + "subscriptionId": { + "description": "The subscription ID of the resource.", + "type": "string" + }, + "resourceGroup": { + "description": "The resource group of the resource.", + "type": "string" + }, + "resourceProvider": { + "description": "The resource provider performing the operation.", + "type": "string" + }, + "resourceUri": { + "description": "The URI of the resource in the operation.", + "type": "string" + }, + "operationName": { + "description": "The operation that was performed.", + "type": "string" + }, + "status": { + "description": "The status of the operation.", + "type": "string" + }, + "authorization": { + "description": "The requested authorization for the operation.", + "type": "string" + }, + "claims": { + "description": "The properties of the claims.", + "type": "string" + }, + "correlationId": { + "description": "An operation ID used for troubleshooting.", + "type": "string" + }, + "httpRequest": { + "description": "The details of the operation.", + "type": "string" + } + } + }, + "ResourceDeleteFailureData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteFailure event. This is raised when a resource delete operation fails.", + "type": "object", + "properties": { + "tenantId": { + "description": "The tenant ID of the resource.", + "type": "string" + }, + "subscriptionId": { + "description": "The subscription ID of the resource.", + "type": "string" + }, + "resourceGroup": { + "description": "The resource group of the resource.", + "type": "string" + }, + "resourceProvider": { + "description": "The resource provider performing the operation.", + "type": "string" + }, + "resourceUri": { + "description": "The URI of the resource in the operation.", + "type": "string" + }, + "operationName": { + "description": "The operation that was performed.", + "type": "string" + }, + "status": { + "description": "The status of the operation.", + "type": "string" + }, + "authorization": { + "description": "The requested authorization for the operation.", + "type": "string" + }, + "claims": { + "description": "The properties of the claims.", + "type": "string" + }, + "correlationId": { + "description": "An operation ID used for troubleshooting.", + "type": "string" + }, + "httpRequest": { + "description": "The details of the operation.", + "type": "string" + } + } + }, + "ResourceDeleteCancelData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled.", + "type": "object", + "properties": { + "tenantId": { + "description": "The tenant ID of the resource.", + "type": "string" + }, + "subscriptionId": { + "description": "The subscription ID of the resource.", + "type": "string" + }, + "resourceGroup": { + "description": "The resource group of the resource.", + "type": "string" + }, + "resourceProvider": { + "description": "The resource provider performing the operation.", + "type": "string" + }, + "resourceUri": { + "description": "The URI of the resource in the operation.", + "type": "string" + }, + "operationName": { + "description": "The operation that was performed.", + "type": "string" + }, + "status": { + "description": "The status of the operation.", + "type": "string" + }, + "authorization": { + "description": "The requested authorization for the operation.", + "type": "string" + }, + "claims": { + "description": "The properties of the claims.", + "type": "string" + }, + "correlationId": { + "description": "An operation ID used for troubleshooting.", + "type": "string" + }, + "httpRequest": { + "description": "The details of the operation.", + "type": "string" + } + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index bb61928c66c9..868c10a5fd8d 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -46,6 +46,7 @@ These settings apply only when `--tag=package-2018-01` is specified on the comma input-file: - Microsoft.Storage/stable/2018-01-01/Storage.json - Microsoft.EventHub/stable/2018-01-01/EventHub.json +- Microsoft.Resources/stable/2018-01-01/Resources.json - Microsoft.EventGrid/stable/2018-01-01/EventGrid.json ```