Update an Ingresses tls settings
PUT/ingresses/ {ingressId}/ tls/
v2
PUT
ingress-tls-deprecated
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X PUT \
-d '{"acme":true,"isCreated":true,"requestDeadline":"2024-11-08T18:11:45.165Z"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/ingresses/f0f86186-0a5a-45b2-aa33-502777496347/tls
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.domain.ingressTlsDeprecated({
"ingressId": "f0f86186-0a5a-45b2-aa33-502777496347",
"data": {
"acme": true,
"isCreated": true,
"requestDeadline": "2024-11-08T18:11:45.165Z"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressTlsDeprecated\IngressTlsDeprecatedRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressTlsDeprecated\IngressTlsDeprecatedRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// IngressTlsDeprecatedRequestBody to learn how to construct a valid instance
$body = new IngressTlsDeprecatedRequestBody(/* TODO: ... */);
$request = (new IngressTlsDeprecatedRequest(
ingressId: "f0f86186-0a5a-45b2-aa33-502777496347",
body: $body
));
$response = $client->domain()->ingressTlsDeprecated($request);
var_dump($response->getBody();