GET /docker/api/v2/containers
Elenca tutti i container

GET /docker/api/v2/compute_resources/:compute_resource_id/containers
List all containers on a compute resource

Parametri

Nome parametro Descrizione
compute_resource_id
opzionale

Validations:

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

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

ordina risultati

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


GET /docker/api/v2/containers/:id
Mostra un container

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Show container on a compute resource

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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

compute_resource_id
opzionale

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 /docker/api/v2/containers
Crea un container

POST /docker/api/v2/compute_resources/:compute_resource_id/containers
Create container on a compute resource

Parametri

Nome parametro Descrizione
container
richiesto

Validations:

  • Must be a Hash

container[name]
opzionale , consentito nil

Validations:

  • Must be a String

container[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

container[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type

container[compute_resource_id]
richiesto

Validations:

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

container[registry_id]
opzionale , consentito nil

Registry this container will have to use to get the image

Validations:

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

container[repository_name]
richiesto

Name of the repository to use to create the container. e.g. centos

Validations:

  • Must be a String

container[tag]
richiesto

Tag to use to create the container. e.g. latest

Validations:

  • Must be a String

container[tty]
opzionale , consentito nil

Validations:

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

container[entrypoint]
opzionale , consentito nil

Validations:

  • Must be a String

container[command]
richiesto

Validations:

  • Must be a String

container[memory]
opzionale , consentito nil

Validations:

  • Must be a String

container[cpu_shares]
opzionale , consentito nil

Validations:

  • Must be a number.

container[cpu_set]
opzionale , consentito nil

Validations:

  • Must be a String

container[environment_variables]
opzionale , consentito nil

Optional array of environment variables hashes. e.g. 'environment_variables': [{'name' => 'example', 'value' => '123'}]

Validations:

  • Must be an array of any type

container[attach_stdout]
opzionale , consentito nil

Validations:

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

container[attach_stdin]
opzionale , consentito nil

Validations:

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

container[attach_stderr]
opzionale , consentito nil

Validations:

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

container[capsule_id]
opzionale , consentito nil

The capsule this container will have to use to get the image. Relevant for images retrieved from katello registry.

Validations:

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


DELETE /docker/api/v2/containers/:id
Rimuovi un container

DELETE /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Delete container on a compute resource

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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

compute_resource_id
opzionale

Validations:

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


GET /docker/api/v2/containers/:id/logs
Mostra i log di un container

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id/logs
Show logs from a container on a compute resource

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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

compute_resource_id
opzionale

Validations:

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

stdout
opzionale

Validations:

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

stderr
opzionale

Validations:

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

tail
opzionale

Numero di righe per il comando tail. Predefinito: 100

Validations:

  • Must be a Integer


PUT /docker/api/v2/containers/:id/power
Eseguire una operazione di gestione dell'alimentazione su un container

PUT /docker/api/v2/compute_resources/:compute_resource_id/containers/:id/power
Run power operation on a container on a compute resource

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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

compute_resource_id
opzionale

Validations:

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

power_action
richiesto

azione di gestione dell'alimentazione, azioni valide sono (start), (stop), (status)

Validations:

  • Must be a String