Language

NeuroShieldProtectedResourceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkSecurity/neuroShields/{neuroShieldName}/protectedResources/{protectedResourceName}.
  • Operation Id. : NeuroShieldProtectedResources_Get.
  • Default Api Version. : 2026-10-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.NetworkSecurity.NeuroShieldProtectedResource> GetIfExists(string protectedResourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetworkSecurity.NeuroShieldProtectedResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetworkSecurity.NeuroShieldProtectedResource>
Public Overridable Function GetIfExists (protectedResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NeuroShieldProtectedResource)

Parameters

protectedResourceName
String

The name of the protected resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

protectedResourceName is null.

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

Applies to