Get a ContainerImageConfig
GET/container-image-config/
v2
GET
container-get-container-image-config
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ 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
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.container.getContainerImageConfig({
"queryParameters": {
"imageReference": "mysql",
"useCredentialsForProjectId": "f0f86186-0a5a-45b2-aa33-502777496347",
"useCredentialsForRegistryId": "f0f86186-0a5a-45b2-aa33-502777496347",
"generateAiData": true
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Container\GetContainerImageConfig\GetContainerImageConfigRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new GetContainerImageConfigRequest())
->withImageReference("mysql")
->withUseCredentialsForProjectId("f0f86186-0a5a-45b2-aa33-502777496347")
->withUseCredentialsForRegistryId("f0f86186-0a5a-45b2-aa33-502777496347")
->withGenerateAiData(true);
$response = $client->container()->getContainerImageConfig($request);
var_dump($response->getBody();