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

NameDatatypeDescription
app_resource_idtextfield from the properties object
filterstextfield from the properties object
gatewayNametextfield from the properties object
open_apitextfield from the properties object
predicatestextfield from the properties object
protocoltextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routeConfigNametextfield from the properties object
routestextfield from the properties object
serviceNametextfield from the properties object
sso_enabledtextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayName, resourceGroupName, routeConfigName, serviceName, subscriptionIdGet the Spring Cloud Gateway route configs.
listSELECTgatewayName, resourceGroupName, serviceName, subscriptionIdHandle requests to list all Spring Cloud Gateway route configs.
create_or_updateINSERTgatewayName, resourceGroupName, routeConfigName, serviceName, subscriptionIdCreate the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
deleteDELETEgatewayName, resourceGroupName, routeConfigName, serviceName, subscriptionIdDelete the Spring Cloud Gateway route config.

SELECT examples

Handle requests to list all Spring Cloud Gateway route configs.

SELECT
app_resource_id,
filters,
gatewayName,
open_api,
predicates,
protocol,
provisioning_state,
resourceGroupName,
routeConfigName,
routes,
serviceName,
sso_enabled,
subscriptionId
FROM azure.spring_apps.vw_gateway_route_configs
WHERE gatewayName = '{{ gatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified gateway_route_configs resource.

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