GET /docker/api/v2/containers
List all containers

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

Parametry

Nazwa parametru Opis
compute_resource_id
opcjonalny

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
opcjonalny

rezultat filtrowania

Validations:

  • Must be String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be String


GET /docker/api/v2/containers/:id
Show a container

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

Parametry

Nazwa parametru Opis
id
wymagany

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
opcjonalny

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
Create a container

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

Parametry

Nazwa parametru Opis
container
wymagany

Validations:

  • Must be a Hash

container[name]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

container[location_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ lokalizacje o podanym id

Validations:

  • Must be an array of any type

container[organization_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ organizacje o podanym id

Validations:

  • Must be an array of any type

container[compute_resource_id]
wymagany

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]
opcjonalny , nil dopuszczalny

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

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

Validations:

  • Must be String

container[tag]
wymagany

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

Validations:

  • Must be String

container[tty]
opcjonalny , nil dopuszczalny

Validations:

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

container[entrypoint]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

container[command]
wymagany

Validations:

  • Must be String

container[memory]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

container[cpu_shares]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

container[cpu_set]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

container[environment_variables]
opcjonalny , nil dopuszczalny

Validations:

  • Must be Hash

container[attach_stdout]
opcjonalny , nil dopuszczalny

Validations:

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

container[attach_stdin]
opcjonalny , nil dopuszczalny

Validations:

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

container[attach_stderr]
opcjonalny , nil dopuszczalny

Validations:

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

container[capsule_id]
opcjonalny , nil dopuszczalny

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
Delete a container

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

Parametry

Nazwa parametru Opis
id
wymagany

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
opcjonalny

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
Show container logs

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

Parametry

Nazwa parametru Opis
id
wymagany

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
opcjonalny

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
opcjonalny

Validations:

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

stderr
opcjonalny

Validations:

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

tail
opcjonalny

Number of lines to tail. Default: 100

Validations:

  • Must be Fixnum


PUT /docker/api/v2/containers/:id/power
Run power operation on a container

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

Parametry

Nazwa parametru Opis
id
wymagany

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
opcjonalny

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
wymagany

power action, valid actions are (start), (stop), (status)

Validations:

  • Must be String