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

# Get network configuration



## OpenAPI

````yaml /openapi.yaml get /cloud-cdn/distributions/configurations/network
openapi: 3.1.0
info:
  title: Aptranet API
  version: 1.0.0
  summary: Public Cloud CDN and Cloud DNS control-plane API
  description: |
    Automate project-scoped Aptranet Cloud CDN and Cloud DNS resources.
    Every endpoint requires an active API key access key and its current secret.
  contact:
    name: Aptranet Support
    email: support@aptranet.com
  license:
    name: Proprietary
servers:
  - url: https://api.aptranet.com
    description: Production
security:
  - bearerAuth: []
    apiSecret: []
tags:
  - name: CDN distributions
    description: Create and manage Cloud CDN distributions.
  - name: CDN configuration
    description: Read and replace distribution delivery configuration.
  - name: CDN origin groups
    description: Manage primary, backup, HTTP, and object-storage origins.
  - name: CDN cache tools
    description: Purge and prefetch distribution content.
  - name: CDN analytics
    description: Read traffic, cache, geography, region, and protocol analytics.
  - name: DNS zones
    description: Manage authoritative zones and SOA settings.
  - name: DNS record sets
    description: Manage DNS record sets, routing metadata, and resource records.
  - name: DNS analytics
    description: Read zone query analytics and project DNS checks.
paths:
  /cloud-cdn/distributions/configurations/network:
    get:
      tags:
        - CDN configuration
      summary: Get network configuration
      operationId: getNetworkConfiguration
      parameters:
        - $ref: '#/components/parameters/DistributionId'
      responses:
        '200':
          description: Network configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkConfiguration'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    DistributionId:
      name: distribution
      in: query
      required: true
      description: Distribution identifier.
      schema:
        type: integer
        minimum: 1
  schemas:
    NetworkConfiguration:
      type: object
      required:
        - hostnames
        - compression_configuration
        - bandwidth_limiter_configuration
        - allowed_http_methods
        - websockets_support
        - grpc_passthrough
      properties:
        hostnames:
          type: object
          required:
            - custom_hostnames
          properties:
            root_hostname:
              type: string
              format: hostname
              readOnly: true
            custom_hostnames:
              type: array
              items:
                $ref: '#/components/schemas/CustomHostname'
        compression_configuration:
          type: object
          required:
            - gzip
            - brotli
            - pull_precompressed_content
          properties:
            gzip:
              type: object
              required:
                - enabled
              properties:
                enabled:
                  type: boolean
            brotli:
              type: object
              required:
                - enabled
                - mime_types
              properties:
                enabled:
                  type: boolean
                mime_types:
                  type: array
                  items:
                    type: string
            pull_precompressed_content:
              type: object
              required:
                - enabled
              properties:
                enabled:
                  type: boolean
        bandwidth_limiter_configuration:
          type: object
          required:
            - enabled
            - limit_type
            - limit_speed
            - limit_buffer
          properties:
            enabled:
              type: boolean
            limit_type:
              type: string
              enum:
                - static
                - dynamic
            limit_speed:
              type: number
              minimum: 0
              description: Maximum kB/s per connection.
            limit_buffer:
              type: number
              minimum: 0
              description: kB transferred before limiting.
        allowed_http_methods:
          type: object
          required:
            - get
            - head
            - post
            - put
            - patch
            - delete
            - options
          properties:
            get:
              type: boolean
            head:
              type: boolean
            post:
              type: boolean
            put:
              type: boolean
            patch:
              type: boolean
            delete:
              type: boolean
            options:
              type: boolean
        websockets_support:
          type: boolean
        grpc_passthrough:
          type: boolean
        origin_shield_enabled:
          type: boolean
          readOnly: true
    CustomHostname:
      type: object
      required:
        - hostname
        - status
      properties:
        hostname:
          type: string
          format: hostname
        status:
          type: string
          enum:
            - active
            - inactive
            - provisioning
            - draft
    Error:
      type: object
      properties:
        error_code:
          type: string
        error:
          type: string
        error_description:
          type: string
        trace_id:
          type: string
      additionalProperties: true
  responses:
    Unauthorized:
      description: Authentication credentials are missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The API key is disabled, the secret is wrong, or permission is
        insufficient.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource does not exist in the API key's project.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Aptranet access key
      description: Access key beginning with `APTRANET_`.
    apiSecret:
      type: apiKey
      in: header
      name: Aptranet-Secret
      description: Current secret paired with the access key.

````

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