AppPlatformStorageCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}
  • Operation Id: Storages_Get
  • Default Api Version: 2022-12-01
  • Resource: AppPlatformStorageResource
public virtual Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformStorageResource> GetIfExists (string storageName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformStorageResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformStorageResource>
Public Overridable Function GetIfExists (storageName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of AppPlatformStorageResource)

Parameters

storageName
String

The name of the storage resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

storageName is null.

Applies to