Skip to main content

Internal LB

Internal load balancers for VPC tiers (private-side load balancing).

Resource base path: /restapi/internallb

MethodPathDescription
POST/restapi/internallb/createInternalLbCreate Internal LB
GET/restapi/internallb/internalLbListInternal LB List
GET/restapi/internallb/assignLbRuleAssign Internal LB
DELETE/restapi/internallb/deleteInternalLb/{uuid}Delete Internal LB
note

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


Create Internal LB

Create Internal LB.

POST /restapi/internallb/createInternalLb

Request body

FieldTypeRequiredDescription
sourceportstringNo
instanceportstringNo
namestringNoName of the resource.
descriptionstringNoHuman-readable description.
sourceIpAddressstringNo
networkUuidstringNoUUID of the network.
algorithmstring✅ YesInternal Lb algorithm (source, roundrobin, leastconn) Example: roundrobin
{
"sourceport": "8080",
"instanceport": "8080",
"name": "example-name",
"description": "string",
"sourceIpAddress": "string",
"networkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"algorithm": "roundrobin"
}

Example request

curl -X POST \
"https://portal.your-domain.com/restapi/internallb/createInternalLb" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"sourceport": "8080",
"instanceport": "8080",
"name": "example-name",
"description": "string",
"sourceIpAddress": "string",
"networkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"algorithm": "roundrobin"
}'

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"count": 1,
"listInternalLbResponse": [
{
"instancePort": "8080",
"sourcePort": "8080",
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"sourceIpAddress": "string",
"isActive": true,
"networkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"algorithm": "roundrobin",
"status": "Active"
}
]
}

Internal LB List

Internal LB List.

GET /restapi/internallb/internalLbList

Parameters

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

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/internallb/internalLbList?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.
{
"count": 1,
"listInternalLbResponse": [
{
"instancePort": "8080",
"sourcePort": "8080",
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"sourceIpAddress": "string",
"isActive": true,
"networkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"algorithm": "roundrobin",
"status": "Active"
}
]
}

Assign Internal LB

Assign Internal LB.

GET /restapi/internallb/assignLbRule

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/internallb/assignLbRule?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.
{
"count": 1,
"listInternalLbResponse": [
{
"instancePort": "8080",
"sourcePort": "8080",
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"sourceIpAddress": "string",
"isActive": true,
"networkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"algorithm": "roundrobin",
"status": "Active"
}
]
}

Delete Internal LB

Delete Internal LB.

DELETE /restapi/internallb/deleteInternalLb/{uuid}

Parameters

ParameterInTypeRequiredDescription
uuidpathstring✅ YesUUID of the resource.

Example request

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

Responses

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