Basic Network(UNet)

Create Firewall - CreateFirewall


Create Firewall


Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateFirewall.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in.No
Rule.NstringFirewall rules, for example: TCP|22||DROP|LOW|Disable port 22, the first parameter represents the protocol, the second parameter represents the port number, the third parameter is the IP, the fourth parameter is ACCEPT (accept) and DROP (reject), the fifth parameter is the priority: HIGH (high), MEDIUM (medium), LOW (low), the sixth parameter is the custom note for this rule, bj1 does not support adding notes, the maximum length of the note is 64Yes
NamestringFirewall NameYes
TagstringFirewall Business Group, default is DefaultNo
RemarkstringFirewall description, default is emptyNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
FWIdstringFirewall IDNo


Request Example

Response Example

  "Action": "CreateFirewallResponse",
  "FWId": "dzPBwJgP",
  "RetCode": 0
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.