-
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
Merged
Merged
api management events schema #15987
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
179b4e3
Merge pull request #1 from Azure/master
KacieKK f8bb8c6
Merge remote-tracking branch 'upstream/master' into master
KacieKK 95805dc
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
KacieKK 3534a76
Merge branch 'Azure:master' into master
KacieKK 220d282
Merge branch 'master' of https://github.com/KacieKK/azure-rest-api-sp…
KacieKK f221e24
add swagger
KacieKK a1534e6
align
KacieKK ef10a16
rephrase
KacieKK a99abd6
resolvemergeconflict
KacieKK 068fce1
Merge branch 'main' into apimEgSchema
KacieKK 4d9f58e
comments
KacieKK 2f54f2f
examples
KacieKK 5091d95
prettier
KacieKK ead07f0
comments
KacieKK 9daae81
pascal
KacieKK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
161 changes: 161 additions & 0 deletions
161
...ication/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": { | ||
| "ApiManagementUserCreatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementUserUpdatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementUserDeletedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementSubscriptionCreatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementSubscriptionUpdatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementSubscriptionDeletedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementProductCreatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementProductUpdatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementProductDeletedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementAPICreatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementAPIUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated 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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementAPIDeletedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementAPIReleaseCreatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementAPIReleaseUpdatedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| }, | ||
| "ApiManagementAPIReleaseDeletedEventData": { | ||
| "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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
12 changes: 12 additions & 0 deletions
12
...n/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/apiCreated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "95015754-aa51-4eb6-98d9-9ee322b82ad7", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/apis/myapi", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/apis/myapi" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.APICreated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-12T23:13:44.9048323Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...n/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/apiDeleted.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "95015754-aa51-4eb6-98d9-9ee322b82ad7", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/apis/myapi;Rev=1", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/apis/myapi;Rev=1" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.APIDeleted", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-12T23:13:44.9048323Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...n/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/apiUpdated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "95015754-aa51-4eb6-98d9-9ee322b82ad7", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/apis/myapi;Rev=1", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/apis/myapi;Rev=1" | ||
JoshLove-msft marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "eventType": "Microsoft.ApiManagement.APIUpdated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-12T23:13:44.9048323Z" | ||
| } | ||
12 changes: 12 additions & 0 deletions
12
...entgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/productCreated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...entgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/productDeleted.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.ProductDeleted", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...entgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/productUpdated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.ProductUpdated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...id/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/subscriptionCreated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "831e1650-001e-001b-66ab-eeb76e069631", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/subscriptions/{subscriptionId}", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/subscriptions/{subscriptionId}" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.SubscriptionCreated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...id/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/subscriptionDeleted.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "831e1650-001e-001b-66ab-eeb76e069631", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/subscriptions/{subscriptionId}", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/subscriptions/{subscriptionId}" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.SubscriptionDeleted", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...id/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/subscriptionUpdated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "id": "831e1650-001e-001b-66ab-eeb76e069631", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/subscriptions/{subscriptionId}", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/subscriptions/{subscriptionId}" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.SubscriptionUpdated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
.../eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/userCreated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": "/users/apimuser-contoso-com", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/users/apimuser-contoso-com" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.UserCreated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8237532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
.../eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/userDeleted.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": "/users/apimuser-contoso-com", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/users/apimuser-contoso-com" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.UserDeleted", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:47.8536532Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
.../eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/userUpdated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": "/users/apimuser-contoso-com", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/users/apimuser-contoso-com" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.UserUpdated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:48.8269769Z" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that for some events
APIis capitalized, and in other cases, it's spellApi(e.g.APIUpdatedvsApiReleaseUpdated) I just want to confirm that the difference in casing between these event is expected.There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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 comment
The 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.
Renaming "ApiManagementAPI" to "ApiManagementApi" requires an extra rollout train to all our services. We prefer to stay as it is.