ServiceGroupCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /providers/Microsoft.Management/serviceGroups/{serviceGroupName}.
  • Operation Id. : ServiceGroups_Get.
  • Default Api Version. : 2024-02-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.ServiceGroups.ServiceGroupResource> GetIfExists(string serviceGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
Public Overridable Function GetIfExists (serviceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ServiceGroupResource)

Parameters

serviceGroupName
String

ServiceGroup Name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

serviceGroupName is null.

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

Applies to