Microsoft Sentinel Automation Rules API

The automationRules API from Microsoft Sentinel — 2 operation(s) for automationrules.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules List automation rules in a workspace · Automation rules list #
Ask an LLM
“Which automation rules are set up in my Sentinel workspace?”
“Can I see every playbook rule that runs on alerts?”
Tell an agent
List automation rules in workspace {workspaceName}.
Show all playbook rules for {workspaceName} in resource group {resourceGroupName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId} Get one automation rule · Automation rules get #
Ask an LLM
“What conditions and actions does a specific automation rule have?”
“Can I read a single playbook rule by its ID?”
Tell an agent
Get automation rule {automationRuleId} in workspace {workspaceName}.
Show the conditions of playbook rule {automationRuleId}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId} Create or update an automation rule · Automation rules create or update #
Ask an LLM
“How do I create a new playbook rule that runs on alerts?”
“Can I change the conditions of an existing automation rule?”
Tell an agent
Create automation rule {automationRuleId} in workspace {workspaceName} with {properties}.
Update playbook rule {automationRuleId} to {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId} Delete an automation rule · Automation rules delete #
Ask an LLM
“How do I remove a playbook rule I no longer need?”
“Can I delete an automation rule by its ID?”
Tell an agent destructive · confirm first
Delete automation rule {automationRuleId} from workspace {workspaceName}.
Remove playbook rule {automationRuleId}.

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-sentinel:microsoft-sentinel-automationrules-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-sentinel-automationrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Security Insights Automation Rules API
  version: '2025-09-01'
  description: API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: automationRules
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules
  : get:
      operationId: AutomationRules_List
      tags:
      - automationRules
      description: Gets all automation rules.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the monitor workspace.
        required: true
        schema:
          type: string
          maxLength: 90
          minLength: 1
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRulesList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Automation rules list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId}
  : get:
      operationId: AutomationRules_Get
      tags:
      - automationRules
      description: Gets the automation rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the monitor workspace.
        required: true
        schema:
          type: string
          maxLength: 90
          minLength: 1
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: automationRuleId
        in: path
        description: Automation rule ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Automation rules get
      x-summary-source: derived
    put:
      operationId: AutomationRules_CreateOrUpdate
      tags:
      - automationRules
      description: Creates or updates the automation rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the workspace.
        required: true
        schema:
          type: string
          maxLength: 90
          minLength: 1
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: automationRuleId
        in: path
        description: The automation rule ID.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'AutomationRule' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        '201':
          description: Resource 'AutomationRule' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutomationRule'
        description: The automation rule
      summary: Automation rules create or update
      x-summary-source: derived
    delete:
      operationId: AutomationRules_Delete
      tags:
      - automationRules
      description: Delete the automation rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: workspaceName
        in: path
        description: The name of the monitor workspace.
        required: true
        schema:
          type: string
          maxLength: 90
          minLength: 1
          pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$
      - name: automationRuleId
        in: path
        description: Automation rule ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema: {}
        '204':
          description: 'There is no content to send for this request, but the headers may be useful. '
          content:
            application/json:
              schema: {}
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Automation rules delete
      x-summary-source: derived
