Azure Monitor Scheduled Query Rules API

The ScheduledQueryRules API from Azure Monitor — 3 operation(s) for scheduledqueryrules.

GitHub OpenAPI

Operations 6

GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules Scheduled query rules list by subscription #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules Scheduled query rules list by resource group #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} Scheduled query rules get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} Scheduled query rules create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} Scheduled query rules update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} Scheduled query rules delete #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/metrics
📖
Authentication
https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/rest-api-walkthrough
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/rest-api-walkthrough
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/metrics-batch
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/loganalytics/
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/overview
📖
Documentation
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logs-ingestion-api-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-api
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/scheduledqueryrule-2021-08-01/scheduled-query-rules
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/action-groups
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-best-practices
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/application-insights/
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/diagnostic-settings
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/activity-logs
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/data-collection-rules
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/data-collection/data-collection-rule-create-edit
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/monitor/data-collection-endpoints
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/data-collection/data-collection-endpoint-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/private-link-configure

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-monitor:microsoft-azure-monitor-scheduledqueryrules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-monitor-scheduledqueryrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2026-03-01'
  title: Scheduled Query Rules API
  description: Azure Monitor client to create/update/delete Scheduled Query Rules.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ScheduledQueryRules
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules:
    get:
      tags:
      - ScheduledQueryRules
      description: Retrieve a scheduled query rule definitions in a subscription.
      operationId: ScheduledQueryRules_ListBySubscription
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Successful request for a list of scheduled query rules
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledQueryRuleResourceCollection'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Scheduled query rules list by subscription
      x-summary-source: derived
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules:
    get:
      tags:
      - ScheduledQueryRules
      description: Retrieve scheduled query rule definitions in a resource group.
      operationId: ScheduledQueryRules_ListByResourceGroup
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Successful request for a list of scheduled query rules
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledQueryRuleResourceCollection'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Scheduled query rules list by resource group
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
  : get:
      tags:
      - ScheduledQueryRules
      description: Retrieve an scheduled query rule definition.
      operationId: ScheduledQueryRules_Get
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/RuleNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Successful request to get a scheduled query rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledQueryRuleResource'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
      summary: Scheduled query rules get
      x-summary-source: derived
    put:
      tags:
      - ScheduledQueryRules
      description: Creates or updates a scheduled query rule.
      operationId: ScheduledQueryRules_CreateOrUpdate
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/RuleNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Successful request to update a scheduled query rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledQueryRuleResource'
        '201':
          description: Created a scheduled query rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledQueryRuleResource'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledQueryRuleResource'
        description: The parameters of the rule to create or update.
        required: true
      summary: Scheduled query rules create or update
      x-summary-source: derived
    patch:
      tags:
      - ScheduledQueryRules
      description: Update a scheduled query rule.
      operationId: ScheduledQueryRules_Update
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/RuleNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Successful request to update a scheduled query rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledQueryRuleResource'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledQueryRuleResourcePatch'
        description: The parameters of the rule to update.
        required: true
      summary: Scheduled query rules update
      x-summary-source: derived
    delete:
      tags:
      - ScheduledQueryRules
      description: Deletes a scheduled query rule.
      operationId: ScheduledQueryRules_Delete
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/RuleNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '200':
          description: Successful request to delete a scheduled query rule
        '204':
          description: 'No content: the request was successful, but the response is empty'
      summary: Scheduled query rules delete
      x-summary-source: derived
