Skip to main content

bastion_shareable_links

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

Overview

Namebastion_shareable_links
TypeResource
Idazure.network.bastion_shareable_links

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bslstringThe unique Bastion Shareable Link to the virtual machine.
createdAtstringThe time when the link was created.
messagestringOptional field indicating the warning or error message related to the vm in case of partial failure.
vmobjectReference of the virtual machine resource. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_bastion_shareable_linkselectresource_group_name, bastion_host_name, subscription_idReturn the Bastion Shareable Links for all the VMs specified in the request.
delete_bastion_shareable_linkdeleteresource_group_name, bastion_host_name, subscription_idDeletes the Bastion Shareable Links for all the VMs specified in the request.
put_bastion_shareable_linkexecresource_group_name, bastion_host_name, subscription_idCreates a Bastion Shareable Links for all the VMs specified in the request.
delete_bastion_shareable_link_by_tokenexecresource_group_name, bastion_host_name, subscription_idDeletes the Bastion Shareable Links for all the tokens specified in the request.

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

SELECT examples

Return the Bastion Shareable Links for all the VMs specified in the request.

SELECT
bsl,
createdAt,
message,
vm
FROM azure.network.bastion_shareable_links
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND bastion_host_name = '{{ bastion_host_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Deletes the Bastion Shareable Links for all the VMs specified in the request.

DELETE FROM azure.network.bastion_shareable_links
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND bastion_host_name = '{{ bastion_host_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Creates a Bastion Shareable Links for all the VMs specified in the request.

EXEC azure.network.bastion_shareable_links.put_bastion_shareable_link 
@resource_group_name='{{ resource_group_name }}' --required,
@bastion_host_name='{{ bastion_host_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"vms": "{{ vms }}"
}'
;