1.3
1.3
scpcli iam role create
--version <value>
--statement <value>
--policy_ids <value>
--name <value>
[--account_id <value>]
[--description <value>]
[--max_session_duration <value>]
[--principals <value>]
[--role_type <value>]
[--tags <value>]
Description
Create role
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.3 | - |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| version required | string | Policy Version | 2024-07-01 |
| statement required | array | 문장 | '{"Action": ["iam:*"], "Condition": {"StringEquals": {"scp:RequestedRegion": ["kr-west1"]}}, "Effect": "Allow", "NotAction": [], "Principal": [], "Resource": ["*"], "Sid": "Statement1"}' |
| policy_ids required | array | 역할에 연결할 정책 ID 목록 | 37f2e31ff86b415698d7e8eeafab445d |
| name required | string | 역할명 | - |
| account_id optional | string | Account ID | - |
| description optional | string | 역할 설명 | - |
| max_session_duration optional | integer | Role Maximum Session Duration (seconds) | 3600 |
| principals optional | array | 신뢰 정책 주체 목록 | '{"type": "", "value": ""}' |
| role_type optional | string | 역할 유형 | - |
| tags optional | array | 역할 태그 | {'key': 'company', 'value': 'SDS'} |
Responses
| Name | Description | Example |
|---|---|---|
| id | ID | f39c460fade34fecb05ede8f904b24b7 |
| account_id | Account ID | |
| assume_role_policy_document | 역할 신뢰 정책 | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | ef50cdc207f05f6fb8f20219f229ed1f |
| creator_email | 생성자 이메일 | |
| creator_name | 생성자 성, 이름 | |
| description | 역할 설명 | |
| max_session_duration | 역할 최대 세션 지속 시간(초) | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | ef50cdc207f05f6fb8f20219f229ed1f |
| modifier_email | 수정자 이메일 | |
| modifier_name | 수정자 성, 이름 | |
| name | 역할명 | |
| policies | 역할에 연결된 정책 목록 | |
| type | 역할 유형 |