Module: SSIDs
- Included in:
- DashboardAPI
- Defined in:
- lib/ssids.rb
Overview
SSIDs section of the Meraki Dashboard API
Instance Method Summary collapse
-
#get_single_ssid(network_id, ssid_number) ⇒ Hash
Get the attributes for a single SSID.
-
#list_ssids_in_network(network_id) ⇒ Array
Get a list of the SSIDs and their attributes for a network.
-
#update_single_ssid(network_id, ssid_number, options) ⇒ Hash
Update the attributes for a single SSID.
Instance Method Details
#get_single_ssid(network_id, ssid_number) ⇒ Hash
Get the attributes for a single SSID
15 16 17 18 |
# File 'lib/ssids.rb', line 15 def get_single_ssid(network_id, ssid_number) raise "Please provide a valid SSID number" unless (ssid_number.is_a?(Integer) && ssid_number <= 14) self.make_api_call("/networks/#{network_id}/ssids/#{ssid_number}", 'GET') end |
#list_ssids_in_network(network_id) ⇒ Array
Get a list of the SSIDs and their attributes for a network
7 8 9 |
# File 'lib/ssids.rb', line 7 def list_ssids_in_network(network_id) self.make_api_call("/networks/#{network_id}/ssids", 'GET') end |
#update_single_ssid(network_id, ssid_number, options) ⇒ Hash
Update the attributes for a single SSID
25 26 27 28 29 30 31 |
# File 'lib/ssids.rb', line 25 def update_single_ssid(network_id, ssid_number, ) raise 'Options were not passed as a Hash' if !.is_a?(Hash) raise "Please provide a valid SSID number" unless (ssid_number.is_a?(Integer) && ssid_number <= 14) self.make_api_call("/networks/#{network_id}/ssids/#{ssid_number}", 'PUT', ) end |