Skip to main content
GET
/
v1
/
projects
/
{projectId}
/
networks
/
{id}
Get a network
curl --request GET \
  --url https://rest.compute.cudo.org/v1/projects/{projectId}/networks/{id} \
  --header 'Authorization: <api-key>'
{
  "createTime": "2023-11-07T05:31:56Z",
  "dataCenterId": "<string>",
  "externalIpAddress": "<string>",
  "gateway": "<string>",
  "id": "<string>",
  "internalIpAddress": "<string>",
  "ipRange": "<string>",
  "priceHr": {
    "value": "<string>"
  },
  "projectId": "<string>",
  "state": "STATE_UNKNOWN",
  "vmState": "CLONING"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

projectId
string
required
id
string
required

Response

A successful response.

dataCenterId
string
required
id
string
required
ipRange
string
required
projectId
string
required
createTime
string<date-time>
externalIpAddress
string
gateway
string
internalIpAddress
string
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