gateway_route_configs
Creates, updates, deletes, gets or lists a gateway_route_configs
resource.
Overview
Name | gateway_route_configs |
Type | Resource |
Id | azure.spring_apps.gateway_route_configs |
Fields
- vw_gateway_route_configs
- gateway_route_configs
Name | Datatype | Description |
---|---|---|
app_resource_id | text | field from the properties object |
filters | text | field from the properties object |
gatewayName | text | field from the properties object |
open_api | text | field from the properties object |
predicates | text | field from the properties object |
protocol | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
routeConfigName | text | field from the properties object |
routes | text | field from the properties object |
serviceName | text | field from the properties object |
sso_enabled | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | API route config of the Spring Cloud Gateway |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | gatewayName, resourceGroupName, routeConfigName, serviceName, subscriptionId | Get the Spring Cloud Gateway route configs. |
list | SELECT | gatewayName, resourceGroupName, serviceName, subscriptionId | Handle requests to list all Spring Cloud Gateway route configs. |
create_or_update | INSERT | gatewayName, resourceGroupName, routeConfigName, serviceName, subscriptionId | Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. |
delete | DELETE | gatewayName, resourceGroupName, routeConfigName, serviceName, subscriptionId | Delete the Spring Cloud Gateway route config. |
SELECT
examples
Handle requests to list all Spring Cloud Gateway route configs.
- vw_gateway_route_configs
- 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 }}';
SELECT
properties
FROM azure.spring_apps.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.gateway_route_configs (
gatewayName,
resourceGroupName,
routeConfigName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ gatewayName }}',
'{{ resourceGroupName }}',
'{{ routeConfigName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: string
- name: appResourceId
value: string
- name: openApi
value:
- name: uri
value: string
- name: protocol
value: string
- name: routes
value:
- - name: title
value: string
- name: description
value: string
- name: uri
value: string
- name: ssoEnabled
value: boolean
- name: tokenRelay
value: boolean
- name: predicates
value:
- string
- name: filters
value:
- string
- name: order
value: integer
- name: tags
value:
- string
- name: ssoEnabled
value: boolean
- name: predicates
value:
- string
- name: filters
value:
- string
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 }}';