{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-ansible-collection-remote-response-schema.json",
  "title": "ansible.CollectionRemoteResponse",
  "description": "A serializer for Collection Remotes.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-api-content-v3-sync-config-api-openapi.yml#/components/schemas/ansible.CollectionRemoteResponse",
  "type": "object",
  "properties": {
    "pk": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "title": "Pulp id"
    },
    "name": {
      "type": "string",
      "readOnly": true
    },
    "url": {
      "type": "string",
      "description": "The URL of an external content source."
    },
    "auth_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The URL to receive a session token from, e.g. used with Automation Hub.",
      "maxLength": 255
    },
    "policy": {
      "allOf": [
        {
          "$ref": "#/$defs/PolicyDb6Enum"
        }
      ],
      "default": "immediate",
      "description": "The policy to use when downloading content.\n\n* `immediate` - immediate\n* `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now."
    },
    "requirements_file": {
      "type": [
        "string",
        "null"
      ],
      "description": "The string version of Collection requirements yaml."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "username": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remote user."
    },
    "tls_validation": {
      "type": "boolean",
      "description": "If True, TLS peer validation must be performed."
    },
    "client_cert": {
      "type": [
        "string",
        "null"
      ],
      "description": "A PEM encoded client certificate used for authentication."
    },
    "ca_cert": {
      "type": [
        "string",
        "null"
      ],
      "description": "A PEM encoded CA certificate used to validate the server certificate presented by the remote server."
    },
    "last_sync_task": {
      "type": "string",
      "readOnly": true
    },
    "repositories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnsibleRepositoryResponse"
      },
      "readOnly": true
    },
    "pulp_href": {
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "download_concurrency": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Total number of simultaneous connections. If not set then the default value will be used.",
      "minimum": 1
    },
    "proxy_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The proxy URL. Format: scheme://host:port"
    },
    "proxy_username": {
      "type": [
        "string",
        "null"
      ],
      "description": "User for proxy authentication."
    },
    "write_only_fields": {
      "type": "array",
      "items": {},
      "readOnly": true
    },
    "rate_limit": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Limits requests per second for each concurrent downloader"
    },
    "signed_only": {
      "type": "boolean",
      "description": "Sync only collections that have a signature"
    }
  },
  "required": [
    "url"
  ],
  "$defs": {
    "AnsibleDistributionResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "base_path": {
          "type": "string"
        },
        "content_guard": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "base_path",
        "created_at",
        "name",
        "updated_at"
      ]
    },
    "AnsibleRepositoryResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "next_version": {
          "type": "integer",
          "format": "int64",
          "maximum": 2147483647,
          "minimum": 0
        },
        "distributions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnsibleDistributionResponse"
          },
          "readOnly": true
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_sync_task": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "created_at",
        "name",
        "updated_at"
      ]
    },
    "PolicyDb6Enum": {
      "enum": [
        "immediate",
        "When syncing, download all metadata and content now."
      ],
      "type": "string",
      "description": "* `immediate` - immediate\n* `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now."
    }
  }
}