BillingPlan

Overview

SCP에서 제공하는 BillingPlan 서비스를 프로그램적으로 이용할 수 있도록 지원하는 명령 줄 인터페이스(Command-line interface, CLI)를 제공합니다.

본 가이드는 BillingPlan 서비스에 대한 간략한 설명 및 CLI를 호출하는 방법을 제공합니다.

Version

VersionStatusSupported Until
1.0CURRENT-

1 - CLIs

1.1 - Change Request Planned Compute

1.1.1 - 1.0

scpcli billingplan set planned compute
--planned_compute_id <value>
[--action <value>]
[--contract_type <value>]
[--server_type <value>]

Description

Change action request planned compute.

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
planned_compute_id
required
stringPlanned Compute Id5f3688a192094ddeb0c94166a3e88935
action
optional
stringPlanned Compute change request action typeEXTEND_CHANGE
contract_type
optional
****Contract type is required in the case of EXTEND_APPLY or EXTEND_CHANGE01
server_type
optional
stringServer Type is required in the case of SERVER_TYPE_CHANGEs1v1m2

1.2 - Create Request Planned Computes

1.2.1 - 1.0

scpcli billingplan create planned computes
--contract_type <value>
--os_type <value>
--server_type <value>
--service_id <value>
[--service_name <value>]
[--tag <value>]

Description

Create request planned compute.

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
contract_type
required
stringContract Type01
os_type
required
stringOS TypeOPEN_SOURCE
server_type
required
stringServer Types1v1m2
service_id
required
stringService IdVIRTUAL_SERVER
service_name
optional
stringService NameVirtual Server
tag
optional
arrayTag Form'{"key": "key1", "value": "value1"}'

Responses

NameDescriptionExample
idPlanned Compute Id5f3688a192094ddeb0c94166a3e88935
start_dateStart date (YYYY-MM-dd)2024-08-01
end_dateEnd date (YYYY-MM-dd)2024-08-01
contract_idContract IdC002612775
account_idAccount Id228cb9e4a7934f84853594c7f26f7a21
regionRegionkr-west1
service_idService IdVIRTUAL_SERVER
service_nameService NameVirtual Server
os_typeOS TypeOPEN_SOURCE
os_nameOS NameOpen Source
server_typeServer Types1v1m2
server_type_descriptionServer Type Description
srnSRNsrn:e::26affb52e16944038a0cd2cc26060e1c:kr1-west1::compute:instance/INSTANCE-UPOg3Z6ZqyiMM0QyC3sI2m
resource_typeResource Typeinstance
contract_typeContract Type1-year
next_contract_typeNext Contract Type1-year
first_contract_start_atStart date (YYYY-MM-dd)2024-08-01
next_start_dateNext Start date (YYYY-MM-dd)2024-08-01
next_end_dateNext End date (YYYY-MM-dd)2024-08-31
statePlanned Compute StateACTIVE
delete_ynDelete or notN
resource_nameResource Nametest-vm
created_atCreated date2024-08-01 00:00:00
created_byCreated byuser123
modified_atModified date2024-08-01 00:00:00
modified_byModified bykim

1.3 - Get Planned Compute

1.3.1 - 1.0

scpcli billingplan get planned computes
--planned_compute_id <value>

Description

Get planned compute.

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
planned_compute_id
required
stringPlanned Compute Id5f3688a192094ddeb0c94166a3e88935

Responses

