Forum Discussion
Fred_01
Nimbostratus
Oct 24, 2018create policy with curl
Hello,
I try to create a policy with rules/action/condition in one request but i have some trouble with syntax
the url on my request is
/mgmt/tm/ltm/policy
this is the payloa...
Fred_01
Nimbostratus
Oct 24, 2018I found the good syntax
{
"partition":"Common",
"name":"myPolicy",
"requires":[
"http"
],
"controls":[
"forwarding"
],
"strategy":"/Common/first-match",
"legacy":true,
"rules":[
{
"ordinal":1,
"name":"rules1",
"conditions":[
{
"name":"0",
"values":[
"www.mydomain.com"
],
"equals":true,
"httpHost":true
}
],
"actions":[
{
"name":"0",
"forward":true,
"pool":"/Common/testFred"
}
]
}
]
}
ordinal must be a integer, name must be a string
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects