-
Notifications
You must be signed in to change notification settings - Fork 5.6k
api management events schema #15987
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
api management events schema #15987
Changes from 10 commits
179b4e3
f8bb8c6
95805dc
3534a76
220d282
f221e24
a1534e6
ef10a16
a99abd6
068fce1
4d9f58e
2f54f2f
5091d95
ead07f0
9daae81
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,161 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure API Management events published to Azure Event Grid", | ||
| "description": "Describes the schema of the Azure API Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "UserCreatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserCreated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "UserUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserUpdated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "UserDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserDeleted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "SubscriptionCreatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionCreated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "SubscriptionUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionUpdated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "SubscriptionDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionDeleted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ProductCreatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductCreated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ProductUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductUpdated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ProductDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductDeleted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "APICreatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "APIUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated event.", | ||
|
Member
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. I noticed that for some events
Member
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. Also, curious about this - We would likely need to rename this via swagger transforms in .NET. It also seems odd that we have API (in whatever casing) twice in the name of the events.
Member
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. Yeah, that makes sense but the casing should be consistent, right? We will have to transform it anyway to use "Api" everywhere if we leave it as "API" in the swagger. 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. ApiManagement is the name of our service that hosts "API" entities. API is an abbreviation so we normally spell it with all caps. |
||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "APIDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIDeleted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ApiReleaseCreatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ApiReleaseCreated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ApiReleaseUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ApiReleaseUpdated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ApiReleaseDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ApiReleaseDeleted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceUri": { | ||
| "description": "The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`", | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/products/myproduct", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/products/myproduct" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.ProductCreated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.