components:
  schemas:
    ScheduledQueryRuleResource:
      type: object
      required:
      - properties
      - location
      properties:
        id:
          readOnly: true
          type: string
          description: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
        name:
          readOnly: true
          type: string
          description: The name of the resource
        type:
          readOnly: true
          type: string
          description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
        identity:
          $ref: '#/components/schemas/Identity'
          description: The identity of the resource.
        tags:
          type: object
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
          description: Resource tags.
        location:
          type: string
          x-ms-mutability:
          - read
          - create
          description: The geo-location where the resource lives
        kind:
          type: string
          description: Indicates the type of scheduled query rule. The default is LogAlert.
          enum:
          - LogAlert
          - SimpleLogAlert
          - LogToMetric
          x-ms-enum:
            name: Kind
            modelAsString: true
        etag:
          type: string
          readOnly: true
          description: 'The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. '
        systemData:
          $ref: '#/components/schemas/systemData'
          description: SystemData of ScheduledQueryRule.
          readOnly: true
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ScheduledQueryRuleProperties'
          description: The rule properties of the resource.
          required:
          - enabled
          - criteria
          - scopes
      description: The scheduled query rule resource.
      x-ms-azure-resource: true
    ScheduledQueryRuleCriteria:
      type: object
      description: The rule criteria that defines the conditions of the scheduled query rule.
      properties:
        allOf:
          type: array
          description: A list of conditions to evaluate against the specified scopes
          items:
            $ref: '#/components/schemas/Condition'
          x-ms-identifiers: []
    systemData:
      description: Metadata pertaining to creation and last modification of the resource.
      type: object
      readOnly: true
      properties:
        createdBy:
          type: string
          description: The identity that created the resource.
        createdByType:
          type: string
          description: The type of identity that created the resource.
          enum:
          - User
          - Application
          - ManagedIdentity
          - Key
          x-ms-enum:
            name: createdByType
            modelAsString: true
        createdAt:
          type: string
          format: date-time
          description: The timestamp of resource creation (UTC).
        lastModifiedBy:
          type: string
          description: The identity that last modified the resource.
        lastModifiedByType:
          type: string
          description: The type of identity that last modified the resource.
          enum:
          - User
          - Application
          - ManagedIdentity
          - Key
          x-ms-enum:
            name: createdByType
            modelAsString: true
        lastModifiedAt:
          type: string
          format: date-time
          description: The timestamp of resource last modification (UTC)
    Dimension:
      type: object
      description: Dimension splitting and filtering definition
      properties:
        name:
          type: string
          description: Name of the dimension
        operator:
          type: string
          description: Operator for dimension values
          enum:
          - Include
          - Exclude
          x-ms-enum:
            name: dimensionOperator
            modelAsString: true
        values:
          type: array
          items:
            type: string
          description: List of dimension values
      required:
      - name
      - operator
      - values
    ScheduledQueryRuleResourceCollection:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/ScheduledQueryRuleResource'
          description: The values for the scheduled query rule resources.
        nextLink:
          description: Provides the link to retrieve the next set of elements.
          type: string
          readOnly: true
      description: Represents a collection of scheduled query rule resources.
    ErrorResponse:
      title: Error Response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)
      type: object
      properties:
        code:
          readOnly: true
          type: string
          description: The error code.
        message:
          readOnly: true
          type: string
          description: The error message.
        target:
          readOnly: true
          type: string
          description: The error target.
        details:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ErrorResponse'
          x-ms-identifiers:
          - message
          - target
          description: The error details.
        additionalInfo:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          x-ms-identifiers: []
          description: The error additional info.
    RuleResolveConfiguration:
      type: object
      description: TBD. Relevant only for rules of the kind LogAlert.
      properties:
        autoResolved:
          type: boolean
          description: The flag that indicates whether or not to auto resolve a fired alert.
        timeToResolve:
          type: string
          format: duration
          description: The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
    Condition:
      type: object
      description: A condition of the scheduled query rule.
      properties:
        criterionType:
          type: string
          enum:
          - StaticThresholdCriterion
          - DynamicThresholdCriterion
          x-ms-enum:
            name: criterionType
            modelAsString: true
          description: Specifies the type of threshold criteria
        query:
          type: string
          description: Log query alert
        timeAggregation:
          type: string
          description: Aggregation type. Relevant and required only for rules of the kind LogAlert.
          enum:
          - Count
          - Average
          - Minimum
          - Maximum
          - Total
          x-ms-enum:
            name: timeAggregation
            modelAsString: true
        metricMeasureColumn:
          type: string
          description: The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
        resourceIdColumn:
          type: string
          description: The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
        dimensions:
          type: array
          items:
            $ref: '#/components/schemas/Dimension'
          description: List of Dimensions conditions. Relevant only for rules of the kind LogAlert and LogToMetric.
          x-ms-identifiers: []
        operator:
          type: string
          enum:
          - Equals
          - GreaterThan
          - GreaterThanOrEqual
          - LessThan
          - LessThanOrEqual
          - GreaterOrLessThan
          x-ms-enum:
            name: conditionOperator
            modelAsString: true
          description: The criteria operator. Relevant and required only for rules of the kind LogAlert.
        threshold:
          type: number
          format: double
          description: the criteria threshold value that activates the alert. Relevant and required only for static threshold rules of the kind LogAlert.
        alertSensitivity:
          type: string
          description: The extent of deviation required to trigger an alert. Allowed values are 'Low', 'Medium' and 'High'. This will affect how tight the threshold is to the metric series pattern. Relevant only for dynamic threshold rules of the kind LogAlert.
        ignoreDataBefore:
          type: string
          format: date-time
          description: Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format). Relevant only for dynamic threshold rules of the kind LogAlert.
        failingPeriods:
          type: object
          description: The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
          properties:
            numberOfEvaluationPeriods:
              type: integer
              format: int64
              default: 1
              description: The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
            minFailingPeriodsToAlert:
              type: integer
              format: int64
              default: 1
              description: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
        metricName:
          type: string
          description: The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
        minRecurrenceCount:
          type: integer
          format: int64
          description: The minimum results count that should be found for triggering an alert. Relevant only for rules of the kind SimpleLogAlert.
    ErrorContract:
      title: Error Response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)
      type: object
      properties:
        error:
          description: The error object.
          $ref: '#/components/schemas/ErrorResponse'
    Actions:
      type: object
      description: Actions to invoke when the alert fires.
      properties:
        actionGroups:
          type: array
          items:
            type: string
          description: Action Group resource Ids to invoke when the alert fires.
        customProperties:
          type: object
          additionalProperties:
            type: string
            description: The dictionary of custom properties to include with the post operation. These data are appended to the alert payload.
          description: The properties of an alert payload.
        actionProperties:
          type: object
          additionalProperties:
            type: string
            description: The dictionary of action properties to include with the post operation. This data customizes the actions.
          description: The properties of an action properties.
    UserIdentityProperties:
      type: object
      description: User assigned identity properties.
      properties:
        principalId:
          readOnly: true
          description: The principal id of user assigned identity.
          type: string
        clientId:
          readOnly: true
          description: The client id of user assigned identity.
          type: string
    Identity:
      properties:
        principalId:
          readOnly: true
          type: string
          description: The principal ID of resource identity.
        tenantId:
          readOnly: true
          type: string
          description: The tenant ID of resource.
        type:
          type: string
          description: Type of managed service identity.
          enum:
          - SystemAssigned
          - UserAssigned
          - None
          x-ms-enum:
            name: IdentityType
            modelAsString: false
        userAssignedIdentities:
          description: 'The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.'
          type: object
          additionalProperties:
            $ref: '#/components/schemas/UserIdentityProperties'
      required:
      - type
      type: object
      description: Identity for the resource.
    ScheduledQueryRuleResourcePatch:
      type: object
      properties:
        identity:
          $ref: '#/components/schemas/Identity'
          description: The identity of the resource.
        tags:
          type: object
          additionalProperties:
            type: string
          description: Resource tags
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ScheduledQueryRuleProperties'
          description: The scheduled query rule properties of the resource.
      description: The scheduled query rule resource for patch operations.
    ScheduledQueryRuleProperties:
      type: object
      properties:
        createdWithApiVersion:
          type: string
          readOnly: true
          description: The api-version used when creating this alert rule
        isLegacyLogAnalyticsRule:
          type: boolean
          readOnly: true
          description: True if alert rule is legacy Log Analytic rule
        description:
          type: string
          description: The description of the scheduled query rule.
        displayName:
          type: string
          description: The display name of the alert rule
        severity:
          type: integer
          format: int64
          description: Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          x-ms-enum:
            name: AlertSeverity
            modelAsString: true
        enabled:
          type: boolean
          description: The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
        scopes:
          type: array
          items:
            type: string
          description: The list of resource id's that this scheduled query rule is scoped to.
        evaluationFrequency:
          type: string
          format: duration
          description: How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
        windowSize:
          type: string
          format: duration
          description: The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
        overrideQueryTimeRange:
          type: string
          format: duration
          description: If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
        targetResourceTypes:
          type: array
          items:
            type: string
          description: List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert
        criteria:
          $ref: '#/components/schemas/ScheduledQueryRuleCriteria'
          description: The rule criteria that defines the conditions of the scheduled query rule.
        muteActionsDuration:
          type: string
          format: duration
          description: Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
        actions:
          type: object
          $ref: '#/components/schemas/Actions'
          description: Actions to invoke when the alert fires.
        isWorkspaceAlertsStorageConfigured:
          type: boolean
          readOnly: true
          description: The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
        checkWorkspaceAlertsStorageConfigured:
          type: boolean
          description: The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
        skipQueryValidation:
          type: boolean
          description: The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
        autoMitigate:
          type: boolean
          description: The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of kinds LogAlert and SimpleLogAlert.
        resolveConfiguration:
          type: object
          $ref: '#/components/schemas/RuleResolveConfiguration'
          description: Defines the configuration for resolving fired alerts. Relevant only for rules of kinds LogAlert and SimpleLogAlert.
      description: scheduled query rule Definition
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: The ID of the target subscription.
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group. The name is case insensitive.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    RuleNameParameter:
      name: ruleName
      in: path
      required: true
      description: The name of the rule.
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[^#<>%&:\?/{}*]{1,260}$
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: The API version to use for this operation.
      schema:
        type: string
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow