Freigeben über


NGroupCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
  • Operation Id: NGroups_Get
  • Default Api Version: 2025-09-01
  • Resource: NGroupResource
public virtual Azure.NullableResponse<Azure.ResourceManager.ContainerInstance.NGroupResource> GetIfExists(string ngroupsName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerInstance.NGroupResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerInstance.NGroupResource>
Public Overridable Function GetIfExists (ngroupsName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NGroupResource)

Parameters

ngroupsName
String

The NGroups name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

ngroupsName is null.

Applies to