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

# List Cloud Defender restricted pages

> List a domain's restricted pages: paths, such as an admin area, that only listed addresses and countries can open. Each one shows whether it is in test or enforced. Every role that can see the domain can read the list.



## OpenAPI

````yaml get /api/v1/cloud-defender/{id}/restricted-paths
openapi: 3.1.0
info:
  title: Aegister API
  version: 2.10.0
servers: []
security: []
paths:
  /api/v1/cloud-defender/{id}/restricted-paths:
    get:
      tags:
        - cloud-defender
      summary: List a Cloud Defender domain's restricted pages
      description: >-
        Reads for every role that can see the domain; changes for owners and
        security officers with a live licence.
      operationId: cloud_defender_restricted_paths_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 0
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
                  total:
                    type: number
                    description: >-
                      Total number of items that meet the list filter.  

                      This doesn't represent the number of items inside the
                      `data` array.
                    minimum: 0
                    examples:
                      - 20
                      - 30
                      - 40
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        label:
                          type: string
                        prefixes:
                          type: array
                          items:
                            type: string
                          description: >-
                            The paths it covers: every path starting with one of
                            them.
                        exceptions:
                          type: array
                          items:
                            type: string
                          description: Paths under the prefixes left open to everyone.
                        allowed:
                          type: array
                          items:
                            type: string
                          description: The addresses it is open to.
                        countries:
                          type: array
                          items:
                            type: string
                          description: The countries it is open to (ISO 3166-1 alpha-2).
                        mode:
                          type: string
                          enum:
                            - test
                            - enforced
                          description: >-
                            `test`: requests it would refuse are counted and let
                            through.
                        test_hits:
                          type: integer
                          description: Requests it would have refused since `test_since`.
                        test_since:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        created_at:
                          type: string
                          format: date-time
                  presets:
                    type: object
                    description: The ready-made pages a `preset` names (POST), by key.
                    additionalProperties:
                      type: object
                      properties:
                        label:
                          type: string
                        prefixes:
                          type: array
                          items:
                            type: string
                        exceptions:
                          type: array
                          items:
                            type: string
              examples:
                OneRestrictedPage:
                  value:
                    error: 0
                    messages: []
                    data:
                      - id: 7
                        label: WordPress admin
                        prefixes:
                          - /wp-admin/
                          - /wp-login.php
                        exceptions:
                          - /wp-admin/admin-ajax.php
                        allowed:
                          - 203.0.113.10
                          - 2001:db8:10::/64
                        countries:
                          - IT
                        mode: enforced
                        test_hits: 0
                        test_since: '2026-10-28T09:30:00Z'
                        created_at: '2026-10-28T09:30:00Z'
                    total: 1
                    presets:
                      wordpress:
                        label: WordPress admin
                        prefixes:
                          - /wp-admin/
                          - /wp-login.php
                        exceptions:
                          - /wp-admin/admin-ajax.php
                      joomla:
                        label: Joomla admin
                        prefixes:
                          - /administrator/
                        exceptions: []
                      drupal:
                        label: Drupal admin
                        prefixes:
                          - /user/login
                          - /admin/
                        exceptions: []
                      phpmyadmin:
                        label: phpMyAdmin
                        prefixes:
                          - /phpmyadmin/
                        exceptions: []
                  summary: One restricted page
          description: ''
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
          description: ''
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Aegister-Token

````

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