Operation: POST
URL: SoftLayer_Network_SecurityGroup
Example CURL:
$ curl --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" -k -X POST 'https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup' -d '{"parameters": [{"name": "some name","description":"some description"}]}'
Example Response:
{
"createDate": "2017-10-11T11:04:42-05:00",
"description": "some description",
"id": 123456,
"modifyDate": null,
"name": "some name"
}
Operation: GET
URL: SoftLayer_Network_SecurityGroup/{securitygroup_id}
Example CURL:
$ curl --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" -k -X GET 'https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456'
Example Response:
{
"createDate": "2017-10-11T11:04:42-05:00",
"description": "some description",
"id": 123456,
"modifyDate": null,
"name": "some name"
}
Operation: PUT
URL: SoftLayer_Network_SecurityGroup/{securitygroup_id}
Example CURL:
$ curl --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" -k -X PUT 'https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456' -d '{"parameters": [{"description": "new description"}]}'
Example Response:
true
Operation: DELETE
URL: SoftLayer_Network_SecurityGroup/{securitygroup_id}
Example CURL:
$ curl --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" -k -X DELETE 'https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456'
Example Response:
true