DependencyMapCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}.
  • Operation Id. : Maps_Get.
  • Default Api Version. : 2025-07-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.DependencyMap.DependencyMapResource> GetIfExists(string mapName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DependencyMap.DependencyMapResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DependencyMap.DependencyMapResource>
Public Overridable Function GetIfExists (mapName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of DependencyMapResource)

Parameters

mapName
String

Maps resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

mapName is null.

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

Applies to