GET /katello/api/host_collections/:id
Show a host collection

Parametry

Nazwa parametru Opis
id
wymagany

Id of the host collection

Validations:

  • Must be a number.


GET /katello/api/host_collections
List host collections

GET /katello/api/organizations/:organization_id/host_collections
List host collections within an organization

GET /katello/api/activation_keys/:activation_key_id/host_collections
List host collections in an activation key

Parametry

Nazwa parametru Opis
search
opcjonalny

Search string

Validations:

  • String

page
opcjonalny

Page number, starting at 1

Validations:

  • Must be a number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • Must be a number.

order
opcjonalny

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opcjonalny

Whether or not to show all results

Validations:

  • Must be one of: true, false, 1, 0

sort
opcjonalny

Hash version of 'order' param

Validations:

  • Hash

sort[by]
opcjonalny

Field to sort the results on

Validations:

  • String

sort[order]
opcjonalny

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String

organization_id
opcjonalny

organization identifier

Validations:

  • Must be a number.

name
opcjonalny

host collection name to filter by

Validations:

  • String

activation_key_id
opcjonalny

activation key identifier

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

host_id
opcjonalny

Filter products by host id

Validations:

  • Must be a number.

available_for
opcjonalny

Interpret specified object to return only Host Collections that can be associated with specified object. The value 'host' is supported.

Validations:

  • String


POST /katello/api/host_collections
Create a host collection

POST /katello/api/organizations/:organization_id/host_collections
Create a host collection

Parametry

Nazwa parametru Opis
organization_id
wymagany

organization identifier

Validations:

  • Must be a number.

name
wymagany

Host Collection name

Validations:

  • String

description
opcjonalny

Validations:

  • String

host_ids
opcjonalny

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
opcjonalny

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
opcjonalny

Whether or not the host collection may have unlimited hosts

Validations:

  • Must be one of: true, false, 1, 0


PUT /katello/api/host_collections/:id
Update a host collection

Parametry

Nazwa parametru Opis
id
wymagany

Id of the host collection

Validations:

  • Must be a number.

name
opcjonalny

Host Collection name

Validations:

  • String

description
opcjonalny

Validations:

  • String

host_ids
opcjonalny

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
opcjonalny

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
opcjonalny

Whether or not the host collection may have unlimited hosts

Validations:

  • Must be one of: true, false, 1, 0


PUT /katello/api/host_collections/:id/add_hosts
Add host to the host collection

Parametry

Nazwa parametru Opis
id
wymagany

Id of the host collection

Validations:

  • Must be a number.

host_ids
opcjonalny

Array of host ids

Validations:

  • Must be an array of any type


PUT /katello/api/host_collections/:id/remove_hosts
Remove hosts from the host collection

Parametry

Nazwa parametru Opis
id
wymagany

Id of the host collection

Validations:

  • Must be a number.

host_ids
opcjonalny

Array of host ids

Validations:

  • Must be an array of any type


DELETE /katello/api/host_collections/:id
Destroy a host collection

Parametry

Nazwa parametru Opis
id
wymagany

Id of the host collection

Validations:

  • Must be a number.


POST /katello/api/host_collections/:id/copy
Make copy of a host collection

Parametry

Nazwa parametru Opis
id
wymagany

ID of the host collection

Validations:

  • Must be a number.

name
wymagany

New host collection name

Validations:

  • String