Table of Contents

Class ClientsClient

Namespace
Auth0.ManagementApi.Connections
Assembly
Auth0.ManagementApi.dll
public class ClientsClient : IClientsClient
Inheritance
ClientsClient
Implements
Inherited Members
Extension Methods

Methods

GetAsync(string, GetConnectionEnabledClientsRequestParameters, RequestOptions?, CancellationToken)

Retrieve all clients that have the specified connection enabled.

Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

public Task<Pager<ConnectionEnabledClient>> GetAsync(string id, GetConnectionEnabledClientsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request GetConnectionEnabledClientsRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<ConnectionEnabledClient>>

Examples

await client.Connections.Clients.GetAsync(
    "id",
    new GetConnectionEnabledClientsRequestParameters { Take = 1, From = "from" }
);

UpdateAsync(string, IEnumerable<UpdateEnabledClientConnectionsRequestContentItem>, RequestOptions?, CancellationToken)

public Task UpdateAsync(string id, IEnumerable<UpdateEnabledClientConnectionsRequestContentItem> request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request IEnumerable<UpdateEnabledClientConnectionsRequestContentItem>
options RequestOptions
cancellationToken CancellationToken

Returns

Task

Examples

await client.Connections.Clients.UpdateAsync(
    "id",
    new List<UpdateEnabledClientConnectionsRequestContentItem>()
    {
        new UpdateEnabledClientConnectionsRequestContentItem
        {
            ClientId = "client_id",
            Status = true,
        },
    }
);