Skip to content
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

feat: Introduce 11 new events for Azure API Management in Azure Event Grid system topic #20871

Conversation

tomkerkhove
Copy link
Member

Event Grid IcM: https://portal.microsofticm.com/imp/v3/incidents/details/337589116/home

Data Plane API - Pull Request

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your engagement record.

  • Link to engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.

  • Design Document: N/A
  • Previous Open API Doc: N/A
  • Updated paths: N/A

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@openapi-workflow-bot
Copy link

Hi, @tomkerkhove Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Sep 26, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    compared swaggers (via Oad v0.9.7)] new version base version
    APIManagement.json 2018-01-01(ef8f1f7) 2018-01-01(main)
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️❌LintDiff: 2 Errors, 0 Warnings failed [Detail] [must fix]The following errors/warnings are introduced by current PR:
    Rule Message Related RPC [For API reviewers]
    AutoRest exception "location":"specification/eventgrid/data-plane/readme.md",
    "tag":"package-2018-01",
    "details":"swagger-document/individual/schema-validator - FAILED"
    AutoRest exception "location":"specification/eventgrid/data-plane/readme.md",
    "tag":"package-2018-01",
    "details":"Error: [OperationAbortedException] Error occurred. Exiting."
    ️❌Avocado: 22 Errors, 0 Warnings failed [Detail]
    Rule Message
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayApiAdded.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayApiRemoved.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayCertificateAuthorityCreated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayCertificateAuthorityDeleted.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayCertificateAuthorityUpdated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayCreated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayDeleted.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayHostnameConfigurationCreated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayHostnameConfigurationDeleted.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayHostnameConfigurationUpdated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/cloud-events-schema/selfHostedGatewayUpdated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayApiAdded.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayApiRemoved.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayCertificateAuthorityCreated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayCertificateAuthorityDeleted.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayCertificateAuthorityUpdated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayCreated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayDeleted.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayHostnameConfigurationCreated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayHostnameConfigurationDeleted.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayHostnameConfigurationUpdated.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/eventgrid/data-plane/readme.md
    json: 2018-01-01/examples/event-grid-schema/selfHostedGatewayUpdated.json
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️~[Staging] ServiceAPIReadinessTest succeeded [Detail] [Expand]
    Validation passes for ServiceAPIReadinessTest.
    ️️✔️~[Staging] TrafficValidation succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️️✔️SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    • The following tags are being changed in this PR
      • "https://github.com/Azure/azure-rest-api-specs/blob/ef8f1f7a195dbbe2b6bd64b114a89077e0c78243/specification/eventgrid/data-plane/readme.md#tag-package-2018-01">eventgrid/data-plane/readme.md#package-2018-01
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Sep 26, 2022

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 5fb985d52df6af850a0e84989b154a9ff182dd19. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      warn	File azure-sdk-for-net_tmp/initOutput.json not found to read
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    • ️✔️Azure.Messaging.EventGrid [View full logs]  [Preview SDK Changes]
      info	[Changelog]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Sep 26, 2022

    Swagger pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment.

    @openapi-workflow-bot
    Copy link

    Hi @tomkerkhove, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    Signed-off-by: Tom Kerkhove <[email protected]>
    Signed-off-by: Tom Kerkhove <[email protected]>
    @tomkerkhove
    Copy link
    Member Author

    I'm not sure how to fix the remaining validation failures to be honest

    @@ -156,6 +156,116 @@
    "type": "string"
    }
    }
    },
    "ApiManagementSelfHostedGatewayCreatedEventData": {
    Copy link
    Member

    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"?

    Copy link
    Member Author

    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:

    • Microsoft.ApiManagement.SelfHostedGateway.Created
    • Microsoft.ApiManagement.SelfHostedGateway.Updated
    • Microsoft.ApiManagement.SelfHostedGateway.Deleted
    • Microsoft.ApiManagement.SelfHostedGateway.HostnameConfiguration.Created
    • Microsoft.ApiManagement.SelfHostedGateway.HostnameConfiguration.Updated
    • Microsoft.ApiManagement.SelfHostedGateway.HostnameConfiguration.Deleted
    • Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Created
    • Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Updated
    • Microsoft.ApiManagement.SelfHostedGateway.CertificateAuthority.Deleted
    • Microsoft.ApiManagement.SelfHostedGateway.API.Added
    • Microsoft.ApiManagement.SelfHostedGateway.API.Removed

    Copy link
    Member

    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?

    Copy link
    Member Author

    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.

    Copy link
    Member Author

    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

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    4 participants