Interface IConnectionsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public interface IConnectionsClient
Methods
CheckStatusAsync(string, CancellationToken)
Retrieves the status of an ad/ldap connection.
Task CheckStatusAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringID of the connection to check.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
CreateAsync(ConnectionCreateRequest, CancellationToken)
Creates a new connection according to the request.
Task<Connection> CreateAsync(ConnectionCreateRequest request, CancellationToken cancellationToken = default)
Parameters
requestConnectionCreateRequestThe request containing the properties for the new connection.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<Connection>
A Connection containing the newly created Connection.
CreateScimConfigurationAsync(string, ScimConfigurationCreateRequest, CancellationToken)
Creates an ScimConfiguration.
Task<ScimConfiguration> CreateScimConfigurationAsync(string id, ScimConfigurationCreateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to create an ScimConfiguration
requestScimConfigurationCreateRequestScimConfigurationCreateRequest containing information required for creating an ScimConfiguration
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
CreateScimTokenAsync(string, ScimTokenCreateRequest, CancellationToken)
Creates an ScimToken.
Task<ScimTokenCreateResponse> CreateScimTokenAsync(string id, ScimTokenCreateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to create an ScimToken
requestScimTokenCreateRequestScimTokenCreateRequest containing information required for creating an ScimToken
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
DeleteAsync(string, CancellationToken)
Deletes a connection and all its users.
Task DeleteAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to delete.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
DeleteScimConfigurationAsync(string, CancellationToken)
Deletes an ScimConfiguration.
Task DeleteScimConfigurationAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to delete ScimConfiguration
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
DeleteScimTokenAsync(string, string, CancellationToken)
Deletes an SCIM token.
Task DeleteScimTokenAsync(string id, string tokenId, CancellationToken cancellationToken = default)
Parameters
idstringThe ID of the connection that owns the ScimToken to be deleted
tokenIdstringThe ID of the ScimToken to delete
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
DeleteUserAsync(string, string, CancellationToken)
Deletes a specified connection user by its email.
Task DeleteUserAsync(string id, string email, CancellationToken cancellationToken = default)
Parameters
idstringThe identifier of the connection.
emailstringThe email of the user to delete.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
Remarks
Currently only database connections are supported and you cannot delete all users from specific connection.
GetAllAsync(GetConnectionsRequest, CheckpointPaginationInfo, CancellationToken)
Retrieves every connection matching the specified strategy. All connections are retrieved if no strategy is being specified. Accepts a list of fields to include or exclude in the resulting list of connection objects.
Task<ICheckpointPagedList<Connection>> GetAllAsync(GetConnectionsRequest request, CheckpointPaginationInfo pagination = null, CancellationToken cancellationToken = default)
Parameters
requestGetConnectionsRequestSpecifies criteria to use when querying connections.
paginationCheckpointPaginationInfoSpecifies the CheckPoint Pagination info CheckpointPaginationInfo
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<ICheckpointPagedList<Connection>>
An ICheckpointPagedList<T> containing the list of connections.
GetAllAsync(GetConnectionsRequest, PaginationInfo, CancellationToken)
Retrieves every connection matching the specified strategy. All connections are retrieved if no strategy is being specified. Accepts a list of fields to include or exclude in the resulting list of connection objects.
Task<IPagedList<Connection>> GetAllAsync(GetConnectionsRequest request, PaginationInfo pagination = null, CancellationToken cancellationToken = default)
Parameters
requestGetConnectionsRequestSpecifies criteria to use when querying connections.
paginationPaginationInfoSpecifies pagination info to use when requesting paged results.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IPagedList<Connection>>
An IPagedList<T> containing the list of connections.
GetAsync(string, string, bool, CancellationToken)
Retrieves a connection by its id.
Task<Connection> GetAsync(string id, string fields = null, bool includeFields = true, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to retrieve.
fieldsstringA comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
includeFieldsboolTrue if the fields specified are to be included in the result, false otherwise (defaults to true).
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<Connection>
The Connection.
GetDefaultScimMappingAsync(string, CancellationToken)
Retrieves the default ScimMapping.
Task<IList<ScimMapping>> GetDefaultScimMappingAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to retrieve its default ScimMapping
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IList<ScimMapping>>
An IList of ScimMapping.
GetEnabledClientsAsync(EnabledClientsGetRequest, CheckpointPaginationInfo?, CancellationToken)
Retrieves a ICheckpointPagedList list of enabled clients for a connection.
Task<ICheckpointPagedList<EnabledClients>> GetEnabledClientsAsync(EnabledClientsGetRequest request, CheckpointPaginationInfo? pagination = null, CancellationToken cancellationToken = default)
Parameters
requestEnabledClientsGetRequestThe request containing criteria for retrieving enabled clients.
paginationCheckpointPaginationInfoThe checkpoint pagination information to use for paged results.
cancellationTokenCancellationTokenThe cancellation token to cancel the operation.
Returns
- Task<ICheckpointPagedList<EnabledClients>>
An ICheckpointPagedList<T> containing the list of enabled clients.
GetScimConfigurationAsync(string, CancellationToken)
Retrieves an ScimConfiguration.
Task<ScimConfiguration> GetScimConfigurationAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to retrieve its ScimConfiguration
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
GetScimTokenAsync(string, CancellationToken)
Retrieves all ScimToken for the given connection.
Task<IList<ScimToken>> GetScimTokenAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to retrieve its ScimToken
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
UpdateAsync(string, ConnectionUpdateRequest, CancellationToken)
Updates a connection.
Task<Connection> UpdateAsync(string id, ConnectionUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to update.
requestConnectionUpdateRequestThe ConnectionUpdateRequest containing the properties of the connection you wish to update.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<Connection>
The Connection that has been updated.
UpdateEnabledClientsAsync(string, EnabledClientsUpdateRequest, CancellationToken)
Updates the list of enabled clients for a connection.
Task UpdateEnabledClientsAsync(string id, EnabledClientsUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringThe ID of the connection to update enabled clients for.
requestEnabledClientsUpdateRequestThe request containing the updated list of enabled clients.
cancellationTokenCancellationTokenThe cancellation token to cancel the operation.
Returns
UpdateScimConfigurationAsync(string, ScimConfigurationUpdateRequest, CancellationToken)
Updates an ScimConfiguration.
Task<ScimConfiguration> UpdateScimConfigurationAsync(string id, ScimConfigurationUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the connection to update ScimConfiguration
requestScimConfigurationUpdateRequestScimConfigurationUpdateRequest containing information required for updating an ScimConfiguration
cancellationTokenCancellationTokenThe cancellation token to cancel operation.