Skip to main content

github_owners

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

Overview

Namegithub_owners
TypeResource
Idazure.security.github_owners

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.
gitHubInternalIdstringGets or sets internal GitHub id.
onboardingStatestringDetails about resource onboarding status across all connectors. OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. Onboarded - this resource has already been onboarded by the specified connector. NotOnboarded - this resource has not been onboarded to any connector. NotApplicable - the onboarding state is not applicable to the current endpoint. Known values are: "NotApplicable", "OnboardedByOtherConnector", "Onboarded", and "NotOnboarded". (NotApplicable, OnboardedByOtherConnector, Onboarded, NotOnboarded)
ownerUrlstringGets or sets GitHub Owner url.
provisioningStatestringThe provisioning state of the resource. Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure. Known values are: "Succeeded", "Failed", "Canceled", "Pending", "PendingDeletion", "DeletionSuccess", and "DeletionFailure". (Succeeded, Failed, Canceled, Pending, PendingDeletion, DeletionSuccess, DeletionFailure)
provisioningStatusMessagestringGets the resource status message.
provisioningStatusUpdateTimeUtcstring (date-time)Gets the time when resource was last checked.
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, security_connector_name, owner_name, subscription_idReturns a monitored GitHub owner. Returns a monitored GitHub owner.
listselectresource_group_name, security_connector_name, subscription_idReturns a list of GitHub owners onboarded to the connector. Returns a list of GitHub owners onboarded to the connector.
list_availableexecresource_group_name, security_connector_name, subscription_idReturns a list of all GitHub owners accessible by the user token consumed by the connector. Returns a list of all GitHub owners accessible by the user token consumed by the 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
owner_namestringRequired.
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

Returns a monitored GitHub owner. Returns a monitored GitHub owner.

SELECT
id,
name,
gitHubInternalId,
onboardingState,
ownerUrl,
provisioningState,
provisioningStatusMessage,
provisioningStatusUpdateTimeUtc,
systemData,
type
FROM azure.security.github_owners
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND security_connector_name = '{{ security_connector_name }}' -- required
AND owner_name = '{{ owner_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Returns a list of all GitHub owners accessible by the user token consumed by the connector. Returns a list of all GitHub owners accessible by the user token consumed by the connector.

EXEC azure.security.github_owners.list_available 
@resource_group_name='{{ resource_group_name }}' --required,
@security_connector_name='{{ security_connector_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;