NameDescriptionExample
idPlanned Compute Id5f3688a192094ddeb0c94166a3e88935
start_dateStart date (YYYY-MM-dd)2024-08-01
end_dateEnd date (YYYY-MM-dd)2024-08-01
contract_idContract IdC002612775
account_idAccount Id228cb9e4a7934f84853594c7f26f7a21
regionRegionkr-west1
service_idService IdVIRTUAL_SERVER
service_nameService NameVirtual Server
os_typeOS TypeOPEN_SOURCE
os_nameOS NameOpen Source
server_typeServer Types1v1m2
server_type_descriptionServer Type Description
srnSRNsrn:e::26affb52e16944038a0cd2cc26060e1c:kr1-west1::compute:instance/INSTANCE-UPOg3Z6ZqyiMM0QyC3sI2m
resource_typeResource Typeinstance
contract_typeContract Type1-year
next_contract_typeNext Contract Type1-year
first_contract_start_atStart date (YYYY-MM-dd)2024-08-01
next_start_dateNext Start date (YYYY-MM-dd)2024-08-01
next_end_dateNext End date (YYYY-MM-dd)2024-08-31
statePlanned Compute StateACTIVE
delete_ynDelete or notN
resource_nameResource Nametest-vm
created_atCreated date2024-08-01 00:00:00
created_byCreated byuser123
modified_atModified date2024-08-01 00:00:00
modified_byModified bykim

1.4 - GetCancellationFee

1.4.1 - 1.0

scpcli billingplan get cancellation fee
--planned_compute_id <value>
[--region <value>]

Description

Get Cancellation Fee

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
planned_compute_id
required
arrayPlanned Compute Id5
region
optional
stringRegionkr-west1

Responses

NameDescriptionExample
codeCurrency codeKRW
symbolCurrency Symbol

1.5 - List Contract Type

1.5.1 - 1.0

scpcli billingplan list planned compute contract types
[--service_id <value>]
[--server_type <value>]

Description

Get Contract Type List.

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
service_id
optional
stringService IdVIRTUAL_SERVER
server_type
optional
stringServer Types1v1m2

Responses

NameDescriptionExample
codeContract Code01
display_nameDisplay Name1-year

1.6 - List OS System

1.6.1 - 1.0

scpcli billingplan list os types
[--service_id <value>]

Description

Get Os System List.

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
service_id
optional
stringService IdVIRTUAL_SERVER

Responses

NameDescriptionExample
os_type_idOS Type idOPEN_SOURCE
display_nameDisplay NameOpen Source
os_type_valueDisplay Nameopensource

1.7 - List Planned Compute Covered Resource

1.7.1 - 1.0

scpcli billingplan list planned compute instances
--end_date <value>
--start_date <value>
--server_type <value>
--os_type <value>
--service_id <value>

Description

Get Planned Compute Covered Resource List.

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
end_date
required
stringEnd date (YYYY-MM-dd)2024-08-01
start_date
required
stringStart date (YYYY-MM-dd)2024-08-01
server_type
required
stringServer Types1v1m2
os_type
required
stringOS TypeOPEN_SOURCE
service_id
required
stringService IdVIRTUAL_SERVER

Responses

NameDescriptionExample
resource_nameResource Nametest-vm
contract_idContract IdC002612775
used_timeUsed time Hour10
unit_priceUnit Price
used_amountUsed amount
non_applied_amountNon Applied Amount
request_atRequest At2024-08-01 00:00:00

1.8 - ListServerType

1.8.1 - 1.0

scpcli billingplan list planned compute server types
[--service_id <value>]
[--current_server_type <value>]
[--os_type <value>]

Description

Get Server Type List

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Parameters

NameTypeDescriptionExample
service_id
optional
stringService IdVIRTUAL_SERVER
current_server_type
optional
stringServer Types1v1m2
os_type
optional
stringOS TypeOPEN_SOURCE

Responses

NameDescriptionExample
server_typeServer Types1v1m2
server_type_descriptionServer Type Description
instance_typeInstance Types1
coreInstance Core1
memory_gbInstance Memory GB2
gpu_nameGpu Model Namea100
scale_up_ynScale up or not. If server_type > current_server_type, it’s represented as Y. if smaller N.Y

1.9 - ListServiceType

1.9.1 - 1.0

scpcli billingplan list planned compute service types

Description

Get Service Type List

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.0-

Responses

NameDescriptionExample
service_idService IdVIRTUAL_SERVER
display_nameDisplay NameVirtual Server