Skip to main content

gateways

Creates, updates, deletes, gets or lists a gateways resource.

Overview​

Namegateways
TypeResource
Idovh.ssl_gateway.gateways

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
display_namestringCustom name of your SSL Gateway (wire: displayName)
service_namestringThe internal name of your SSL Gateway (wire: serviceName)
allowed_sourcearrayRestrict SSL Gateway access to these ip block. No restriction if null (wire: allowedSource)
hstsbooleanSet to true to enable Strict-Transport-Security HTTP header
https_redirectbooleanSet to true to enable https redirect (wire: httpsRedirect)
iamobjectIAM resource metadata
ipv_4string (ipv4)The IPv4 you need to put in the A field of your domain name (example: 192.0.2.0) (wire: ipv4)
ipv_6string (ipv6)The IPv6 you need to put in the AAAA field of your domain name (example: 2001:41d0:1:1994::1) (wire: ipv6)
metrics_tokenstringThe metrics token associated with your SSL Gateway (wire: metricsToken)
offerstringCurrent offer for your SSL Gateway (advanced, enterprise, free, internal)
reversestringCustom reverse for your SSL Gateway
server_httpsbooleanSet to true to contact backend servers over HTTPS (wire: serverHttps)
ssl_configurationstringModern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. (intermediate, internal, modern) (wire: sslConfiguration)
statestringCurrent state of your SSL Gateway (creating, deleted, deleting, http-only, internal, ok, suspended, upgrading)
zonesarrayZones of your SSL Gateway

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet an SSL Gateway (Beta version)
listselectiam_tags, x_pagination_modeList SSL Gateways (Beta version)
updateupdateservice_nameUpdate an SSL Gateway (Beta version)
change_contactexecserviceNameChange service contacts. Starts a procedure to change the admin, tech or billing contact of the service. (Beta version)
confirm_terminationexecserviceName, tokenConfirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given. (Beta version)
renew_certificateexecserviceNameRenew certificates (Beta version)
terminateexecserviceNameRequest service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call. (Beta version)

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
serviceNamestringThe internal name of your SSL Gateway
service_namestringThe internal name of your SSL Gateway (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get an SSL Gateway (Beta version)

SELECT
display_name,
service_name,
allowed_source,
hsts,
https_redirect,
iam,
ipv_4,
ipv_6,
metrics_token,
offer,
reverse,
server_https,
ssl_configuration,
state,
zones
FROM ovh.ssl_gateway.gateways
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update an SSL Gateway (Beta version)

UPDATE ovh.ssl_gateway.gateways
SET
allowed_source = '{{ allowed_source }}',
display_name = '{{ display_name }}',
hsts = {{ hsts }},
https_redirect = {{ https_redirect }},
reverse = '{{ reverse }}',
server_https = {{ server_https }},
ssl_configuration = '{{ ssl_configuration }}'
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service. (Beta version)

EXEC ovh.ssl_gateway.gateways.change_contact
@serviceName='{{ serviceName }}' --required
@@json=
'{
"contactAdmin": "{{ contactAdmin }}",
"contactBilling": "{{ contactBilling }}",
"contactTech": "{{ contactTech }}"
}'
;