Forum Discussion
kqlehman_263002
Nimbostratus
May 12, 2016Issue after updating to 12.0
I am a .Net developer not an F5 admin so I apologize if I don't explain this properly. I wrote an app that saves internal data-group objects to the F5 using an HttpWebRequest POST to the rest API. Be...
cjunior
Nacreous
May 13, 2016You're right.
I made requests in both versions 11.6.0 and 12.0.0. The request for v11.6.0, doesn't put quotes in your key and values pairs.For the v12.0.0, it's including quotes in your keys but not in the values.
In my opinion, the v12.0.0 is closer to the truth. Regards.test 1:
curl -k -u "admin:admin" -X POST -d '{"name":"dg_test","type":"string","records":[{"name":"\"KEY\"","data":"\"VALUE\""}]}' https://localhost/mgmt/tm/ltm/data-group/internal --header "Content-Type:application/json"
v11.6.0
[root@bigipbeta:Active:Standalone] config tmsh list ltm data-group internal dg_test
ltm data-group internal dg_test {
records {
KEY {
data VALUE
}
}
type string
}
v12.0.0
[root@bigiplab:ModuleNotLicensed:Active:Standalone] config tmsh list ltm data-group internal dg_test
ltm data-group internal dg_test {
records {
\"KEY\" {
data VALUE
}
}
type string
}
test 2:
curl -k -u "admin:admin" -X POST -d '{"name":"dg_test_space","type":"string","records":[{"name":"\"KEY WITH SPACE\"","data":"\"VALUE WITH SPACE\""}]}' https://localhost/mgmt/tm/ltm/data-group/internal --header "Content-Type:application/json"
v11.6.0
[root@bigipbeta:Active:Standalone] config tmsh list ltm data-group internal dg_test_space ltm data-group internal dg_test_space {
records {
"KEY WITH SPACE" {
data "VALUE WITH SPACE"
}
}
type string
}
v12.0.0
[root@bigiplab:ModuleNotLicensed:Active:Standalone] config tmsh list ltm data-group internal dg_test_space
ltm data-group internal dg_test_space {
records {
"\"KEY WITH SPACE\"" {
data "VALUE WITH SPACE"
}
}
type string
}
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