Microsoft Sentinel Repositories API

The Repositories API from Microsoft Sentinel — 1 operation(s) for repositories.

Operations 1

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/listRepositories Source control list repositories #

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-repositories-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-sentinel-repositories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Sentinel Repositories API
  version: '2025-09-01'
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
  description: 'Operations tagged Repositories across 2 of this provider''s published API definitions: microsoft-sentinel-securityinsights-2025-09-01.json, microsoft-sentinel-securityinsights-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Repositories
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/listRepositories
  : post:
      operationId: SourceControl_listRepositories
      tags:
      - Repositories
      description: Gets a list of repositories metadata.
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/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]$
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepoList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Get repository list.:
          $ref: ./examples/repositories/GetRepositories.json
      x-ms-pageable:
        nextLinkName: nextLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RepositoryAccessProperties'
        description: The content of the action request
        required: true
      summary: Source control list repositories
      x-summary-source: derived
    servers:
    - url: https://management.azure.com
components:
  schemas:
    Repo:
      type: object
      description: Represents a repository.
      properties:
        url:
          type: string
          description: The url to access the repository.
        fullName:
          type: string
          description: The name of the repository.
        installationId:
          type: integer
          format: int64
          description: The installation id of the repository.
        branches:
          type: array
          description: Array of branches.
          items:
            type: string
    RepositoryAccessObject:
      type: object
      description: Credentials to access repository.
      properties:
        repositoryAccess:
          $ref: '#/components/schemas/RepositoryAccess'
          description: RepositoryAccess properties
          x-ms-client-flatten: true
      required:
      - repositoryAccess
    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
    RepositoryAccess:
      type: object
      description: Credentials to access repository.
      properties:
        kind:
          $ref: '#/components/schemas/RepositoryAccessKind'
          description: The kind of repository access credentials
        code:
          type: string
          format: password
          description: OAuth Code. Required when `kind` is `OAuth`
          x-ms-secret: true
        state:
          type: string
          format: password
          description: OAuth State. Required when `kind` is `OAuth`
          x-ms-secret: true
        clientId:
          type: string
          description: OAuth ClientId. Required when `kind` is `OAuth`
        token:
          type: string
          format: password
          description: Personal Access Token. Required when `kind` is `PAT`
          x-ms-secret: true
        installationId:
          type: string
          description: Application installation ID. Required when `kind` is `App`. Supported by `GitHub` only.
      required:
      - kind
    RepositoryAccessKind:
      type: string
      description: The kind of repository access credentials
      enum:
      - OAuth
      - PAT
      - App
      x-ms-enum:
        name: RepositoryAccessKind
        modelAsString: true
        values:
        - name: OAuth
          value: OAuth
          description: OAuth
        - name: PAT
          value: PAT
          description: PAT
        - name: App
          value: App
          description: App
    RepositoryAccessProperties:
      type: object
      description: Credentials to access repository.
      properties:
        properties:
          $ref: '#/components/schemas/RepositoryAccessObject'
          description: RepositoryAccess properties
          x-ms-client-flatten: true
      required:
      - properties
    CloudError:
      type: object
      description: Error response structure.
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Error data
    RepoList:
      type: object
      description: List all the source controls.
      properties:
        value:
          type: array
          description: The Repo items on this page
          items:
            $ref: '#/components/schemas/Repo'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
          readOnly: true
      required:
      - value
  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.
x-refined-from:
- microsoft-sentinel-securityinsights-2025-09-01.json
- microsoft-sentinel-securityinsights-openapi.yml