Overview
SCP에서 제공하는 BillingPlan 서비스를 프로그램적으로 이용할 수 있도록 지원하는 명령 줄 인터페이스(Command-line interface, CLI)를 제공합니다.
본 가이드는 BillingPlan 서비스에 대한 간략한 설명 및 CLI를 호출하는 방법을 제공합니다.
Version
| Version | Status | Supported Until |
|---|---|---|
| 1.0 | CURRENT | - |
이 섹션의 다중 페이지 출력 화면임. 여기를 클릭하여 프린트.
scpcli billingplan set planned compute
--planned_compute_id <value>
[--action <value>]
[--contract_type <value>]
[--server_type <value>]
Change action request planned compute.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| planned_compute_id required | string | Planned Compute Id | 5f3688a192094ddeb0c94166a3e88935 |
| action optional | string | Planned Compute change request action type | EXTEND_CHANGE |
| contract_type optional | **** | Contract type is required in the case of EXTEND_APPLY or EXTEND_CHANGE | 01 |
| server_type optional | string | Server Type is required in the case of SERVER_TYPE_CHANGE | s1v1m2 |
scpcli billingplan create planned computes
--contract_type <value>
--os_type <value>
--server_type <value>
--service_id <value>
[--service_name <value>]
[--tag <value>]
Create request planned compute.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| contract_type required | string | Contract Type | 01 |
| os_type required | string | OS Type | OPEN_SOURCE |
| server_type required | string | Server Type | s1v1m2 |
| service_id required | string | Service Id | VIRTUAL_SERVER |
| service_name optional | string | Service Name | Virtual Server |
| tag optional | array | Tag Form | '{"key": "key1", "value": "value1"}' |
| Name | Description | Example |
|---|---|---|
| id | Planned Compute Id | 5f3688a192094ddeb0c94166a3e88935 |
| start_date | Start date (YYYY-MM-dd) | 2024-08-01 |
| end_date | End date (YYYY-MM-dd) | 2024-08-01 |
| contract_id | Contract Id | C002612775 |
| account_id | Account Id | 228cb9e4a7934f84853594c7f26f7a21 |
| region | Region | kr-west1 |
| service_id | Service Id | VIRTUAL_SERVER |
| service_name | Service Name | Virtual Server |
| os_type | OS Type | OPEN_SOURCE |
| os_name | OS Name | Open Source |
| server_type | Server Type | s1v1m2 |
| server_type_description | Server Type Description | |
| srn | SRN | srn:e::26affb52e16944038a0cd2cc26060e1c:kr1-west1::compute:instance/INSTANCE-UPOg3Z6ZqyiMM0QyC3sI2m |
| resource_type | Resource Type | instance |
| contract_type | Contract Type | 1-year |
| next_contract_type | Next Contract Type | 1-year |
| first_contract_start_at | Start date (YYYY-MM-dd) | 2024-08-01 |
| next_start_date | Next Start date (YYYY-MM-dd) | 2024-08-01 |
| next_end_date | Next End date (YYYY-MM-dd) | 2024-08-31 |
| state | Planned Compute State | ACTIVE |
| delete_yn | Delete or not | N |
| resource_name | Resource Name | test-vm |
| created_at | Created date | 2024-08-01 00:00:00 |
| created_by | Created by | user123 |
| modified_at | Modified date | 2024-08-01 00:00:00 |
| modified_by | Modified by | kim |
scpcli billingplan get planned computes
--planned_compute_id <value>
Get planned compute.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| planned_compute_id required | string | Planned Compute Id | 5f3688a192094ddeb0c94166a3e88935 |
| Name | Description | Example |
|---|---|---|
| id | Planned Compute Id | 5f3688a192094ddeb0c94166a3e88935 |
| start_date | Start date (YYYY-MM-dd) | 2024-08-01 |
| end_date | End date (YYYY-MM-dd) | 2024-08-01 |
| contract_id | Contract Id | C002612775 |
| account_id | Account Id | 228cb9e4a7934f84853594c7f26f7a21 |
| region | Region | kr-west1 |
| service_id | Service Id | VIRTUAL_SERVER |
| service_name | Service Name | Virtual Server |
| os_type | OS Type | OPEN_SOURCE |
| os_name | OS Name | Open Source |
| server_type | Server Type | s1v1m2 |
| server_type_description | Server Type Description | |
| srn | SRN | srn:e::26affb52e16944038a0cd2cc26060e1c:kr1-west1::compute:instance/INSTANCE-UPOg3Z6ZqyiMM0QyC3sI2m |
| resource_type | Resource Type | instance |
| contract_type | Contract Type | 1-year |
| next_contract_type | Next Contract Type | 1-year |
| first_contract_start_at | Start date (YYYY-MM-dd) | 2024-08-01 |
| next_start_date | Next Start date (YYYY-MM-dd) | 2024-08-01 |
| next_end_date | Next End date (YYYY-MM-dd) | 2024-08-31 |
| state | Planned Compute State | ACTIVE |
| delete_yn | Delete or not | N |
| resource_name | Resource Name | test-vm |
| created_at | Created date | 2024-08-01 00:00:00 |
| created_by | Created by | user123 |
| modified_at | Modified date | 2024-08-01 00:00:00 |
| modified_by | Modified by | kim |
scpcli billingplan get cancellation fee
--planned_compute_id <value>
[--region <value>]
Get Cancellation Fee
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| planned_compute_id required | array | Planned Compute Id | 5 |
| region optional | string | Region | kr-west1 |
| Name | Description | Example |
|---|---|---|
| code | Currency code | KRW |
| symbol | Currency Symbol | ₩ |
scpcli billingplan list planned compute contract types
[--service_id <value>]
[--server_type <value>]
Get Contract Type List.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| service_id optional | string | Service Id | VIRTUAL_SERVER |
| server_type optional | string | Server Type | s1v1m2 |
| Name | Description | Example |
|---|---|---|
| code | Contract Code | 01 |
| display_name | Display Name | 1-year |
scpcli billingplan list os types
[--service_id <value>]
Get Os System List.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| service_id optional | string | Service Id | VIRTUAL_SERVER |
| Name | Description | Example |
|---|---|---|
| os_type_id | OS Type id | OPEN_SOURCE |
| display_name | Display Name | Open Source |
| os_type_value | Display Name | opensource |
scpcli billingplan list planned compute instances
--end_date <value>
--start_date <value>
--server_type <value>
--os_type <value>
--service_id <value>
Get Planned Compute Covered Resource List.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| end_date required | string | End date (YYYY-MM-dd) | 2024-08-01 |
| start_date required | string | Start date (YYYY-MM-dd) | 2024-08-01 |
| server_type required | string | Server Type | s1v1m2 |
| os_type required | string | OS Type | OPEN_SOURCE |
| service_id required | string | Service Id | VIRTUAL_SERVER |
| Name | Description | Example |
|---|---|---|
| resource_name | Resource Name | test-vm |
| contract_id | Contract Id | C002612775 |
| used_time | Used time Hour | 10 |
| unit_price | Unit Price | |
| used_amount | Used amount | |
| non_applied_amount | Non Applied Amount | |
| request_at | Request At | 2024-08-01 00:00:00 |
scpcli billingplan list planned compute server types
[--service_id <value>]
[--current_server_type <value>]
[--os_type <value>]
Get Server Type List
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | - |
| Name | Type | Description | Example |
|---|---|---|---|
| service_id optional | string | Service Id | VIRTUAL_SERVER |
| current_server_type optional | string | Server Type | s1v1m2 |
| os_type optional | string | OS Type | OPEN_SOURCE |
| Name | Description | Example |
|---|---|---|
| server_type | Server Type | s1v1m2 |
| server_type_description | Server Type Description | |
| instance_type | Instance Type | s1 |
| core | Instance Core | 1 |
| memory_gb | Instance Memory GB | 2 |
| gpu_name | Gpu Model Name | a100 |
| scale_up_yn | Scale up or not. If server_type > current_server_type, it’s represented as Y. if smaller N. | Y |