Skip to main content
POST
Create a network

Authorizations

Authorization
string
header
required

API key authentication. API keys should be passed using the format Bearer API_KEY.

Path Parameters

projectId
string
required

Body

application/json

Create network params

dataCenterId
string
required
id
string
required
ipRange
string
required
priceHr
object

A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.

state
enum<string>
default:STATE_UNKNOWN
Available options:
STATE_UNKNOWN,
ACTIVE,
CREATING,
DELETED,
DELETING,
FAILED,
STARTING,
STOPPED,
STOPPING,
UPDATING
vmState
enum<string>
default:CLONING
Available options:
CLONING,
CREATING_SNAPSHOT,
DELETED,
DELETING,
DELETING_SNAPSHOT,
FAILED,
HOTPLUGGING,
MIGRATING,
RECREATING,
REVERTING_SNAPSHOT,
RESIZING,
RESIZING_DISK,
ACTIVE,
STARTING,
STOPPED,
STOPPING,
SUSPENDED,
SUSPENDING,
UNKNOWN,
PENDING

Response

A successful response.

dataCenterId
string
required
id
string
required
ipRange
string
required
projectId
string
required
createTime
string<date-time>
read-only
externalIpAddress
string
read-only
gateway
string
read-only
internalIpAddress
string
read-only
priceHr
object

A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.

state
enum<string>
default:STATE_UNKNOWN
Available options:
STATE_UNKNOWN,
ACTIVE,
CREATING,
DELETED,
DELETING,
FAILED,
STARTING,
STOPPED,
STOPPING,
UPDATING
vmState
enum<string>
default:CLONING
Available options:
CLONING,
CREATING_SNAPSHOT,
DELETED,
DELETING,
DELETING_SNAPSHOT,
FAILED,
HOTPLUGGING,
MIGRATING,
RECREATING,
REVERTING_SNAPSHOT,
RESIZING,
RESIZING_DISK,
ACTIVE,
STARTING,
STOPPED,
STOPPING,
SUSPENDED,
SUSPENDING,
UNKNOWN,
PENDING