> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Policy 3 Configurations

> Retrieve all policy 3 configurations



## OpenAPI

````yaml /openapi/8.2/aviatrix-api.json get /v2.5/api/microseg/policy-list3
openapi: 3.1.0
info:
  title: Aviatrix Controller API
  version: '8.2'
  description: >-
    Aviatrix Controller API — version 8.2. Selected operations with Mintlify
    metadata.
servers: []
security: []
tags:
  - name: policies
    x-group: Policies
  - name: authentication
    x-group: Authentication
  - name: account-management
    x-group: Account Management
  - name: rbac
    x-group: RBAC & Permissions
  - name: gateways
    x-group: Gateways
  - name: transit
    x-group: Transit
  - name: nat
    x-group: NAT
  - name: app-domains
    x-group: SmartGroups
  - name: certificates
    x-group: Certificates
  - name: mitm
    x-group: MITM
  - name: monitoring
    x-group: Monitoring & Diagnostics
  - name: fqdn
    x-group: FQDN
  - name: logging
    x-group: Logging
  - name: vpn
    x-group: UserVPN
  - name: site-to-cloud
    x-group: Site-to-Cloud
  - name: controller
    x-group: Controller
  - name: bgp
    x-group: BGP
  - name: general
    x-group: General
  - name: firenet
    x-group: FireNet
  - name: networking
    x-group: Networking
  - name: tgw
    x-group: AWS TGW
  - name: ips
    x-group: IPS
  - name: saml
    x-group: SAML
paths:
  /v2.5/api/microseg/policy-list3:
    get:
      tags:
        - policies
      operationId: policyList3
      parameters:
        - description: Return a flattened list of configured Policy Lists
          in: query
          name: flatten
          schema:
            type: boolean
        - name: Authorization
          in: header
          required: true
          description: 'Controller ID in the format: cid <CID>.'
          schema:
            type: string
            example: cid <CID>
            default: cid <CID>
          example: cid <CID>
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pocMicrosegDCFPolicies'
          description: GET operation response
        default:
          $ref: '#/components/responses/general_response_v25'
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -sk -X GET
            "https://${CONTROLLER}/v2.5/api/microseg/policy-list3" \
              -H "Authorization: cid ${CID}"
        - lang: python
          label: Python
          source: |-
            import requests

            url = f"https://{CONTROLLER}/v2.5/api/microseg/policy-list3"
            headers = {"Authorization": f"cid {cid}"}

            response = requests.get(url, headers=headers)
            print(response.text)
        - lang: go
          label: Go
          source: |-
            package main

            import (
              "fmt"
              "net/http"
            )

            func main() {
              req, _ := http.NewRequest("GET", "https://"+controller+"/v2.5/api/microseg/policy-list3", nil)
              req.Header.Set("Authorization", "cid "+cid)

              client := &http.Client{}
              resp, err := client.Do(req)
              if err != nil {
                panic(err)
              }
              defer resp.Body.Close()

              fmt.Println(resp.Status)
            }
