Validate a Registries' URI
POST/actions/ validate-container-registry-uri/
v2
POST
container-validate-container-registry-uri
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X POST \
-d '{"registryUri":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/actions/validate-container-registry-uri
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.validateContainerRegistryUri({
"data": {
"registryUri": "string"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Container\ValidateContainerRegistryUri\ValidateContainerRegistryUriRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Container\ValidateContainerRegistryUri\ValidateContainerRegistryUriRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// ValidateContainerRegistryUriRequestBody to learn how to construct a valid instance
$body = new ValidateContainerRegistryUriRequestBody(/* TODO: ... */);
$request = (new ValidateContainerRegistryUriRequest(
body: $body
));
$response = $client->container()->validateContainerRegistryUri($request);
var_dump($response->getBody();