MockableCognitiveServicesSubscriptionResource.GetRaiExternalSafetyProviderSchemaAsync 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.
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.