Skip to main content

mesh_gateway

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

Overview

Namemesh_gateway
TypeResource
Idazure.service_fabric_dataplane.mesh_gateway

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
descriptionstring
destinationNetworkobjectDescribes a network reference in a service.
httparray
ipAddressstringIP address of the gateway. This is populated in the response and is ignored for incoming requests.
sourceNetworkobjectDescribes a network reference in a service.
statusstringStatus of the resource. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
statusDetailsstringGives additional information about the current status of the gateway.
tcparray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgateway_resource_name, endpointGets the Gateway resource with the given name. Gets the information about the Gateway resource with the given name. The information include the description and other properties of the Gateway.
listselectendpointLists all the gateway resources. Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway.
create_or_updateinsertgateway_resource_name, endpoint, name, propertiesCreates or updates a Gateway resource. Creates a Gateway resource with the specified name, description and properties. If Gateway resource with the same name exists, then it is updated with the specified description and properties. Use Gateway resource to provide public connectivity to application services.
create_or_updatereplacegateway_resource_name, endpoint, name, propertiesCreates or updates a Gateway resource. Creates a Gateway resource with the specified name, description and properties. If Gateway resource with the same name exists, then it is updated with the specified description and properties. Use Gateway resource to provide public connectivity to application services.
deletedeletegateway_resource_name, endpointDeletes the Gateway resource. Deletes the Gateway resource identified by the name.

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
endpointstringThe service endpoint host (no scheme). (default: )
gateway_resource_namestringThe identity of the gateway.

SELECT examples

Gets the Gateway resource with the given name. Gets the information about the Gateway resource with the given name. The information include the description and other properties of the Gateway.

SELECT
name,
description,
destinationNetwork,
http,
ipAddress,
sourceNetwork,
status,
statusDetails,
tcp
FROM azure.service_fabric_dataplane.mesh_gateway
WHERE gateway_resource_name = '{{ gateway_resource_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Creates or updates a Gateway resource. Creates a Gateway resource with the specified name, description and properties. If Gateway resource with the same name exists, then it is updated with the specified description and properties. Use Gateway resource to provide public connectivity to application services.

INSERT INTO azure.service_fabric_dataplane.mesh_gateway (
name,
properties,
gateway_resource_name,
endpoint
)
SELECT
'{{ name }}' /* required */,
'{{ properties }}' /* required */,
'{{ gateway_resource_name }}',
'{{ endpoint }}'
RETURNING
name,
properties
;

REPLACE examples

Creates or updates a Gateway resource. Creates a Gateway resource with the specified name, description and properties. If Gateway resource with the same name exists, then it is updated with the specified description and properties. Use Gateway resource to provide public connectivity to application services.

REPLACE azure.service_fabric_dataplane.mesh_gateway
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
gateway_resource_name = '{{ gateway_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND name = '{{ name }}' --required
AND properties = '{{ properties }}' --required
RETURNING
name,
properties;

DELETE examples

Deletes the Gateway resource. Deletes the Gateway resource identified by the name.

DELETE FROM azure.service_fabric_dataplane.mesh_gateway
WHERE gateway_resource_name = '{{ gateway_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;