Palo Alto Networks Repositories API

The Repositories API from Palo Alto Networks — 6 operation(s) for repositories.

Operations 11

GET /code/api/v1/repositories List Repository List #
POST /code/api/v1/repositories Integrate Multiple Repositories #
GET /code/api/v1/repositories/branches Get Repository Branches with CICD Runs #
POST /code/api/v1/repositories/query Get Repository Name to UUID Mapping of Requested UUIDs #
GET /code/api/v1/repositories/search Search Repositories #
POST /code/api/v1/vcs-repository/repositories Get Repositories Page #
GET /api/v1/vcs-repository/repositories Get repositories (repositories page) #
POST /api/v1/vcs-repository/repositories get repositories page #
GET /repositories Palo Alto Networks List Connected Repositories #
POST /repositories Palo Alto Networks Add a Repository #
DELETE /repositories Palo Alto Networks Remove a Repository #

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/palo-alto-networks-repositories-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

palo-alto-networks-repositories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Palo Alto Networks Repositories API
  version: '1.0'
  description: 'Operations tagged Repositories across 4 of this provider''s published API definitions: palo-alto-code-repositories-openapi.json, palo-alto-code-repositoryimportancescore-openapi.json, palo-alto-networks-repositories-api-openapi.yml, palo-alto-prisma-cloud-code-security-api-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.prismacloud.io
- url: https://api.stratacloud.paloaltonetworks.com/aiops/bpa/v1
  description: AIOps for NGFW BPA API production server.
- url: https://api.prismacloud.io/code/api/v1
  description: Prisma Cloud Code Security API (US region 1).
- url: https://api2.prismacloud.io/code/api/v1
  description: Prisma Cloud Code Security API (US region 2).
- url: https://api.eu.prismacloud.io/code/api/v1
  description: Prisma Cloud Code Security API (EU).
- url: https://api.anz.prismacloud.io/code/api/v1
  description: Prisma Cloud Code Security API (ANZ).
- url: https://api.sg.prismacloud.io/code/api/v1
  description: Prisma Cloud Code Security API (Singapore).
- url: https://api.ca.prismacloud.io/code/api/v1
  description: Prisma Cloud Code Security API (Canada).
