For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

qso's avatar
qso
Ret. Employee
Mar 24, 2023

What is the iControlRest and curl to import the ASM policy

Hi folks, may I know what is the command for curl to import the API policy into ASM and and make it visible on GUI?

I have used the following curl and iControlRest to upload the xml policy file, the file could be seen inside /var/ts/var/rest directory, however the policy is not shown on the GUI. May i know is there anything missing and appreciate your advice?

curl --location 'https://10.1.1.4/mgmt/tm/asm/file-transfer/uploads/httg.xml
--header 'Content-Type: application/octet-stream' 
--header 'X-F5-Auth-Token: Q7B3ANGIDWULYA5VXK7A3EB5YJ' 
--header 'Content-Range: 0-402287/402288' 
--header 'Cookie: BIGIPAuthCookie=F646C6B41C7A25966D1EE52A69E205E60E53B970; BIGIPAuthUsernameCookie=admin' 
--data '@/C:/Users/external_user/httg.xml'

Thankc you!

 

2 Replies