Share via


RaiPolicyCollection.GetAllAsync(CancellationToken) Method

Definition

Gets the content filters associated with the Azure OpenAI account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies
  • Operation Id: RaiPolicies_List
  • Default Api Version: 2024-10-01
  • Resource: RaiPolicyResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.RaiPolicyResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.RaiPolicyResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.RaiPolicyResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RaiPolicyResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of RaiPolicyResource that may take multiple service requests to iterate over.

Applies to