Share via


AzureDevOpsOrgCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs/{azureDevOpsOrgName}
  • Operation Id: AzureDevOpsOrg_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityDevOps.AzureDevOpsOrgResource>> GetIfExistsAsync (string azureDevOpsOrgName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityDevOps.AzureDevOpsOrgResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityDevOps.AzureDevOpsOrgResource>>
Public Overridable Function GetIfExistsAsync (azureDevOpsOrgName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of AzureDevOpsOrgResource))

Parameters

azureDevOpsOrgName
String

Name of the AzureDevOps Org.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

azureDevOpsOrgName is an empty string, and was expected to be non-empty.

azureDevOpsOrgName is null.

Applies to