tags:
- name: Repositories
paths:
  /code/api/v1/repositories:
    get:
      description: 'Retrieve a list of integrated repositories.

        each repository item includes: id, repoName, source, owner, isPublic, creationDate'
      operationId: getRepositories
      parameters:
      - in: query
        name: errorsCount
        required: false
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                Example 1:
                  value:
                  - creationDate: '2022-02-21T12:37:56.188Z'
                    defaultBranch: master
                    description: description
                    errors: null
                    id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
                    isPublic: false
                    lastScanDate: null
                    owner: yourname
                    repository: foo
                    runs: 0
                    source: Github
                  - creationDate: '2022-02-21T09:26:22.848Z'
                    defaultBranch: master
                    errors: 343
                    id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
                    isPublic: false
                    lastScanDate: '2022-02-21T09:26:43.945Z'
                    owner: yourname
                    repository: terragoat
                    runs: 2
                    source: Github
              schema:
                items:
                  $ref: '#/components/schemas/RepositoriesResponse'
                type: array
          description: repositories for customer
        '422':
          description: Request arguments validation error
        '500':
          description: Could not fetch Repositories for customer
      security:
      - CustomAuthorizer: []
      summary: List Repository List
      tags:
      - Repositories
      x-bc-required-permissions:
      - CCSProjects_READ
      - CCSDevelopmentPipelinesCodeReviews_READ
      - CCSDevelopmentPipelinesProjects_READ
      - CCSSupplyChain_READ
      x-codeSamples:
      - lang: Python + Requests
        source: 'import requests


          url = "http://undefinedundefined/code/api/v1/repositories"


          querystring = {"errorsCount":"SOME_STRING_VALUE"}


          headers = {"authorization": "REPLACE_KEY_VALUE"}


          response = requests.request("GET", url, headers=headers, params=querystring)


          print(response.text)'
      - lang: Shell + Curl
        source: "curl --request GET \\\n  --url 'http://undefinedundefined/code/api/v1/repositories?errorsCount=SOME_STRING_VALUE' \\\n  --header 'authorization: REPLACE_KEY_VALUE'"
    post:
      description: "Onboard a list of repositories for a given integration\nParameters:\n\n| Name | Required                | Type          | In   | Description                                                                                                                                   |\n|------|-------------------------|---------------|------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| id   | id or type are required | string        | body | ID of the integration to update                                                                                                               |\n| type | id or type are required | string        | body | Type of the integration to update <br/> enum (github, githubEnterprise, gitlab, gitlabEnterprise, bitbucket, bitbucketEnterprise, azureRepos) |\n| data | yes                     | array<string> | body | List of repositories to update the integration                                                                                                |\n\nIn case both id and type provided only id will take into consideration\n\nexample1:\n```json\n{\n\"id\": \"123123-123123-123123-123123\",\n\"data\": [\"orevron/terragoat\", \"orevron/platform\"]\n}\n```\nexample2:\n```json\n{\n\"type\": \"github\",\n\"data\": [\"orevron/terragoat\", \"orevron/platform\"]\n}\n```\nresponse:\nexample1:\n```json\n{ \"success\": true }\n```\nexample2:\n```json\n{\n    \"success\": false,\n    \"integrations\": [\n            { \"id\": \"123-123-123\", \"created\": \"2022-01-16T17:09:14.167Z\", \"updateBy\": \"oevron@paloaltonetworks.com\" },\n            { \"id\": \"321-321-321\", \"created\": \"2022-01-12T17:10:14.167Z\", \"updateBy\": \"oevron@paloaltonetworks.com\" }\n    ]\n}\n```\nexample3:\n```json\n{ \"success\": false, \"message\": \"ID or type of integration must be provided\"}\n```\nstatus code 206 when more than one integration found for provided type\nstatus code 404 when integration is not found within the customer integrations\nstatus code 422 when both id and type not provided\nstatus code 500 when something went wrong with the server"
      operationId: updateRepositories
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateRepositoriesBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/updateRepoResponse'
          description: Repositories Updated Successfully
        '422':
          description: Request arguments validation error
      security:
      - CustomAuthorizer: []
      summary: Integrate Multiple Repositories
      tags:
      - Repositories
      x-codeSamples:
      - lang: Python + Requests
        source: "import requests\n\nurl = \"http://undefinedundefined/code/api/v1/repositories\"\n\npayload = {\n    \"data\": [\"string\"],\n    \"id\": \"string\",\n    \"type\": \"github\"\n}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"authorization\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
      - lang: Shell + Curl
        source: "curl --request POST \\\n  --url http://undefinedundefined/code/api/v1/repositories \\\n  --header 'authorization: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"data\":[\"string\"],\"id\":\"string\",\"type\":\"github\"}'"
  /code/api/v1/repositories/branches:
    get:
      description: 'Get a list with all the repositories branches for the requesting customer

        The returned branches are branches that has at list one CICD runs

        each branches item includes: name, creationDate, CICD status'
      operationId: getBranches
      parameters:
      - in: query
        name: repoOwner
        required: true
        schema:
          type: string
      - in: query
        name: repoName
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                Example 1:
                  value:
                    branches:
                    - creationDate: '2021-07-13T14:22:53.964Z'
                      defaultBranch: false
                      name: some_branch
                    - creationDate: null
                      defaultBranch: true
                      name: master
                    source: Gitlab
              schema:
                $ref: '#/components/schemas/BranchesResponse'
          description: repository branches
        '400':
          description: Could not get branches, check GET query params
        '422':
          description: Request arguments validation error
        '500':
          description: Could not fetch Repositories for customer
      security:
      - CustomAuthorizer: []
      summary: Get Repository Branches with CICD Runs
      tags:
      - Repositories
      x-codeSamples:
      - lang: Python + Requests
        source: 'import requests


          url = "http://undefinedundefined/code/api/v1/repositories/branches"


          querystring = {"repoOwner":"SOME_STRING_VALUE","repoName":"SOME_STRING_VALUE"}


          headers = {"authorization": "REPLACE_KEY_VALUE"}


          response = requests.request("GET", url, headers=headers, params=querystring)


          print(response.text)'
      - lang: Shell + Curl
        source: "curl --request GET \\\n  --url 'http://undefinedundefined/code/api/v1/repositories/branches?repoOwner=SOME_STRING_VALUE&repoName=SOME_STRING_VALUE' \\\n  --header 'authorization: REPLACE_KEY_VALUE'"
  /code/api/v1/repositories/query:
    post:
      description: Get a mapping between repository ids provided to the corresponding repositories names
      operationId: getQueryRepositories
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryRepositoriesRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                Example 1:
                  value:
                  - id: 17758008-49b2-46ad-9795-f5f6efb8492f
                    repository: aws-cloud
                  - id: 16df32d8-48ff-4dbd-8a6b-782fdfa6dbb3
                    repository: CountTrees
              schema:
                anyOf:
                - items:
                    $ref: '#/components/schemas/RepoIdToRepoName'
                  type: array
                - type: string
          description: repositories mapping
        '422':
          description: Request arguments validation error
        '500':
          description: Could not fetch query Repositories for customer
      security:
      - CustomAuthorizer: []
      summary: Get Repository Name to UUID Mapping of Requested UUIDs
      tags:
      - Repositories
      x-codeSamples:
      - lang: Python + Requests
        source: "import requests\n\nurl = \"http://undefinedundefined/code/api/v1/repositories/query\"\n\npayload = {\"repositoriesIds\": [\"string\"]}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"authorization\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
      - lang: Shell + Curl
        source: "curl --request POST \\\n  --url http://undefinedundefined/code/api/v1/repositories/query \\\n  --header 'authorization: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"repositoriesIds\":[\"string\"]}'"
  /code/api/v1/repositories/search:
    get:
      description: 'Get a list with all the repositories of customer

        Use filter params to search among the various repositories'
      operationId: searchRepositories
      parameters:
      - in: query
        name: id
        required: false
        schema:
          type: string
      - in: query
        name: selected
        required: false
        schema:
          type: boolean
      - in: query
        name: source
        required: false
        schema:
          type: string
      - in: query
        name: repoOwner
        required: false
        schema:
          type: string
      - in: query
        name: repoName
        required: false
        schema:
          type: string
      - in: query
        name: limit
        required: false
        schema:
          format: int32
          maximum: 100
          minimum: 1
          type: integer
      - in: query
        name: offset
        required: false
        schema:
          format: int32
          minimum: 0
          type: integer
      responses:
        '200':
          content:
            application/json:
              examples:
                Example 1:
                  value:
                    data:
                    - creationDate: '2021-11-02T10:19:56.643Z'
                      customerName: mock_customer
                      defaultBranch: main
                      id: aaaaaaaa-bbbbbbbb-ccccccc-ddddddd
                      isPublic: false
                      lastScanDate: '2021-11-02T10:19:56.643Z'
                      owner: repo_owner
                      repository: repo_name
                      selected: true
                      source: Github
                      url: https://github.com/repo_owner/repo_name
                    hasNext: true
              schema:
                $ref: '#/components/schemas/GetRepositorySearchResponse'
          description: repositories search
        '422':
          description: Request arguments validation error
      security:
      - CustomAuthorizer: []
      summary: Search Repositories
      tags:
      - Repositories
      x-codeSamples:
      - lang: Python + Requests
        source: 'import requests


          url = "http://undefinedundefined/code/api/v1/repositories/search"


          querystring = {"id":"SOME_STRING_VALUE","selected":"SOME_BOOLEAN_VALUE","source":"SOME_STRING_VALUE","repoOwner":"SOME_STRING_VALUE","repoName":"SOME_STRING_VALUE","limit":"SOME_INTEGER_VALUE","offset":"SOME_INTEGER_VALUE"}


          headers = {"authorization": "REPLACE_KEY_VALUE"}


          response = requests.request("GET", url, headers=headers, params=querystring)


          print(response.text)'
      - lang: Shell + Curl
        source: "curl --request GET \\\n  --url 'http://undefinedundefined/code/api/v1/repositories/search?id=SOME_STRING_VALUE&selected=SOME_BOOLEAN_VALUE&source=SOME_STRING_VALUE&repoOwner=SOME_STRING_VALUE&repoName=SOME_STRING_VALUE&limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE' \\\n  --header 'authorization: REPLACE_KEY_VALUE'"
  /code/api/v1/vcs-repository/repositories:
    post:
      description: Get repositories page
      operationId: getVCSRepositoryPage
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RepoRequestBody'
        description: the body includes filters page configuration.
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                anyOf:
                - items:
                    $ref: '#/components/schemas/RepoInfo'
                  type: array
                - items:
                    $ref: '#/components/schemas/RdsRepoInfo'
                  type: array
          description: repositories
        '422':
          description: Request arguments validation error
      security:
      - CustomAuthorizer: []
      summary: Get Repositories Page
      tags:
      - Repositories
      x-codeSamples:
      - lang: Python + Requests
        source: "import requests\n\nurl = \"http://undefinedundefined/code/api/v1/vcs-repository/repositories\"\n\npayload = {\n    \"filters\": {\n        \"archived\": [\"string\"],\n        \"casIds\": [\"string\"],\n        \"ciFiles\": [\"string\"],\n        \"customerName\": \"string\",\n        \"ids\": [\"string\"],\n        \"images\": [\"string\"],\n        \"issues\": [\"string\"],\n        \"lastUpdated\": \"2019-08-24T14:15:22Z\",\n        \"name\": \"string\",\n        \"pipelines\": [\"string\"],\n        \"privacyLevels\": [\"public\"],\n        \"providers\": [\"string\"],\n        \"riskFactors\": [\"isInternetExpose\"],\n        \"technologies\": [\"string\"],\n        \"workspaceIds\": [\"string\"]\n    },\n    \"orderBy\": {\n        \"fieldName\": \"string\",\n        \"isAsc\": True,\n        \"type\": \"string\"\n    },\n    \"pageConfig\": {\n        \"page\": 0,\n        \"pageSize\": 0\n    }\n}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"authorization\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
      - lang: Shell + Curl
        source: "curl --request POST \\\n  --url http://undefinedundefined/code/api/v1/vcs-repository/repositories \\\n  --header 'authorization: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"filters\":{\"archived\":[\"string\"],\"casIds\":[\"string\"],\"ciFiles\":[\"string\"],\"customerName\":\"string\",\"ids\":[\"string\"],\"images\":[\"string\"],\"issues\":[\"string\"],\"lastUpdated\":\"2019-08-24T14:15:22Z\",\"name\":\"string\",\"pipelines\":[\"string\"],\"privacyLevels\":[\"public\"],\"providers\":[\"string\"],\"riskFactors\":[\"isInternetExpose\"],\"technologies\":[\"string\"],\"workspaceIds\":[\"string\"]},\"orderBy\":{\"fieldName\":\"string\",\"isAsc\":true,\"type\":\"string\"},\"pageConfig\":{\"page\":0,\"pageSize\":0}}'"
  /api/v1/vcs-repository/repositories:
    get:
      operationId: getVCSRepository
      responses:
        '200':
          description: repositories
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/RepoInfo'
                type: array
      description: Get all repositories and their metadata (Technologies, pipelines, contributors, etc..)
      summary: Get repositories (repositories page)
      tags:
      - Repositories
      security:
      - CustomAuthorizer: []
      parameters:
      - description: Get repositories connected to CI pipelines
        in: query
        name: include_pipelines
        required: false
        schema:
          type: boolean
      - description: Get repositories with deployed images
        in: query
        name: include_docker_images
        required: false
        schema:
          type: boolean
      - description: order by repositories
        in: query
        name: order_by
        required: false
        schema:
          type: string
      - description: requested page
        in: query
        name: page
        required: false
        schema:
          format: double
          type: number
      - description: page size
        in: query
        name: page_size
        required: false
        schema:
          format: double
          type: number
      - description: Get repositories by name
        in: query
        name: name
        required: false
        schema:
          type: string
      - description: Get repositories by repository ID
        in: query
        name: ids
        required: false
        schema:
          type: array
          items:
            type: string
      - description: Get repositories by provider
        in: query
        name: providers
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/RepositoryProvider'
      - description: Get repositories by technologies
        in: query
        name: technologies
        required: false
        schema:
          type: array
          items:
            type: string
      - description: Get repositories by CI type
        in: query
        name: ci_files
        required: false
        schema:
          type: array
          items:
            type: string
      - description: Get repositories by private or public
        in: query
        name: privacy_levels
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/RepositoryPrivacyLabel'
      - description: Get repositories by workspace/integration ID
        in: query
        name: workspace_id
        required: false
        schema:
          type: string
      - description: filter by last updated repositories
        in: query
        name: last_updated
        required: false
        schema:
          format: date-time
          type: string
      - description: filter ignored repos
        in: query
        name: should_filter_ignored_repos
        required: false
        schema:
          type: boolean
      x-bc-lambda-name: vcs-repository-api
      x-bc-permitted-roles: owner,admin,member,developer,auditor
    post:
      operationId: getVCSRepositoryPage
      responses:
        '200':
          description: repositories
          content:
            application/json:
              schema:
                anyOf:
                - items:
                    $ref: '#/components/schemas/RepoInfo'
                  type: array
                - items:
                    $ref: '#/components/schemas/RdsRepoInfo_2'
                  type: array
      description: Get repositories page
      summary: get repositories page
      tags:
      - Repositories
      security:
      - CustomAuthorizer: []
      parameters: []
      requestBody:
        description: the body includes filters page configuration.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RepoRequestBody_2'
      x-bc-lambda-name: vcs-repository-api
      x-bc-permitted-roles: owner,admin,member,developer,auditor
      x-bc-docs-scope: standalone,prisma
    servers:
    - url: https://api.prismacloud.io
  /repositories:
    get:
      operationId: listRepositories
      summary: Palo Alto Networks List Connected Repositories
      description: Returns a list of all repositories that have been connected to Prisma Cloud Code Security. Includes repository metadata such as the source VCS provider, default branch, last scan time, and counts of open security errors.
      tags:
      - Repositories
      parameters:
      - name: offset
        in: query
        description: Number of records to skip for pagination.
        schema:
          type: integer
          default: 0
        example: 0
      - name: limit
        in: query
        description: Maximum number of records to return.
        schema:
          type: integer
          default: 25
        example: 25
      - name: search
        in: query
        description: Search term to filter repositories by name or owner.
        schema:
          type: string
        example: example-search
      - name: sourceType
        in: query
        description: Filter by VCS provider type.
        schema:
          type: string
          enum:
          - Github
          - Gitlab
          - Bitbucket
          - AzureRepos
          - githubEnterprise
          - gitlabEnterprise
          - bitbucketEnterprise
        example: Github
      responses:
        '200':
          description: Repositories returned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalCount:
                    type: integer
                    description: Total number of connected repositories.
                  repositories:
                    type: array
                    items:
                      $ref: '#/components/schemas/Repository_2'
              examples:
                ListRepositories200Example:
                  summary: Default listRepositories 200 response
                  x-microcks-default: true
                  value:
                    totalCount: 937
                    repositories:
                    - id: example-id
                      name: Production Agent 31
                      owner: example-owner
                      fullName: Branch Sensor 57
                      sourceType: githubEnterprise
                      defaultBranch: example-defaultBranch
                      url: https://vpn.test-corp.net/02d758
                      isPublic: true
                      lastScanDate: '2026-08-07T04:21:38Z'
                      lastScanStatus: pending
                      errorCounts:
                        critical: 381
                        high: 403
                        medium: 984
                        low: 743
                        info: 996
                      createdAt: '2024-04-02T14:25:56Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - oauth2Bearer: []
    post:
      operationId: addRepository
      summary: Palo Alto Networks Add a Repository
      description: Connects a new VCS repository to Prisma Cloud Code Security for automated scanning. Triggers an initial scan of the default branch after onboarding.
      tags:
      - Repositories
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              - sourceType
              - owner
              - name
              properties:
                id:
                  type: string
                  description: Repository identifier in the VCS provider.
                sourceType:
                  type: string
                  enum:
                  - Github
                  - Gitlab
                  - Bitbucket
                  - AzureRepos
                  - githubEnterprise
                  - gitlabEnterprise
                  - bitbucketEnterprise
                  description: VCS provider type.
                owner:
                  type: string
                  description: Repository owner or organization name.
                name:
                  type: string
                  description: Repository name.
                defaultBranch:
                  type: string
                  description: Default branch to scan. Defaults to the VCS default branch.
            examples:
              AddRepositoryRequestExample:
                summary: Default addRepository request
                x-microcks-default: true
                value:
                  id: example-id
                  sourceType: githubEnterprise
                  owner: example-owner
                  name: Branch Policy 04
                  defaultBranch: example-defaultBranch
      responses:
        '200':
          description: Repository added successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Repository_2'
              examples:
                AddRepository200Example:
                  summary: Default addRepository 200 response
                  x-microcks-default: true
                  value:
                    id: example-id
                    name: Production Agent 31
                    owner: example-owner
                    fullName: Branch Sensor 57
                    sourceType: githubEnterprise
                    defaultBranch: example-defaultBranch
                    url: https://vpn.test-corp.net/02d758
                    isPublic: true
                    lastScanDate: '2026-08-07T04:21:38Z'
                    lastScanStatus: pending
                    errorCounts:
                      critical: 381
                      high: 403
                      medium: 984
                      low: 743
                      info: 996
                    createdAt: '2024-04-02T14:25:56Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - oauth2Bearer: []
    delete:
      operationId: removeRepository
      summary: Palo Alto Networks Remove a Repository
      description: Disconnects a repository from Prisma Cloud Code Security. Scan history and error records are retained for audit purposes.
      tags:
      - Repositories
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              properties:
                id:
                  type: string
                  description: Repository identifier to remove.
                sourceType:
                  type: string
                  description: VCS provider type.
            examples:
              RemoveRepositoryRequestExample:
                summary: Default removeRepository request
                x-microcks-default: true
                value:
                  id: example-id
                  sourceType: standard
      responses:
        '200':
          description: Repository removed successfully.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - oauth2Bearer: []
    servers:
    - url: https://api.stratacloud.paloaltonetworks.com/aiops/bpa/v1
      description: AIOps for NGFW BPA API production server.
