Skip to main content

serial_ports

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

Overview

Nameserial_ports
TypeResource
Idazure.serial_console.serial_ports

Fields

NameDatatypeDescription
connection_statetextfield from the properties object
parentResourcetextfield from the properties object
parentResourceTypetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceProviderNamespacetextfield from the properties object
serialPorttextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTparentResource, parentResourceType, resourceGroupName, resourceProviderNamespace, serialPort, subscriptionIdGets the configured settings for a serial port
listSELECTparentResource, parentResourceType, resourceGroupName, resourceProviderNamespace, subscriptionIdLists all of the configured serial ports for a parent resource
list_by_subscriptionsSELECTsubscriptionIdHandles requests to list all SerialPort resources in a subscription.
createINSERTparentResource, parentResourceType, resourceGroupName, resourceProviderNamespace, serialPort, subscriptionIdCreates or updates a serial port
connectEXECparentResource, parentResourceType, resourceGroupName, resourceProviderNamespace, serialPort, subscriptionIdConnect to serial port of the target resource

SELECT examples

Handles requests to list all SerialPort resources in a subscription.

SELECT
connection_state,
parentResource,
parentResourceType,
resourceGroupName,
resourceProviderNamespace,
serialPort,
state,
subscriptionId
FROM azure.serial_console.vw_serial_ports
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.serial_console.serial_ports (
parentResource,
parentResourceType,
resourceGroupName,
resourceProviderNamespace,
serialPort,
subscriptionId,
properties
)
SELECT
'{{ parentResource }}',
'{{ parentResourceType }}',
'{{ resourceGroupName }}',
'{{ resourceProviderNamespace }}',
'{{ serialPort }}',
'{{ subscriptionId }}',
'{{ properties }}'
;