Skip to main content

connection_types

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

Overview

Nameconnection_types
TypeResource
Idazure.automation.connection_types

Fields

NameDatatypeDescription
idtextGets the id of the resource.
nametextGets the name of the connection type.
descriptiontextfield from the properties object
automationAccountNametextfield from the properties object
connectionTypeNametextfield from the properties object
creation_timetextfield from the properties object
field_definitionstextfield from the properties object
is_globaltextfield from the properties object
last_modified_timetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, connectionTypeName, resourceGroupName, subscriptionIdRetrieve the connection type identified by connection type name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of connection types.
create_or_updateINSERTautomationAccountName, connectionTypeName, resourceGroupName, subscriptionId, data__name, data__propertiesCreate a connection type.
deleteDELETEautomationAccountName, connectionTypeName, resourceGroupName, subscriptionIdDelete the connection type.

SELECT examples

Retrieve a list of connection types.

SELECT
id,
name,
description,
automationAccountName,
connectionTypeName,
creation_time,
field_definitions,
is_global,
last_modified_time,
resourceGroupName,
subscriptionId,
type
FROM azure.automation.vw_connection_types
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.connection_types (
automationAccountName,
connectionTypeName,
resourceGroupName,
subscriptionId,
data__name,
data__properties,
name,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ connectionTypeName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__name }}',
'{{ data__properties }}',
'{{ name }}',
'{{ properties }}'
;

DELETE example

Deletes the specified connection_types resource.

/*+ delete */
DELETE FROM azure.automation.connection_types
WHERE automationAccountName = '{{ automationAccountName }}'
AND connectionTypeName = '{{ connectionTypeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';