Forum Discussion
Hyder_141209
Altostratus
Apr 09, 2017Curl command for import and overwrite policy
Can anybody please help to correct the curl command for importing the policy and overwrite the existing one?
curl -sk -u admin:XXXX -H 'Content-Type: application/json' -X POST -d '{"isBase64":"tr...
CharlesCS
Cirrus
Apr 10, 2017In the JSON body, specify a property that identifies the source of the import data. You must supply one property from the list:
- file
- filename
- policyReferenceTemplate
"file" specifies inline content in XML format to import.
"filename" specifies the name of a local system file that contains the policy to import.
"policyReferenceTemplate" (or "policyTemplateReference" -- the REST manual is contradictory) specifies the template for a policy.
So, delete '"isBase64":"true"', remove 'base64' from the file name, and change 'file' to 'filename'.
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