Skip to main content

source_control

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

Overview

Namesource_control
TypeResource
Idazure.security_insight.source_control

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
branchesarrayArray of branches.
fullNamestringThe name of the repository.
installationIdintegerThe installation id of the repository.
urlstringThe url to access the repository.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_repositoriesselectresource_group_name, workspace_name, subscription_idGets a list of repositories metadata.

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.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets a list of repositories metadata.

SELECT
branches,
fullName,
installationId,
url
FROM azure.security_insight.source_control
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;