Share via


ArtifactStoreCollection.GetIfExists(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 Azure.NullableResponse<Azure.ResourceManager.HybridNetwork.ArtifactStoreResource> GetIfExists (string artifactStoreName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.HybridNetwork.ArtifactStoreResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.HybridNetwork.ArtifactStoreResource>
Public Overridable Function GetIfExists (artifactStoreName As String, Optional cancellationToken As CancellationToken = Nothing) As 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