ArtifactStoreCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/publishers/{publisherName}/artifactStores/{artifactStoreName}
  • Operation Id: ArtifactStores_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.HybridNetwork.ArtifactStoreResource>> GetIfExistsAsync (string artifactStoreName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.HybridNetwork.ArtifactStoreResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.HybridNetwork.ArtifactStoreResource>>
Public Overridable Function GetIfExistsAsync (artifactStoreName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ArtifactStoreResource))

Parameters

artifactStoreName
String

The name of the artifact store.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

artifactStoreName is null.

Applies to