docs
api
Basic Network(UNet)
UpdateFirewallAttribute

Update Firewall Properties - UpdateFirewallAttribute

Overview

Update Firewall Rules

ℹ️ Note: When updating firewall properties, the new properties will overwrite the original properties.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateFirewallAttribute.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
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
FWIdstringFirewall Resource IDYes
NamestringFirewall name, default is empty, if empty, no modification will be made. At least one of Name, Tag, Remark must be filled in.No
TagstringFirewall business group, default is empty, if empty, no modification will be made. At least one of Name, Tag, Remark must be filled in.No
RemarkstringFirewall remarks, default is empty, if empty, no modification will be made. At least one of Name, Tag, Remark must be filled in.No

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

Example

Request Example

https://api.surfercloud.com/?Action=UpdateFirewallAttribute
&ProjectId=org-ji3f1h
&Region=cn-north-01
&FWId=fw-4qgufv
&Remark=Testapi

Response Example

{
  "Action": "UpdateFirewallAttributeResponse",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved