Microsoft Purview Triggers API

The Triggers API from Microsoft Purview — 6 operation(s) for triggers.

GitHub OpenAPI

Operations 10

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 /datasources/{dataSourceName}/scans/{scanName}/triggers/default Triggers get #
PUT /datasources/{dataSourceName}/scans/{scanName}/triggers/default Triggers create or replace #
DELETE /datasources/{dataSourceName}/scans/{scanName}/triggers/default Triggers delete #
POST /datasources/{dataSourceName}/scans/{scanName}/triggers/default:enable Triggers enable #
POST /datasources/{dataSourceName}/scans/{scanName}/triggers/default:disable Triggers disable #
PUT /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default Schedule a scan with a trigger · Microsoft Purview Create or replace a scan trigger #
Ask an LLM
“How do I schedule a scan to run on a recurrence?”
“Can I replace the existing schedule on a scan?”
Tell an agent
Create a trigger for scan {scan} on {source} with properties {props}.
Replace the scan schedule for {scan} on data source {source}.
GET /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default Get a scan's schedule trigger · Microsoft Purview Get a scan trigger #
Ask an LLM
“When is a scan scheduled to run?”
“Can I see the recurrence trigger for a scan?”
Tell an agent
Show the trigger for scan {scan} on data source {source}.
Get the schedule of {scan} on {source}.
DELETE /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default Delete a scan's schedule trigger · Microsoft Purview Delete a scan trigger #
Ask an LLM
“Can I remove the recurring schedule from a scan?”
“What is the way to delete a scan trigger?”
Tell an agent destructive · confirm first
Delete the trigger on scan {scan} for data source {source}.
Remove the schedule from {scan} on {source}.
POST /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default/:enable Enable a scan schedule · Microsoft Purview Enable a scan trigger #
Ask an LLM
“How do I turn a paused scan schedule back on?”
“Can I resume scheduled scanning for a scan?”
Tell an agent
Enable the trigger for scan {scan} on data source {source}.
Resume scheduled runs of {scan} on {source}.
POST /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default/:disable Disable a scan schedule · Microsoft Purview Disable a scan trigger #
Ask an LLM
“How do I pause scheduled scanning without deleting the schedule?”
“Can I temporarily stop a scan from running on its recurrence?”
Tell an agent
Disable the trigger for scan {scan} on data source {source}.
Pause scheduled runs of {scan} on {source}.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/
📖
Authentication
https://learn.microsoft.com/en-us/purview/tutorial-using-rest-apis
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/data-gov-api-create-assets
📖
Authentication
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/how-to-purview-custom-lineage-api-user-guide
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/tutorial-metadata-policy-collections-apis
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-api-overview
📖
Authentication
https://learn.microsoft.com/en-us/purview/data-gov-api-rest-data-plane
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-data-quality
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-ediscovery-apioverview?view=graph-rest-1.0
📖
Authentication
https://learn.microsoft.com/en-us/graph/security-ediscovery-appauthsetup
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/edisc-ref-api-guide
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-information-protection-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-datasecurityandgovernance-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/developer/use-the-api
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-recordsmanagement-overview?view=graph-rest-1.0

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-purview:microsoft-purview-triggers-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-purview-triggers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MicrosoftScanningClient Triggers API
  description: Creates a Microsoft.Scanning management client.
  version: '2023-09-01'
servers:
- url: https://purview.azure.com/scan
security:
- azure_auth:
  - user_impersonation
tags:
- name: Triggers
paths:
  /datasources/{dataSourceName}/scans/{scanName}/triggers/default:
    get:
      tags:
      - Triggers
      description: Gets trigger information.
      operationId: Triggers_Get
      parameters:
      - $ref: '#/components/parameters/dataSourceName'
      - $ref: '#/components/parameters/scanName'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: Triggers get
      x-summary-source: derived
    put:
      tags:
      - Triggers
      description: Creates or replaces an instance of a trigger.
      operationId: Triggers_CreateOrReplace
      parameters:
      - $ref: '#/components/parameters/dataSourceName'
      - $ref: '#/components/parameters/scanName'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        '201':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Trigger'
        description: The trigger definition.
        required: true
      summary: Triggers create or replace
      x-summary-source: derived
    delete:
      tags:
      - Triggers
      description: Deletes the trigger associated with the scan.
      operationId: Triggers_Delete
      parameters:
      - $ref: '#/components/parameters/dataSourceName'
      - $ref: '#/components/parameters/scanName'
      - $ref: '#/components/parameters/api-version'
      responses:
        '204':
          description: Success.
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: Triggers delete
      x-summary-source: derived
  /datasources/{dataSourceName}/scans/{scanName}/triggers/default:enable:
    post:
      tags:
      - Triggers
      description: Enables a trigger.
      operationId: Triggers_Enable
      parameters:
      - $ref: '#/components/parameters/dataSourceName'
      - $ref: '#/components/parameters/scanName'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: Triggers enable
      x-summary-source: derived
  /datasources/{dataSourceName}/scans/{scanName}/triggers/default:disable:
    post:
      tags:
      - Triggers
      description: Disables a trigger.
      operationId: Triggers_Disable
      parameters:
      - $ref: '#/components/parameters/dataSourceName'
      - $ref: '#/components/parameters/scanName'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: Triggers disable
      x-summary-source: derived
  /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default:
    put:
      operationId: createOrReplaceTrigger
      summary: Microsoft Purview Create or replace a scan trigger
      description: Creates or replaces an instance of a trigger for scheduling scans.
      tags:
      - Triggers
      parameters:
      - name: dataSourceName
        in: path
        required: true
        schema:
          type: string
      - name: scanName
        in: path
        required: true
        schema:
          type: string
      - name: api-version
        in: query
        required: true
        schema:
          type: string
          default: '2023-09-01'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Trigger'
      responses:
        '200':
          description: Trigger updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        '201':
          description: Trigger created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        '401':
          description: Unauthorized
    get:
      operationId: getTrigger
      summary: Microsoft Purview Get a scan trigger
      description: Gets trigger information for a scan.
      tags:
      - Triggers
      parameters:
      - name: dataSourceName
        in: path
        required: true
        schema:
          type: string
      - name: scanName
        in: path
        required: true
        schema:
          type: string
      - name: api-version
        in: query
        required: true
        schema:
          type: string
          default: '2023-09-01'
      responses:
        '200':
          description: Trigger retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        '401':
          description: Unauthorized
        '404':
          description: Trigger not found
    delete:
      operationId: deleteTrigger
      summary: Microsoft Purview Delete a scan trigger
      description: Deletes the trigger associated with the scan.
      tags:
      - Triggers
      parameters:
      - name: dataSourceName
        in: path
        required: true
        schema:
          type: string
      - name: scanName
        in: path
        required: true
        schema:
          type: string
      - name: api-version
        in: query
        required: true
        schema:
          type: string
          default: '2023-09-01'
      responses:
        '200':
          description: Trigger deleted successfully
        '401':
          description: Unauthorized
        '404':
          description: Trigger not found
  /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default/:enable:
    post:
      operationId: enableTrigger
      summary: Microsoft Purview Enable a scan trigger
      description: Enables a trigger for scheduled scanning.
      tags:
      - Triggers
      parameters:
      - name: dataSourceName
        in: path
        required: true
        schema:
          type: string
      - name: scanName
        in: path
        required: true
        schema:
          type: string
      - name: api-version
        in: query
        required: true
        schema:
          type: string
          default: '2023-09-01'
      responses:
        '200':
          description: Trigger enabled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        '401':
          description: Unauthorized
  /scan/datasources/{dataSourceName}/scans/{scanName}/triggers/default/:disable:
    post:
      operationId: disableTrigger
      summary: Microsoft Purview Disable a scan trigger
      description: Disables a trigger for scheduled scanning.
      tags:
      - Triggers
      parameters:
      - name: dataSourceName
        in: path
        required: true
        schema:
          type: string
      - name: scanName
        in: path
        required: true
        schema:
          type: string
      - name: api-version
        in: query
        required: true
        schema:
          type: string
          default: '2023-09-01'
      responses:
        '200':
          description: Trigger disabled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trigger'
        '401':
          description: Unauthorized
components:
  parameters:
    dataSourceName:
      in: path
      name: dataSourceName
      description: The dataSource name.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 63
        minLength: 3
        pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$
    api-version:
      in: query
      name: api-version
      description: The api version to use.
      required: true
      x-ms-client-name: ApiVersion
      x-ms-parameter-location: client
      schema:
        type: string
    scanName:
      in: path
      name: scanName
      description: The scan name.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 63
        minLength: 3
        pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$
  schemas:
    RecurrenceScheduleOccurrence:
      description: The occurrence of recurrence schedule.
      type: object
      properties:
        day:
          enum:
          - Sunday
          - Monday
          - Tuesday
          - Wednesday
          - Thursday
          - Friday
          - Saturday
          type: string
          description: The day of recurrence schedule occurrence.
          x-ms-enum:
            name: DayOfWeek
            modelAsString: true
        occurrence:
          format: int32
          type: integer
    TriggerProperties:
      description: Properties detail of trigger.
      type: object
      properties:
        recurrence:
          $ref: '#/components/schemas/TriggerRecurrence'
          description: The recurrence of trigger.
        recurrenceInterval:
          type: string
          description: The recurrence interval of trigger.
        createdAt:
          format: date-time
          type: string
          description: The create time of trigger.
          readOnly: true
        lastModifiedAt:
          format: date-time
          type: string
          description: The last modified time of trigger.
          readOnly: true
        lastScheduled:
          format: date-time
          type: string
          description: The last scheduled time of trigger.
          readOnly: true
        state:
          default: Enabled
          enum:
          - Enabled
          - Disabled
          type: string
          description: The state of trigger.
          x-ms-enum:
            name: TriggerState
            modelAsString: true
        scanLevel:
          enum:
          - Full
          - Incremental
          type: string
          description: The scan level of trigger.
          x-ms-enum:
            name: ScanLevelType
            values:
            - value: Full
              description: the scan is full scan
            - value: Incremental
              description: the scan is incremental scan
            modelAsString: true
        incrementalScanStartTime:
          format: date-time
          type: string
          description: The incremental scan start time of trigger.
    ProxyResource:
      description: The proxy resource.
      type: object
      properties:
        id:
          description: The resource identifier.
          type: string
          readOnly: true
        name:
          description: The resource name.
          type: string
          readOnly: true
    Trigger:
      description: The trigger object.
      type: object
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
      properties:
        properties:
          $ref: '#/components/schemas/TriggerProperties'
          description: The properties of trigger.
        validationErrorInfo:
          type: string
          description: The validation error info of trigger.
    ErrorResponseModel:
      description: The error response model.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
      required:
      - error
    RecurrenceSchedule:
      description: Schedule of recurrence.
      type: object
      properties:
        minutes:
          type: array
          description: The minutes of recurrence schedule.
          items:
            format: int32
            type: integer
        hours:
          type: array
          description: The hours of recurrence schedule.
          items:
            format: int32
            type: integer
        weekDays:
          type: array
          description: The week days of recurrence schedule.
          items:
            enum:
            - Sunday
            - Monday
            - Tuesday
            - Wednesday
            - Thursday
            - Friday
            - Saturday
            type: string
            x-ms-enum:
              name: DaysOfWeek
              modelAsString: true
        monthDays:
          type: array
          description: Month days of recurrence schedule.
          items:
            format: int32
            type: integer
        monthlyOccurrences:
          type: array
          description: The monthly occurrences of recurrence schedule.
          items:
            $ref: '#/components/schemas/RecurrenceScheduleOccurrence'
    ErrorModel:
      description: The error model.
      type: object
      properties:
        code:
          description: A unique error code that identifies the specific error.
          type: string
        message:
          description: A human-readable error message that provides more details about the error.
          type: string
        target:
          description: The specific component that the error is associated with.
          type: string
        details:
          description: An array of nested ErrorModel objects that provides additional error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
      required:
      - code
      - message
    TriggerRecurrence:
      description: The recurrence of trigger.
      type: object
      properties:
        frequency:
          enum:
          - Week
          - Month
          - Day
          - Hour
          type: string
          description: The frequency of trigger recurrence.
          x-ms-enum:
            name: TriggerFrequency
            modelAsString: true
        interval:
          format: int32
          type: integer
          description: The interval of trigger recurrence.
        startTime:
          format: date-time
          type: string
          description: The start time of trigger recurrence.
        endTime:
          format: date-time
          type: string
          description: The end time of trigger recurrence.
        schedule:
          $ref: '#/components/schemas/RecurrenceSchedule'
          description: The schedule of trigger recurrence.
        timeZone:
          type: string
          description: The time zone of trigger recurrence.
  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.
    oauth2:
      type: oauth2
      description: Azure Active Directory OAuth2 authentication
      flows:
        clientCredentials:
          tokenUrl: https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
          scopes:
            https://purview.azure.net/.default: Access Microsoft Purview
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/endpoint'