Create a Meraki REST API wrapper for the SSID ressource. See the online documentation for more information.
- Source:
Example
const apiKey = 'secret meraki api key'
const organizationId = 'meraki organization id'
const version = 'v0'
const target = 'n12'
const basePath = `/${target}/${version}/networks`
const rateLimiter = {
enabled: true
}
const ssidEndpoints = require('./lib/rest/ssids')({ apiKey, target, basePath, baseUrl, rateLimiter })
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
apiKey |
string |
<optional> |
''
|
The Meraki api key |
target |
string |
<optional> |
'api'
|
The Meraki target |
basePath |
string |
<optional> |
'/'
|
The Meraki base path for the SSID ressource |
rateLimiter |
string | The rate limiter (bottleneck) configuration |
||
logger |
object |
<optional> |
Logger to use if logging is enabled |
Returns:
The initialized Meraki REST API wrapper for the SSID ressource
- Type
- Object
Methods
(static) listNetworkSSIDs(apiKeyopt, targetopt, scopeopt, networkId) → {Promise}
- Source:
List the SSIDs in a network.
Example
[
{
"number":0,
"name":"SSID-1",
"enabled":true,
"authMode":"open"
}
]
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
apiKey |
string |
<optional> |
Optional custom apiKey for this request (if not set will take the inital apiKey) |
target |
string |
<optional> |
Optional custom target for this request (if not set will take the inital target) |
scope |
string |
<optional> |
Optional custom scope for rate limiter |
networkId |
string | The id of the network for which to list the SSIDs |
Returns:
A promise holding the SSIDs for this network
- Type
- Promise
(static) showNetworkSSID(apiKeyopt, targetopt, scopeopt, networkId, ssidNumber) → {Promise}
- Source:
Return a single SSID.
Example
{
"number":0,
"name":"SSID-1",
"enabled":true,
"authMode":"psk",
"encryptionMode":"wpa",
"psk":"abcd1234",
"splashPage":"Click-through splash page",
"perClientBandwidthLimitUp":0,
"perClientBandwidthLimitDown":0,
"ssidAdminAccessible":false,
"ipAssignmentMode":"NAT mode",
"walledGardenEnabled":true,
"walledGardenRanges":"192.168.1.1/24 192.168.37.10/32"
}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
apiKey |
string |
<optional> |
Optional custom apiKey for this request (if not set will take the inital apiKey) |
target |
string |
<optional> |
Optional custom target for this request (if not set will take the inital target) |
scope |
string |
<optional> |
Optional custom scope for rate limiter |
networkId |
string | The id of the network for which to list the SSIDs |
|
ssidNumber |
number | The number of the SSID to show |
Returns:
A promise holding the details of this SSID
- Type
- Promise
(static) updateNetworkSSID(apiKeyopt, targetopt, scopeopt, networkId, ssidNumber, name, enabled, authMode, encryptionMode, psk, wpaEncryptionMode, splashPage, radiusServers, radiusCoaEnabled, radiusAccountingEnabled, radiusAccountingServers, ipAssignmentMode, useVlanTagging, concentratorNetworkId, vlanId, defaultVlanId, apTagsAndVlanIds, walledGardenEnabled, walledGardenRanges, minBitrate, bandSelection, perClientBandwidthLimitUp, perClientBandwidthLimitDown) → {Promise}
- Source:
Update the attributes of an SSID.
Examples
{
"name": "new SSID name",
"enabled": true,
"authMode": "psk",
"encryptionMode": "wpa",
"psk": "abcd1234",
"ipAssignmentMode": "Bridge mode"
}
{
"number":0,
"name":"SSID-1",
"enabled":true,
"authMode":"psk",
"encryptionMode":"wpa",
"psk":"abcd1234",
"splashPage":"Click-through splash page",
"perClientBandwidthLimitUp":0,
"perClientBandwidthLimitDown":0,
"ssidAdminAccessible":false,
"ipAssignmentMode":"NAT mode",
"walledGardenEnabled":true,
"walledGardenRanges":"192.168.1.1/24 192.168.37.10/32"
}
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apiKey |
string |
<optional> |
Optional custom apiKey for this request (if not set will take the inital apiKey) |
||||||||||||
target |
string |
<optional> |
Optional custom target for this request (if not set will take the inital target) |
||||||||||||
scope |
string |
<optional> |
Optional custom scope for rate limiter |
||||||||||||
networkId |
string | The id of the network for which to list the SSIDs |
|||||||||||||
ssidNumber |
number | The number of the SSID to update |
|||||||||||||
name |
string | The name of an SSID |
|||||||||||||
enabled |
boolean | Whether or not an SSID is enabled |
|||||||||||||
authMode |
string | The association control method for the SSID ( |
|||||||||||||
encryptionMode |
string | The psk encryption mode for the SSID ( |
|||||||||||||
psk |
string | The passkey for the SSID. This param is only valid if the authMode is |
|||||||||||||
wpaEncryptionMode |
string | The types of WPA encryption. ( |
|||||||||||||
splashPage |
string | The type of splash page for the SSID ( |
|||||||||||||
radiusServers |
Object | The RADIUS 802.1x servers to be used for authentication. This param is only valid if the authMode is Properties
|
|||||||||||||
radiusCoaEnabled |
boolean | If true, Meraki devices will act as a RADIUS Dynamic Authorization Server and will respond to RADIUS Change-of-Authorization and Disconnect messages sent by the RADIUS server |
|||||||||||||
radiusAccountingEnabled |
boolean | Whether or not RADIUS accounting is enabled. This param is only valid if the authMode is |
|||||||||||||
radiusAccountingServers |
Object | The RADIUS accounting 802.1x servers to be used for authentication. This param is only valid if the authMode is Properties
|
|||||||||||||
ipAssignmentMode |
string | The client IP assignment mode ( |
|||||||||||||
useVlanTagging |
boolean | Direct trafic to use specific VLANs. This param is only valid with |
|||||||||||||
concentratorNetworkId |
string | The concentrator to use for |
|||||||||||||
vlanId |
number | The VLAN ID used for VLAN tagging. This param is only valid with |
|||||||||||||
defaultVlanId |
number | The default VLAN ID used for |
|||||||||||||
apTagsAndVlanIds |
Array | The list of tags and VLAN IDs used for VLAN tagging. This param is only valid with Properties
|
|||||||||||||
walledGardenEnabled |
boolean | Allow access to a configurable list of IP ranges, which users may access prior to sign-on |
|||||||||||||
walledGardenRanges |
string | Specify your walled garden by entering space-separated addresses and ranges using CIDR notation (e.g. 192.168.1.1/24 192.168.37.10/32). Meraki's splash page is automatically included in your walled garden |
|||||||||||||
minBitrate |
number | The minimum bitrate in Mbps. (1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54) |
|||||||||||||
bandSelection |
string | The client-serving radio frequencies. (Dual band operation, 5 GHz band only, Dual band operation with Band Steering) |
|||||||||||||
perClientBandwidthLimitUp |
number | The upload bandwidth limit in Kbps. (0 represents no limit.) |
|||||||||||||
perClientBandwidthLimitDown |
number | The download bandwidth limit in Kbps. (0 represents no limit.) |
Returns:
A promise holding the updated SSID
- Type
- Promise