on 2024 Aug 06 8:02 AM
Hello colleagues,
I'm trying to create a Cloud Foundry instance using BTP CLI, but I am facing the error: Value '{' for parameter --parameters is neither of type json nor a valid filename.
Command that I executed, directly in the terminal, is:
btp create accounts/environment-instance --subaccount my-syb-acc --display-name my-environment --environment cloudfoundry --landscape cf-eu10 --service cloudfoundry --plan standard --parameters "{"instance_name": "cf-test"}"
I tried with --parameters "{\"instance_name\": \"cf-test\"}" , still it complains the same.
Is the JSON format incorrect for the --parameters?
Thank you for your help,
Robin
Request clarification before answering.
Hi Iji,
it just worked for me with single quotes but if you experience the same issue as an alternative option I would suggest you to try to provide the data via file like:
btp create accounts/environment-instance --subaccount my-syb-acc --display-name my-environment --environment cloudfoundry --landscape cf-eu10 --service cloudfoundry --plan standard --parameters <file-path>
and the content of the file is then:
{
"instance_name": "cf-test"
}
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
9 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.