Forum Discussion
rest api
hi:
I want to know how to call this part of the content?
url:https://clouddocs.f5.com/api/icontrol-rest/APIRef_tm_security_firewall_policy_rules.html
- lizunjjgCirrus
curl -sk -u 'admin:meimima@123' -H "Content-Type:application/json" -X POST https://10.1.10.245/mgmt/tm/security/firewall/policy/ -d '{"name":"policy_test","rules":[{"placeBefore":"first","name":"rule_test","status":"scheduled","schedule":"wer3","action":"accept","destination":[{"addresses":"5.5.5.0/24"}],"virtualServer":"jiajingge"}]}'
- lizunjjgCirrus
haha
I know the right answer、、、、、、
curl -sk -u 'admin:meimima@123' -H "Content-Type:application/json" -X POST https://10.1.10.245/mgmt/tm/security/firewall/policy/ -d '{"name":"policy_test","rules":[{"placeBefore":"first","name":"rule_test","status":"scheduled","schedule":"wer3","action":"accept","source":{"addresses":"5.5.5.0/24"},"virtualServer":"jiajingge"}]}'
- lizunjjgCirrus
- It's too hard for me without a programming background
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com