Interface INetworkAclClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods for managing Network Access Control Lists (ACLs) in Auth0.
public interface INetworkAclClient
Methods
CreateAsync(NetworkAclCreateRequest, CancellationToken)
Create a new access control list for your client.
Task CreateAsync(NetworkAclCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
NetworkAclCreateRequestNetworkAclCreateRequest class containing all information required to create the ACL entry
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
DeleteAsync(string, CancellationToken)
Delete existing access control list for your client.
Task DeleteAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringThe id of the ACL to delete.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
GetAllAsync(PaginationInfo?, CancellationToken)
Get all access control list entries for your client.
Task<IPagedList<NetworkAclEntry>> GetAllAsync(PaginationInfo? pagination = null, CancellationToken cancellationToken = default)
Parameters
pagination
PaginationInfoSpecifies pagination info to use when requesting paged results.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IPagedList<NetworkAclEntry>>
An IPagedList<T> containing the Access Control List.
GetAsync(string, CancellationToken)
Get a specific access control list entry for your client.
Task<NetworkAclEntry> GetAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringThe id of the access control list to retrieve.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<NetworkAclEntry>
An NetworkAclEntry containing the Access Control List.
UpdateAsync(string, NetworkAclPatchUpdateRequest, CancellationToken)
Update existing access control list for your client.
Task<NetworkAclEntry> UpdateAsync(string id, NetworkAclPatchUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringThe id of the ACL to update.
request
NetworkAclPatchUpdateRequestNetworkAclPatchUpdateRequest containing information to update
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
UpdateAsync(string, NetworkAclPutUpdateRequest, CancellationToken)
Update existing access control list for your client.
Task<NetworkAclEntry> UpdateAsync(string id, NetworkAclPutUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringThe id of the ACL to update.
request
NetworkAclPutUpdateRequestNetworkAclPutUpdateRequest containing information to update
cancellationToken
CancellationTokenThe cancellation token to cancel operation.