I made it in shell to keep everything simple.
Still not working.
project=default working, as expected with or without passing it in address line:
curl -k --cert $crt --key $key https://192.168.1.9:7443/1.0/instances/FC-Sql/files?path=/root
curl -k --cert $crt --key $key https://192.168.1.9:7443/1.0/instances/FC-Sql/files?path=/root&project=default
[1] 28349
$ {“type”:“sync”,“status”:“Success”,“status_code”:200,“operation”:"",“error_code”:0,“error”:"",“metadata”:[".bash_profile",".mysql_user",".ash_history",".ssh",".mysql_mydb",".mysql_history"]}
But for project 101:
curl -k --cert $crt --key $key https://192.168.1.9:7443/1.0/instances/X6/files?path=/root&project=101
$ {“error”:“not found”,“error_code”:404,“type”:“error”}
curl -k --cert $crt --key $key https://192.168.1.9:7443/1.0/instances/X6/files?project=101&path=/root
$ {“error”:“missing path argument”,“error_code”:400,“type”:“error”}
This just happens with files. Some other api endpoints works proper with same container in that project.
Perhaps an issue with project name which is numeric?