dcloud iam agent-sessions set-scopeAllow 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>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--scopeRequiredenum
What the session may do
One of:
read,write,destructive--duration-minutesOptionalnumber
15, 60 or 480. Default: 60 for write, 15 for destructive
Constraints: integer
Example
dcloud iam agent-sessions set-scope id --scope readGenerated from the API description, the same one the API checks requests against and the CLI is built from.