Forum Discussion
Zdenda
Cirrus
Jan 23, 2019Api Rest - Assign LTM policy to virtual server
Hi,
from this article it looks the way to assign LTM policy to VS is through POST /mgmt/tm/ltm/virtual/~Common~/policies with body {"name": ""} .
Well, it works for me, but I always get 404 ...
Satoshi_Toyosa1
Jan 25, 2019Ret. Employee
Hmmm... I did not have any issue with the same call.
curl -D - -sku : https:///mgmt/tm/ltm/virtual/vs/policies \
-H "Content-type: application/json" -X POST \
-d '{"name":"TestPolicy"}'
HTTP/1.1 200 OK
Date: 25 Jan 2019 01:03:23 UTC
....
{"kind":"tm:ltm:virtual:policies:policiesstate","name":"TestPolicy","fullPath":"TestPolicy","generation":205,"selfLink":"https://localhost/mgmt/tm/ltm/virtual/vs/policies/TestPolicy?ver=13.1.1.2"}
Has the policy
https_pool-select_policy
been published (i.e., not in the draft state)? Check it it exists:
GET /mgmt/tm/ltm/policy/https_pool-select_policy
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