GET /docker/api/v2/containers
Alle Container auflisten

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

Parameter

Parametername Beschreibung
compute_resource_id
optional

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
optional

Ergebnisse filtern

Validations:

  • Must be String

order
optional

Ergebnisse sortieren

Validations:

  • Must be String

page
optional

Ergebnisse nummerieren

Validations:

  • Must be String

per_page
optional

Anzahl der Einträge pro Anfrage

Validations:

  • Must be String


GET /docker/api/v2/containers/:id
Container anzeigen

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

Parameter

Parametername Beschreibung
id
verpflichtend

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
optional

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
Container erstellen

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

Parameter

Parametername Beschreibung
container
verpflichtend

Validations:

  • Must be a Hash

container[name]
optional , nil erlaubt

Validations:

  • Must be String

container[location_ids]
optional , nil erlaubt

Standorte durch angegebene Kennungen ERSETZEN

Validations:

  • Must be an array of any type

container[organization_ids]
optional , nil erlaubt

Organisationen durch angegebene Kennungen ERSETZEN

Validations:

  • Must be an array of any type

container[compute_resource_id]
verpflichtend

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]
optional , nil erlaubt

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

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

Validations:

  • Must be String

container[tag]
verpflichtend

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

Validations:

  • Must be String

container[tty]
optional , nil erlaubt

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[entrypoint]
optional , nil erlaubt

Validations:

  • Must be String

container[command]
verpflichtend

Validations:

  • Must be String

container[memory]
optional , nil erlaubt

Validations:

  • Must be String

container[cpu_shares]
optional , nil erlaubt

Validations:

  • Must be a number.

container[cpu_set]
optional , nil erlaubt

Validations:

  • Must be String

container[environment_variables]
optional , nil erlaubt

Validations:

  • Must be Hash

container[attach_stdout]
optional , nil erlaubt

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[attach_stdin]
optional , nil erlaubt

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[attach_stderr]
optional , nil erlaubt

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[capsule_id]
optional , nil erlaubt

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
Container löschen

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

Parameter

Parametername Beschreibung
id
verpflichtend

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
optional

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
Container-Protokolle anzeigen

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

Parameter

Parametername Beschreibung
id
verpflichtend

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
optional

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
optional

Validations:

  • Must be 'true' or 'false' or '1' or '0'

stderr
optional

Validations:

  • Must be 'true' or 'false' or '1' or '0'

tail
optional

Anzahl der anzuzeigenden Zeilen. Standard: 100

Validations:

  • Must be Fixnum


PUT /docker/api/v2/containers/:id/power
Stromoperation auf einem Container ausführen

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

Parameter

Parametername Beschreibung
id
verpflichtend

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
optional

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
verpflichtend

Stromaktion, gültige Aktionen sind (start), (stop), (status)

Validations:

  • Must be String