Forum Discussion
RAHUL_AM88_3527
Nimbostratus
Apr 05, 2018Create snat failed using rest api
Resquest -
$1
payload-
{
"items": [
{
"name": "Test",
"partition": "Common",
"fullPath": "/Common/Test",
"autoLasthop": "enabled",
...
Feb 26, 2019
I believe this seems to do what you are asking.
curl -sku admin:admin https://192.168.10.23/mgmt/tm/ltm/snat -H "content-type:application/json" -d '{
"name": "test2",
"partition": "Common",
"autoLasthop": "enabled",
"mirror": "disabled",
"sourcePort": "preserve",
"translation": "/Common/192.168.1.3",
"vlansEnabled": true,
"vlans": [
"/Common/EXTERNAL"
],
"origins": [
{
"name": "::/0"
},
{
"name": "0.0.0.0/0"
}
]
}'
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
