Table of Contents

Interface IConnectionsClient

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
public interface IConnectionsClient
Extension Methods

Properties

Clients

IClientsClient Clients { get; }

Property Value

IClientsClient

DirectoryProvisioning

IDirectoryProvisioningClient DirectoryProvisioning { get; }

Property Value

IDirectoryProvisioningClient

Keys

IKeysClient Keys { get; }

Property Value

IKeysClient

ScimConfiguration

IScimConfigurationClient ScimConfiguration { get; }

Property Value

IScimConfigurationClient

Users

IUsersClient Users { get; }

Property Value

IUsersClient

Methods

CheckStatusAsync(string, RequestOptions?, CancellationToken)

Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message

Task CheckStatusAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

Task

CreateAsync(CreateConnectionRequestContent, RequestOptions?, CancellationToken)

Creates a new connection according to the JSON object received in body.

Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

WithRawResponseTask<CreateConnectionResponseContent> CreateAsync(CreateConnectionRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

request CreateConnectionRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<CreateConnectionResponseContent>

DeleteAsync(string, RequestOptions?, CancellationToken)

Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.

Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

Task DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

Task

GetAsync(string, GetConnectionRequestParameters, RequestOptions?, CancellationToken)

Retrieve details for a specified connection along with options that can be used for identity provider configuration.

WithRawResponseTask<GetConnectionResponseContent> GetAsync(string id, GetConnectionRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request GetConnectionRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<GetConnectionResponseContent>

ListAsync(ListConnectionsQueryParameters, RequestOptions?, CancellationToken)

Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections.

This endpoint supports two types of pagination:

  • Offset pagination
  • Checkpoint pagination

Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

Checkpoint Pagination

To search by checkpoint, use the following parameters:

  • from: Optional id from which to start selection.
  • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.

Note: The first time you call this endpoint using checkpoint pagination, 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 pages are remaining.

Task<Pager<ConnectionForList>> ListAsync(ListConnectionsQueryParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

request ListConnectionsQueryParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<ConnectionForList>>

UpdateAsync(string, UpdateConnectionRequestContent, RequestOptions?, CancellationToken)

Update details for a specific connection, including option properties for identity provider configuration.

Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

WithRawResponseTask<UpdateConnectionResponseContent> UpdateAsync(string id, UpdateConnectionRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request UpdateConnectionRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<UpdateConnectionResponseContent>