github_repos
Creates, updates, deletes, gets or lists a github_repos resource.
Overview
| Name | github_repos |
| Type | Resource |
| Id | azure.security.github_repos |
Fields
The following fields are returned by SELECT queries:
- get
- list
Provides GitHub repository details
| Name | Datatype | Description |
|---|---|---|
properties | object | GitHub Repository properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Provides list of GitHub repository resources
| Name | Datatype | Description |
|---|---|---|
properties | object | GitHub Repository properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | subscriptionId, resourceGroupName, securityConnectorName, ownerName, repoName | ||
list | select | subscriptionId, 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.
| Name | Datatype | Description |
|---|---|---|
ownerName | string | The GitHub owner name. |
repoName | string | The repository name. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
securityConnectorName | string | The security connector name. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT examples
- get
- list
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
;
Provides list of GitHub repository resources
SELECT
properties,
systemData
FROM azure.security.github_repos
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND securityConnectorName = '{{ securityConnectorName }}' -- required
AND ownerName = '{{ ownerName }}' -- required
;