dcloud iam agent-sessions set-scope

Allow an agent session to write or destroy for a while, or drop it to read-only

IAM iam:UpdateAgentSessionChanges state

Raising a session needs a person signed in to the console; an access key or OAuth token is refused, so an agent cannot raise itself. Your own agents need no IAM action.

Synopsis

dcloud iam agent-sessions set-scope id --scope scope [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --scopeRequired

    enum

    What the session may do

    One of: read, write, destructive

  • --duration-minutesOptional

    number

    15, 60 or 480. Default: 60 for write, 15 for destructive

    Constraints: integer

Example

dcloud iam agent-sessions set-scope id --scope read

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