Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.spring_apps.gateways

Fields

NameDatatypeDescription
addon_configstextfield from the properties object
api_metadata_propertiestextfield from the properties object
apm_typestextfield from the properties object
apmstextfield from the properties object
client_authtextfield from the properties object
cors_propertiestextfield from the properties object
environment_variablestextfield from the properties object
gatewayNametextfield from the properties object
https_onlytextfield from the properties object
instancestextfield from the properties object
operator_propertiestextfield from the properties object
provisioning_statetextfield from the properties object
publictextfield from the properties object
resourceGroupNametextfield from the properties object
resource_requeststextfield from the properties object
response_cache_propertiestextfield from the properties object
serviceNametextfield from the properties object
skutextSku of Azure Spring Apps
sso_propertiestextfield from the properties object
subscriptionIdtextfield from the properties object
urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayName, resourceGroupName, serviceName, subscriptionIdGet the Spring Cloud Gateway and its properties.
listSELECTresourceGroupName, serviceName, subscriptionIdHandles requests to list all resources in a Service.
create_or_updateINSERTgatewayName, resourceGroupName, serviceName, subscriptionIdCreate the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
deleteDELETEgatewayName, resourceGroupName, serviceName, subscriptionIdDisable the default Spring Cloud Gateway.
restartEXECgatewayName, resourceGroupName, serviceName, subscriptionIdRestart the Spring Cloud Gateway.
validate_domainEXECgatewayName, resourceGroupName, serviceName, subscriptionId, data__nameCheck the domains are valid as well as not in use.

SELECT examples

Handles requests to list all resources in a Service.

SELECT
addon_configs,
api_metadata_properties,
apm_types,
apms,
client_auth,
cors_properties,
environment_variables,
gatewayName,
https_only,
instances,
operator_properties,
provisioning_state,
public,
resourceGroupName,
resource_requests,
response_cache_properties,
serviceName,
sku,
sso_properties,
subscriptionId,
url
FROM azure.spring_apps.vw_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new gateways resource.

/*+ create */
INSERT INTO azure.spring_apps.gateways (
gatewayName,
resourceGroupName,
serviceName,
subscriptionId,
properties,
sku
)
SELECT
'{{ gatewayName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ sku }}'
;

DELETE example

Deletes the specified gateways resource.

/*+ delete */
DELETE FROM azure.spring_apps.gateways
WHERE gatewayName = '{{ gatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';