GET /docker/api/v2/containers
Répertorier tous les conteneurs

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

Paramètres

Nom du paramètre Description
compute_resource_id
optionel

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
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

trier les resultats

Validations:

  • Must be a String

page
optionel

paginer les résultats

Validations:

  • Must be a String

per_page
optionel

nombre d'entier par requête

Validations:

  • Must be a String


GET /docker/api/v2/containers/:id
Afficher un conteneur

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

Paramètres

Nom du paramètre Description
id
requis

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
optionel

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
Créer un conteneur

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

Paramètres

Nom du paramètre Description
container
requis

Validations:

  • Must be a Hash

container[name]
optionel , nil autorisé

Validations:

  • Must be a String

container[location_ids]
optionel , nil autorisé

REMPLACER les emplacements qui ont les ID suivant

Validations:

  • Must be an array of any type

container[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivant

Validations:

  • Must be an array of any type

container[compute_resource_id]
requis

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]
optionel , nil autorisé

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]
requis

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

Validations:

  • Must be a String

container[tag]
requis

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

Validations:

  • Must be a String

container[tty]
optionel , nil autorisé

Validations:

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

container[entrypoint]
optionel , nil autorisé

Validations:

  • Must be a String

container[command]
requis

Validations:

  • Must be a String

container[memory]
optionel , nil autorisé

Validations:

  • Must be a String

container[cpu_shares]
optionel , nil autorisé

Validations:

  • Must be a number.

container[cpu_set]
optionel , nil autorisé

Validations:

  • Must be a String

container[environment_variables]
optionel , nil autorisé

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]
optionel , nil autorisé

Validations:

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

container[attach_stdin]
optionel , nil autorisé

Validations:

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

container[attach_stderr]
optionel , nil autorisé

Validations:

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

container[capsule_id]
optionel , nil autorisé

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
Supprimer un conteneur

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

Paramètres

Nom du paramètre Description
id
requis

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
optionel

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
Afficher les journaux de conteneur

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

Paramètres

Nom du paramètre Description
id
requis

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
optionel

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
optionel

Validations:

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

stderr
optionel

Validations:

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

tail
optionel

Nombre de lignes à finaliser. Défaut : 100

Validations:

  • Must be a Integer


PUT /docker/api/v2/containers/:id/power
Effectuer une opération de gestion de l'alimentation sur un conteneur

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

Paramètres

Nom du paramètre Description
id
requis

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
optionel

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
requis

Action sur l'alimentation, les actions valides sont (start), (stop), (status).

Validations:

  • Must be a String