Skip to main content

gateway_route_configs

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

Overview

Namegateway_route_configs
TypeResource
Idazure_extras.app_platform.gateway_route_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringThe name of the resource.
appResourceIdstringThe resource Id of the Azure Spring Apps app, required unless route defines uri.
filtersarrayTo modify the request before sending it to the target endpoint, or the received response in app level.
openApiobjectOpenAPI properties of Spring Cloud Gateway route config.
predicatesarrayA number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
protocolstringProtocol of routed Azure Spring Apps applications. Known values are: "HTTP" and "HTTPS".
provisioningStatestringState of the Spring Cloud Gateway route config. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting".
routesarrayArray of API routes, each route contains properties such as title\ , uri\ , ssoEnabled\ , predicates\ , filters.
ssoEnabledbooleanEnable Single Sign-On in app level.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, gateway_name, route_config_name, subscription_idGet the Spring Cloud Gateway route configs.
listselectresource_group_name, service_name, gateway_name, subscription_idHandle requests to list all Spring Cloud Gateway route configs.
create_or_updateinsertresource_group_name, service_name, gateway_name, route_config_name, subscription_idCreate the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
create_or_updatereplaceresource_group_name, service_name, gateway_name, route_config_name, subscription_idCreate the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
deletedeleteresource_group_name, service_name, gateway_name, route_config_name, subscription_idDelete 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
gateway_namestringThe name of Spring Cloud Gateway. Required.
resource_group_namestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.
route_config_namestringThe name of the Spring Cloud Gateway route config. Required.
service_namestringThe name of the Service resource. Required.
subscription_idstring

SELECT examples

Get the Spring Cloud Gateway route configs.

SELECT
id,
name,
appResourceId,
filters,
openApi,
predicates,
protocol,
provisioningState,
routes,
ssoEnabled,
systemData,
type
FROM azure_extras.app_platform.gateway_route_configs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND route_config_name = '{{ route_config_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure_extras.app_platform.gateway_route_configs (
properties,
resource_group_name,
service_name,
gateway_name,
route_config_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ gateway_name }}',
'{{ route_config_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

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

REPLACE azure_extras.app_platform.gateway_route_configs
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND route_config_name = '{{ route_config_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete the Spring Cloud Gateway route config.

DELETE FROM azure_extras.app_platform.gateway_route_configs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND route_config_name = '{{ route_config_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;