ApiCenterWorkspaceResource.HeadApiSource(String, CancellationToken) Method

Definition

Checks if specified API source exists.

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

Parameters

apiSourceName
String

The name of the API.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

apiSourceName is null.

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

Applies to