Forum Discussion
501 error when attempting to download exported ASM policy
I am able to use iControlREST to export an ASM policy to a file but when I attempt to download it I get a 501 Error:
{
"code":501,
"message": "Invalid Path",
"restOperationId":25276279,
"errorStack":[
"ASMConfigException(
error_message:Invalid Path,
error_code:NOT_IMPLEMENTED,
internal_error:Failed : Error message = Invalid Path,
rest_code:REST_NOT_IMPLEMENTED
)",
"at com.f5.asmconfig.ASMConfig$rest_call_result$rest_call_resultStandardScheme.read(ASMConfig.java:10158)",
"at com.f5.asmconfig.ASMConfig$rest_call_result$rest_call_resultStandardScheme.read(ASMConfig.java:10136)",
"at com.f5.asmconfig.ASMConfig$rest_call_result.read(ASMConfig.java:10079)",
"at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)",
"at com.f5.asmconfig.ASMConfig$Client.recv_rest_call(ASMConfig.java:457)",
"at com.f5.asmconfig.ASMConfig$Client.rest_call(ASMConfig.java:442)",
"at com.f5.asmconfig.client.AsmClient.rest_call(AsmClient.java:57)",
"at com.f5.rest.workers.asm.AsmConfigWorker.forward(AsmConfigWorker.java:141)",
"at com.f5.rest.workers.asm.AsmConfigWorker.forwardCall(AsmConfigWorker.java:97)",
"at com.f5.rest.workers.asm.AsmConfigWorker$1.run(AsmConfigWorker.java:118)",
"at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)",
"at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)",
"at java.util.concurrent.FutureTask.run(FutureTask.java:166)",
"at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)",
"at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)",
"at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)",
"at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)",
"at java.lang.Thread.run(Thread.java:722)\n"
]
}
I'm using a simple get like described in the documentation:
curl -u myuser https://myf5/mgmt/tm/asm/file-transfer/downloads/1443208671.4.xml
I'm running 11.5.2. Anyone seen this error?
4 Replies
- samstep
Cirrocumulus
It looks like you are trying to download something which does not exist. "Invalid path" = "file not found"
- Brad_Parker
Cirrus
I'm guessing "rest_code:REST_NOT_IMPLEMENTED" means that function doesn't quite work properly yet.
- kman_52500
Nimbostratus
So in 11.5 that method of downloading the policy is not implemented. You must down load the policy inline. This is done by setting "inline" to True.
Once status = COMPLETED the data will be in the 'file' property of 'result'
- saidshow_251381
Cirrostratus
Hi kman, how did you export the asm policy? I was trying to save the asm file in the same way that I save ucs files however this is not working. Thank you.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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