components:
  schemas:
    pocMicrosegDCFPolicies:
      description: The Micro-Segmentation DCF Policy list object format
      properties:
        dcf_policies:
          description: List of Microseg DCF Policies
          items:
            $ref: '#/components/schemas/pocMicrosegDCFPolicy'
          type: array
      required:
        - dcf_policies
      type: object
    pocMicrosegDCFPolicy:
      description: The Micro-Segmentation DCF Policy Object format
      oneOf:
        - $ref: '#/components/schemas/pocMicrosegDCFPolicyList'
        - $ref: '#/components/schemas/pocMicrosegDCFPolicyBlock'
      type: object
    general_response_v25:
      description: A generic API response container for v2.5 style APIs.
      properties:
        message:
          description: A human-readable message.
          type: string
      title: General Response v2.5
      type: object
    pocMicrosegDCFPolicyList:
      description: The Micro-Segmentation DCF Policy List object format
      properties:
        attach_to:
          description: UUID of an attachment point parent
          type: string
        editable:
          type: boolean
        metadata:
          $ref: '#/components/schemas/dcfMetadata'
        name:
          title: DCF Policy List name
          type: string
        policies:
          description: List of microseg policies
          items:
            $ref: '#/components/schemas/pocMicrosegPolicy'
          type: array
        system_resource:
          type: boolean
        uuid:
          title: DCF Policy List UUID
          type: string
      required:
        - name
        - uuid
        - policies
        - system_resource
      type: object
    pocMicrosegDCFPolicyBlock:
      description: The Micro-Segmentation DCF Policy Block object format
      properties:
        attach_to:
          description: UUID of an attachment point parent
          type: string
        metadata:
          $ref: '#/components/schemas/dcfMetadata'
        name:
          title: DCF Policy Block name
          type: string
        sub_policies:
          description: List of DCF Sub-Policies
          items:
            anyOf:
              - $ref: '#/components/schemas/pocMicrosegDCFSubPolicyList'
              - $ref: '#/components/schemas/pocMicrosegDCFSubPolicyBlock'
              - $ref: '#/components/schemas/pocMicrosegDCFSubPolicyAttachmentPoint'
          type: array
        system_resource:
          type: boolean
        uuid:
          title: DCF Policy Block UUID
          type: string
      required:
        - name
        - uuid
        - sub_policies
        - system_resource
      type: object
    dcfMetadata:
      additionalProperties: true
      description: Metadata for DCF objects (Policy List, Policy Block, Policy)
      example:
        key1:
          k8s:
            resource-type: k8s-policylist
        key10: value10
        key2:
          k8s:
            resource-type: k8s-policylist
        key20: value20
        key3:
          k8s:
            resource-type: k8s-policylist
      type: object
    pocMicrosegPolicy:
      example:
        action: ACTION_UNSPECIFIED
        decrypt_policy: DECRYPT_UNSPECIFIED
        desc: desc
        dst_ads:
          - dst_ads
          - dst_ads
        exclude_sg_orchestration: true
        flow_app_requirement: APP_UNSPECIFIED
        log_profile: uuid
        logging: true
        name: name
        port_ranges:
          - hi: 0
            lo: 6
          - hi: 0
            lo: 6
        priority: 1
        protocol: PROTOCOL_UNSPECIFIED
        src_ads:
          - src_ads
          - src_ads
        system_resource: true
        tls_profile: uuid
        uuid: uuid
        watch: true
        web_filters:
          - web_filters
          - web_filters
      properties:
        action:
          $ref: '#/components/schemas/MicrosegPolicyAction'
        decrypt_policy:
          $ref: '#/components/schemas/AllowDecrypt'
        desc:
          title: Policy desc
          type: string
        dst_ads:
          items:
            type: string
          title: Destination AppDomains
          type: array
        exclude_sg_orchestration:
          type: boolean
        flow_app_requirement:
          $ref: '#/components/schemas/FlowAppRequirement'
        intrusion_severity:
          $ref: '#/components/schemas/IntrusionSeverity'
        log_profile:
          description: >
            There are 3 system defined profiles:

            def000ad-7000-0000-0000-000000000001=log on start (default when
            empty)

            def000ad-7000-0000-0000-000000000002=log on end

            def000ad-7000-0000-0000-000000000003=log on start and end

            Log on start will log an entry at the start of the transaction, this
            will include

            the enforcement decision.

            Log on end will log an entry after the transaction and includes the
            number of

            received/transmitted bytes for the transaction (only L7 for now)

            Please refer to the documentation for more details.
          title: UUID of the LOG profile
          type: string
        logging:
          type: boolean
        metadata:
          $ref: '#/components/schemas/dcfMetadata'
        name:
          title: Policy name
          type: string
        port_ranges:
          items:
            $ref: '#/components/schemas/pocPortRange'
          type: array
        priority:
          description: Priority of policy. Lower value means higher priority.
          format: int32
          type: integer
        protocol:
          $ref: '#/components/schemas/MicrosegPolicyProtocol'
        src_ads:
          items:
            type: string
          title: Source AppDomains
          type: array
        system_resource:
          readOnly: true
          title: System created policy. Cannot be deleted or modified.
          type: boolean
        tls_profile:
          title: UUID of the TLS profile
          type: string
        uuid:
          title: Policy UUID
          type: string
        watch:
          type: boolean
        web_filters:
          items:
            type: string
          title: WebFilter List
          type: array
      required:
        - action
        - dst_ads
        - exclude_sg_orchestration
        - logging
        - name
        - port_ranges
        - priority
        - protocol
        - src_ads
        - uuid
        - watch
      title: Policy Config
      type: object
    pocMicrosegDCFSubPolicyList:
      description: The prioritized Policy List within a Policy Block object format
      properties:
        list:
          type: string
        priority:
          type: integer
      required:
        - priority
        - list
      type: object
    pocMicrosegDCFSubPolicyBlock:
      description: The prioritized Policy Block within a Policy Block object format
      properties:
        block:
          type: string
        priority:
          type: integer
      required:
        - priority
        - block
      type: object
    pocMicrosegDCFSubPolicyAttachmentPoint:
      description: The prioritized Attachment Point within a Policy Block object format
      properties:
        attachment_point:
          properties:
            name:
              type: string
            target_uuid:
              type: string
            uuid:
              type: string
          required:
            - name
            - uuid
            - target_uuid
          type: object
        priority:
          type: integer
      required:
        - priority
        - attachment_point
      type: object
    MicrosegPolicyAction:
      default: ACTION_UNSPECIFIED
      enum:
        - ACTION_UNSPECIFIED
        - PERMIT
        - DENY
        - CONTINUE
        - INTRUSION_DETECTION_PERMIT
        - INTRUSION_DETECTION_CONTINUE
        - INTRUSION_PREVENTION_PERMIT
        - INTRUSION_PREVENTION_CONTINUE
      type: string
    AllowDecrypt:
      default: DECRYPT_UNSPECIFIED
      enum:
        - DECRYPT_UNSPECIFIED
        - DECRYPT_ALLOWED
        - DECRYPT_NOT_ALLOWED
      type: string
    FlowAppRequirement:
      default: APP_UNSPECIFIED
      enum:
        - APP_UNSPECIFIED
        - TLS_REQUIRED
        - NOT_TLS_REQUIRED
      type: string
    IntrusionSeverity:
      default: INTRUSION_SEVERITY_NONE
      enum:
        - INTRUSION_SEVERITY_NONE
        - INTRUSION_SEVERITY_CRITICAL
        - INTRUSION_SEVERITY_MAJOR
        - INTRUSION_SEVERITY_MINOR
        - INTRUSION_SEVERITY_INFORMATIONAL
        - INTRUSION_SEVERITY_ALL
      type: string
    pocPortRange:
      example:
        hi: 0
        lo: 6
      properties:
        hi:
          format: int32
          type: integer
        lo:
          format: int32
          type: integer
      required:
        - hi
        - lo
      type: object
    MicrosegPolicyProtocol:
      default: PROTOCOL_UNSPECIFIED
      enum:
        - PROTOCOL_UNSPECIFIED
        - TCP
        - UDP
        - ICMP
      type: string
  responses:
    general_response_v25:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/general_response_v25'
      description: General v2.5 API response schema.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.