> ## 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.

# List distributions

> Returns Cloud CDN distributions in the API key's project. Requires the list-distributions permission.



## OpenAPI

````yaml /openapi.yaml get /cloud-cdn/distributions
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:
    get:
      tags:
        - CDN distributions
      summary: List distributions
      description: >-
        Returns Cloud CDN distributions in the API key's project. Requires the
        list-distributions permission.
      operationId: listDistributions
      parameters:
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Distribution collection.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CDNDistribution'
        '204':
          description: The project has no distributions.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    Limit:
      name: limit
      in: query
      required: false
      description: Maximum number of resources to return.
      schema:
        type: integer
        minimum: 1
  schemas:
    CDNDistribution:
      type: object
      required:
        - id
        - name
        - hostname
        - origin_group
        - status
        - ssl_active
        - created_at
        - last_modified_at
      properties:
        id:
          type: integer
        name:
          type: string
        hostname:
          type: string
          format: hostname
        origin_group:
          $ref: '#/components/schemas/OriginGroupSummary'
        status:
          type: string
          enum:
            - active
            - inactive
            - provisioning
            - suspended
            - deleted
        ssl_active:
          type: boolean
        created_at:
          type: string
          format: date-time
        last_modified_at:
          type: string
          format: date-time
    OriginGroupSummary:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: integer
        name:
          type: string
        connected_distributions_count:
          type: integer
          minimum: 0
        use_next_upstream:
          type: boolean
        next_upstream_cases:
          $ref: '#/components/schemas/NextUpstreamCases'
        aws_v4_auth:
          $ref: '#/components/schemas/AWSV4Auth'
    Error:
      type: object
      properties:
        error_code:
          type: string
        error:
          type: string
        error_description:
          type: string
        trace_id:
          type: string
      additionalProperties: true
    NextUpstreamCases:
      type: object
      required:
        - on_error
        - on_timeout
        - on_invalid_header
        - on_http_403
        - on_http_404
        - on_http_429
        - on_http_500
        - on_http_502
        - on_http_503
        - on_http_504
      properties:
        on_error:
          type: boolean
        on_timeout:
          type: boolean
        on_invalid_header:
          type: boolean
        on_http_403:
          type: boolean
        on_http_404:
          type: boolean
        on_http_429:
          type: boolean
        on_http_500:
          type: boolean
        on_http_502:
          type: boolean
        on_http_503:
          type: boolean
        on_http_504:
          type: boolean
    AWSV4Auth:
      type: object
      required:
        - bucket_name
        - region
      properties:
        bucket_name:
          type: string
        region:
          type: string
        access_key_id:
          type: string
          writeOnly: true
        secret_access_key:
          type: string
          writeOnly: 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'
    ServerError:
      description: The Gateway or owning service could not complete the request.
      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.