Share via


JobRouterAdministrationClient.GetDistributionPoliciesAsync Method

Definition

Overloads

GetDistributionPoliciesAsync(RequestContext)

[Protocol Method] Retrieves existing distribution policies.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
  • Please try the simpler Azure.Communication.JobRouter.JobRouterAdministrationClient.GetDistributionPoliciesAsync(System.Nullable{System.Int32},System.Threading.CancellationToken) convenience overload with strongly typed models first.
GetDistributionPoliciesAsync(CancellationToken)

Retrieves existing distribution policies.

GetDistributionPoliciesAsync(RequestContext)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

[Protocol Method] Retrieves existing distribution policies.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
  • Please try the simpler Azure.Communication.JobRouter.JobRouterAdministrationClient.GetDistributionPoliciesAsync(System.Nullable{System.Int32},System.Threading.CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.AsyncPageable<BinaryData> GetDistributionPoliciesAsync (Azure.RequestContext context);
abstract member GetDistributionPoliciesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetDistributionPoliciesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetDistributionPoliciesAsync (context As RequestContext) As AsyncPageable(Of BinaryData)

Parameters

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The AsyncPageable<T> from the service containing a list of BinaryData objects. Details of the body schema for each item in the collection are in the Remarks section below.

Exceptions

Service returned a non-success status code.

Applies to

GetDistributionPoliciesAsync(CancellationToken)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

Retrieves existing distribution policies.

public virtual Azure.AsyncPageable<Azure.Communication.JobRouter.DistributionPolicy> GetDistributionPoliciesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDistributionPoliciesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.DistributionPolicy>
override this.GetDistributionPoliciesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.DistributionPolicy>
Public Overridable Function GetDistributionPoliciesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DistributionPolicy)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to