Share via


CosmosDBForPostgreSqlRoleCollection.GetAll(CancellationToken) Method

Definition

List all the roles in a given cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles
  • Operation Id: Roles_ListByCluster
public virtual Azure.Pageable<Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlRoleResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlRoleResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlRoleResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CosmosDBForPostgreSqlRoleResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of CosmosDBForPostgreSqlRoleResource that may take multiple service requests to iterate over.

Applies to