GET /api/media
List all media.

Parametry

Nazwa parametru Opis
search
opcjonalny

rezultat filtrowania

Validations:

  • Must be a String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be a String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be a String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be a String


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

Parametry

Nazwa parametru Opis
id
wymagany

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.

Parametry

Nazwa parametru Opis
medium
wymagany

Validations:

  • Must be a Hash

medium[name]
wymagany

Nazwa nośnika

Validations:

  • Must be a String

medium[path]
wymagany

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 a String

medium[os_family]
opcjonalny

The family that the operating system belongs to.

Available families:

  • AIX

  • Altlinux

  • Archlinux

  • Coreos

  • Debian

  • Freebsd

  • Gentoo

  • Junos

  • NXOS

  • Redhat

  • Solaris

  • Suse

  • Windows

  • Xenserver

Validations:

  • Must be a String

medium[operatingsystem_ids]
opcjonalny

Validations:

  • Must be an array of any type


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

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • Must be a String

medium
wymagany

Validations:

  • Must be a Hash

medium[name]
opcjonalny

Nazwa nośnika

Validations:

  • Must be a String

medium[path]
opcjonalny

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 a String

medium[os_family]
opcjonalny , nil dopuszczalny

The family that the operating system belongs to.

Available families:

  • AIX

  • Altlinux

  • Archlinux

  • Coreos

  • Debian

  • Freebsd

  • Gentoo

  • Junos

  • NXOS

  • Redhat

  • Solaris

  • Suse

  • Windows

  • Xenserver

Validations:

  • Must be a String

medium[operatingsystem_ids]
opcjonalny

Validations:

  • Must be an array of any type


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

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

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