GET /api/media
List all media.

Параметры

Имя параметра Описание
search
необязательно

отфильтровать результаты

Validations:

  • Must be String

order
необязательно

отсортировать результаты

Validations:

  • Must be String

page
необязательно

постраничный вывод

Validations:

  • Must be String

per_page
необязательно

количество записей на запрос

Validations:

  • Must be String


GET /api/media/:id
Show a medium.

Параметры

Имя параметра Описание
id
обязательно

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/media
Create a medium.

Параметры

Имя параметра Описание
medium
обязательно

Validations:

  • Must be a Hash

medium[name]
обязательно

Имя носителя

Validations:

  • Must be String

medium[path]
обязательно

The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture).

for example mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host's actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system.

Solaris and Debian media may also use $release.

Validations:

  • Must be String

medium[os_family]
необязательно

The family that the operating system belongs to.

Available families:

  • AIX

  • Altlinux

  • Archlinux

  • Coreos

  • Debian

  • Freebsd

  • Gentoo

  • Junos

  • NXOS

  • Redhat

  • Solaris

  • Suse

  • Windows

Validations:

  • Must be String

medium[operatingsystem_ids]
необязательно

Validations:

  • Must be an array of any type


PUT /api/media/:id
Update a medium.

Параметры

Имя параметра Описание
id
обязательно

Validations:

  • Must be String

medium
обязательно

Validations:

  • Must be a Hash

medium[name]
необязательно

Имя носителя

Validations:

  • Must be String

medium[path]
необязательно

The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture).

for example mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host's actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system.

Solaris and Debian media may also use $release.

Validations:

  • Must be String

medium[os_family]
необязательно , nil разрешен

The family that the operating system belongs to.

Available families:

  • AIX

  • Altlinux

  • Archlinux

  • Coreos

  • Debian

  • Freebsd

  • Gentoo

  • Junos

  • NXOS

  • Redhat

  • Solaris

  • Suse

  • Windows

Validations:

  • Must be String

medium[operatingsystem_ids]
необязательно

Validations:

  • Must be an array of any type


DELETE /api/media/:id
Delete a medium.

Параметры

Имя параметра Описание
id
обязательно

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.