Skip to main content

bastion_hosts

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

Overview

Namebastion_hosts
TypeResource
Idazure.network.bastion_hosts

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
bastionHostNametextfield from the properties object
disable_copy_pastetextfield from the properties object
dns_nametextfield from the properties object
enable_file_copytextfield from the properties object
enable_ip_connecttextfield from the properties object
enable_kerberostextfield from the properties object
enable_session_recordingtextfield from the properties object
enable_shareable_linktextfield from the properties object
enable_tunnelingtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
ip_configurationstextfield from the properties object
locationtextResource location.
network_aclstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
scale_unitstextfield from the properties object
skutextThe sku of this Bastion Host.
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtual_networktextfield from the properties object
zonestextA list of availability zones denoting where the resource needs to come from.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbastionHostName, resourceGroupName, subscriptionIdGets the specified Bastion Host.
listSELECTsubscriptionIdLists all Bastion Hosts in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all Bastion Hosts in a resource group.
create_or_updateINSERTbastionHostName, resourceGroupName, subscriptionIdCreates or updates the specified Bastion Host.
deleteDELETEbastionHostName, resourceGroupName, subscriptionIdDeletes the specified Bastion Host.
update_tagsEXECbastionHostName, resourceGroupName, subscriptionIdUpdates Tags for BastionHost resource

SELECT examples

Lists all Bastion Hosts in a subscription.

SELECT
id,
name,
bastionHostName,
disable_copy_paste,
dns_name,
enable_file_copy,
enable_ip_connect,
enable_kerberos,
enable_session_recording,
enable_shareable_link,
enable_tunneling,
etag,
ip_configurations,
location,
network_acls,
provisioning_state,
resourceGroupName,
scale_units,
sku,
subscriptionId,
tags,
type,
virtual_network,
zones
FROM azure.network.vw_bastion_hosts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new bastion_hosts resource.

/*+ create */
INSERT INTO azure.network.bastion_hosts (
bastionHostName,
resourceGroupName,
subscriptionId,
properties,
zones,
sku,
id,
location,
tags
)
SELECT
'{{ bastionHostName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ zones }}',
'{{ sku }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified bastion_hosts resource.

/*+ delete */
DELETE FROM azure.network.bastion_hosts
WHERE bastionHostName = '{{ bastionHostName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';