Forum Discussion
Ingebrigt_Maurs
Nimbostratus
Feb 24, 2015How to add idpConnector with iControl REST API
Hi !
I use APM, and am using the iControl REST API to automate my configuration. I have trouble adding a new idpConnector binding to an existing SP with iControlRest.
When I GET
The result is
...
Ingebrigt_Maurs
Nimbostratus
Feb 25, 2015I found a solution in the iControlRest API, I can PATCH a resource. I wasn't able to add a new connector in addition to the existing IDP connectors. But I can replace the IDP connectors for the SP with a new collection of IDP connectors, this is almost as good.
curl -sk -uUSER:PASS https://bigip-test.env/mgmt/tm/apm/aaa/saml/~Common~my_sp -H 'Content-Type: application/json'-X PATCH -d
{
"idpConnectors": [
{
"name": "vps-existing-idp",
"partition": "Common",
"idpMatchingSource": "%{session.server.landinguri}",
"idpMatchingValue": "*idp=existing*"
},
{
"name": "vps-new-idp",
"partition": "Common",
"idpMatchingSource": "%{session.server.landinguri}",
"idpMatchingValue": "*idp=new*"
}
]
}
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