1.2
1.2
scpcli virtualserver server create
--volumes <value>
--server_type_id <value>
--networks <value>
--name <value>
--keypair_name <value>
--image_id <value>
[--file_storage_ids <value>]
[--lock <value>]
[--max_count <value>]
[--metadata <value>]
[--partition_number <value>]
[--product_category <value>]
[--product_offering <value>]
[--security_groups <value>]
[--server_group_id <value>]
[--tags <value>]
[--user_data <value>]
Description
서버를 생성합니다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.2 | - |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| volumes required | array | 볼륨 목록 | '{"boot_index": 0, "delete_on_termination": false, "max_iops": 10000, "max_throughput": 500, "size": 104, "source_type": "image", "type": "SSD"}' |
| server_type_id required | string | 서버 타입 ID | s1v1m2 |
| networks required | array | 네트워크 목록 | '{"fixed_ip": "192.169.3.2", "port_id": "91424c08-0b26-49fb-9808-ed042292ceef", "public_ip_id": "615fa9cd5cff486c9de679b3ce63e601", "subnet_id": "78b2ee3f074145c580ab6abac4821f97"}' |
| name required | string | 서버 이름 | servername |
| keypair_name required | string | 키페어 이름 | keypairname |
| image_id required | string | 이미지 ID | 70a599e0-31e7-49b7-b260-868f441e862b |
| file_storage_ids optional | array | File Storage ID list | 96d258ea-dd5d-4cca-bb3a-b6909b7e2065 |
| lock optional | boolean | Sets the server's lock status. When the server is locked, most user actions are not allowed. | False |
| max_count optional | integer | 배포 가능한 서버의 최대 개수 | 2 |
| metadata optional | object | 사용자 정의한 메타데이터를 키-값 쌍의 형태로 지정할 수 있습니다. | - |
| partition_number optional | integer | 서버 생성을 위한 파티션 번호를 선택합니다. 서버 그룹의 유형이 파티션일 때만 사용할 수 있습니다. | 1 |
| product_category optional | **** | 상품군 | compute |
| product_offering optional | **** | 상품 | virtual_server |
| security_groups optional | array | Security Group 목록 | c09c3f05-03d9-443f-b27a-40e0f973c75f |
| server_group_id optional | string | 서버 그룹 ID | 616fb98f-46ca-475e-917e-2563e5a8cd19 |
| tags optional | array | Tags | '{"key": "Key", "value": "Value"}' |
| user_data optional | string | 서버 시작 시 실행되는 스크립트 또는 구성입니다. Base64로 인코딩된 문자열이어야 하며 65535 바이트를 초과할 수 없습니다. | IyEvYmluL2Jhc2gKL2Jpbi9zdQplY2hvICJJIGFtIGluIHlvdSEiCg== |
Responses
| Name | Description | Example |
|---|---|---|
| id | 서버 ID | 2a9be312-5d4b-4bc8-b2ae-35100fa9241f |