Forum Discussion
ASM - Adding Allowed URL's via CLI in 2023
- Nov 16, 2023
You can use the iControl REST API. I use it extensively to configure ASM and besides it is a bit slow, it works like a charme.
For URLs this should work:
Endpoint: /mgmt/tm/asm/policies/<policy hash>/urls
Method: POST
Payload:
{
"disallowFileUploadOfExecutables" : false,
"isAllowed" : false,
"mandatoryBody" : false,
"metacharsOnUrlCheck" : false,
"method" : "*",
"name" : "/my-allowed-url",
"protocol" : "http",
"type" : "explicit"
}An other option is the policy creation / maintenance thorugh the declarative API.
You can use the iControl REST API. I use it extensively to configure ASM and besides it is a bit slow, it works like a charme.
For URLs this should work:
Endpoint: /mgmt/tm/asm/policies/<policy hash>/urls
Method: POST
Payload:
{
"disallowFileUploadOfExecutables" : false,
"isAllowed" : false,
"mandatoryBody" : false,
"metacharsOnUrlCheck" : false,
"method" : "*",
"name" : "/my-allowed-url",
"protocol" : "http",
"type" : "explicit"
}
An other option is the policy creation / maintenance thorugh the declarative API.
Thank you, this is fantastic.
Recent Discussions
Related Content
* 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