Skip to main content

connectors

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

Overview

Nameconnectors
TypeResource
Idazure.security.connectors

Fields

NameDatatypeDescription
environment_datatextfield from the properties object
environment_nametextfield from the properties object
hierarchy_identifiertextfield from the properties object
hierarchy_identifier_trial_end_datetextfield from the properties object
offeringstextfield from the properties object
resourceGroupNametextfield from the properties object
securityConnectorNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, securityConnectorName, subscriptionIdRetrieves details of a specific security connector
listSELECTsubscriptionIdLists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the security connectors in the specified resource group. Use the 'nextLink' property in the response to get the next page of security connectors for the specified resource group.
create_or_updateINSERTresourceGroupName, securityConnectorName, subscriptionIdCreates or updates a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated.
deleteDELETEresourceGroupName, securityConnectorName, subscriptionIdDeletes a security connector.
updateUPDATEresourceGroupName, securityConnectorName, subscriptionIdUpdates a security connector

SELECT examples

Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription.

SELECT
environment_data,
environment_name,
hierarchy_identifier,
hierarchy_identifier_trial_end_date,
offerings,
resourceGroupName,
securityConnectorName,
subscriptionId,
system_data
FROM azure.security.vw_connectors
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.connectors (
resourceGroupName,
securityConnectorName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ securityConnectorName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a connectors resource.

/*+ update */
UPDATE azure.security.connectors
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND securityConnectorName = '{{ securityConnectorName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified connectors resource.

/*+ delete */
DELETE FROM azure.security.connectors
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND securityConnectorName = '{{ securityConnectorName }}'
AND subscriptionId = '{{ subscriptionId }}';