Palo Alto Networks HIP Objects API

HIP Objects

OpenAPI Specification

palo-alto-networks-hip-objects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.0.0
  title: Objects HIP Objects API
  description: These APIs are used for defining and managing policy object configurations within Strata Cloud Manager.
  termsOfService: https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/legal/palo-alto-networks-end-user-license-agreement-eula.pdf
  contact:
    email: support@paloaltonetworks.com
    name: Palo Alto Networks Technical Support
    url: https://support.paloaltonetworks.com
  license:
    name: MIT
    url: https://opensource.org/license/mit
servers:
- url: https://api.strata.paloaltonetworks.com/config/objects/v1
  description: Current
- url: https://api.sase.paloaltonetworks.com/sse/config/v1
  description: Legacy
security:
- scmToken: []
tags:
- name: HIP Objects
  description: HIP Objects
paths:
  /hip-objects:
    get:
      tags:
      - HIP Objects
      summary: List HIP objects
      description: 'Retrieve a list HIP objects.

        '
      operationId: ListHIPObjects
      parameters:
      - $ref: '#/components/parameters/name'
      - $ref: '#/components/parameters/folder'
      - $ref: '#/components/parameters/snippet'
      - $ref: '#/components/parameters/device'
      - $ref: '#/components/parameters/offset'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    allOf:
                    - type: array
                      items:
                        $ref: '#/components/schemas/hip-objects'
                  limit:
                    type: integer
                    default: 200
                  offset:
                    type: integer
                    default: 0
                  total:
                    type: integer
        '400':
          $ref: '#/components/responses/bad_request_errors_basic'
        '401':
          $ref: '#/components/responses/auth_errors'
        '403':
          $ref: '#/components/responses/access_errors'
        '404':
          $ref: '#/components/responses/not_found'
        default:
          $ref: '#/components/responses/default_errors'
    post:
      tags:
      - HIP Objects
      summary: Create a HIP object
      description: 'Create a new HIP object.

        '
      operationId: CreateHIPObjects
      requestBody:
        description: Created
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hip-objects'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hip-objects'
        '400':
          $ref: '#/components/responses/bad_request_errors_basic_with_body'
        '401':
          $ref: '#/components/responses/auth_errors'
        '403':
          $ref: '#/components/responses/access_errors'
        '409':
          $ref: '#/components/responses/conflict_errors'
        default:
          $ref: '#/components/responses/default_errors'
  /hip-objects/{id}:
    get:
      tags:
      - HIP Objects
      summary: Get a HIP object
      description: 'Get an existing HIP object.

        '
      operationId: GetHIPObjectsByID
      parameters:
      - $ref: '#/components/parameters/uuid'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hip-objects'
        '400':
          $ref: '#/components/responses/bad_request_errors_basic'
        '401':
          $ref: '#/components/responses/auth_errors'
        '403':
          $ref: '#/components/responses/access_errors'
        '404':
          $ref: '#/components/responses/not_found'
        default:
          $ref: '#/components/responses/default_errors'
    put:
      tags:
      - HIP Objects
      summary: Update a HIP object
      description: 'Update an existing HIP object.

        '
      operationId: UpdateHIPObjectsByID
      parameters:
      - $ref: '#/components/parameters/uuid'
      requestBody:
        description: OK
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hip-objects'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hip-objects'
        '400':
          $ref: '#/components/responses/bad_request_errors_basic_with_body'
        '401':
          $ref: '#/components/responses/auth_errors'
        '403':
          $ref: '#/components/responses/access_errors'
        '404':
          $ref: '#/components/responses/not_found'
        '409':
          $ref: '#/components/responses/conflict_errors'
        default:
          $ref: '#/components/responses/default_errors'
    delete:
      tags:
      - HIP Objects
      summary: Delete a HIP object
      description: 'Delete a HIP object.

        '
      operationId: DeleteHIPObjectsByID
      parameters:
      - $ref: '#/components/parameters/uuid'
      responses:
        '200':
          $ref: '#/components/responses/http_ok'
        '400':
          $ref: '#/components/responses/bad_request_errors_basic'
        '401':
          $ref: '#/components/responses/auth_errors'
        '403':
          $ref: '#/components/responses/access_errors'
        '404':
          $ref: '#/components/responses/not_found'
        '409':
          $ref: '#/components/responses/conflict_errors'
        default:
          $ref: '#/components/responses/default_errors'
