Share via


SecurityDevOpsExtensions.GetGitHubConnectors Method

Definition

Overloads

GetGitHubConnectors(ResourceGroupResource)

Gets a collection of GitHubConnectorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetGitHubConnectors() instead.

GetGitHubConnectors(SubscriptionResource, CancellationToken)

Returns a list of monitored GitHub Connectors.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.SecurityDevOps/gitHubConnectors
  • Operation Id: GitHubConnector_ListBySubscription

GetGitHubConnectors(ResourceGroupResource)

Source:
SecurityDevOpsExtensions.cs

Gets a collection of GitHubConnectorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetGitHubConnectors() instead.

public static Azure.ResourceManager.SecurityDevOps.GitHubConnectorCollection GetGitHubConnectors (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetGitHubConnectors : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.SecurityDevOps.GitHubConnectorCollection
<Extension()>
Public Function GetGitHubConnectors (resourceGroupResource As ResourceGroupResource) As GitHubConnectorCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of GitHubConnectorResources and their operations over a GitHubConnectorResource.

Exceptions

resourceGroupResource is null.

Applies to

GetGitHubConnectors(SubscriptionResource, CancellationToken)

Source:
SecurityDevOpsExtensions.cs

Returns a list of monitored GitHub Connectors.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.SecurityDevOps/gitHubConnectors
  • Operation Id: GitHubConnector_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.SecurityDevOps.GitHubConnectorResource> GetGitHubConnectors (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetGitHubConnectors : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityDevOps.GitHubConnectorResource>
<Extension()>
Public Function GetGitHubConnectors (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of GitHubConnectorResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of GitHubConnectorResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to