Skip to main content

gateway_route_configs

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

Overview

Namegateway_route_configs
TypeResource
Idazure.spring_apps.gateway_route_configs

Fields

The following fields are returned by SELECT queries:

Success. The response describes the corresponding Spring Cloud Gateway route configs.

NameDatatypeDescription
propertiesobjectAPI route config of the Spring Cloud Gateway

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, gatewayName, routeConfigNameGet the Spring Cloud Gateway route configs.
listselectsubscriptionId, resourceGroupName, serviceName, gatewayNameHandle requests to list all Spring Cloud Gateway route configs.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, gatewayName, routeConfigNameCreate the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
deletedeletesubscriptionId, resourceGroupName, serviceName, gatewayName, routeConfigNameDelete the Spring Cloud Gateway route config.

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
gatewayNamestringThe name of Spring Cloud Gateway.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
routeConfigNamestringThe name of the Spring Cloud Gateway route config.
serviceNamestringThe name of the Service resource.
subscriptionIdstringGets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get the Spring Cloud Gateway route configs.

SELECT
properties
FROM azure.spring_apps.gateway_route_configs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND gatewayName = '{{ gatewayName }}' -- required
AND routeConfigName = '{{ routeConfigName }}' -- required
;

INSERT examples

Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.

INSERT INTO azure.spring_apps.gateway_route_configs (
data__properties,
subscriptionId,
resourceGroupName,
serviceName,
gatewayName,
routeConfigName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ gatewayName }}',
'{{ routeConfigName }}'
RETURNING
properties
;

DELETE examples

Delete the Spring Cloud Gateway route config.

DELETE FROM azure.spring_apps.gateway_route_configs
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND gatewayName = '{{ gatewayName }}' --required
AND routeConfigName = '{{ routeConfigName }}' --required
;