Scale Load Balancer
Second day scale operation for load balancer
Request
URI
POST
https://{api_host}/iaas/api/load-balancers/{id}/operations/scale
COPY
Path Parameters
string
id
Required
The ID of the load balancer.
Query Parameters
string
apiVersion
Optional
The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about
Request Body
LoadBalancer Specification instance
LoadBalancerSpecification
of type(s)
application/json
Optional
Show optional properties
{
"name": "string",
"projectId": "e058",
"routes": [
{
"protocol": "TCP, UDP",
"port": "80",
"memberProtocol": "TCP, UDP",
"memberPort": "80"
}
],
"nics": [
{
"name": "string",
"networkId": "dcd9"
}
]
}
{
"name": "string",
"projectId": "e058",
"description": "string",
"routes": [
{
"protocol": "TCP, UDP",
"port": "80",
"memberProtocol": "TCP, UDP",
"memberPort": "80",
"healthCheckConfiguration": {
"protocol": "HTTP, HTTPS",
"port": "80",
"urlPath": "/index.html",
"intervalSeconds": 60,
"timeoutSeconds": 5,
"unhealthyThreshold": 5,
"healthyThreshold": 2
}
}
],
"nics": [
{
"name": "string",
"description": "string",
"deviceIndex": 1,
"networkId": "dcd9",
"addresses": [
"string"
],
"securityGroupIds": [
"string"
],
"customProperties": {
"customProperties": "string"
}
}
],
"targetLinks": [
"string"
],
"customProperties": {
"customProperties": "string"
},
"tags": [
{
"key": "string",
"value": "string"
}
],
"internetFacing": false
}
Responses
202
successful operation
Returns
RequestTracker
of type(s)
application/json
"RequestTracker Object"
integer As int32
As int32
progress
Required
Progress of the request as percentage.
string
message
Optional
Status message of the request.
string
status
Required
Status of the request.
Possible values are :
FINISHED,
INPROGRESS,
FAILED,
array of
string
resources
Optional
Collection of resources.
string
name
Optional
Name of the operation.
string
id
Required
ID of this request.
string
selfLink
Required
Self link of this request.
403
Forbidden
Operation doesn't return any data structure
404
Not Found
Operation doesn't return any data structure
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","nics":["object"],"projectId:"string","routes":["object"]}' https://{api_host}/iaas/api/load-balancers/{id}/operations/scale