Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure_extras.app_platform.gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringThe name of the resource.
apiMetadataPropertiesobjectAPI metadata property for Spring Cloud Gateway.
apmsarrayCollection of ApmReferences in service level.
clientAuthobjectClient-Certification Authentication.
corsPropertiesobjectCross-Origin Resource Sharing property.
environmentVariablesobjectEnvironment variables of Spring Cloud Gateway.
httpsOnlybooleanIndicate if only https is allowed.
instancesarrayCollection of instances belong to Spring Cloud Gateway.
operatorPropertiesobjectProperties of the Spring Cloud Gateway Operator.
provisioningStatestringState of the Spring Cloud Gateway. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting".
publicbooleanIndicates whether the Spring Cloud Gateway exposes endpoint.
resourceRequestsobjectThe requested resource quantity for required CPU and Memory.
skuobjectSku of the Spring Cloud Gateway resource.
ssoPropertiesobjectSingle sign-on related configuration.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.
urlstringURL of the Spring Cloud Gateway, exposed when 'public' is true.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, gateway_name, subscription_idGet the Spring Cloud Gateway and its properties.
listselectresource_group_name, service_name, subscription_idHandles requests to list all resources in a Service.
create_or_updateinsertresource_group_name, service_name, gateway_name, subscription_idCreate the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
create_or_updatereplaceresource_group_name, service_name, gateway_name, subscription_idCreate the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
deletedeleteresource_group_name, service_name, gateway_name, subscription_idDisable the default Spring Cloud Gateway.
list_env_secretsexecresource_group_name, service_name, gateway_name, subscription_idList sensitive environment variables of Spring Cloud Gateway.
restartexecresource_group_name, service_name, gateway_name, subscription_idRestart the Spring Cloud Gateway.
validate_domainexecresource_group_name, service_name, gateway_name, subscription_id, 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
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.
service_namestringThe name of the Service resource. Required.
subscription_idstring

SELECT examples

Get the Spring Cloud Gateway and its properties.

SELECT
id,
name,
apiMetadataProperties,
apms,
clientAuth,
corsProperties,
environmentVariables,
httpsOnly,
instances,
operatorProperties,
provisioningState,
public,
resourceRequests,
sku,
ssoProperties,
systemData,
type,
url
FROM azure_extras.app_platform.gateways
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

REPLACE examples

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

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

DELETE examples

Disable the default Spring Cloud Gateway.

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

Lifecycle Methods

List sensitive environment variables of Spring Cloud Gateway.

EXEC azure_extras.app_platform.gateways.list_env_secrets 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@gateway_name='{{ gateway_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;