使用說明
replaceNetworkAcl異動防火牆服務
Request參數
| 參數 | 說明 | 備註 |
|---|---|---|
| networkAclId |
防火牆服務識別碼 類型 : String 預設值 : 無 是否為複數型態 : 否 |
|
| policyString |
防火牆組態設定列表 類型 : String 預設值 : 無 是否為複數型態 : 是 |
請參考createNetworkAcl的 " Request參數說明範例" 中的 policyString 說明 |
| ipVersion |
IP版本, 0: IPV4, 1: IPV6 類型 : String 預設值 : 0 (ipv4) 是否為複數型態 : 否 |
Response參數
| 參數 | 說明 | 備註 |
|---|---|---|
requestId (非必要參數) |
請求識別碼 類型 : JSON value : string 是否為複數型態 : 否 |
系統自動產生 |
| statusMap |
防火牆服務識別碼-狀態列表 類型 : JSON value : object 是否為複數型態 : 是 |
object為{string,string} 例: { "BF550100010003": "setting" } 狀態值為 setting: 設定中 |
CaaS Request範例
https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=replaceNetworkAcl
&networkAclId=BF550100010003
&policyString=1;;1;;all;;deny;;TCP;;53-53
&chtAuthType=hwspass
&version=${version}
&expires=${expires}
&accessKey=${accessKey}
&signature=${signature}
CaaS Response範例
{
"requestId":"xxxEXAMPLE",
"statusMap": {
"BF550100010003": "setting"
}
}
CVPC Request範例
https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=replaceNetworkAcl
&networkAclId=VF550100010003
&policyString=0;;1;;subnet$0.0.0.0;;nat$VT55020001IOSL;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;0::1;;1;;subnet$192.168.55.0/24;;portforward$VT55020001IOSJ;;accept;;IP/6;;;;LOG$1;;0::2;;1;;fqdn$xxxxx;;slb$VL55020001IOSR;;accept;;ICMP;;;;LOG$1;;0::3;;0;;subnet$192.168.55.0/24;;iprange$192.168.55.0-192.168.55.100;;accept;;UDP/3306-3306,TCP/27017-27017;;;;LOG$1,IP_POOL$210.61.223.76-210.61.223.76;;1::4;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;deny;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;2::5;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;3::7;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;4
&ipVersion=0
&chtAuthType=hwspass
&version=${version}
&expires=${expires}
&accessKey=${accessKey}
&signature=${signature}
CVPC Response範例
{
"requestId":"xxxEXAMPLE",
"statusMap": {
"VF550100010003": "setting"
}
}