-
Notifications
You must be signed in to change notification settings - Fork 5.7k
feat: Introduce 11 new events for Azure API Management in Azure Event Grid system topic #20871
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
Closed
tomkerkhove
wants to merge
5
commits into
Azure:main
from
tomkerkhove:tomkerkhove/apim/new-event-grid-events
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
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
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
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
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
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
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
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
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
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
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
11 changes: 11 additions & 0 deletions
11
...iManagement/stable/2018-01-01/examples/cloud-events-schema/selfHostedGatewayApiAdded.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/apis/example-api", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.API.Added", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/apis/example-api" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...anagement/stable/2018-01-01/examples/cloud-events-schema/selfHostedGatewayApiRemoved.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/apis/example-api", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.API.Removed", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/apis/example-api" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...2018-01-01/examples/cloud-events-schema/selfHostedGatewayCertificateAuthorityCreated.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/certificateAuthorities/example-ca", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Created", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/certificateAuthorities/example-ca" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...2018-01-01/examples/cloud-events-schema/selfHostedGatewayCertificateAuthorityDeleted.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/certificateAuthorities/example-ca", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Deleted", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/certificateAuthorities/example-ca" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...2018-01-01/examples/cloud-events-schema/selfHostedGatewayCertificateAuthorityUpdated.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/certificateAuthorities/example-ca", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Updated", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/certificateAuthorities/example-ca" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...piManagement/stable/2018-01-01/examples/cloud-events-schema/selfHostedGatewayCreated.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.Created", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...piManagement/stable/2018-01-01/examples/cloud-events-schema/selfHostedGatewayDeleted.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.Deleted", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...018-01-01/examples/cloud-events-schema/selfHostedGatewayHostnameConfigurationCreated.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/hostnameConfigurations/example-hostname", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.HostnameConfiguration.Created", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/hostnameConfigurations/example-hostname" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...018-01-01/examples/cloud-events-schema/selfHostedGatewayHostnameConfigurationDeleted.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/hostnameConfigurations/example-hostname", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.HostnameConfiguration.Deleted", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/hostnameConfigurations/example-hostname" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...018-01-01/examples/cloud-events-schema/selfHostedGatewayHostnameConfigurationUpdated.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}/hostnameConfigurations/example-hostname", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.HostnameConfiguration.Updated", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/hostnameConfigurations/example-hostname" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
11 changes: 11 additions & 0 deletions
11
...piManagement/stable/2018-01-01/examples/cloud-events-schema/selfHostedGatewayUpdated.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,11 @@ | ||
| { | ||
| "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}", | ||
| "subject": "/gateways/{gateway-name}", | ||
| "type": "Microsoft.ApiManagement.SelfHostedGateway.Updated", | ||
| "time": "2021-07-02T00:47:47.8536532Z", | ||
| "id": "92c502f2-a966-42a7-a428-d3b319844544", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}" | ||
| }, | ||
| "specVersion": "1.0" | ||
| } |
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
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
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
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
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
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
12 changes: 12 additions & 0 deletions
12
...ApiManagement/stable/2018-01-01/examples/event-grid-schema/selfHostedGatewayApiAdded.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": "/gateways/{gateway-name}/apis/example-api", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/apis/example-api" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.SelfHostedGateway.API.Added", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:48.8269769Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...iManagement/stable/2018-01-01/examples/event-grid-schema/selfHostedGatewayApiRemoved.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": "/gateways/{gateway-name}/apis/example-api", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/apis/example-api" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.SelfHostedGateway.API.Removed", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:48.8269769Z" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...e/2018-01-01/examples/event-grid-schema/selfHostedGatewayCertificateAuthorityCreated.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": "/gateways/{gateway-name}/certificateAuthorities/example-ca", | ||
| "data": { | ||
| "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/gateways/{gateway-name}/certificateAuthorities/example-ca" | ||
| }, | ||
| "eventType": "Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Created", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-07-02T00:47:48.8269769Z" | ||
| } |
Oops, something went wrong.
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.
These event names are pretty long. Could we possibly remove "SelfHosted"?
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.
Not really as this event is solely aimed for our self-hosted gateway.
Here's a full list of all events:
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.
Do you anticipate there being similar events for the managed gateway at some point?
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'd like to have this freedom, yet. Our ARM resource is big and these events are coming from https://learn.microsoft.com/en-us/azure/templates/microsoft.apimanagement/service/gateways/apis?pivots=deployment-language-bicep and related sub resources.
Our managed gateway also has custom hostname support as well as CAs.
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.
As part of our product we always make a distinction