PUT /api/media/980190962 { "name": "TFvRQenyAq", "medium": { "name": "TFvRQenyAq" } } 200 { "path": "http://mirror.centos.org/centos/6.0/os/$arch", "os_family": null, "created_at": "2019-11-07 08:32:17 UTC", "updated_at": "2019-11-07 08:32:25 UTC", "id": 980190962, "name": "TFvRQenyAq", "operatingsystems": [ { "id": 309172073, "name": "centos", "title": "centos 5.3" }, { "id": 1073012828, "name": "Redhat", "title": "RHEL 6.1" } ], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Set the current location context for the request Validations:
|
organization_id opzionale |
Set the current organization context for the request Validations:
|
id richiesto |
Validations:
|
medium richiesto |
Validations:
|
medium[name] opzionale |
Nome del dispositivo Validations:
|
medium[path] opzionale |
The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture). for example http://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:
|
medium[os_family] opzionale , consentito nil |
Famiglia del sistema operativo, valori disponibili: AIX, Altlinux, Archlinux, Coreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris, Suse, VRP, Windows, Xenserver Validations:
|
medium[operatingsystem_ids] opzionale , consentito nil |
Validations:
|
medium[location_ids] opzionale , consentito nil |
SOSTITUIRE le posizioni con gli id dati Validations:
|
medium[organization_ids] opzionale , consentito nil |
SOSTITUIRE le organizzazioni con gli id dati Validations:
|