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
networkIdstringThe network id
clientIdstringThe client id
cancellationTokenCancellationToken
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
networkIdstringThe network id
t0stringThe beginning of the timespan for the data. The maximum lookback period is 31 days from today. (optional)
timespandouble?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)
perPageint?The number of entries per page returned. Acceptable range is 3 - 1000. Default is 10. (optional)
startingAfterstringA 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)
endingBeforestringA 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)
statusesstringFilters clients based on status. Can be one of 'Online' or 'Offline'.
ipstringFilters clients based on a partial or full match for the ip address field.
ip6stringFilters clients based on a partial or full match for the ip6 address field.
ip6LocalstringFilters clients based on a partial or full match for the ip6Local address field.
macstringFilters clients based on a partial or full match for the mac address field.
osstringFilters clients based on a partial or full match for the os (operating system) field.
pskGroupstringFilters clients based on partial or full match for the iPSK name field.
descriptionstringFilters clients based on a partial or full match for the description field.
recentDeviceConnectionsList<string>Filters clients based on recent connection type. Can be one of 'Wired' or 'Wireless'.
cancellationTokenCancellationToken
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
networkIdstringThe network id
clientProvisionRequestClientProvisionRequestBody for provisioning a client
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call