This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Acquire temporary role credential

1 - 1.1

scp-cli sts sts assume role
--role_session_name <value>
--role_indicator <value>
[--duration_seconds <value>]

Description

Acquire temporary role credential

State ACTIVE (CURRENT)

VersionNot Before
1.1-

Parameters

NameTypeDescriptionExample
role_session_name
required
stringRole Session Name-
role_indicator
required
stringIdentifier of the role to assume. [offering:account_id:role_name]qa2:afd580f490394896a6bceabf77683c6bd:role_name
duration_seconds
optional
integerDuration of seconds of the role session-

Responses

NameDescriptionExample
assumed_role_userAssumed Role ID
credentialsTemporary Credentials

2 - 1.0

scp-cli sts sts assume role
--role_session_name <value>
--role_indicator <value>
[--duration_seconds <value>]

Description

Acquire temporary role credential

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020260531

Parameters

NameTypeDescriptionExample
role_session_name
required
stringRole Session Name-
role_indicator
required
stringIdentifier of the role to assume. [offering:account_id:role_name]qa2:afd580f490394896a6bceabf77683c6bd:role_name
duration_seconds
optional
integerDuration of seconds of the role session-

Responses

NameDescriptionExample
assumed_role_userAssumed Role ID
credentialsTemporary Credentials