[Firewall Rule] setFirewallDefault

setFirewallDefault

Summary of the Process by the Function

Sets the default firewall rule to the interface on the specified virtual server

Request Parameters

Specify the following parameter(s) when executing this function.

ParameterDescriptionRequired
Identifier

VM identifier

Specifies the identifier of the virtual server
The virtual server identifier can be obtained through 4.1. listNodes function
It is the identifier in the response object, 4.1. listNodes

default_firewall_rule

Default rule

Specify the setting for the default firewall rule
ACCEPT : Set ACCEPT to the default firewall rule
DROP : Set DROP to the default firewall rule

network_interface_id

Network interface ID

Specifies network interface ID on which the default firewall rule will be set
When more than one network interfaces are set to the relevant virtual server and this parameter is not specified, all the network interfaces connected to the relevant virtual server is set evenly.
The network interface ID can be obtained through 7.1. listNetworkInterfaces function
It is the id in the response object, 7.1. listNetworkInterfaces function

×

Response Objects

Responds in the following format

FieldDescription
Network_interface_id

Returns whether the request of applying the default firewall rule was successful or not

true : When the request is successful
false : When the request is failed



Request Sample

https://api.gmocloud.com/Cloud-Zone-ID/?Action=setFirewallDefault&AccessKeyId=AccessKeyId&Version=1.0&Identifier=identifier_of_VM&default_firewall_rule=DROP&network_interface_id=ID_of_NetworkInterface&Signature=Signature

Response Sample

{
"ID_of_NetworkInterface": true
}

Note: GMO CLOUD AMERICA INC. does not make any guarantee with regard to the content of this manual and will not be held responsible for any damages resulting from customers or third parties.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk