azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

Add swagger for UploadIndicatorsAPI (Data Plane)

Open ni-bhandari opened this issue 3 years ago • 9 comments

Swagger for Threat Intelligence - Upload Indicators API

This PR adds the swagger for the Upload Indicators API for Threat Intelligence (Microsoft Sentinel). This API is a data plane API and is currently in private preview.

fix https://github.com/Azure/azure-rest-api-specs/issues/22096

ni-bhandari avatar Dec 07 '22 22:12 ni-bhandari

Hi, @ni-bhandari 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]

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 3 Warnings warning [Detail]
    compared tags (via openapi-validator v2.0.1) new version base version
    package-2022-12 package-2022-12(fbfbd41) default(main)

    [must fix]The following errors/warnings are introduced by current PR:

    Rule Message Related RPC [For API reviewers]
    :warning: PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.SecurityInsights/preview/2022-12-01-preview/ThreatIntelligence.json#L14
    :warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.SecurityInsights/preview/2022-12-01-preview/ThreatIntelligence.json#L33
    :warning: ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.SecurityInsights/preview/2022-12-01-preview/ThreatIntelligence.json#L57
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️️✔️TypeSpecAPIView 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.
    ️️✔️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.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    Swagger pipeline restarted successfully, please wait for status update in this comment.

    Generated ApiView

    Language Package Name ApiView Link
    Swagger Microsoft.SecurityInsights https://apiview.dev/Assemblies/Review/7b73c493ceac494ba5ff6c91cee2578a

    Hi @ni-bhandari, 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.

    /azp run

    ruowan avatar Dec 08 '22 04:12 ruowan

    Azure Pipelines successfully started running 1 pipeline(s).

    azure-pipelines[bot] avatar Dec 08 '22 04:12 azure-pipelines[bot]

    Hi @ni-bhandari, one or multiple validation error/warning suppression(s) is detected in your PR. Please follow the Swagger-Suppression-Process to get approval.

    Hi, @tg-msft and @johanste, We require suppression of some ARM violations; they are mentioned in the readme and I have submitted the suppression request form as well. Please let us know if there is anything else you need! Thanks!

    ni-bhandari avatar Dec 21 '22 01:12 ni-bhandari

    Hi, @ni-bhandari. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

    ghost avatar Jan 22 '23 16:01 ghost

    Hi, @ni-bhandari. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

    ghost avatar Feb 26 '23 16:02 ghost

    Hi, @ni-bhandari. The PR will be closed since the PR has no update for 28 days. If you still need the PR review to proceed, please reopen it and @ mention PR assignee.

    ghost avatar Mar 13 '23 05:03 ghost

    @anuchandy We are finalizing changes for the swagger, so this PR was inactive for a while. Could you please open the PR up again? I will update the changes shortly.

    ni-bhandari avatar Apr 25 '23 19:04 ni-bhandari

    @mikekistler Could you help with one more review? After the last api-board approval, there are two commits -

    • Adds a string property to error schema
    • Change the operation id from "ThreatIntelligence_UploadIndicators" to "threat-intelligence/indicators:upload". But I wonder "ThreatIntelligence_UploadIndicators" is the right one, given the text before "_" is the client class name and text after it is the method name.

    anuchandy avatar May 03 '23 19:05 anuchandy