Edit advanced settings
curl --request PUT \
--url https://api.qovery.com/container/{containerId}/advancedSettings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deployment.custom_domain_check_enabled": true,
"deployment.termination_grace_period_seconds": 123,
"deployment.affinity.node.required": {},
"deployment.update_strategy.rolling_update.max_unavailable_percent": 123,
"deployment.update_strategy.rolling_update.max_surge_percent": 123,
"network.ingress.proxy_body_size_mb": 123,
"network.ingress.force_ssl_redirect": true,
"network.ingress.enable_cors": true,
"network.ingress.cors_allow_origin": "<string>",
"network.ingress.cors_allow_methods": "<string>",
"network.ingress.cors_allow_headers": "<string>",
"network.ingress.proxy_buffer_size_kb": 123,
"network.ingress.keepalive_time_seconds": 123,
"network.ingress.keepalive_timeout_seconds": 123,
"network.ingress.send_timeout_seconds": 123,
"network.ingress.proxy_connect_timeout_seconds": 123,
"network.ingress.proxy_send_timeout_seconds": 123,
"network.ingress.proxy_read_timeout_seconds": 123,
"network.ingress.proxy_buffering": "<string>",
"network.ingress.proxy_request_buffering": "<string>",
"network.ingress.grpc_send_timeout_seconds": 123,
"network.ingress.grpc_read_timeout_seconds": 123,
"network.ingress.whitelist_source_range": "<string>",
"network.ingress.denylist_source_range": "<string>",
"network.ingress.extra_headers": "{\"X-Frame-Options\":\"DENY \",\"X-Content-Type-Options\":\"nosniff\"}",
"network.gateway_api.http_request_timeout_seconds": 1,
"network.gateway_api.http_connection_idle_timeout_seconds": 1,
"network.gateway_api.retry.num_retries": 1,
"network.gateway_api.retry.retry_on": "<string>",
"network.gateway_api.retry.http_status_codes": "<string>",
"network.gateway_api.retry.per_try_timeout_seconds": 2,
"network.ingress.basic_auth_env_var": "<string>",
"network.ingress.enable_sticky_session": true,
"security.service_account_name": "<string>",
"hpa.cpu.average_utilization_percent": 123,
"hpa.memory.average_utilization_percent": 123,
"security.automount_service_account_token": true,
"security.read_only_root_filesystem": true
}
'import requests
url = "https://api.qovery.com/container/{containerId}/advancedSettings"
payload = {
"deployment.custom_domain_check_enabled": True,
"deployment.termination_grace_period_seconds": 123,
"deployment.affinity.node.required": {},
"deployment.update_strategy.rolling_update.max_unavailable_percent": 123,
"deployment.update_strategy.rolling_update.max_surge_percent": 123,
"network.ingress.proxy_body_size_mb": 123,
"network.ingress.force_ssl_redirect": True,
"network.ingress.enable_cors": True,
"network.ingress.cors_allow_origin": "<string>",
"network.ingress.cors_allow_methods": "<string>",
"network.ingress.cors_allow_headers": "<string>",
"network.ingress.proxy_buffer_size_kb": 123,
"network.ingress.keepalive_time_seconds": 123,
"network.ingress.keepalive_timeout_seconds": 123,
"network.ingress.send_timeout_seconds": 123,
"network.ingress.proxy_connect_timeout_seconds": 123,
"network.ingress.proxy_send_timeout_seconds": 123,
"network.ingress.proxy_read_timeout_seconds": 123,
"network.ingress.proxy_buffering": "<string>",
"network.ingress.proxy_request_buffering": "<string>",
"network.ingress.grpc_send_timeout_seconds": 123,
"network.ingress.grpc_read_timeout_seconds": 123,
"network.ingress.whitelist_source_range": "<string>",
"network.ingress.denylist_source_range": "<string>",
"network.ingress.extra_headers": "{\"X-Frame-Options\":\"DENY \",\"X-Content-Type-Options\":\"nosniff\"}",
"network.gateway_api.http_request_timeout_seconds": 1,
"network.gateway_api.http_connection_idle_timeout_seconds": 1,
"network.gateway_api.retry.num_retries": 1,
"network.gateway_api.retry.retry_on": "<string>",
"network.gateway_api.retry.http_status_codes": "<string>",
"network.gateway_api.retry.per_try_timeout_seconds": 2,
"network.ingress.basic_auth_env_var": "<string>",
"network.ingress.enable_sticky_session": True,
"security.service_account_name": "<string>",
"hpa.cpu.average_utilization_percent": 123,
"hpa.memory.average_utilization_percent": 123,
"security.automount_service_account_token": True,
"security.read_only_root_filesystem": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
'deployment.custom_domain_check_enabled': true,
'deployment.termination_grace_period_seconds': 123,
'deployment.affinity.node.required': {},
'deployment.update_strategy.rolling_update.max_unavailable_percent': 123,
'deployment.update_strategy.rolling_update.max_surge_percent': 123,
'network.ingress.proxy_body_size_mb': 123,
'network.ingress.force_ssl_redirect': true,
'network.ingress.enable_cors': true,
'network.ingress.cors_allow_origin': '<string>',
'network.ingress.cors_allow_methods': '<string>',
'network.ingress.cors_allow_headers': '<string>',
'network.ingress.proxy_buffer_size_kb': 123,
'network.ingress.keepalive_time_seconds': 123,
'network.ingress.keepalive_timeout_seconds': 123,
'network.ingress.send_timeout_seconds': 123,
'network.ingress.proxy_connect_timeout_seconds': 123,
'network.ingress.proxy_send_timeout_seconds': 123,
'network.ingress.proxy_read_timeout_seconds': 123,
'network.ingress.proxy_buffering': '<string>',
'network.ingress.proxy_request_buffering': '<string>',
'network.ingress.grpc_send_timeout_seconds': 123,
'network.ingress.grpc_read_timeout_seconds': 123,
'network.ingress.whitelist_source_range': '<string>',
'network.ingress.denylist_source_range': '<string>',
'network.ingress.extra_headers': '{"X-Frame-Options":"DENY ","X-Content-Type-Options":"nosniff"}',
'network.gateway_api.http_request_timeout_seconds': 1,
'network.gateway_api.http_connection_idle_timeout_seconds': 1,
'network.gateway_api.retry.num_retries': 1,
'network.gateway_api.retry.retry_on': '<string>',
'network.gateway_api.retry.http_status_codes': '<string>',
'network.gateway_api.retry.per_try_timeout_seconds': 2,
'network.ingress.basic_auth_env_var': '<string>',
'network.ingress.enable_sticky_session': true,
'security.service_account_name': '<string>',
'hpa.cpu.average_utilization_percent': 123,
'hpa.memory.average_utilization_percent': 123,
'security.automount_service_account_token': true,
'security.read_only_root_filesystem': true
})
};
fetch('https://api.qovery.com/container/{containerId}/advancedSettings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/container/{containerId}/advancedSettings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'deployment.custom_domain_check_enabled' => true,
'deployment.termination_grace_period_seconds' => 123,
'deployment.affinity.node.required' => [
],
'deployment.update_strategy.rolling_update.max_unavailable_percent' => 123,
'deployment.update_strategy.rolling_update.max_surge_percent' => 123,
'network.ingress.proxy_body_size_mb' => 123,
'network.ingress.force_ssl_redirect' => true,
'network.ingress.enable_cors' => true,
'network.ingress.cors_allow_origin' => '<string>',
'network.ingress.cors_allow_methods' => '<string>',
'network.ingress.cors_allow_headers' => '<string>',
'network.ingress.proxy_buffer_size_kb' => 123,
'network.ingress.keepalive_time_seconds' => 123,
'network.ingress.keepalive_timeout_seconds' => 123,
'network.ingress.send_timeout_seconds' => 123,
'network.ingress.proxy_connect_timeout_seconds' => 123,
'network.ingress.proxy_send_timeout_seconds' => 123,
'network.ingress.proxy_read_timeout_seconds' => 123,
'network.ingress.proxy_buffering' => '<string>',
'network.ingress.proxy_request_buffering' => '<string>',
'network.ingress.grpc_send_timeout_seconds' => 123,
'network.ingress.grpc_read_timeout_seconds' => 123,
'network.ingress.whitelist_source_range' => '<string>',
'network.ingress.denylist_source_range' => '<string>',
'network.ingress.extra_headers' => '{"X-Frame-Options":"DENY ","X-Content-Type-Options":"nosniff"}',
'network.gateway_api.http_request_timeout_seconds' => 1,
'network.gateway_api.http_connection_idle_timeout_seconds' => 1,
'network.gateway_api.retry.num_retries' => 1,
'network.gateway_api.retry.retry_on' => '<string>',
'network.gateway_api.retry.http_status_codes' => '<string>',
'network.gateway_api.retry.per_try_timeout_seconds' => 2,
'network.ingress.basic_auth_env_var' => '<string>',
'network.ingress.enable_sticky_session' => true,
'security.service_account_name' => '<string>',
'hpa.cpu.average_utilization_percent' => 123,
'hpa.memory.average_utilization_percent' => 123,
'security.automount_service_account_token' => true,
'security.read_only_root_filesystem' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/container/{containerId}/advancedSettings"
payload := strings.NewReader("{\n \"deployment.custom_domain_check_enabled\": true,\n \"deployment.termination_grace_period_seconds\": 123,\n \"deployment.affinity.node.required\": {},\n \"deployment.update_strategy.rolling_update.max_unavailable_percent\": 123,\n \"deployment.update_strategy.rolling_update.max_surge_percent\": 123,\n \"network.ingress.proxy_body_size_mb\": 123,\n \"network.ingress.force_ssl_redirect\": true,\n \"network.ingress.enable_cors\": true,\n \"network.ingress.cors_allow_origin\": \"<string>\",\n \"network.ingress.cors_allow_methods\": \"<string>\",\n \"network.ingress.cors_allow_headers\": \"<string>\",\n \"network.ingress.proxy_buffer_size_kb\": 123,\n \"network.ingress.keepalive_time_seconds\": 123,\n \"network.ingress.keepalive_timeout_seconds\": 123,\n \"network.ingress.send_timeout_seconds\": 123,\n \"network.ingress.proxy_connect_timeout_seconds\": 123,\n \"network.ingress.proxy_send_timeout_seconds\": 123,\n \"network.ingress.proxy_read_timeout_seconds\": 123,\n \"network.ingress.proxy_buffering\": \"<string>\",\n \"network.ingress.proxy_request_buffering\": \"<string>\",\n \"network.ingress.grpc_send_timeout_seconds\": 123,\n \"network.ingress.grpc_read_timeout_seconds\": 123,\n \"network.ingress.whitelist_source_range\": \"<string>\",\n \"network.ingress.denylist_source_range\": \"<string>\",\n \"network.ingress.extra_headers\": \"{\\\"X-Frame-Options\\\":\\\"DENY \\\",\\\"X-Content-Type-Options\\\":\\\"nosniff\\\"}\",\n \"network.gateway_api.http_request_timeout_seconds\": 1,\n \"network.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"network.gateway_api.retry.num_retries\": 1,\n \"network.gateway_api.retry.retry_on\": \"<string>\",\n \"network.gateway_api.retry.http_status_codes\": \"<string>\",\n \"network.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"network.ingress.basic_auth_env_var\": \"<string>\",\n \"network.ingress.enable_sticky_session\": true,\n \"security.service_account_name\": \"<string>\",\n \"hpa.cpu.average_utilization_percent\": 123,\n \"hpa.memory.average_utilization_percent\": 123,\n \"security.automount_service_account_token\": true,\n \"security.read_only_root_filesystem\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.qovery.com/container/{containerId}/advancedSettings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deployment.custom_domain_check_enabled\": true,\n \"deployment.termination_grace_period_seconds\": 123,\n \"deployment.affinity.node.required\": {},\n \"deployment.update_strategy.rolling_update.max_unavailable_percent\": 123,\n \"deployment.update_strategy.rolling_update.max_surge_percent\": 123,\n \"network.ingress.proxy_body_size_mb\": 123,\n \"network.ingress.force_ssl_redirect\": true,\n \"network.ingress.enable_cors\": true,\n \"network.ingress.cors_allow_origin\": \"<string>\",\n \"network.ingress.cors_allow_methods\": \"<string>\",\n \"network.ingress.cors_allow_headers\": \"<string>\",\n \"network.ingress.proxy_buffer_size_kb\": 123,\n \"network.ingress.keepalive_time_seconds\": 123,\n \"network.ingress.keepalive_timeout_seconds\": 123,\n \"network.ingress.send_timeout_seconds\": 123,\n \"network.ingress.proxy_connect_timeout_seconds\": 123,\n \"network.ingress.proxy_send_timeout_seconds\": 123,\n \"network.ingress.proxy_read_timeout_seconds\": 123,\n \"network.ingress.proxy_buffering\": \"<string>\",\n \"network.ingress.proxy_request_buffering\": \"<string>\",\n \"network.ingress.grpc_send_timeout_seconds\": 123,\n \"network.ingress.grpc_read_timeout_seconds\": 123,\n \"network.ingress.whitelist_source_range\": \"<string>\",\n \"network.ingress.denylist_source_range\": \"<string>\",\n \"network.ingress.extra_headers\": \"{\\\"X-Frame-Options\\\":\\\"DENY \\\",\\\"X-Content-Type-Options\\\":\\\"nosniff\\\"}\",\n \"network.gateway_api.http_request_timeout_seconds\": 1,\n \"network.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"network.gateway_api.retry.num_retries\": 1,\n \"network.gateway_api.retry.retry_on\": \"<string>\",\n \"network.gateway_api.retry.http_status_codes\": \"<string>\",\n \"network.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"network.ingress.basic_auth_env_var\": \"<string>\",\n \"network.ingress.enable_sticky_session\": true,\n \"security.service_account_name\": \"<string>\",\n \"hpa.cpu.average_utilization_percent\": 123,\n \"hpa.memory.average_utilization_percent\": 123,\n \"security.automount_service_account_token\": true,\n \"security.read_only_root_filesystem\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/container/{containerId}/advancedSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deployment.custom_domain_check_enabled\": true,\n \"deployment.termination_grace_period_seconds\": 123,\n \"deployment.affinity.node.required\": {},\n \"deployment.update_strategy.rolling_update.max_unavailable_percent\": 123,\n \"deployment.update_strategy.rolling_update.max_surge_percent\": 123,\n \"network.ingress.proxy_body_size_mb\": 123,\n \"network.ingress.force_ssl_redirect\": true,\n \"network.ingress.enable_cors\": true,\n \"network.ingress.cors_allow_origin\": \"<string>\",\n \"network.ingress.cors_allow_methods\": \"<string>\",\n \"network.ingress.cors_allow_headers\": \"<string>\",\n \"network.ingress.proxy_buffer_size_kb\": 123,\n \"network.ingress.keepalive_time_seconds\": 123,\n \"network.ingress.keepalive_timeout_seconds\": 123,\n \"network.ingress.send_timeout_seconds\": 123,\n \"network.ingress.proxy_connect_timeout_seconds\": 123,\n \"network.ingress.proxy_send_timeout_seconds\": 123,\n \"network.ingress.proxy_read_timeout_seconds\": 123,\n \"network.ingress.proxy_buffering\": \"<string>\",\n \"network.ingress.proxy_request_buffering\": \"<string>\",\n \"network.ingress.grpc_send_timeout_seconds\": 123,\n \"network.ingress.grpc_read_timeout_seconds\": 123,\n \"network.ingress.whitelist_source_range\": \"<string>\",\n \"network.ingress.denylist_source_range\": \"<string>\",\n \"network.ingress.extra_headers\": \"{\\\"X-Frame-Options\\\":\\\"DENY \\\",\\\"X-Content-Type-Options\\\":\\\"nosniff\\\"}\",\n \"network.gateway_api.http_request_timeout_seconds\": 1,\n \"network.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"network.gateway_api.retry.num_retries\": 1,\n \"network.gateway_api.retry.retry_on\": \"<string>\",\n \"network.gateway_api.retry.http_status_codes\": \"<string>\",\n \"network.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"network.ingress.basic_auth_env_var\": \"<string>\",\n \"network.ingress.enable_sticky_session\": true,\n \"security.service_account_name\": \"<string>\",\n \"hpa.cpu.average_utilization_percent\": 123,\n \"hpa.memory.average_utilization_percent\": 123,\n \"security.automount_service_account_token\": true,\n \"security.read_only_root_filesystem\": true\n}"
response = http.request(request)
puts response.read_body{
"deployment.custom_domain_check_enabled": true,
"deployment.termination_grace_period_seconds": 123,
"deployment.affinity.node.required": {},
"deployment.antiaffinity.pod": "Preferred",
"deployment.topology_spread.zone": "Disabled",
"deployment.update_strategy.type": "RollingUpdate",
"deployment.update_strategy.rolling_update.max_unavailable_percent": 123,
"deployment.update_strategy.rolling_update.max_surge_percent": 123,
"network.ingress.proxy_body_size_mb": 123,
"network.ingress.force_ssl_redirect": true,
"network.ingress.enable_cors": true,
"network.ingress.cors_allow_origin": "<string>",
"network.ingress.cors_allow_methods": "<string>",
"network.ingress.cors_allow_headers": "<string>",
"network.ingress.proxy_buffer_size_kb": 123,
"network.ingress.keepalive_time_seconds": 123,
"network.ingress.keepalive_timeout_seconds": 123,
"network.ingress.send_timeout_seconds": 123,
"network.ingress.proxy_connect_timeout_seconds": 123,
"network.ingress.proxy_send_timeout_seconds": 123,
"network.ingress.proxy_read_timeout_seconds": 123,
"network.ingress.proxy_buffering": "<string>",
"network.ingress.proxy_request_buffering": "<string>",
"network.ingress.grpc_send_timeout_seconds": 123,
"network.ingress.grpc_read_timeout_seconds": 123,
"network.ingress.whitelist_source_range": "<string>",
"network.ingress.denylist_source_range": "<string>",
"network.ingress.extra_headers": "{\"X-Frame-Options\":\"DENY \",\"X-Content-Type-Options\":\"nosniff\"}",
"network.gateway_api.http_request_timeout_seconds": 1,
"network.gateway_api.http_connection_idle_timeout_seconds": 1,
"network.gateway_api.retry.num_retries": 1,
"network.gateway_api.retry.retry_on": "<string>",
"network.gateway_api.retry.http_status_codes": "<string>",
"network.gateway_api.retry.per_try_timeout_seconds": 2,
"network.ingress.basic_auth_env_var": "<string>",
"network.ingress.enable_sticky_session": true,
"security.service_account_name": "<string>",
"hpa.cpu.average_utilization_percent": 123,
"hpa.memory.average_utilization_percent": 123,
"security.automount_service_account_token": true,
"security.read_only_root_filesystem": true
}Container Configuration
Edit advanced settings
Edit advanced settings by returning table of advanced settings.
PUT
/
container
/
{containerId}
/
advancedSettings
Edit advanced settings
curl --request PUT \
--url https://api.qovery.com/container/{containerId}/advancedSettings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deployment.custom_domain_check_enabled": true,
"deployment.termination_grace_period_seconds": 123,
"deployment.affinity.node.required": {},
"deployment.update_strategy.rolling_update.max_unavailable_percent": 123,
"deployment.update_strategy.rolling_update.max_surge_percent": 123,
"network.ingress.proxy_body_size_mb": 123,
"network.ingress.force_ssl_redirect": true,
"network.ingress.enable_cors": true,
"network.ingress.cors_allow_origin": "<string>",
"network.ingress.cors_allow_methods": "<string>",
"network.ingress.cors_allow_headers": "<string>",
"network.ingress.proxy_buffer_size_kb": 123,
"network.ingress.keepalive_time_seconds": 123,
"network.ingress.keepalive_timeout_seconds": 123,
"network.ingress.send_timeout_seconds": 123,
"network.ingress.proxy_connect_timeout_seconds": 123,
"network.ingress.proxy_send_timeout_seconds": 123,
"network.ingress.proxy_read_timeout_seconds": 123,
"network.ingress.proxy_buffering": "<string>",
"network.ingress.proxy_request_buffering": "<string>",
"network.ingress.grpc_send_timeout_seconds": 123,
"network.ingress.grpc_read_timeout_seconds": 123,
"network.ingress.whitelist_source_range": "<string>",
"network.ingress.denylist_source_range": "<string>",
"network.ingress.extra_headers": "{\"X-Frame-Options\":\"DENY \",\"X-Content-Type-Options\":\"nosniff\"}",
"network.gateway_api.http_request_timeout_seconds": 1,
"network.gateway_api.http_connection_idle_timeout_seconds": 1,
"network.gateway_api.retry.num_retries": 1,
"network.gateway_api.retry.retry_on": "<string>",
"network.gateway_api.retry.http_status_codes": "<string>",
"network.gateway_api.retry.per_try_timeout_seconds": 2,
"network.ingress.basic_auth_env_var": "<string>",
"network.ingress.enable_sticky_session": true,
"security.service_account_name": "<string>",
"hpa.cpu.average_utilization_percent": 123,
"hpa.memory.average_utilization_percent": 123,
"security.automount_service_account_token": true,
"security.read_only_root_filesystem": true
}
'import requests
url = "https://api.qovery.com/container/{containerId}/advancedSettings"
payload = {
"deployment.custom_domain_check_enabled": True,
"deployment.termination_grace_period_seconds": 123,
"deployment.affinity.node.required": {},
"deployment.update_strategy.rolling_update.max_unavailable_percent": 123,
"deployment.update_strategy.rolling_update.max_surge_percent": 123,
"network.ingress.proxy_body_size_mb": 123,
"network.ingress.force_ssl_redirect": True,
"network.ingress.enable_cors": True,
"network.ingress.cors_allow_origin": "<string>",
"network.ingress.cors_allow_methods": "<string>",
"network.ingress.cors_allow_headers": "<string>",
"network.ingress.proxy_buffer_size_kb": 123,
"network.ingress.keepalive_time_seconds": 123,
"network.ingress.keepalive_timeout_seconds": 123,
"network.ingress.send_timeout_seconds": 123,
"network.ingress.proxy_connect_timeout_seconds": 123,
"network.ingress.proxy_send_timeout_seconds": 123,
"network.ingress.proxy_read_timeout_seconds": 123,
"network.ingress.proxy_buffering": "<string>",
"network.ingress.proxy_request_buffering": "<string>",
"network.ingress.grpc_send_timeout_seconds": 123,
"network.ingress.grpc_read_timeout_seconds": 123,
"network.ingress.whitelist_source_range": "<string>",
"network.ingress.denylist_source_range": "<string>",
"network.ingress.extra_headers": "{\"X-Frame-Options\":\"DENY \",\"X-Content-Type-Options\":\"nosniff\"}",
"network.gateway_api.http_request_timeout_seconds": 1,
"network.gateway_api.http_connection_idle_timeout_seconds": 1,
"network.gateway_api.retry.num_retries": 1,
"network.gateway_api.retry.retry_on": "<string>",
"network.gateway_api.retry.http_status_codes": "<string>",
"network.gateway_api.retry.per_try_timeout_seconds": 2,
"network.ingress.basic_auth_env_var": "<string>",
"network.ingress.enable_sticky_session": True,
"security.service_account_name": "<string>",
"hpa.cpu.average_utilization_percent": 123,
"hpa.memory.average_utilization_percent": 123,
"security.automount_service_account_token": True,
"security.read_only_root_filesystem": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
'deployment.custom_domain_check_enabled': true,
'deployment.termination_grace_period_seconds': 123,
'deployment.affinity.node.required': {},
'deployment.update_strategy.rolling_update.max_unavailable_percent': 123,
'deployment.update_strategy.rolling_update.max_surge_percent': 123,
'network.ingress.proxy_body_size_mb': 123,
'network.ingress.force_ssl_redirect': true,
'network.ingress.enable_cors': true,
'network.ingress.cors_allow_origin': '<string>',
'network.ingress.cors_allow_methods': '<string>',
'network.ingress.cors_allow_headers': '<string>',
'network.ingress.proxy_buffer_size_kb': 123,
'network.ingress.keepalive_time_seconds': 123,
'network.ingress.keepalive_timeout_seconds': 123,
'network.ingress.send_timeout_seconds': 123,
'network.ingress.proxy_connect_timeout_seconds': 123,
'network.ingress.proxy_send_timeout_seconds': 123,
'network.ingress.proxy_read_timeout_seconds': 123,
'network.ingress.proxy_buffering': '<string>',
'network.ingress.proxy_request_buffering': '<string>',
'network.ingress.grpc_send_timeout_seconds': 123,
'network.ingress.grpc_read_timeout_seconds': 123,
'network.ingress.whitelist_source_range': '<string>',
'network.ingress.denylist_source_range': '<string>',
'network.ingress.extra_headers': '{"X-Frame-Options":"DENY ","X-Content-Type-Options":"nosniff"}',
'network.gateway_api.http_request_timeout_seconds': 1,
'network.gateway_api.http_connection_idle_timeout_seconds': 1,
'network.gateway_api.retry.num_retries': 1,
'network.gateway_api.retry.retry_on': '<string>',
'network.gateway_api.retry.http_status_codes': '<string>',
'network.gateway_api.retry.per_try_timeout_seconds': 2,
'network.ingress.basic_auth_env_var': '<string>',
'network.ingress.enable_sticky_session': true,
'security.service_account_name': '<string>',
'hpa.cpu.average_utilization_percent': 123,
'hpa.memory.average_utilization_percent': 123,
'security.automount_service_account_token': true,
'security.read_only_root_filesystem': true
})
};
fetch('https://api.qovery.com/container/{containerId}/advancedSettings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/container/{containerId}/advancedSettings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'deployment.custom_domain_check_enabled' => true,
'deployment.termination_grace_period_seconds' => 123,
'deployment.affinity.node.required' => [
],
'deployment.update_strategy.rolling_update.max_unavailable_percent' => 123,
'deployment.update_strategy.rolling_update.max_surge_percent' => 123,
'network.ingress.proxy_body_size_mb' => 123,
'network.ingress.force_ssl_redirect' => true,
'network.ingress.enable_cors' => true,
'network.ingress.cors_allow_origin' => '<string>',
'network.ingress.cors_allow_methods' => '<string>',
'network.ingress.cors_allow_headers' => '<string>',
'network.ingress.proxy_buffer_size_kb' => 123,
'network.ingress.keepalive_time_seconds' => 123,
'network.ingress.keepalive_timeout_seconds' => 123,
'network.ingress.send_timeout_seconds' => 123,
'network.ingress.proxy_connect_timeout_seconds' => 123,
'network.ingress.proxy_send_timeout_seconds' => 123,
'network.ingress.proxy_read_timeout_seconds' => 123,
'network.ingress.proxy_buffering' => '<string>',
'network.ingress.proxy_request_buffering' => '<string>',
'network.ingress.grpc_send_timeout_seconds' => 123,
'network.ingress.grpc_read_timeout_seconds' => 123,
'network.ingress.whitelist_source_range' => '<string>',
'network.ingress.denylist_source_range' => '<string>',
'network.ingress.extra_headers' => '{"X-Frame-Options":"DENY ","X-Content-Type-Options":"nosniff"}',
'network.gateway_api.http_request_timeout_seconds' => 1,
'network.gateway_api.http_connection_idle_timeout_seconds' => 1,
'network.gateway_api.retry.num_retries' => 1,
'network.gateway_api.retry.retry_on' => '<string>',
'network.gateway_api.retry.http_status_codes' => '<string>',
'network.gateway_api.retry.per_try_timeout_seconds' => 2,
'network.ingress.basic_auth_env_var' => '<string>',
'network.ingress.enable_sticky_session' => true,
'security.service_account_name' => '<string>',
'hpa.cpu.average_utilization_percent' => 123,
'hpa.memory.average_utilization_percent' => 123,
'security.automount_service_account_token' => true,
'security.read_only_root_filesystem' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/container/{containerId}/advancedSettings"
payload := strings.NewReader("{\n \"deployment.custom_domain_check_enabled\": true,\n \"deployment.termination_grace_period_seconds\": 123,\n \"deployment.affinity.node.required\": {},\n \"deployment.update_strategy.rolling_update.max_unavailable_percent\": 123,\n \"deployment.update_strategy.rolling_update.max_surge_percent\": 123,\n \"network.ingress.proxy_body_size_mb\": 123,\n \"network.ingress.force_ssl_redirect\": true,\n \"network.ingress.enable_cors\": true,\n \"network.ingress.cors_allow_origin\": \"<string>\",\n \"network.ingress.cors_allow_methods\": \"<string>\",\n \"network.ingress.cors_allow_headers\": \"<string>\",\n \"network.ingress.proxy_buffer_size_kb\": 123,\n \"network.ingress.keepalive_time_seconds\": 123,\n \"network.ingress.keepalive_timeout_seconds\": 123,\n \"network.ingress.send_timeout_seconds\": 123,\n \"network.ingress.proxy_connect_timeout_seconds\": 123,\n \"network.ingress.proxy_send_timeout_seconds\": 123,\n \"network.ingress.proxy_read_timeout_seconds\": 123,\n \"network.ingress.proxy_buffering\": \"<string>\",\n \"network.ingress.proxy_request_buffering\": \"<string>\",\n \"network.ingress.grpc_send_timeout_seconds\": 123,\n \"network.ingress.grpc_read_timeout_seconds\": 123,\n \"network.ingress.whitelist_source_range\": \"<string>\",\n \"network.ingress.denylist_source_range\": \"<string>\",\n \"network.ingress.extra_headers\": \"{\\\"X-Frame-Options\\\":\\\"DENY \\\",\\\"X-Content-Type-Options\\\":\\\"nosniff\\\"}\",\n \"network.gateway_api.http_request_timeout_seconds\": 1,\n \"network.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"network.gateway_api.retry.num_retries\": 1,\n \"network.gateway_api.retry.retry_on\": \"<string>\",\n \"network.gateway_api.retry.http_status_codes\": \"<string>\",\n \"network.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"network.ingress.basic_auth_env_var\": \"<string>\",\n \"network.ingress.enable_sticky_session\": true,\n \"security.service_account_name\": \"<string>\",\n \"hpa.cpu.average_utilization_percent\": 123,\n \"hpa.memory.average_utilization_percent\": 123,\n \"security.automount_service_account_token\": true,\n \"security.read_only_root_filesystem\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.qovery.com/container/{containerId}/advancedSettings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deployment.custom_domain_check_enabled\": true,\n \"deployment.termination_grace_period_seconds\": 123,\n \"deployment.affinity.node.required\": {},\n \"deployment.update_strategy.rolling_update.max_unavailable_percent\": 123,\n \"deployment.update_strategy.rolling_update.max_surge_percent\": 123,\n \"network.ingress.proxy_body_size_mb\": 123,\n \"network.ingress.force_ssl_redirect\": true,\n \"network.ingress.enable_cors\": true,\n \"network.ingress.cors_allow_origin\": \"<string>\",\n \"network.ingress.cors_allow_methods\": \"<string>\",\n \"network.ingress.cors_allow_headers\": \"<string>\",\n \"network.ingress.proxy_buffer_size_kb\": 123,\n \"network.ingress.keepalive_time_seconds\": 123,\n \"network.ingress.keepalive_timeout_seconds\": 123,\n \"network.ingress.send_timeout_seconds\": 123,\n \"network.ingress.proxy_connect_timeout_seconds\": 123,\n \"network.ingress.proxy_send_timeout_seconds\": 123,\n \"network.ingress.proxy_read_timeout_seconds\": 123,\n \"network.ingress.proxy_buffering\": \"<string>\",\n \"network.ingress.proxy_request_buffering\": \"<string>\",\n \"network.ingress.grpc_send_timeout_seconds\": 123,\n \"network.ingress.grpc_read_timeout_seconds\": 123,\n \"network.ingress.whitelist_source_range\": \"<string>\",\n \"network.ingress.denylist_source_range\": \"<string>\",\n \"network.ingress.extra_headers\": \"{\\\"X-Frame-Options\\\":\\\"DENY \\\",\\\"X-Content-Type-Options\\\":\\\"nosniff\\\"}\",\n \"network.gateway_api.http_request_timeout_seconds\": 1,\n \"network.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"network.gateway_api.retry.num_retries\": 1,\n \"network.gateway_api.retry.retry_on\": \"<string>\",\n \"network.gateway_api.retry.http_status_codes\": \"<string>\",\n \"network.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"network.ingress.basic_auth_env_var\": \"<string>\",\n \"network.ingress.enable_sticky_session\": true,\n \"security.service_account_name\": \"<string>\",\n \"hpa.cpu.average_utilization_percent\": 123,\n \"hpa.memory.average_utilization_percent\": 123,\n \"security.automount_service_account_token\": true,\n \"security.read_only_root_filesystem\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/container/{containerId}/advancedSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deployment.custom_domain_check_enabled\": true,\n \"deployment.termination_grace_period_seconds\": 123,\n \"deployment.affinity.node.required\": {},\n \"deployment.update_strategy.rolling_update.max_unavailable_percent\": 123,\n \"deployment.update_strategy.rolling_update.max_surge_percent\": 123,\n \"network.ingress.proxy_body_size_mb\": 123,\n \"network.ingress.force_ssl_redirect\": true,\n \"network.ingress.enable_cors\": true,\n \"network.ingress.cors_allow_origin\": \"<string>\",\n \"network.ingress.cors_allow_methods\": \"<string>\",\n \"network.ingress.cors_allow_headers\": \"<string>\",\n \"network.ingress.proxy_buffer_size_kb\": 123,\n \"network.ingress.keepalive_time_seconds\": 123,\n \"network.ingress.keepalive_timeout_seconds\": 123,\n \"network.ingress.send_timeout_seconds\": 123,\n \"network.ingress.proxy_connect_timeout_seconds\": 123,\n \"network.ingress.proxy_send_timeout_seconds\": 123,\n \"network.ingress.proxy_read_timeout_seconds\": 123,\n \"network.ingress.proxy_buffering\": \"<string>\",\n \"network.ingress.proxy_request_buffering\": \"<string>\",\n \"network.ingress.grpc_send_timeout_seconds\": 123,\n \"network.ingress.grpc_read_timeout_seconds\": 123,\n \"network.ingress.whitelist_source_range\": \"<string>\",\n \"network.ingress.denylist_source_range\": \"<string>\",\n \"network.ingress.extra_headers\": \"{\\\"X-Frame-Options\\\":\\\"DENY \\\",\\\"X-Content-Type-Options\\\":\\\"nosniff\\\"}\",\n \"network.gateway_api.http_request_timeout_seconds\": 1,\n \"network.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"network.gateway_api.retry.num_retries\": 1,\n \"network.gateway_api.retry.retry_on\": \"<string>\",\n \"network.gateway_api.retry.http_status_codes\": \"<string>\",\n \"network.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"network.ingress.basic_auth_env_var\": \"<string>\",\n \"network.ingress.enable_sticky_session\": true,\n \"security.service_account_name\": \"<string>\",\n \"hpa.cpu.average_utilization_percent\": 123,\n \"hpa.memory.average_utilization_percent\": 123,\n \"security.automount_service_account_token\": true,\n \"security.read_only_root_filesystem\": true\n}"
response = http.request(request)
puts response.read_body{
"deployment.custom_domain_check_enabled": true,
"deployment.termination_grace_period_seconds": 123,
"deployment.affinity.node.required": {},
"deployment.antiaffinity.pod": "Preferred",
"deployment.topology_spread.zone": "Disabled",
"deployment.update_strategy.type": "RollingUpdate",
"deployment.update_strategy.rolling_update.max_unavailable_percent": 123,
"deployment.update_strategy.rolling_update.max_surge_percent": 123,
"network.ingress.proxy_body_size_mb": 123,
"network.ingress.force_ssl_redirect": true,
"network.ingress.enable_cors": true,
"network.ingress.cors_allow_origin": "<string>",
"network.ingress.cors_allow_methods": "<string>",
"network.ingress.cors_allow_headers": "<string>",
"network.ingress.proxy_buffer_size_kb": 123,
"network.ingress.keepalive_time_seconds": 123,
"network.ingress.keepalive_timeout_seconds": 123,
"network.ingress.send_timeout_seconds": 123,
"network.ingress.proxy_connect_timeout_seconds": 123,
"network.ingress.proxy_send_timeout_seconds": 123,
"network.ingress.proxy_read_timeout_seconds": 123,
"network.ingress.proxy_buffering": "<string>",
"network.ingress.proxy_request_buffering": "<string>",
"network.ingress.grpc_send_timeout_seconds": 123,
"network.ingress.grpc_read_timeout_seconds": 123,
"network.ingress.whitelist_source_range": "<string>",
"network.ingress.denylist_source_range": "<string>",
"network.ingress.extra_headers": "{\"X-Frame-Options\":\"DENY \",\"X-Content-Type-Options\":\"nosniff\"}",
"network.gateway_api.http_request_timeout_seconds": 1,
"network.gateway_api.http_connection_idle_timeout_seconds": 1,
"network.gateway_api.retry.num_retries": 1,
"network.gateway_api.retry.retry_on": "<string>",
"network.gateway_api.retry.http_status_codes": "<string>",
"network.gateway_api.retry.per_try_timeout_seconds": 2,
"network.ingress.basic_auth_env_var": "<string>",
"network.ingress.enable_sticky_session": true,
"security.service_account_name": "<string>",
"hpa.cpu.average_utilization_percent": 123,
"hpa.memory.average_utilization_percent": 123,
"security.automount_service_account_token": true,
"security.read_only_root_filesystem": true
}Authorizations
bearerAuthApiKeyAuth
JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Body
application/json
Define how you want pods affinity to behave:
Preferredallows, but does not require, pods of a given service are not co-located (or co-hosted) on a single nodeRequiredensures that the pods of a given service are not co-located (or co-hosted) on a single node (safer in term of availability but can be expensive depending on the number of replicas)Nonesets no anti-affinity, so pods of a given service can be packed on the same node
Available options:
Preferred, Required, None Define how you want pods to be spread across availability zones:
Disabledno topology spread constraints are appliedScheduleAnywaypods are spread across zones on a best-effort basis (soft constraint)DoNotSchedulepods must be evenly spread across zones with a maxSkew of 1 (hard constraint)
Available options:
Disabled, ScheduleAnyway, DoNotSchedule Response
Updated advanced settings
Define how you want pods affinity to behave:
Preferredallows, but does not require, pods of a given service are not co-located (or co-hosted) on a single nodeRequiredensures that the pods of a given service are not co-located (or co-hosted) on a single node (safer in term of availability but can be expensive depending on the number of replicas)Nonesets no anti-affinity, so pods of a given service can be packed on the same node
Available options:
Preferred, Required, None Define how you want pods to be spread across availability zones:
Disabledno topology spread constraints are appliedScheduleAnywaypods are spread across zones on a best-effort basis (soft constraint)DoNotSchedulepods must be evenly spread across zones with a maxSkew of 1 (hard constraint)
Available options:
Disabled, ScheduleAnyway, DoNotSchedule Was this page helpful?