Forum Discussion
Dan_Markhasin_1
Nimbostratus
Apr 20, 2015API for Content Profiles?
Hi guys,
I am trying to find a way to create content profiles (specifically XML profiles) via CLI or API.
I have explored the iControlREST option - which lets you upload XML schemas, but I ...
Arnaud_Lemaire
Employee
Apr 20, 2015testing in 11.6. with Icontrol REST
-
First you need to create your xml profile attached to your existing policy with a POST on your policy entity and xml-profile definition,ex :
{ "defenseAttributes": { "maximumAttributesPerElement": 16, "maximumAttributeValueLength": 1024, "maximumDocumentDepth": 32, "allowCDATA": false, "maximumChildrenPerElement": 1024, "maximumDocumentSize": 1024000, "tolerateNumericNames": false, "maximumElements": 65536, "tolerateLeadingWhiteSpace": false, "tolerateCloseTagShorthand": false, "allowDTDs": false, "maximumNameLength": 256, "allowExternalReferences": false, "maximumNSDeclarations": 64, "allowProcessingInstructions": false, "maximumNamespaceLength": 256 }, "attachmentsInSoapMessages": true, "sensitiveData": [], "useXmlResponsePage": true, "inspectSoapAttachments": false, "metacharElementCheck": true, "metacharAttributeCheck": false, "name": "soap_upload2", "isReferenced": true, "validationSoapActionHeader": true, "description": "", "attackSignaturesCheck": true, "signatureOverrides": [], "metacharOverrides": [] } -
then you upload your xml-validation-files
- then you add your validation file (wsdl) with a task : /mgmt/tm/asm/tasks/associate-xml-validation-files-to-xml-profile
this is documented in Rest user guide 11.6.
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