Interface INetworksClients
- Namespace
- Meraki.Api.Interfaces.General.Networks
- Assembly
- Meraki.Api.dll
public interface INetworksClients
Methods
GetNetworkClientAsync(string, string, CancellationToken)
Return the client associated with the given identifier. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.
[Get("/networks/{networkId}/clients/{clientId}")]
[QueryUriFormat(UriFormat.Unescaped)]
Task<Client> GetNetworkClientAsync(string networkId, string clientId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
clientId
stringThe client id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkClientsAsync(string, string, double?, int?, string, string, string?, string?, string?, string?, string?, string?, string?, string?, List<string>?, CancellationToken)
List the clients that have used this network in the timespan
[Get("/networks/{networkId}/clients")]
[QueryUriFormat(UriFormat.Unescaped)]
Task<List<Client>> GetNetworkClientsAsync(string networkId, string t0 = null, double? timespan = null, int? perPage = 1000, string startingAfter = null, string endingBefore = null, string? statuses = null, string? ip = null, string? ip6 = null, string? ip6Local = null, string? mac = null, string? os = null, string? pskGroup = null, string? description = null, List<string>? recentDeviceConnections = null, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
t0
stringThe beginning of the timespan for the data. The maximum lookback period is 31 days from today. (optional)
timespan
double?The timespan for which the information will be fetched. If specifying timespan, do not specify parameter t0. The value must be in seconds and be less than or equal to 31 days. The default is 1 day. (optional)
perPage
int?The number of entries per page returned. Acceptable range is 3 - 1000. Default is 10. (optional)
startingAfter
stringA token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. (optional)
endingBefore
stringA token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. (optional)
statuses
stringFilters clients based on status. Can be one of 'Online' or 'Offline'.
ip
stringFilters clients based on a partial or full match for the ip address field.
ip6
stringFilters clients based on a partial or full match for the ip6 address field.
ip6Local
stringFilters clients based on a partial or full match for the ip6Local address field.
mac
stringFilters clients based on a partial or full match for the mac address field.
os
stringFilters clients based on a partial or full match for the os (operating system) field.
pskGroup
stringFilters clients based on partial or full match for the iPSK name field.
description
stringFilters clients based on a partial or full match for the description field.
recentDeviceConnections
List<string>Filters clients based on recent connection type. Can be one of 'Wired' or 'Wireless'.
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
ProvisionNetworkClientsAsync(string, ClientProvisionRequest, CancellationToken)
Provisions a client with a name and policy
[Post("/networks/{networkId}/clients/provision")]
Task<ClientProvisionRequest> ProvisionNetworkClientsAsync(string networkId, ClientProvisionRequest clientProvisionRequest, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
clientProvisionRequest
ClientProvisionRequestBody for provisioning a client
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call