Palo Alto Networks Repository API

The Repository API from Palo Alto Networks — 1 operation(s) for repository.

OpenAPI Specification

palo-alto-networks-repository-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  description: 'The Repository endpoints are listed below.

    '
  title: Prisma Cloud API Overview Repository API
  version: Latest
servers: null
tags:
- name: Repository
paths:
  /code/code/api/v1/repositories/repository:
    get:
      description: 'Retrieve a single repository.

        the repository item includes: id, repoName, source, owner, isPublic, creationDate'
      operationId: getRepository
      parameters:
      - in: query
        name: repositoryId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                Example 1:
                  value:
                    creationDate: '2022-02-21T12:37:56.188Z'
                    defaultBranch: master
                    description: description
                    id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
                    isPublic: false
                    owner: yourname
                    repository: foo
                    runs: 0
                    source: Github
                    url: www.example.com
              schema:
                $ref: '#/components/schemas/RepositoryResponse'
          description: repository for customer
        '422':
          description: Request arguments validation error
        '500':
          description: Could not fetch repository for customer
      security:
      - CustomAuthorizer: []
      summary: Single Repository List
      tags:
      - Repository
      x-codeSamples:
      - lang: Python + Requests
        source: 'import requests


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


          querystring = {"repositoryId":"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/code/api/v1/repositories/repository?repositoryId=SOME_STRING_VALUE' \\\n  --header 'authorization: REPLACE_KEY_VALUE'"
components:
  schemas:
    RepositoryResponse:
      additionalProperties: false
      properties:
        description:
          type: string
        id:
          type: string
        isPublic:
          type: boolean
        name:
          type: string
        owner:
          type: string
        source:
          type: string
        url:
          type: string
      required:
      - id
      - source
      - name
      - description
      - url
      - isPublic
      - owner
      type: object
  securitySchemes:
    CustomAuthorizer:
      in: header
      name: authorization
      type: apiKey
      x-amazon-apigateway-authorizer:
        authorizerResultTtlInSeconds: 0
        authorizerUri: arn:aws:apigateway:{Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:{Region}:{AccountId}:function:bc-authorization-v2-authorizer-{UniqueTag}{Alias}/invocations
        identitySource: method.request.header.authorization
        type: request
      x-amazon-apigateway-authtype: custom