Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.hybrid_compute.gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
allowedFeaturesarraySpecifies the list of features that are enabled for this Gateway.
gatewayEndpointstringThe endpoint fqdn for the Gateway.
gatewayIdstringA unique, immutable, identifier for the Gateway.
gatewayTypestringThe type of the Gateway resource. "Public" (Public)
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Accepted", "Canceled", and "Deleted". (Creating, Updating, Deleting, Succeeded, Failed, Accepted, Canceled, Deleted)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, gateway_name, subscription_idRetrieves information about the view of a gateway.
list_by_resource_groupselectresource_group_name, subscription_idThe operation to get all gateways of a non-Azure machine.
list_by_subscriptionselectsubscription_idThe operation to get all gateways of a non-Azure machine.
create_or_updateinsertresource_group_name, gateway_name, subscription_id, locationThe operation to create or update a gateway.
updateupdateresource_group_name, gateway_name, subscription_idThe operation to update a gateway.
create_or_updatereplaceresource_group_name, gateway_name, subscription_id, locationThe operation to create or update a gateway.
deletedeleteresource_group_name, gateway_name, subscription_idThe operation to delete a gateway.

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 the Gateway. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieves information about the view of a gateway.

SELECT
id,
name,
allowedFeatures,
gatewayEndpoint,
gatewayId,
gatewayType,
location,
provisioningState,
systemData,
tags,
type
FROM azure.hybrid_compute.gateways
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

The operation to create or update a gateway.

INSERT INTO azure.hybrid_compute.gateways (
tags,
location,
properties,
resource_group_name,
gateway_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ gateway_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

The operation to update a gateway.

UPDATE azure.hybrid_compute.gateways
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

The operation to create or update a gateway.

REPLACE azure.hybrid_compute.gateways
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

The operation to delete a gateway.

DELETE FROM azure.hybrid_compute.gateways
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;