Update An Access Policy For A Switch Network
PUT {{baseUrl}}/networks/:networkId/switch/accessPolicies/:accessPolicyNumber
Update an access policy for a switch network. This endpoint only supports access policies with 'My RADIUS server' as authentication method.
Request Body
{"name"=>"<string>", "radiusServers"=>[{"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}, {"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}], "radiusTestingEnabled"=>"<boolean>", "radiusCoaSupportEnabled"=>"<boolean>", "radiusAccountingEnabled"=>"<boolean>", "radiusAccountingServers"=>[{"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}, {"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}], "radiusGroupAttribute"=>"<string>", "hostMode"=>"<string>", "accessPolicyType"=>"<string>", "increaseAccessSpeed"=>"<boolean>", "guestVlanId"=>"<integer>", "voiceVlanClients"=>"<boolean>", "urlRedirectWalledGardenEnabled"=>"<boolean>", "urlRedirectWalledGardenRanges"=>["<string>", "<string>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cisco-Meraki-API-Key | null | ||
Content-Type | string |
RESPONSES
status: OK
{"accessPolicyNumber":"1234","name":"Access policy #1","radiusServers":[{"host":"1.2.3.4","port":22,"secret":"password1"}],"radiusTestingEnabled":false,"radiusCoaSupportEnabled":false,"radiusAccountingEnabled":true,"radiusAccountingServers":[{"host":"1.2.3.4","port":22,"secret":"password1"}],"radiusGroupAttribute":"11","hostMode":"Single-Host","accessPolicyType":"Hybrid authentication","increaseAccessSpeed":false,"guestVlanId":100,"voiceVlanClients":true,"urlRedirectWalledGardenEnabled":true,"urlRedirectWalledGardenRanges":"192.168.1.0/24"}