components:
  schemas:
    RepoRequestBody:
      properties:
        filters:
          $ref: '#/components/schemas/RepoRequestFilters'
        orderBy:
          $ref: '#/components/schemas/OrderBy'
        pageConfig:
          $ref: '#/components/schemas/Pagination'
      type: object
    PipelineInfo:
      properties:
        instance:
          type: string
        pipeline:
          type: string
        system:
          type: string
      required:
      - pipeline
      - system
      - instance
      type: object
    Technologies:
      properties:
        CICD:
          $ref: '#/components/schemas/Technology'
        Configuration:
          $ref: '#/components/schemas/Technology'
        Data:
          $ref: '#/components/schemas/Technology'
        Devops:
          $ref: '#/components/schemas/Technology'
        Documentation:
          $ref: '#/components/schemas/Technology'
        License:
          $ref: '#/components/schemas/Technology'
        Markup:
          $ref: '#/components/schemas/Technology'
        PackageManager:
          $ref: '#/components/schemas/Technology'
        Programming:
          $ref: '#/components/schemas/Technology'
        Prose:
          $ref: '#/components/schemas/Technology'
        Unknown:
          $ref: '#/components/schemas/Technology'
      type: object
    RepoInfo:
      allOf:
      - $ref: '#/components/schemas/IVCSRepository'
      - properties:
          categorizedTechnologies:
            $ref: '#/components/schemas/Technologies'
          ciInstances:
            additionalProperties:
              $ref: '#/components/schemas/ICiInstanceInfo'
            properties: {}
            type: object
          contributors:
            items:
              $ref: '#/components/schemas/Contributor'
            type: array
          contributorsCount:
            format: double
            type: number
          dockerImages:
            items:
              $ref: '#/components/schemas/DockerImage'
            type: array
          issues:
            $ref: '#/components/schemas/Issues'
          weeklyCommitOnPrs:
            items:
              $ref: '#/components/schemas/WeeklyCommitOnPR'
            type: array
        required:
        - weeklyCommitOnPrs
        - issues
        type: object
    RepositoryProvider:
      type: string
    Issues:
      allOf:
      - $ref: '#/components/schemas/SeverityIssues'


# --- truncated at 32 KB (63 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/openapi/palo-alto-networks-repositories-api-openapi.yml