Skip to main content

security_connectors

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

Overview

Namesecurity_connectors
TypeResource
Idazure.security.security_connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
environmentDataobjectThe security connector environment data.
environmentNamestringThe multi cloud resource's cloud name. Known values are: "Azure", "AWS", "GCP", "Github", "AzureDevOps", "GitLab", "DockerHub", and "JFrog". (Azure, AWS, GCP, Github, AzureDevOps, GitLab, DockerHub, JFrog)
etagstringEntity tag is used for comparing two or more entities from the same requested resource.
hierarchyIdentifierstringThe multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector).
hierarchyIdentifierTrialEndDatestring (date-time)The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings.
kindstringKind of the resource.
locationstringThe geo-location where the resource lives.
offeringsarrayA collection of offerings for the security connector.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, security_connector_name, subscription_idRetrieves details of a specific security connector.
list_by_resource_groupselectresource_group_name, subscription_idLists 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.
listselectsubscription_idLists 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.
create_or_updateinsertresource_group_name, security_connector_name, subscription_idCreates 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.
updateupdateresource_group_name, security_connector_name, subscription_idUpdates a security connector.
create_or_updatereplaceresource_group_name, security_connector_name, subscription_idCreates 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.
deletedeleteresource_group_name, security_connector_name, subscription_idDeletes a security connector.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
security_connector_namestringThe security connector name. Required.
subscription_idstring

SELECT examples

Retrieves details of a specific security connector.

SELECT
id,
name,
environmentData,
environmentName,
etag,
hierarchyIdentifier,
hierarchyIdentifierTrialEndDate,
kind,
location,
offerings,
systemData,
tags,
type
FROM azure.security.security_connectors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND security_connector_name = '{{ security_connector_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates 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.

INSERT INTO azure.security.security_connectors (
properties,
tags,
location,
kind,
etag,
resource_group_name,
security_connector_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ kind }}',
'{{ etag }}',
'{{ resource_group_name }}',
'{{ security_connector_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a security connector.

UPDATE azure.security.security_connectors
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
kind = '{{ kind }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND security_connector_name = '{{ security_connector_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates 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.

REPLACE azure.security.security_connectors
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
kind = '{{ kind }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND security_connector_name = '{{ security_connector_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a security connector.

DELETE FROM azure.security.security_connectors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND security_connector_name = '{{ security_connector_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;