- Get an Auth-Token
curl -i -d \
'{ "auth":
{ "RAX-KSKEY:apiKeyCredentials":
{
"username": "luiscachog",
"apiKey": "API-KEY"
}
}
}' -H 'Content-Type: application/json' \
https://identity.api.rackspacecloud.com/v2.0/tokens
- With the Auth-Token get details of the CLB
curl -i -H 'X-Auth-Token: AUTH-TOKEN' -H 'Accept: application/json' \
https://DATACENTER.loadbalancers.api.rackspacecloud.com/v1.0/ACCOUNT_ID/loadbalancers/CLOUD_LOAD_BALANCER_ID
- Update the
timeout
parameter:
curl -i -d \
'{ "loadBalancer":
{
"timeout" : "120"
}
}' \
-H 'X-Auth-Token: AUTH-TOKEN' \
-H 'Content-Type: application/json' \
-X PUT \
https://DATACENTER.loadbalancers.api.rackspacecloud.com/v1.0/ACCOUNT_ID/loadbalancers/CLOUD_LOAD_BALANCER_ID