Share via


JobRouterAdministrationClient.GetDistributionPolicies Method

Definition

Overloads

GetDistributionPolicies(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.GetDistributionPolicies(System.Nullable{System.Int32},System.Threading.CancellationToken) convenience overload with strongly typed models first.
GetDistributionPolicies(CancellationToken)

Retrieves existing distribution policies.

GetDistributionPolicies(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.GetDistributionPolicies(System.Nullable{System.Int32},System.Threading.CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Pageable<BinaryData> GetDistributionPolicies (Azure.RequestContext context);
abstract member GetDistributionPolicies : Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetDistributionPolicies : Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetDistributionPolicies (context As RequestContext) As Pageable(Of BinaryData)

Parameters

context
RequestContext

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

Returns

The Pageable<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

GetDistributionPolicies(CancellationToken)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

Retrieves existing distribution policies.

public virtual Azure.Pageable<Azure.Communication.JobRouter.DistributionPolicy> GetDistributionPolicies (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDistributionPolicies : System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.JobRouter.DistributionPolicy>
override this.GetDistributionPolicies : System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.JobRouter.DistributionPolicy>
Public Overridable Function GetDistributionPolicies (Optional cancellationToken As CancellationToken = Nothing) As Pageable(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