components:
  schemas:
    Resource:
      type: object
      title: Resource
      description: Common fields that are returned in the response for all Azure Resource Manager resources
      properties:
        id:
          type: string
          format: arm-id
          description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
          readOnly: true
        name:
          type: string
          description: The name of the resource
          readOnly: true
        type:
          type: string
          description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          readOnly: true
        systemData:
          $ref: '#/components/schemas/systemData'
          description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
          readOnly: true
      x-ms-azure-resource: true
    AutomationRuleAction:
      type: object
      description: Describes an automation rule action.
      properties:
        order:
          type: integer
          format: int32
        actionType:
          $ref: '#/components/schemas/ActionType'
          description: The type of the automation rule action.
      discriminator:
        propertyName: actionType
      required:
      - order
      - actionType
    AutomationRule:
      type: object
      description: Concrete proxy resource types can be created by aliasing this type using a specific property type.
      properties:
        properties:
          $ref: '#/components/schemas/AutomationRuleProperties'
          description: Automation rule properties
          x-ms-client-flatten: true
        etag:
          type: string
          description: Etag of the azure resource
      required:
      - properties
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    Azure.Core.uuid:
      type: string
      format: uuid
      description: Universally Unique Identifier
    AutomationRuleProperties:
      type: object
      description: Automation rule properties
      properties:
        displayName:
          type: string
          description: The display name of the automation rule.
          maxLength: 500
        order:
          type: integer
          format: int32
          description: The order of execution of the automation rule.
          minimum: 1
          maximum: 1000
        triggeringLogic:
          $ref: '#/components/schemas/AutomationRuleTriggeringLogic'
          description: Describes automation rule triggering logic.
        actions:
          type: array
          description: The actions to execute when the automation rule is triggered.
          maxItems: 20
          items:
            $ref: '#/components/schemas/AutomationRuleAction'
          x-ms-identifiers: []
        lastModifiedTimeUtc:
          type: string
          format: date-time
          description: The last time the automation rule was updated.
          readOnly: true
        createdTimeUtc:
          type: string
          format: date-time
          description: The time the automation rule was created.
          readOnly: true
        lastModifiedBy:
          $ref: '#/components/schemas/ClientInfo'
          description: Information on the client (user or application) that made some action
          readOnly: true
        createdBy:
          $ref: '#/components/schemas/ClientInfo'
          description: Information on the client (user or application) that made some action
          readOnly: true
      required:
      - displayName
      - order
      - triggeringLogic
      - actions
    TriggersOn:
      type: string
      enum:
      - Incidents
      - Alerts
      x-ms-enum:
        name: TriggersOn
        modelAsString: true
        values:
        - name: Incidents
          value: Incidents
          description: Trigger on Incidents
        - name: Alerts
          value: Alerts
          description: Trigger on Alerts
    CloudError:
      type: object
      description: Error response structure.
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Error data
    ConditionType:
      type: string
      enum:
      - Property
      - PropertyArray
      - PropertyChanged
      - PropertyArrayChanged
      - Boolean
      x-ms-enum:
        name: ConditionType
        modelAsString: true
        values:
        - name: Property
          value: Property
          description: Evaluate an object property value
        - name: PropertyArray
          value: PropertyArray
          description: Evaluate an object array property value
        - name: PropertyChanged
          value: PropertyChanged
          description: Evaluate an object property changed value
        - name: PropertyArrayChanged
          value: PropertyArrayChanged
          description: Evaluate an object array property changed value
        - name: Boolean
          value: Boolean
          description: Apply a boolean operator (e.g AND, OR) to conditions
    TriggersWhen:
      type: string
      enum:
      - Created
      - Updated
      x-ms-enum:
        name: TriggersWhen
        modelAsString: true
        values:
        - name: Created
          value: Created
          description: Trigger on created objects
        - name: Updated
          value: Updated
          description: Trigger on updated objects
    AutomationRuleTriggeringLogic:
      type: object
      description: Describes automation rule triggering logic.
      properties:
        isEnabled:
          type: boolean
          description: Determines whether the automation rule is enabled or disabled.
        expirationTimeUtc:
          type: string
          format: date-time
          description: Determines when the automation rule should automatically expire and be disabled.
        triggersOn:
          $ref: '#/components/schemas/TriggersOn'
        triggersWhen:
          $ref: '#/components/schemas/TriggersWhen'
        conditions:
          type: array
          description: The conditions to evaluate to determine if the automation rule should be triggered on a given object.
          maxItems: 50
          items:
            $ref: '#/components/schemas/AutomationRuleCondition'
          x-ms-identifiers:
          - conditionType
      required:
      - isEnabled
      - triggersOn
      - triggersWhen
    ActionType:
      type: string
      description: The type of the automation rule action.
      enum:
      - ModifyProperties
      - RunPlaybook
      - AddIncidentTask
      x-ms-enum:
        name: ActionType
        modelAsString: true
        values:
        - name: ModifyProperties
          value: ModifyProperties
          description: Modify an object's properties
        - name: RunPlaybook
          value: RunPlaybook
          description: Run a playbook on an object
        - name: AddIncidentTask
          value: AddIncidentTask
          description: Add a task to an incident object
    CloudErrorBody:
      type: object
      description: Error details.
      properties:
        code:
          type: string
          description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
          readOnly: true
        message:
          type: string
          description: A message describing the error, intended to be suitable for display in a user interface.
          readOnly: true
    AutomationRulesList:
      type: object
      properties:
        value:
          type: array
          description: List of automation rules.
          items:
            $ref: '#/components/schemas/AutomationRule'
        nextLink:
          type: string
          description: The link to the next page of items
    AutomationRuleCondition:
      type: object
      description: Describes an automation rule condition.
      properties:
        conditionType:
          $ref: '#/components/schemas/ConditionType'
      discriminator:
        propertyName: conditionType
      required:
      - conditionType
    ClientInfo:
      type: object
      description: Information on the client (user or application) that made some action
      properties:
        email:
          type: string
          description: The email of the client.
        name:
          type: string
          description: The name of the client.
        objectId:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: The object id of the client.
        userPrincipalName:
          type: string
          description: The user principal name of the client.
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
  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.