1.2
1.2
scpcli organization service control policy create
--organization_id <value>
--name <value>
--description <value>
[--type <value>]
[--statement <value>]
[--version <value>]
Description
create a service control policy
State ACTIVE (CURRENT)
| Version | Not Before |
|---|---|
| 1.2 | - |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| organization_id required | string | Organization ID | o-x9y8z7w6v5u4t3s2r1q0p9o8n7m6l5 |
| name required | string | Service Control Policy Name | MyPolicy |
| description required | string | Policy Description | This is an example policy. |
| type optional | string | Service Control Policy Type | MANAGED |
| statement optional | array | Policy Syntax | '{"Action": ["s3:PutObject", "s3:GetObject"], "Condition": "", "Effect": "Allow", "NotAction": [""], "Principal": "", "Resource": ["*"], "Sid": "statement1"}' |
| version optional | string | Policy Version | - |
Responses
| Name | Description | Example |
|---|---|---|
| id | Service Control Policy ID | 138c2fc8c29a449dbfa8681f8f1d78e2 |
| category | Policy Category | SCP |
| created_at | Created At | 2025-01-01T00:00:00.000Z |
| created_by | Created By | c23fb561c689455993874fa5d5ed4a2f |
| creator_name | Creator Name | John Doe na |
| description | Policy Description | This is an example policy. |
| document | Policy Document | {‘Statement’: [{‘Action’: [’’], ‘Effect’: ‘Allow’, ‘Resource’: [’’], ‘Sid’: ‘statement1’}], ‘Version’: ‘2024-07-01’} |
| modified_at | Modified At | 2025-01-01T00:00:00.000Z |
| modified_by | Modified By | c23fb561c689455993874fa5d5ed4a2f |
| modifier_name | Modifier Name | Alice |
| name | Service Control Policy Name | MyPolicy |
| organization_id | Organization ID | o-x9y8z7w6v5u4t3s2r1q0p9o8n7m6l5 |
| service_name | Service Name | Organization |
| source | Policy Creation Subject | ORGANIZATION |
| srn | Policy SRN | srn:dev2::1b8c29a138d78e24bf1fa86812fcaa:kr-west1::organizations/service-control-policy/138c2fc8c29a449dbfa8681f8f1d78e2 |
| state | Policy State | ACTIVE |
| type | Service Control Policy Type | MANAGED |