Condividi tramite


ManagedOpCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.ManagedOps/managedOps/{managedOpsName}.
  • Operation Id. : ManagedOps_Get.
  • Default Api Version. : 2025-07-28-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedOps.ManagedOpResource> GetIfExists(string managedOpsName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedOps.ManagedOpResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedOps.ManagedOpResource>
Public Overridable Function GetIfExists (managedOpsName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedOpResource)

Parameters

managedOpsName
String

Name of the resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managedOpsName is null.

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

Applies to