Skip to main content

github_owner

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

Overview

Namegithub_owner
TypeResource
Idazure.security_devops.github_owner

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.
ownerUrlstringGets or sets gitHub owner url.
provisioningStatestringKnown values are: "Succeeded", "Failed", and "Canceled".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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, git_hub_connector_name, git_hub_owner_name, subscription_idReturns a monitored GitHub repository. Returns a monitored GitHub repository.
listselectresource_group_name, git_hub_connector_name, subscription_idReturns a list of monitored GitHub owners. Returns a list of monitored GitHub owners.
create_or_updateinsertresource_group_name, git_hub_connector_name, git_hub_owner_name, subscription_idCreate or update a monitored GitHub owner. Create or update a monitored GitHub owner.
updateupdateresource_group_name, git_hub_connector_name, git_hub_owner_name, subscription_idUpdate a monitored GitHub repository. Update a monitored GitHub repository.
create_or_updatereplaceresource_group_name, git_hub_connector_name, git_hub_owner_name, subscription_idCreate or update a monitored GitHub owner. Create or update a monitored GitHub owner.

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
git_hub_connector_namestringName of the GitHub Connector. Required.
git_hub_owner_namestringName of the GitHub Owner. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Returns a monitored GitHub repository. Returns a monitored GitHub repository.

SELECT
id,
name,
ownerUrl,
provisioningState,
systemData,
type
FROM azure.security_devops.github_owner
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND git_hub_connector_name = '{{ git_hub_connector_name }}' -- required
AND git_hub_owner_name = '{{ git_hub_owner_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a monitored GitHub owner. Create or update a monitored GitHub owner.

INSERT INTO azure.security_devops.github_owner (
properties,
resource_group_name,
git_hub_connector_name,
git_hub_owner_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ git_hub_connector_name }}',
'{{ git_hub_owner_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update a monitored GitHub repository. Update a monitored GitHub repository.

UPDATE azure.security_devops.github_owner
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND git_hub_connector_name = '{{ git_hub_connector_name }}' --required
AND git_hub_owner_name = '{{ git_hub_owner_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create or update a monitored GitHub owner. Create or update a monitored GitHub owner.

REPLACE azure.security_devops.github_owner
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND git_hub_connector_name = '{{ git_hub_connector_name }}' --required
AND git_hub_owner_name = '{{ git_hub_owner_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;