Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.spring_apps.gateways

Fields

The following fields are returned by SELECT queries:

Success. The response describes the corresponding Spring Cloud Gateway.

NameDatatypeDescription
propertiesobjectSpring Cloud Gateway properties payload
skuobjectSku of the Spring Cloud Gateway resource

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, gatewayNameGet the Spring Cloud Gateway and its properties.
listselectsubscriptionId, resourceGroupName, serviceNameHandles requests to list all resources in a Service.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, gatewayNameCreate the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
deletedeletesubscriptionId, resourceGroupName, serviceName, gatewayNameDisable the default Spring Cloud Gateway.
restartexecsubscriptionId, resourceGroupName, serviceName, gatewayNameRestart the Spring Cloud Gateway.
validate_domainexecsubscriptionId, resourceGroupName, serviceName, gatewayName, nameCheck the domains are valid as well as not in use.

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.
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 and its properties.

SELECT
properties,
sku
FROM azure.spring_apps.gateways
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND gatewayName = '{{ gatewayName }}' -- required
;

INSERT examples

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

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

DELETE examples

Disable the default Spring Cloud Gateway.

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

Lifecycle Methods

Restart the Spring Cloud Gateway.

EXEC azure.spring_apps.gateways.restart 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@serviceName='{{ serviceName }}' --required,
@gatewayName='{{ gatewayName }}' --required
;