ApiCenterServiceResource.HeadWorkspaceAsync(String, CancellationToken) Method

Definition

Checks if specified workspace exists.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}.
  • Operation Id. : Workspaces_Head.
  • Default Api Version. : 2024-06-01-preview.
  • Resource. : ApiCenterServiceResource.
public virtual System.Threading.Tasks.Task<Azure.Response> HeadWorkspaceAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member HeadWorkspaceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.HeadWorkspaceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function HeadWorkspaceAsync (workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

workspaceName
String

The name of the workspace.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

workspaceName is null.

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

Applies to