I am trying to provision a subnet using the below REST call
curl -H "Content-Type: application/json" --data @subnet-data.json https://<userid>:<apikey>@api.softlayer.com/rest/v3.1/SoftLayer_Network/4601/createSubnet
where 4601 is the id of my Network.
The JSON Payload is:
{
"parameters": [
{
"networkIdentifier": "172.31.10.0",
"cidr": 24,
"podName": "dal09.pod01",
}
]
}
But I get the following error
{"error":"Bad request","code":"SoftLayer_Exception_WebService_BadRequest"}
Please let me know the correct way to order a Subnet. Also if you can let me know how to find the correct/required parameters that would be great.
Thank you.