GET /api/media
List all media.

Parámetros

Nombre del parámetro Descripción
search
opcional

filtrar resultados

Validations:

  • Must be String

order
opcional

ordenar resultados

Validations:

  • Must be String

page
opcional

paginar resultados

Validations:

  • Must be String

per_page
opcional

número de entradas por petición

Validations:

  • Must be String


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

Parámetros

Nombre del parámetro Descripción
id
requerido

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.

Parámetros

Nombre del parámetro Descripción
medium
requerido

Validations:

  • Must be a Hash

medium[name]
requerido

Nombre del medio

Validations:

  • Must be String

medium[path]
requerido

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]
opcional

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]
opcional

Validations:

  • Must be an array of any type


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

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • Must be String

medium
requerido

Validations:

  • Must be a Hash

medium[name]
opcional

Nombre del medio

Validations:

  • Must be String

medium[path]
opcional

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]
opcional , nil permitido

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]
opcional

Validations:

  • Must be an array of any type


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

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

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