Table of Contents

Interface IResourceServersClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public interface IResourceServersClient

Methods

CreateAsync(ResourceServerCreateRequest, CancellationToken)

Creates a new resource server.

Task<ResourceServer> CreateAsync(ResourceServerCreateRequest request, CancellationToken cancellationToken = default)

Parameters

request ResourceServerCreateRequest

Contains the information for the resource server to create.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<ResourceServer>

The newly created ResourceServer.

DeleteAsync(string, CancellationToken)

Deletes a resource server.

Task DeleteAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The id of the resource server to delete.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

GetAllAsync(PaginationInfo, CancellationToken)

Gets a list of all the resource servers.

Task<IPagedList<ResourceServer>> GetAllAsync(PaginationInfo pagination = null, CancellationToken cancellationToken = default)

Parameters

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<ResourceServer>>

A IPagedList<T> containing the list of resource servers.

GetAsync(string, CancellationToken)

Get a resource server by its id.

Task<ResourceServer> GetAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The identifier of the resource server.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<ResourceServer>

The ResourceServer that was requested.

UpdateAsync(string, ResourceServerUpdateRequest, CancellationToken)

Updates a resource server,

Task<ResourceServer> UpdateAsync(string id, ResourceServerUpdateRequest request, CancellationToken cancellationToken = default)

Parameters

id string

The id of the resource server to update.

request ResourceServerUpdateRequest

Contains the information for the resource server to update.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<ResourceServer>

The newly updated ResourceServer.