Zum Hauptinhalt springen

Get a ContainerImageConfig

GET /v2/container-image-config/
v2
GET
container-get-container-image-config

Request

Responses

application/json

OK

  • commandarray of string

    Command of the container image.

    • Array[
    • *string
    • ]
  • entrypointarray of string

    Entrypoint of the container image.

    • Array[
    • *string
    • ]
  • envarray of object

    List of environment variables the container image has.

    • Array[
    • *object
      • descriptionstring

        The description of the env key.

      • isAiGeneratedboolean
        required

        Whether the env has been ai generated.

      • isSensitiveboolean

        Whether the env key is a sensitive field, e.g. password fields.

      • keystring
        required

        The env key.

      • valuestring

        The env default value.

    • ]
  • exposedPortsarray of object

    List of exposed ports the container image has.

    • Array[
    • *object
      • descriptionstring

        The description of the exposed port.

      • isAiGeneratedboolean
        required

        Whether the port has been ai generated.

      • portstring
        required

        The exposed port.

    • ]
  • hasAiGeneratedDataboolean
    required

    Whether the image config has ai generated data.

  • isUserRootboolean
    required

    Whether the container user is root.

  • overwritingUserinteger

    If set, this user will be used to run the container.

  • userstring
    required

    The user the container image is running with.

  • volumesarray of object

    List of volumes the container image has.

    • Array[
    • *object
      • descriptionstring

        The description of the volume path.

      • isAiGeneratedboolean
        required

        Whether the volume has been ai generated.

      • volumestring
        required

        The volume path.

    • ]
  • Usage examples

    $ curl \
    --fail \
    --location \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    https://api.mittwald.de/v2/container-image-config?imageReference=mysql&useCredentialsForProjectId=f0f86186-0a5a-45b2-aa33-502777496347&useCredentialsForRegistryId=f0f86186-0a5a-45b2-aa33-502777496347&generateAiData=true