ApiCenterApiVersionResource.Head(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if specified API definition exists.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}.
- Operation Id. : ApiDefinitions_Head.
- Default Api Version. : 2024-06-01-preview.
- Resource. : ApiCenterApiVersionResource.
public virtual Azure.Response Head(string definitionName, System.Threading.CancellationToken cancellationToken = default);
abstract member Head : string * System.Threading.CancellationToken -> Azure.Response
override this.Head : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function Head (definitionName As String, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- definitionName
- String
The name of the API definition.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
definitionName is null.
definitionName is an empty string, and was expected to be non-empty.