Overview
SCP에서 제공하는 IaaS/PaaS 상품을 프로그램적으로 이용할 수 있도록 지원하는 명령 줄 인터페이스(Command-line interface, CLI)를 제공합니다.
본 가이드는 Security Group 서비스에 대한 간략한 설명 및 CLI를 호출하는 방법을 제공합니다.
Version
| Version | Status | Supported Until |
|---|---|---|
| 1.0 | CURRENT | - |
이 섹션의 다중 페이지 출력 화면임. 여기를 클릭하여 프린트.
scpcli security-group security-group create
--name <value>
[--description <value>]
[--loggable <value>]
[--tags <value>]
Security Group을 생성한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| name required | string | Security Group 이름 | - |
| description optional | string | Security Group 설명 | - |
| loggable optional | boolean | Security Group 로깅 여부 | - |
| tags optional | array | 태그 목록 | '{"key": "", "value": ""}' |
| Name | Description | Example |
|---|---|---|
| id | Security Group ID | |
| account_id | Security Group Account ID | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | Security Group 설명 | |
| loggable | Security Group 로깅 여부 | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| name | Security Group 이름 | |
| rule_count | Security Group Rule 수 | |
| state | Security Group 상태 |
scpcli security-group security-group-rule create
--security_group_id <value>
--direction <value>
[--description <value>]
[--ethertype <value>]
[--port_range_max <value>]
[--port_range_min <value>]
[--protocol <value>]
[--remote_group_id <value>]
[--remote_ip_prefix <value>]
Security Group rule을 생성한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_id required | string | Security Group ID | - |
| direction required | string | Security Group Rule Direction (Ingress, Egress) | - |
| description optional | string | Security Group Rule 설명 | - |
| ethertype optional | string | Security Group Rule Ethertype (IPV4, IPV6) | - |
| port_range_max optional | integer | Security Group Rule 포트 범위 최대값 | - |
| port_range_min optional | integer | Security Group Rule 포트 범위 최소값 | - |
| protocol optional | string | Security Group Rule 프로토콜 | - |
| remote_group_id optional | string | Security Group Rule 원격 그룹 ID | - |
| remote_ip_prefix optional | string | Security Group Rule IP 주소 | - |
| Name | Description | Example |
|---|---|---|
| id | Security Group Rule ID | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | Security Group Rule 설명 | |
| direction | Security Group Rule 방향 (Ingress, Egress) | |
| ethertype | Security Group Rule Ethertype (IPV4, IPV6) | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| port_range_max | Security Group Rule 포트 범위 최대값 | |
| port_range_min | Security Group Rule 포트 범위 최소값 | |
| protocol | Security Group Rule 프로토콜 | |
| remote_group_id | Security Group Rule 원격 그룹 ID | |
| remote_group_name | Security Group Rule 원격 그룹 이름 | |
| remote_ip_prefix | Security Group Rule IP 주소 | |
| security_group_id | Security Group ID |
scpcli security-group security-group delete
--security_group_id <value>
Security Group을 삭제한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_id required | string | Security Group ID | - |
scpcli security-group security-group-rule delete
--security_group_rule_id <value>
Security Group rule을 삭제한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_rule_id required | string | Security Group Rule ID | - |
scpcli security-group security-group-rule list
--security_group_id <value>
[--size <value>]
[--page <value>]
[--sort <value>]
[--id <value>]
[--remote_ip_prefix <value>]
[--remote_group_id <value>]
[--description <value>]
[--direction <value>]
[--service <value>]
Security Group rule 목록을 조회한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_id required | string | Security Group ID | - |
| size optional | integer | size | 20 |
| page optional | integer | page | 0 |
| sort optional | string | sort | created_at:desc |
| id optional | string | Security Group Rule ID | - |
| remote_ip_prefix optional | string | Security Group Rule IP 주소 | - |
| remote_group_id optional | string | Security Group Rule 원격 그룹 ID | - |
| description optional | string | Security Group Rule 설명 | - |
| direction optional | string | Security Group Rule 방향 (Ingress, Egress) | - |
| service optional | string | Security Group Rule 서비스 | - |
| Name | Description | Example |
|---|---|---|
| id | Security Group Rule ID | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | Security Group Rule 설명 | |
| direction | Security Group Rule 방향 (Ingress, Egress) | |
| ethertype | Security Group Rule Ethertype (IPV4, IPV6) | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| port_range_max | Security Group Rule 포트 범위 최대값 | |
| port_range_min | Security Group Rule 포트 범위 최소값 | |
| protocol | Security Group Rule 프로토콜 | |
| remote_group_id | Security Group Rule 원격 그룹 ID | |
| remote_group_name | Security Group Rule 원격 그룹 이름 | |
| remote_ip_prefix | Security Group Rule IP 주소 | |
| security_group_id | Security Group ID |
scpcli security-group security-group list
[--size <value>]
[--page <value>]
[--sort <value>]
[--id <value>]
[--name <value>]
Security Group 목록을 조회한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| size optional | integer | size | 20 |
| page optional | integer | page | 0 |
| sort optional | string | sort | created_at:desc |
| id optional | string | Security Group ID | - |
| name optional | string | Security Group 이름 | - |
| Name | Description | Example |
|---|---|---|
| id | Security Group ID | |
| account_id | Security Group Account ID | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | Security Group 설명 | |
| loggable | Security Group 로깅 여부 | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| name | Security Group 이름 | |
| rule_count | Security Group Rule 수 | |
| state | Security Group 상태 |
scpcli security-group security-group set
--security_group_id <value>
[--description <value>]
[--loggable <value>]
Security Group을 수정한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_id required | string | Security Group ID | - |
| description optional | string | Security Group 설명 | - |
| loggable optional | boolean | Security Group 로깅 여부 | - |
scpcli security-group security-group show
--security_group_id <value>
Security Group 상세 조회한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_id required | string | Security Group ID | - |
| Name | Description | Example |
|---|---|---|
| id | Security Group ID | |
| account_id | Security Group Account ID | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | Security Group 설명 | |
| loggable | Security Group 로깅 여부 | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| name | Security Group 이름 | |
| rule_count | Security Group Rule 수 | |
| state | Security Group 상태 |
scpcli security-group security-group-rule show
--security_group_rule_id <value>
[--fields <value>]
Security Group rule을 상세 조회한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| security_group_rule_id required | string | Security Group Rule ID | - |
| fields optional | array | 필드명 | - |
| Name | Description | Example |
|---|---|---|
| id | Security Group Rule ID | |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | Security Group Rule 설명 | |
| direction | Security Group Rule 방향 (Ingress, Egress) | |
| ethertype | Security Group Rule Ethertype (IPV4, IPV6) | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| port_range_max | Security Group Rule 포트 범위 최대값 | |
| port_range_min | Security Group Rule 포트 범위 최소값 | |
| protocol | Security Group Rule 프로토콜 | |
| remote_group_id | Security Group Rule 원격 그룹 ID | |
| remote_group_name | Security Group Rule 원격 그룹 이름 | |
| remote_ip_prefix | Security Group Rule IP 주소 | |
| security_group_id | Security Group ID |