Skip to main content

github_repos

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

Overview

Namegithub_repos
TypeResource
Idazure.security.github_repos

Fields

The following fields are returned by SELECT queries:

Provides GitHub repository details

NameDatatypeDescription
propertiesobjectGitHub Repository properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, securityConnectorName, ownerName, repoName
listselectsubscriptionId, resourceGroupName, securityConnectorName, ownerName

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
ownerNamestringThe GitHub owner name.
repoNamestringThe repository name.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
securityConnectorNamestringThe security connector name.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Provides GitHub repository details

SELECT
properties,
systemData
FROM azure.security.github_repos
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND securityConnectorName = '{{ securityConnectorName }}' -- required
AND ownerName = '{{ ownerName }}' -- required
AND repoName = '{{ repoName }}' -- required
;