Skip to main content

Network

Guest networks that instances attach to.

Resource base path: /restapi/network

MethodPathDescription
POST/restapi/network/createNetworkCreate Network
GET/restapi/network/networkListNetwork List
GET/restapi/network/networkIdRead Network
PUT/restapi/network/updateNetworkUpdate Network
GET/restapi/network/restartNetworkRestart Network
GET/restapi/network/replaceAclReplace Network ACL
GET/restapi/network/changeSecurityGroupChange Network Security Group
DELETE/restapi/network/deleteNetwork/{uuid}Delete Network
note

apikey and secretkey are required HTTP headers on every request and are omitted from the parameter tables below. See Authentication.


Create Network

Create Network.

POST /restapi/network/createNetwork

Parameters

ParameterInTypeRequiredDescription
isPublicquerybooleanNo
securityGroupUuidquerystringNoUUID of the security group.

Request body

FieldTypeRequiredDescription
namestringNoName of the resource.
zoneUuidstringNoUUID of the zone the resource belongs to.
virtualmachineUuidstringNoUUID of the virtual-machine instance.
networkOfferingUuidstringNoUUID of the network offering.
{
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"virtualmachineUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Example request

curl -X POST \
"https://portal.your-domain.com/restapi/network/createNetwork" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"virtualmachineUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}'

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Network List

Network List.

GET /restapi/network/networkList

Parameters

ParameterInTypeRequiredDescription
zoneUuidquerystring✅ YesUUID of the zone the resource belongs to.
uuidquerystringNoUUID of the resource.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/network/networkList?zoneUuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Read Network

Read a single network by UUID.

GET /restapi/network/networkId

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/network/networkId?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Update Network

Update Network.

PUT /restapi/network/updateNetwork

Request body

FieldTypeRequiredDescription
getcIDRstringNo
namestringNoName of the resource.
descriptionstringNoHuman-readable description.
uuidstringNoUUID of the resource.
networkDomainstringNo
{
"getcIDR": "0.0.0.0/0",
"name": "example-name",
"description": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkDomain": "string"
}

Example request

curl -X PUT \
"https://portal.your-domain.com/restapi/network/updateNetwork" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"getcIDR": "0.0.0.0/0",
"name": "example-name",
"description": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkDomain": "string"
}'

Responses

CodeDescription
200Successful operation.
202Accepted — processed asynchronously (poll via the Resource API Status endpoint).
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Restart Network

Restart Network.

GET /restapi/network/restartNetwork

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.
cleanUpNetworkqueryboolean✅ Yes

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/network/restartNetwork?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890&cleanUpNetwork=VALUE" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Replace Network ACL

Replace Network ACL.

GET /restapi/network/replaceAcl

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.
aclUuidquerystring✅ Yes

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/network/replaceAcl?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890&aclUuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Change Network Security Group

Change Network Security Group.

GET /restapi/network/changeSecurityGroup

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.
securityGroupIdqueryinteger (int64)✅ Yes

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/network/changeSecurityGroup?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890&securityGroupId=VALUE" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listNetworkResponse": [
{
"cleanUpNetwork": true,
"getcIDR": "0.0.0.0/0",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"networkOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"networkAclList": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"networkType": "string",
"gateway": "string",
"networkDomain": "string",
"status": "Active"
}
],
"count": 1
}

Delete Network

Delete Network.

DELETE /restapi/network/deleteNetwork/{uuid}

Parameters

ParameterInTypeRequiredDescription
uuidpathstring✅ YesUUID of the resource.

Example request

curl -X DELETE \
"https://portal.your-domain.com/restapi/network/deleteNetwork/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
true