You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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

edited Aug 30, 2017 7:00AM in OCI - General 2 comments

Summary

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

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!