dcloud iam policies createCreate a customer-managed policy
IAM iam:CreatePolicyChanges state
`document` is a JSON string, validated by validatePolicyDocument before it is stored.
Synopsis
dcloud iam policies create --name name --document document [flags]Flags
--nameRequiredstring
The policy’s name
Constraints: 1-128 chars
--descriptionOptionalstring
What the policy is for
Constraints: max 512 chars
--documentRequiredstring
The policy document as JSON text: {"Version":"2024-01-01","Statement":[{"Effect":"Allow","Action":[…],"Resource":[…]}]}; checked before it is stored
Constraints: min 1 chars
Example
dcloud iam policies create --name example --document exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.