Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

oracle-bmc-cli: Cannot create policy, error: "Parameter 'statements' must be in JSON format."

buexlinaJul 14 2017 — edited Aug 30 2017

I'm trying to create a policy (IAM service), but keep running into the error: "Parameter 'statements' must be in JSON format."

The --help-option of "bmcs iam policy create" delivers the following pattern for the parameter 'statements': Example: '["statement 1","statement 2"]'

My own command looks like this: --statements '["Allow group MyGroup to manage object-family in tenancy","Allow group MyGroup to manage volume-family in tenancy"]'

I also tried only one statement, with and without brackets, and as in the console there's a seperation of the statements like "statement 1", "statement 2" and so on, I also tried '{"statement 1":"...","statement 2":"..."}', but no chance, there's always the same error.

I could create the policy in the console without any problems, so the statements themselves are alright.

This post has been answered by buexlina on Jul 18 2017
Jump to Answer
Comments
Post Details
Added on Jul 14 2017
2 comments
765 views