MockableCognitiveServicesSubscriptionResource.GetRaiExternalSafetyProviderSchemaAsync Method

Definition

Gets the specified external safety provider associated with the Subscription

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/raiExternalSafetyProviders/{safetyProviderName}.
  • Operation Id. : RaiExternalSafetyProviderSchemas_Get.
  • Default Api Version. : 2026-01-15-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiExternalSafetyProviderSchemaResource>> GetRaiExternalSafetyProviderSchemaAsync(string safetyProviderName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRaiExternalSafetyProviderSchemaAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiExternalSafetyProviderSchemaResource>>
override this.GetRaiExternalSafetyProviderSchemaAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiExternalSafetyProviderSchemaResource>>
Public Overridable Function GetRaiExternalSafetyProviderSchemaAsync (safetyProviderName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RaiExternalSafetyProviderSchemaResource))

Parameters

safetyProviderName
String

The name of the Rai External Safety Provider associated with the Cognitive Services Account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

safetyProviderName is null.

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

Applies to