components:
  examples:
    json_401_panui_auth_key_expired:
      summary: Key Expired
      value:
        _errors:
        - code: E016
          message: Key Expired
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_501_panui_restapi_method_not_supported:
      summary: Method Not Supported
      value:
        _errors:
        - code: E012
          message: Method Not Supported
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_restapi_input_format_mismatch:
      summary: Input Format Mismatch
      value:
        _errors:
        - code: E003
          message: 'Input Format Mismatch: input-format=json'
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_501_panui_restapi_version_not_supported:
      summary: Version Not Supported
      value:
        _errors:
        - code: E012
          message: Version Not Supported
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_409_panui_mgmt_name_not_unique:
      summary: Name Not Unique
      value:
        _errors:
        - code: E006
          message: Name Not Unique
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_409_panui_mgmt_object_not_unique:
      summary: Object Not Unique
      value:
        _errors:
        - code: E016
          message: Object Not Unique
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_404_panui_mgmt_object_not_present:
      summary: Object Not Present
      value:
        _errors:
        - code: E005
          message: Object Not Present
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_restapi_missing_body:
      summary: Missing Body
      value:
        _errors:
        - code: E003
          message: Missing Body
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_409_panui_mgmt_reference_not_zero:
      summary: Reference Not Zero
      value:
        _errors:
        - code: E009
          message: Reference Not Zero
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_mgmt_invalid_command:
      summary: Invalid Command
      value:
        _errors:
        - code: E003
          message: Invalid Command
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_restapi_output_format_mismatch:
      summary: Output Format Mismatch
      value:
        _errors:
        - code: E003
          message: 'Output Format Mismatch: output-format=json Accept=xml'
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_401_panui_auth_not_authenticated:
      summary: Not Authenticated
      value:
        _errors:
        - code: E016
          message: Not Authenticated
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_401_panui_auth_invalid_credential:
      summary: Invalid Credential
      value:
        _errors:
        - code: E016
          message: Invalid Credential
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_403_panui_auth_unauthorized:
      summary: Unauthorized
      value:
        _errors:
        - code: E007
          message: Unauthorized
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_restapi_missing_query_parameter:
      summary: Missing Query Parameter
      value:
        _errors:
        - code: E003
          message: 'Missing Query Parameter: name'
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_405_panui_restapi_action_not_supported:
      summary: Action Not Supported
      value:
        _errors:
        - code: E012
          message: 'Action Not Supported: move'
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_restapi_invalid_query_parameter:
      summary: Invalid Query Parameter
      value:
        _errors:
        - code: E003
          message: 'Invalid Query Parameter: location=invalid'
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_401_panui_auth_key_too_long:
      summary: Key Too Long
      value:
        _errors:
        - code: E016
          message: Key Too Long
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_mgmt_invalid_object:
      summary: Invalid Object
      value:
        _errors:
        - code: E003
          message: Invalid Object
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_mgmt_malformed_command:
      summary: Malformed Command
      value:
        _errors:
        - code: E003
          message: Malformed Command
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_504_panui_mgmt_session_timeout:
      summary: Session Timeout
      value:
        _errors:
        - code: '4'
          message: Session Timeout
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_401_panui_auth_need_password_change:
      summary: Need Password Change
      value:
        _errors:
        - code: E016
          message: The password needs to be changed.
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
    json_400_panui_mgmt_bad_xpath:
      summary: Bad XPath
      value:
        _errors:
        - code: E013
          message: Bad XPath
          details: {}
        _request_id: 123e4567-e89b-12d3-a456-426655440000
  parameters:
    uuid:
      name: id
      in: path
      description: The UUID of the configuration resource
      required: true
      schema:
        type: string
        format: uuid
        example: 123e4567-e89b-12d3-a456-426655440000
    name:
      name: name
      in: query
      description: The name of the configuration resource
      required: false
      schema:
        type: string
    limit:
      name: limit
      in: query
      description: The maximum number of results per page
      required: false
      schema:
        type: integer
        default: 200
    folder:
      name: folder
      in: query
      description: 'The folder in which the resource is defined

        '
      required: false
      schema:
        type: string
    snippet:
      name: snippet
      in: query
      description: 'The snippet in which the resource is defined

        '
      required: false
      schema:
        type: string
    offset:
      name: offset
      in: query
      description: The offset into the list of results returned
      required: false
      schema:
        type: integer
        default: 0
    device:
      name: device
      in: query
      description: 'The device in which the resource is defined

        '
      required: false
      schema:
        type: string
  responses:
    http_ok:
      description: OK
    not_found:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            object_not_present:
              $ref: '#/components/examples/json_404_panui_mgmt_object_not_present'
    default_errors:
      description: General Errors
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            version_not_supported:
              $ref: '#/components/examples/json_501_panui_restapi_version_not_supported'
            method_not_allowed:
              $ref: '#/components/examples/json_501_panui_restapi_method_not_supported'
            action_not_supported:
              $ref: '#/components/examples/json_405_panui_restapi_action_not_supported'
            bad_xpath:
              $ref: '#/components/examples/json_400_panui_mgmt_bad_xpath'
            invalid_command:
              $ref: '#/components/examples/json_400_panui_mgmt_invalid_command'
            malformed_command:
              $ref: '#/components/examples/json_400_panui_mgmt_malformed_command'
            session_timeout:
              $ref: '#/components/examples/json_504_panui_mgmt_session_timeout'
    bad_request_errors_basic_with_body:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            input_format_mismatch:
              $ref: '#/components/examples/json_400_panui_restapi_input_format_mismatch'
            output_format_mismatch:
              $ref: '#/components/examples/json_400_panui_restapi_output_format_mismatch'
            missing_query_parameter:
              $ref: '#/components/examples/json_400_panui_restapi_missing_query_parameter'
            invalid_query_parameter:
              $ref: '#/components/examples/json_400_panui_restapi_invalid_query_parameter'
            missing_body:
              $ref: '#/components/examples/json_400_panui_restapi_missing_body'
            invalid_object:
              $ref: '#/components/examples/json_400_panui_mgmt_invalid_object'
    bad_request_errors_basic:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            input_format_mismatch:
              $ref: '#/components/examples/json_400_panui_restapi_input_format_mismatch'
            output_format_mismatch:
              $ref: '#/components/examples/json_400_panui_restapi_output_format_mismatch'
            missing_query_parameter:
              $ref: '#/components/examples/json_400_panui_restapi_missing_query_parameter'
            invalid_query_parameter:
              $ref: '#/components/examples/json_400_panui_restapi_invalid_query_parameter'
    auth_errors:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            auth_not_authenticated:
              $ref: '#/components/examples/json_401_panui_auth_not_authenticated'
            invalid_credential:
              $ref: '#/components/examples/json_401_panui_auth_invalid_credential'
            key_too_long:
              $ref: '#/components/examples/json_401_panui_auth_key_too_long'
            key_expired:
              $ref: '#/components/examples/json_401_panui_auth_key_expired'
            need_password_change:
              $ref: '#/components/examples/json_401_panui_auth_need_password_change'
    conflict_errors:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            object_not_unique:
              $ref: '#/components/examples/json_409_panui_mgmt_object_not_unique'
            name_not_unique:
              $ref: '#/components/examples/json_409_panui_mgmt_name_not_unique'
            reference_not_zero:
              $ref: '#/components/examples/json_409_panui_mgmt_reference_not_zero'
    access_errors:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/generic_error'
          examples:
            auth_unauthorized:
              $ref: '#/components/examples/json_403_panui_auth_unauthorized'
  schemas:
    hip-objects:
      type: object
      required:
      - id
      - name
      properties:
        id:
          type: string
          description: UUID of the resource
          readOnly: true
          example: 123e4567-e89b-12d3-a456-426655440000
        name:
          type: string
          pattern: ^[ a-zA-Z\d.\-_]+$
          description: The name of the HIP object
          maxLength: 31
        description:
          type: string
          maxLength: 255
        host_info:
          type: object
          properties:
            criteria:
              type: object
              properties:
                domain:
                  type: object
                  oneOf:
                  - type: object
                    title: contains
                    properties:
                      contains:
                        type: string
                        maxLength: 255
                    required:
                    - contains
                  - type: object
                    title: is
                    properties:
                      is:
                        type: string
                        maxLength: 255
                    required:
                    - is
                  - type: object
                    title: is_not
                    properties:
                      is_not:
                        type: string
                        maxLength: 255
                    required:
                    - is_not
                os:
                  type: object
                  oneOf:
                  - type: object
                    title: contains
                    properties:
                      contains:
                        type: object
                        oneOf:
                        - type: object
                          title: Microsoft
                          properties:
                            Microsoft:
                              type: string
                              description: Microsoft vendor
                              maxLength: 255
                              default: All
                          required:
                          - Microsoft
                        - type: object
                          title: Apple
                          properties:
                            Apple:
                              type: string
                              description: Apple vendor
                              maxLength: 255
                              default: All
                          required:
                          - Apple
                        - type: object
                          title: Google
                          properties:
                            Google:
                              type: string
                              description: Google vendor
                              maxLength: 255
                              default: All
                          required:
                          - Google
                        - type: object
                          title: Linux
                          properties:
                            Linux:
                              type: string
                              description: Linux vendor
                              maxLength: 255
                              default: All
                          required:
                          - Linux
                        - type: object
                          title: Other
                          properties:
                            Other:
                              type: string
                              description: Other vendor
                              maxLength: 255
                          required:
                          - Other
                    required:
                    - contains
                client_version:
                  type: object
                  oneOf:
                  - type: object
                    title: contains
                    properties:
                      contains:
                        type: string
                        maxLength: 255
                    required:
                    - contains
                  - type: object
                    title: is
                    properties:
                      is:
                        type: string
                        maxLength: 255
                    required:
                    - is
                  - type: object
                    title: is_not
                    properties:
                      is_not:
                        type: string
                        maxLength: 255
                    required:
                    - is_not
                host_name:
                  type: object
                  oneOf:
                  - type: object
                    title: contains
                    properties:
                      contains:
                        type: string
                        maxLength: 255
                    required:
                    - contains
                  - type: object
                    title: is
                    properties:
                      is:
                        type: string
                        maxLength: 255
                    required:
                    - is
                  - type: object
                    title: is_not
                    properties:
                      is_not:
                        type: string
                        maxLength: 255
                    required:
                    - is_not
                host_id:
                  type: object
                  oneOf:
                  - type: object
                    title: contains
                    properties:
                      contains:
                        type: string
                        maxLength: 255
                    required:
                    - contains
                  - type: object
                    title: is
                    properties:
                      is:
                        type: string
                        maxLength: 255
                    required:
                    - is
                  - type: object
                    title: is_not
                    properties:
                      is_not:
                        type: string
                        maxLength: 255
                    required:
                    - is_not
                managed:
                  type: boolean
                  description: If device is managed
                serial_number:
                  type: object
                  oneOf:
                  - type: object
                    title: contains
                    properties:
                      contains:
                        type: string
                        maxLength: 255
                    required:
                    - contains
                  - type: object
                    title: is
                    properties:
                      is:
                        type: string
                        maxLength: 255
                    required:
                    - is
                  - type: object
                    title: is_not
                    properties:
                      is_not:
                        type: string
                        maxLength: 255
                    required:
                    - is_not
          required:
          - criteria
        network_info:
          type: object
          properties:
            criteria:
              type: object
              properties:
                network:
                  type: object
                  oneOf:
                  - type: object
                    title: is
                    properties:
                      is:
                        type: object
                        oneOf:
                        - type: object
                          title: wifi
                          properties:
                            wifi:
                              type: object
                              properties:
                                ssid:
                                  type: string
                                  description: SSID
                                  pattern: .*
                                  maxLength: 1023
                        - type: object
                          title: mobile
                          properties:
                            mobile:
                              type: object
                              properties:
                                carrier:
                                  type: string
                                  pattern: .*
                                  maxLength: 1023
                        - type: object
                          title: unknown
                          properties:
                            unknown:
                              type: object
                  - type: object
                    title: is_not
                    properties:
                      is_not:
                        type: object
                        oneOf:
                        - type: object
                          title: wifi
                          properties:
                            wifi:
                              type: object
                              properties:
                                ssid:
                                  type: string
                                  description: SSID
                                  pattern: .*
                                  maxLength: 1023
                        - type: object
                          title: mobile
                          properties:
                            mobile:
                              type: object
                              properties:
                                carrier:
                                  type: string
                                  pattern: .*
                                  maxLength: 1023
                        - type: object
                          title: ethernet
                          properties:
                            ethernet:
                              type: object
                        - type: object
                          title: unknown
                          properties:
                            unknown:
                              type: object
        patch_management:
          type: object
          properties:
            criteria:
              type: object
              properties:
                is_installed:
                  type: boolean
                  description: Is Installed
                  default: true
                is_enabled:
                  enum:
                  - 'no'
                  - 'yes'
                  - not-available
                  description: is enabled
                missing_patches:
                  type: object
                  properties:
                    severity:
                      type: object
                      oneOf:
                      - type: object
                        title: greater_equal
                        properties:
                          greater_equal:
                            type: integer
                            minimum: 0
                            maximum: 100000
                        required:
                        - greater_equal
                      - type: object
                        title: greater_than
                        properties:
                          greater_than:
                            type: integer
                            minimum: 0
                            maximum: 100000
                        required:
                        - greater_than
                      - type: object
                        title: is
                        properties:
                          is:
                            type: integer
                            minimum: 0
                            maximum: 100000
                        required:
                        - is
                      - type: object
                        title: is_not
                        properties:
                          is_not:
                            type: integer
                            minimum: 0
                            maximum: 100000
                        required:
                        - is_not
                      - type: object
                        title: less_equal
                        properties:
                          less_equal:
                            type: integer
                            minimum: 0
                            maximum: 100000
                        required:
                        - less_equal
                      - type: object
                        title: less_than
                        properties:
                          less_than:
                            type: integer
                            minimum: 0
                            maximum: 100000
                        required:
                        - less_than
                    patches:
                      type: array
                      items:
                        type: string
                        description: patch security-bulletin-id or kb-article-id
                        pattern: .*
                        maxLength: 1023
                    check:
                      enum:
                      - has-any
                      - has-none
                      - has-all
                      default: has-any
                  required:
                  - check
            vendor:
              type: array
              description: Vendor name
              items:
                type: object
                properties:
                  name:
                    type: string
                    maxLength: 103
                  product:
                    type: array
                    description: Product name
                    items:
                      type: string
                      pattern: .*
                      maxLength: 1023
                required:
                - name
            exclude_vendor:
              type: boolean
              default: false
        data_loss_prevention:
          type: object
          properties:
            criteria:
              type: object
              properties:
                is_installed:
                  type: boolean
                  description: Is Installed
                  default: true
                is_enabled:
                  enum:
                  - 'no'
                  - 'yes'
                  - not-available
                  description: is enabled
            vendor:
              type: array
              description: Vendor name
              items:
                type: object
                properties:
                  name:
                    type: string
                    maxLength: 103
                  product:
                    type: array
                    description: Product name
                    items:
                      type: string
                      pattern: .*
                      maxLength: 1023
                required:
                - name
            exclude_vendor:
              type: boolean
              default: false
        firewall:
          type: object


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