v1

latestOpenAPI 3.0.02026-08-0417295208.0 KB
channels

Create a mirror

post/channels/{channel_name}/mirrors

Path parameters

channel_namestring required

Query parameters

task_manager_scheduleboolean

if true, schedule mirroring in task manager component

Request body

mirror_namestring required

Mirror name

source_rootstring uri required

The upstream location of the channel to mirror.

mirror_type'conda' | 'python_simple' | 'cran' | 'cve' | 'sbom' required

Type of upstream source to mirror

mirror_mode'active' | 'passive' | 'redirect' required
cronstring required

A five-field cron expression indicating the schedule for active synchronization.

proxystring uri nullable

Proxy server URL configuration to use to attain access to upstream source.

run_nowboolean

Does a one-time, immediate, and off-schedule run of the mirroring operation.

Example request

{
  "source_root": "https://conda.anaconda.org/mewtwo",
  "filters": {
    "subdirs": [
      "osx-64",
      "linux-64",
      "noarch"
    ],
    "cve_score_threshold": 5.9,
    "cve_score_exceptions": [
      "CVE-2022-21372",
      "CVE-2019-1348"
    ],
    "projects": [
      "numpy",
      "pandas",
      "scikit-learn"
    ],
    "packages": [
      "dplyr",
      "MASS",
      "RPostgres"
    ]
  }
}

Response

ok

mirror_idstring
mirror_namestring

Mirror name

source_rootstring uri

The upstream location of the channel to mirror.

mirror_type'conda' | 'python_simple' | 'cran' | 'cve' | 'sbom'

Type of upstream source to mirror

mirror_mode'active' | 'passive' | 'redirect'
cronstring
proxystring uri nullable

Proxy server URL configuration to use to attain access to upstream source.

filtersobject

Filter directives that are specific to each individual artifact type.

state'pending' | 'running' | 'completed' | 'failed' | 'deleted' | 'stopping' | 'stopped'
causestring

Mirror failure cause

last_run_atstring
next_run_atstring
created_atstring
updated_atstring

Example response

{
  "source_root": "https://conda.anaconda.org/mewtwo"
}