createOrgNacRules
POST https://{{host}}/api/v1/orgs/:org_id/nacrules
Name | Type | Description |
---|---|---|
name | string | the name |
enabled | boolean | enabled or not, default is true |
order | int | the order of the rule, lower value implies higher priority |
auth_type | string | eap-tls / peap-tls / eap-ttls / eap-teap / mab / psk / device-auth |
port_types | list | list of port_types (wired / wireless) to match |
site_ids | list | list of site ids to match |
sitegroup_ids | list | list of sitegroup ids to match |
action | string | allow / block |
Request Body
{"name"=>"name1", "id"=>"7e700e85-6080-69b9-729e-ee9e012d7408", "order"=>1, "dry_run"=>false, "matching"=>{"auth_type"=>"eap-tls", "port_types"=>["wired"], "vendors"=>["cisco-ios", "cisco-meraki"], "site_ids"=>["bb19fc3e-4124-4b57-80d9-c3f6edce47c4", "bb19fc3e-6564-4b57-80d9-c3f6edce47c1"], "sitegroup_ids"=>["bb19fc3e-4124-4b57-80d9-c3f6edce47c4", "bb19fc3e-6564-4b57-80d9-c3f6edce47c1"], "nactags"=>["041d5d36-716c-4cfb-4988-3857c6aa14a2", "a809a97f-d599-f812-eb8c-c3f84aabf6ba"]}, "apply_tags"=>["c049dfcd-0c73-5014-1c64-062e9903f1e5"], "action"=>"allow"}
RESPONSES
status: OK
{"name":"name1","id":"7e700e85-6080-69b9-729e-ee9e012d7408","order":1,"matching":{"auth_type":"cert","port_types":["wired"],"site_ids":["bb19fc3e-4124-4b57-80d9-c3f6edce47c4","bb19fc3e-6564-4b57-80d9-c3f6edce47c1"],"sitegroup_ids":["bb19fc3e-4124-4b57-80d9-c3f6edce47c4","bb19fc3e-6564-4b57-80d9-c3f6edce47c1"],"nactags":["041d5d36-716c-4cfb-4988-3857c6aa14a2","a809a97f-d599-f812-eb8c-c3f84aabf6ba"]},"not_matching":{},"apply_tags":["c049dfcd-0c73-5014-1c64-062e9903f1e5"],"action":"allow"}