This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Create Server Interface

1 - 1.3

scp-cli virtualserver server add interface
--server_id <value>
[--fixed_ips <value>]
[--port_id <value>]
[--subnet_id <value>]

Description

Create a new network port to the virtual server, or add an existing network port.

When creating a new network port, enter the subnet ID. IP can be set to auto-generate or user input fixed ips.

If you want to add an existing network port, enter the port ID.

State ACTIVE (CURRENT)

VersionNot Before
1.3-

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
fixed_ips
optional
arrayFixed IP list'{"ip_address": "192.169.3.2"}'
port_id
optional
stringPort ID91424c08-0b26-49fb-9808-ed042292ceef
subnet_id
optional
stringSubnet ID78b2ee3f074145c580ab6abac4821f97

Responses

NameDescriptionExample
fixed_ipsFixed IP list[]
mac_addrMAC Addressfa:16:3e:c0:71:2b
port_idPort IDf2b02fc5-a5fd-4b5f-b1a9-987f4c0d66cc
port_statePort StateACTIVE
private_static_natPrivate Static NAT
static_natPublic Static NAT
subnet_idSubnet ID183c6c30df0c4fcbb16422aa2d64aa21

2 - 1.2

scp-cli virtualserver server add interface
--server_id <value>
[--fixed_ips <value>]
[--port_id <value>]
[--subnet_id <value>]

Description

Create a new network port to the virtual server, or add an existing network port.

When creating a new network port, enter the subnet ID. IP can be set to auto-generate or user input fixed ips.

If you want to add an existing network port, enter the port ID.

State ACTIVE (SUPPORTED)

VersionNot Before
1.220260831

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
fixed_ips
optional
arrayFixed IP list'{"ip_address": "192.169.3.2"}'
port_id
optional
stringPort ID91424c08-0b26-49fb-9808-ed042292ceef
subnet_id
optional
stringSubnet ID78b2ee3f074145c580ab6abac4821f97

Responses

NameDescriptionExample
fixed_ipsFixed IP list[]
mac_addrMAC Addressfa:16:3e:c0:71:2b
port_idPort IDf2b02fc5-a5fd-4b5f-b1a9-987f4c0d66cc
port_statePort StateACTIVE
private_static_natPrivate Static NAT
static_natPublic Static NAT
subnet_idSubnet ID183c6c30df0c4fcbb16422aa2d64aa21

3 - 1.1

scp-cli virtualserver server add interface
--server_id <value>
[--fixed_ips <value>]
[--port_id <value>]
[--subnet_id <value>]

Description

Create a new network port to the virtual server, or add an existing network port.

When creating a new network port, enter the subnet ID. IP can be set to auto-generate or user input fixed ips.

If you want to add an existing network port, enter the port ID.

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.120260531

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
fixed_ips
optional
arrayFixed IP list'{"ip_address": "192.169.3.2"}'
port_id
optional
stringPort ID91424c08-0b26-49fb-9808-ed042292ceef
subnet_id
optional
stringSubnet ID78b2ee3f074145c580ab6abac4821f97

Responses

NameDescriptionExample
fixed_ipsFixed IP list[]
mac_addrMAC Addressfa:16:3e:c0:71:2b
port_idPort IDf2b02fc5-a5fd-4b5f-b1a9-987f4c0d66cc
port_statePort StateACTIVE
private_static_natPrivate Static NAT
static_natPublic Static NAT
subnet_idSubnet ID183c6c30df0c4fcbb16422aa2d64aa21

4 - 1.0

scp-cli virtualserver server add interface
--server_id <value>
[--fixed_ips <value>]
[--port_id <value>]
[--subnet_id <value>]

Description

Create a new network port to the virtual server, or add an existing network port.

When creating a new network port, enter the subnet ID. IP can be set to auto-generate or user input fixed ips.

If you want to add an existing network port, enter the port ID.

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020251231

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
fixed_ips
optional
arrayFixed IP list'{"ip_address": "192.169.3.2"}'
port_id
optional
stringPort ID91424c08-0b26-49fb-9808-ed042292ceef
subnet_id
optional
stringSubnet ID78b2ee3f074145c580ab6abac4821f97

Responses

NameDescriptionExample
fixed_ipsFixed IP list[]
mac_addrMAC Addressfa:16:3e:c0:71:2b
port_idPort IDf2b02fc5-a5fd-4b5f-b1a9-987f4c0d66cc
port_statePort StateACTIVE
private_static_natPrivate Static NAT
static_natPublic Static NAT
subnet_idSubnet ID183c6c30df0c4fcbb16422aa2d64aa21