dcloud iam roles attach-policy

Attach a policy to a role

IAM iam:AttachRolePolicyChanges state

Synopsis

dcloud iam roles attach-policy id --policy-id policyId

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --policy-idRequired

    string

    The ID of the policy to attach, a policy of this organization

    Constraints: uuid

Example

dcloud iam roles attach-policy id --policy-id 00000000-0000-0000-0000-000000000000

Generated from the API description, the same one the API checks requests against and the CLI is built from.