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

Create Virtual Server.

State ACTIVE (CURRENT)

VersionNot Before
1.2-

Parameters

NameTypeDescriptionExample
volumes
required
arrayVolumes'{"boot_index": 0, "delete_on_termination": false, "max_iops": 10000, "max_throughput": 500, "size": 104, "source_type": "image", "type": "SSD"}'
server_type_id
required
stringServer type IDs1v1m2
networks
required
arrayList of Network'{"fixed_ip": "192.169.3.2", "port_id": "91424c08-0b26-49fb-9808-ed042292ceef", "public_ip_id": "615fa9cd5cff486c9de679b3ce63e601", "subnet_id": "78b2ee3f074145c580ab6abac4821f97"}'
name
required
stringServer nameservername
keypair_name
required
stringKeypair namekeypairname
image_id
required
stringImage ID70a599e0-31e7-49b7-b260-868f441e862b
file_storage_ids
optional
arrayFile Storage ID list96d258ea-dd5d-4cca-bb3a-b6909b7e2065
lock
optional
booleanSets the server's lock status. When the server is locked, most user actions are not allowed.False
max_count
optional
integerMaximum number of servers to launch.2
metadata
optional
objectUser can specify custom server metadata as a set of key-value pairs.-
partition_number
optional
integerSets the target partition number for server creation. only usable if server group type is partition.1
product_category
optional
****Product categorycompute
product_offering
optional
****Product offeringvirtual_server
security_groups
optional
arraySecurity Groupsc09c3f05-03d9-443f-b27a-40e0f973c75f
server_group_id
optional
stringServer Group ID616fb98f-46ca-475e-917e-2563e5a8cd19
tags
optional
arrayTags'{"key": "Key", "value": "Value"}'
user_data
optional
stringScript or configuration to run when the server starts. it must be Base64-encoded string and must not exceed 65535 bytes.IyEvYmluL2Jhc2gKL2Jpbi9zdQplY2hvICJJIGFtIGluIHlvdSEiCg==

Responses

NameDescriptionExample
idServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f