GET /api/media
List all installation media

GET /api/operatingsystems/:operatingsystem_id/media
List all media for an operating system

GET /api/locations/:location_id/media
List all media per location

GET /api/organizations/:organization_id/media
List all media per organization

Parâmentros

Nome parâmetro Descrição
operatingsystem_id
opcional

ID do sistema operacional


Value:

Must be String

search
opcional

filtrar resultados


Value:

Must be String

order
opcional

ordenar resultados


Value:

Must be String

page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por requisições


Value:

Must be String


GET /api/media/:id
Show a medium

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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
Criar uma mídia

Parâmentros

Nome parâmetro Descrição
medium
requerido

Value:

Must be a Hash

medium[name]
requerido

Name of media


Value:

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.


Value:

Must be String

medium[os_family]
opcional , nulo permitido

Operating system family, available values: AIX, Altlinux, Archlinux, Coreos, Debian, Freebsd, Gentoo, Junos, NXOS, Redhat, Solaris, Suse, Windows


Value:

Must be String

medium[operatingsystem_ids]
opcional , nulo permitido

Value:

Must be an array of any type


PUT /api/media/:id
Update a medium

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be String

medium
requerido

Value:

Must be a Hash

medium[name]
opcional

Name of media


Value:

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.


Value:

Must be String

medium[os_family]
opcional , nulo permitido

Operating system family, available values: AIX, Altlinux, Archlinux, Coreos, Debian, Freebsd, Gentoo, Junos, NXOS, Redhat, Solaris, Suse, Windows


Value:

Must be String

medium[operatingsystem_ids]
opcional , nulo permitido

Value:

Must be an array of any type


DELETE /api/media/:id
Apagar mídia

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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