{
  "$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-schema.json",
  "title": "ansible.CollectionRemote",
  "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.CollectionRemote",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "description": "The URL of an external content source."
    },
    "auth_url": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The URL to receive a session token from, e.g. used with Automation Hub.",
      "maxLength": 255
    },
    "token": {
      "type": [
        "string",
        "null"
      ],
      "writeOnly": true,
      "minLength": 1,
      "maxLength": 2000
    },
    "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"
      ],
      "minLength": 1,
      "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"
      ],
      "minLength": 1,
      "description": "Remote user."
    },
    "password": {
      "type": [
        "string",
        "null"
      ],
      "writeOnly": true,
      "minLength": 1,
      "description": "Remote password."
    },
    "tls_validation": {
      "type": "boolean",
      "description": "If True, TLS peer validation must be performed."
    },
    "client_key": {
      "type": [
        "string",
        "null"
      ],
      "writeOnly": true,
      "minLength": 1,
      "description": "A PEM encoded private key used for authentication."
    },
    "client_cert": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "A PEM encoded client certificate used for authentication."
    },
    "ca_cert": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "A PEM encoded CA certificate used to validate the server certificate presented by the remote server."
    },
    "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"
      ],
      "minLength": 1,
      "description": "The proxy URL. Format: scheme://host:port"
    },
    "proxy_username": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "User for proxy authentication."
    },
    "proxy_password": {
      "type": [
        "string",
        "null"
      ],
      "writeOnly": true,
      "minLength": 1,
      "description": "Password for proxy authentication."
    },
    "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": {
    "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."
    }
  }
}