cURL
curl --request POST \ --url https://console.gmicloud.com/api/v1/firewalls \ --header 'Content-Type: application/json' \ --data '{ "description": "<string>", "inboundRules": [ { "description": "<string>", "portRange": { "max": 32768, "min": 32768 }, "protocol": "tcp", "remoteIpPrefix": "237.84.2.178/24" } ], "name": "<string>", "idc": "<string>" }'
200
example
{ "description": "<string>", "inboundRules": [ { "description": "<string>", "portRange": { "max": 32768, "min": 32768 }, "protocol": "tcp", "remoteIpPrefix": "237.84.2.178/24" } ], "name": "<string>", "idc": "<string>", "assoInstances": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "active"}
Show child attributes
255
successful
active
building
error