diff --git a/docs/cfw/api-ref/ALL_META.TXT.json b/docs/cfw/api-ref/ALL_META.TXT.json new file mode 100644 index 00000000..c934959a --- /dev/null +++ b/docs/cfw/api-ref/ALL_META.TXT.json @@ -0,0 +1,1565 @@ +[ + { + "dockw":"API Reference" + }, + { + "uri":"cfw_02_0026.html", + "node_id":"cfw_02_0026.xml", + "product_code":"cfw", + "code":"1", + "des":"Cloud service APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform", + "doc_type":"api", + "kw":"API Usage Guidelines,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"API Usage Guidelines", + "githuburl":"" + }, + { + "uri":"cfw_02_0012.html", + "node_id":"cfw_02_0012.xml", + "product_code":"cfw", + "code":"2", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"API", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw", + "IsBot":"Yes", + "opensource":"true" + } + ], + "title":"API", + "githuburl":"" + }, + { + "uri":"topic_300000000.html", + "node_id":"topic_300000000.xml", + "product_code":"cfw", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Firewall Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Firewall Management", + "githuburl":"" + }, + { + "uri":"CreateFirewall.html", + "node_id":"createfirewall.xml", + "product_code":"cfw", + "code":"4", + "des":"This API is used to create firewall.POST /v2/{project_id}/firewallStatus code: 200Status code: 400Enable a standard firewall with 2000 extended EIP, 5,000 Mbps extended p", + "doc_type":"api", + "kw":"Create Firewall,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"CreateFirewall" + } + ], + "title":"Create Firewall", + "githuburl":"" + }, + { + "uri":"ListJob.html", + "node_id":"listjob.xml", + "product_code":"cfw", + "code":"5", + "des":"This API is used to obtain job status.GET /v3/{project_id}/jobs/{job_id}Status code: 200Get job status of the job which job id is f588ce71-e26c-400d-8981-f854355f6849 and", + "doc_type":"api", + "kw":"List Job Status,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListJob" + } + ], + "title":"List Job Status", + "githuburl":"" + }, + { + "uri":"DeleteFirewall.html", + "node_id":"deletefirewall.xml", + "product_code":"cfw", + "code":"6", + "des":"Delete firewall instance,only postpaid mode is supported.DELETE /v2/{project_id}/firewall/{resource_id}Status code: 200Delete firewall whose firewall instance id is 08065", + "doc_type":"api", + "kw":"Delete firewall instance,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteFirewall" + } + ], + "title":"Delete firewall instance", + "githuburl":"" + }, + { + "uri":"ListFirewallList.html", + "node_id":"listfirewalllist.xml", + "product_code":"cfw", + "code":"7", + "des":"list firewall listPOST /v1/{project_id}/firewalls/listStatus code: 200Query the firewall list on the first page of the enterprise project whose ID is all_granted_eps and ", + "doc_type":"api", + "kw":"list firewall list,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListFirewallList" + } + ], + "title":"list firewall list", + "githuburl":"" + }, + { + "uri":"ListEastWestFirewall.html", + "node_id":"listeastwestfirewall.xml", + "product_code":"cfw", + "code":"8", + "des":"This API is used to obtain east-west firewall information.GET /v1/{project_id}/firewall/east-westStatus code: 200Status code: 500Obtain the east-west firewall information", + "doc_type":"api", + "kw":"Obtaining East-West Firewall Information,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListEastWestFirewall" + } + ], + "title":"Obtaining East-West Firewall Information", + "githuburl":"" + }, + { + "uri":"CreateEastWestFirewall.html", + "node_id":"createeastwestfirewall.xml", + "product_code":"cfw", + "code":"9", + "des":"This API is used to create east west firewall.POST /v1/{project_id}/firewall/east-westStatus code: 200Create an east-west protection in ER mode under firewall 55b26ab5-e4", + "doc_type":"api", + "kw":"Create East West Firewall,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"CreateEastWestFirewall" + } + ], + "title":"Create East West Firewall", + "githuburl":"" + }, + { + "uri":"ListProtectedVpcs.html", + "node_id":"listprotectedvpcs.xml", + "product_code":"cfw", + "code":"10", + "des":"This API is used to query protected VPCs.GET /v1/{project_id}/vpcs/protectionStatus code: 200Status code: 500Query the east-west firewall protection information about the", + "doc_type":"api", + "kw":"Querying the Number of Protected VPCs,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListProtectedVpcs" + } + ], + "title":"Querying the Number of Protected VPCs", + "githuburl":"" + }, + { + "uri":"ChangeEastWestFirewallStatus.html", + "node_id":"changeeastwestfirewallstatus.xml", + "product_code":"cfw", + "code":"11", + "des":"This API is used to enable or disable east-west protection.POST /v1/{project_id}/firewall/east-west/protectStatus code: 200Status code: 400In the project with the ID 09bb", + "doc_type":"api", + "kw":"Changing the East-West Firewall Protection Status,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ChangeEastWestFirewallStatus" + } + ], + "title":"Changing the East-West Firewall Protection Status", + "githuburl":"" + }, + { + "uri":"ListFirewallDetail.html", + "node_id":"listfirewalldetail.xml", + "product_code":"cfw", + "code":"12", + "des":"This API is used to query a firewall instance.GET /v1/{project_id}/firewall/existStatus code: 200Query the firewall list of the project whose ID is 9d80d070b6d44942af73c9", + "doc_type":"api", + "kw":"List Firewall Detail,Firewall Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListFirewallDetail" + } + ], + "title":"List Firewall Detail", + "githuburl":"" + }, + { + "uri":"topic_300000001.html", + "node_id":"topic_300000001.xml", + "product_code":"cfw", + "code":"13", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"EIP Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"EIP Management", + "githuburl":"" + }, + { + "uri":"ListEipCount.html", + "node_id":"listeipcount.xml", + "product_code":"cfw", + "code":"14", + "des":"This API is used to query the number of EIPs.GET /v1/{project_id}/eip-count/{object_id}Status code: 200Status code: 400Query the number of EIPs whose project ID is 9d80d0", + "doc_type":"api", + "kw":"Querying the Number of EIPs,EIP Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListEipCount" + } + ], + "title":"Querying the Number of EIPs", + "githuburl":"" + }, + { + "uri":"ChangeEipStatus.html", + "node_id":"changeeipstatus.xml", + "product_code":"cfw", + "code":"15", + "des":"Enable and disable EIPs, you need to use ListEips to synchronize EIP assets and set the sync field to 1 before enabling EIP protection for the first time after purchasing", + "doc_type":"api", + "kw":"Enabling or Disabling an EIP,To enable and disable EIP, you must use ListEips to synchronize EIP ass", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ChangeEipStatus" + } + ], + "title":"Enabling or Disabling an EIP,To enable and disable EIP, you must use ListEips to synchronize EIP assets before enabling EIP protection for the first time after purchasing EIP, and set the sync field to 1.", + "githuburl":"" + }, + { + "uri":"ListEips.html", + "node_id":"listeips.xml", + "product_code":"cfw", + "code":"16", + "des":"This API is used to query the EIP list.GET /v1/{project_id}/eips/protectStatus code: 200Status code: 400Query the data on the non-synchronized first page whose project ID", + "doc_type":"api", + "kw":"Querying the EIP List,EIP Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListEips" + } + ], + "title":"Querying the EIP List", + "githuburl":"" + }, + { + "uri":"topic_300000002.html", + "node_id":"topic_300000002.xml", + "product_code":"cfw", + "code":"17", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"ACL Rule Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"ACL Rule Management", + "githuburl":"" + }, + { + "uri":"AddAclRule.html", + "node_id":"addaclrule.xml", + "product_code":"cfw", + "code":"18", + "des":"This API is used to create an ACL rule.POST /v1/{project_id}/acl-ruleStatus code: 200Status code: 400The following example shows how to add an IPv4 inbound rule. The rule", + "doc_type":"api", + "kw":"Creating an ACL Rule,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddAclRule" + } + ], + "title":"Creating an ACL Rule", + "githuburl":"" + }, + { + "uri":"BatchDeleteAclRules.html", + "node_id":"batchdeleteaclrules.xml", + "product_code":"cfw", + "code":"19", + "des":"Batch Delete Acl RulesDELETE /v1/{project_id}/acl-ruleStatus code: 200Delete the rule with the object id ae42418e-f077-41a0-9d3b-5b2f5ad9102b under the project id 9d80d07", + "doc_type":"api", + "kw":"Batch Delete Acl Rules,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"BatchDeleteAclRules" + } + ], + "title":"Batch Delete Acl Rules", + "githuburl":"" + }, + { + "uri":"UpdateAclRule.html", + "node_id":"updateaclrule.xml", + "product_code":"cfw", + "code":"20", + "des":"This API is used to update an ACL rule.PUT /v1/{project_id}/acl-rule/{acl_rule_id}Status code: 200Status code: 400The following example shows how to update an IPv4 inboun", + "doc_type":"api", + "kw":"Updating an ACL Rule,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateAclRule" + } + ], + "title":"Updating an ACL Rule", + "githuburl":"" + }, + { + "uri":"BatchUpdateAclRuleActions.html", + "node_id":"batchupdateaclruleactions.xml", + "product_code":"cfw", + "code":"21", + "des":"This API is used to update rule actions in batches.PUT /v1/{project_id}/acl-rule/actionStatus code: 200Update the statuses of rules 4e12d889-c1d3-491b-8470-3d1b3dadc1fd a", + "doc_type":"api", + "kw":"Updating Rule Actions in Batches,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"BatchUpdateAclRuleActions" + } + ], + "title":"Updating Rule Actions in Batches", + "githuburl":"" + }, + { + "uri":"ListRuleAclTags.html", + "node_id":"listruleacltags.xml", + "product_code":"cfw", + "code":"22", + "des":"This API is used to list acl rule tags.GET /v2/{project_id}/cfw-acl/tagsStatus code: 200Query the existing ACL tags of the firewall whose ID is 546af3f8-88e9-47f2-a205-23", + "doc_type":"api", + "kw":"List Acl Rule Tags,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListRuleAclTags" + } + ], + "title":"List Acl Rule Tags", + "githuburl":"" + }, + { + "uri":"ListAclRuleHitCount.html", + "node_id":"listaclrulehitcount.xml", + "product_code":"cfw", + "code":"23", + "des":"This API is used to obtain the rule hit count.POST /v1/{project_id}/acl-rule/countStatus code: 200Query the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 in the p", + "doc_type":"api", + "kw":"Obtaining the Rule Hit Count,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAclRuleHitCount" + } + ], + "title":"Obtaining the Rule Hit Count", + "githuburl":"" + }, + { + "uri":"DeleteAclRuleHitCount.html", + "node_id":"deleteaclrulehitcount.xml", + "product_code":"cfw", + "code":"24", + "des":"This API is used to delete the rule hit count.DELETE /v1/{project_id}/acl-rule/countStatus code: 400Clear the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 in the", + "doc_type":"api", + "kw":"Deleting the Rule Hit Count,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteAclRuleHitCount" + } + ], + "title":"Deleting the Rule Hit Count", + "githuburl":"" + }, + { + "uri":"DeleteAclRule.html", + "node_id":"deleteaclrule.xml", + "product_code":"cfw", + "code":"25", + "des":"This API is used to delete an ACL rule group.DELETE /v1/{project_id}/acl-rule/{acl_rule_id}Status code: 200Status code: 400Delete the rule whose project ID is 9d80d070b6d", + "doc_type":"api", + "kw":"Delete Acl Rule,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteAclRule" + } + ], + "title":"Delete Acl Rule", + "githuburl":"" + }, + { + "uri":"ListAclRules.html", + "node_id":"listaclrules.xml", + "product_code":"cfw", + "code":"26", + "des":"This API is used to query a protection rule.GET /v1/{project_id}/acl-rulesStatus code: 200Status code: 400Query the data whose project ID is 9d80d070b6d44942af73c9c3d38e0", + "doc_type":"api", + "kw":"Querying a Protection Rule,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAclRules" + } + ], + "title":"Querying a Protection Rule", + "githuburl":"" + }, + { + "uri":"UpdateAclRuleOrder.html", + "node_id":"updateaclruleorder.xml", + "product_code":"cfw", + "code":"27", + "des":"This API is used to set the priority of an ACL protection rule.PUT /v1/{project_id}/acl-rule/order/{acl_rule_id}Status code: 200Status code: 400Set the rule with the rule", + "doc_type":"api", + "kw":"Setting the Priority of an ACL Protection Rule,ACL Rule Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateAclRuleOrder" + } + ], + "title":"Setting the Priority of an ACL Protection Rule", + "githuburl":"" + }, + { + "uri":"topic_300000003.html", + "node_id":"topic_300000003.xml", + "product_code":"cfw", + "code":"28", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Blacklist and Whitelist Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Blacklist and Whitelist Management", + "githuburl":"" + }, + { + "uri":"AddBlackWhiteList.html", + "node_id":"addblackwhitelist.xml", + "product_code":"cfw", + "code":"29", + "des":"This API is used for creating a blacklist or whitelist rule.POST /v1/{project_id}/black-white-listStatus code: 200Status code: 400Add an IPv4 TCP whitelist to object cfeb", + "doc_type":"api", + "kw":"Creating a Blacklist or Whitelist Rule,Blacklist and Whitelist Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddBlackWhiteList" + } + ], + "title":"Creating a Blacklist or Whitelist Rule", + "githuburl":"" + }, + { + "uri":"UpdateBlackWhiteList.html", + "node_id":"updateblackwhitelist.xml", + "product_code":"cfw", + "code":"30", + "des":"This API is used to update the blacklist or whitelist.PUT /v1/{project_id}/black-white-list/{list_id}Status code: 200Status code: 400Update the whitelist with the project", + "doc_type":"api", + "kw":"Updating the Blacklist or Whitelist,Blacklist and Whitelist Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateBlackWhiteList" + } + ], + "title":"Updating the Blacklist or Whitelist", + "githuburl":"" + }, + { + "uri":"DeleteBlackWhiteList.html", + "node_id":"deleteblackwhitelist.xml", + "product_code":"cfw", + "code":"31", + "des":"This API is used to delete a blacklist or whitelist rule.DELETE /v1/{project_id}/black-white-list/{list_id}Status code: 200Status code: 400Delete the black and white list", + "doc_type":"api", + "kw":"Deleting a Blacklist or Whitelist Rule,Blacklist and Whitelist Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteBlackWhiteList" + } + ], + "title":"Deleting a Blacklist or Whitelist Rule", + "githuburl":"" + }, + { + "uri":"ListBlackWhiteLists.html", + "node_id":"listblackwhitelists.xml", + "product_code":"cfw", + "code":"32", + "des":"This API is used to query a blacklist or whitelist.GET /v1/{project_id}/black-white-listsStatus code: 200Status code: 400Query five whitelist records on the first page of", + "doc_type":"api", + "kw":"Querying a Blacklist or Whitelist,Blacklist and Whitelist Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListBlackWhiteLists" + } + ], + "title":"Querying a Blacklist or Whitelist", + "githuburl":"" + }, + { + "uri":"topic_300000004.html", + "node_id":"topic_300000004.xml", + "product_code":"cfw", + "code":"33", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Address Set Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Address Set Management", + "githuburl":"" + }, + { + "uri":"AddAddressItem.html", + "node_id":"addaddressitem.xml", + "product_code":"cfw", + "code":"34", + "des":"This API is used to add an address group member.POST /v1/{project_id}/address-itemsStatus code: 200Status code: 400Add an address group member whose IP address is 2.2.2.2", + "doc_type":"api", + "kw":"Adding an Address Set Member,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddAddressItem" + } + ], + "title":"Adding an Address Set Member", + "githuburl":"" + }, + { + "uri":"BatchDeleteAddressItems.html", + "node_id":"batchdeleteaddressitems.xml", + "product_code":"cfw", + "code":"35", + "des":"Batch Delete Address ItemsDELETE /v1/{project_id}/address-itemsStatus code: 200Delete address set member whose ID is d072ad2e-033c-40a9-b0b5-751f9c2943a6 from address set", + "doc_type":"api", + "kw":"Batch Delete Address Items,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"BatchDeleteAddressItems" + } + ], + "title":"Batch Delete Address Items", + "githuburl":"" + }, + { + "uri":"DeleteAddressItem.html", + "node_id":"deleteaddressitem.xml", + "product_code":"cfw", + "code":"36", + "des":"This API is used to delete a member from an address group.DELETE /v1/{project_id}/address-items/{item_id}Status code: 200Status code: 400Delete the address group member w", + "doc_type":"api", + "kw":"Deleting an Address Set Member,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteAddressItem" + } + ], + "title":"Deleting an Address Set Member", + "githuburl":"" + }, + { + "uri":"ListAddressItems.html", + "node_id":"listaddressitems.xml", + "product_code":"cfw", + "code":"37", + "des":"This API is used to query address group members.GET /v1/{project_id}/address-itemsStatus code: 200Status code: 400Query members in address group 8773c082-2a6c-4529-939a-e", + "doc_type":"api", + "kw":"Querying Address Set Members,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAddressItems" + } + ], + "title":"Querying Address Set Members", + "githuburl":"" + }, + { + "uri":"AddAddressSet.html", + "node_id":"addaddressset.xml", + "product_code":"cfw", + "code":"38", + "des":"This API is used to add an address group.POST /v1/{project_id}/address-setStatus code: 200Status code: 400Add an IPv4 address group whose project ID is 14181c1245cf4fd786", + "doc_type":"api", + "kw":"Adding an Address Set,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddAddressSet" + } + ], + "title":"Adding an Address Set", + "githuburl":"" + }, + { + "uri":"ListAddressSets.html", + "node_id":"listaddresssets.xml", + "product_code":"cfw", + "code":"39", + "des":"Querying IP Address SetsGET /v1/{project_id}/address-setsStatus code: 200Status code: 400This API is used to query the IP address group information on the first page of p", + "doc_type":"api", + "kw":"Querying IP Address Sets,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAddressSets" + } + ], + "title":"Querying IP Address Sets", + "githuburl":"" + }, + { + "uri":"ListAddressSetDetail.html", + "node_id":"listaddresssetdetail.xml", + "product_code":"cfw", + "code":"40", + "des":"This API is used to query details about an address group.GET /v1/{project_id}/address-sets/{set_id}Status code: 200Status code: 400Query details about address group cf18f", + "doc_type":"api", + "kw":"Querying Address Set Details,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAddressSetDetail" + } + ], + "title":"Querying Address Set Details", + "githuburl":"" + }, + { + "uri":"UpdateAddressSet.html", + "node_id":"updateaddressset.xml", + "product_code":"cfw", + "code":"41", + "des":"This API is used to update address group information.PUT /v1/{project_id}/address-sets/{set_id}Status code: 200Status code: 400In the project 9d80d070b6d44942af73c9c3d38e", + "doc_type":"api", + "kw":"Updating Address Set Information,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateAddressSet" + } + ], + "title":"Updating Address Set Information", + "githuburl":"" + }, + { + "uri":"DeleteAddressSet.html", + "node_id":"deleteaddressset.xml", + "product_code":"cfw", + "code":"42", + "des":"This API is used to delete an address group.DELETE /v1/{project_id}/address-sets/{set_id}Status code: 200Status code: 400Delete address set cf18f0b1-0ce7-4eb8-83b6-4b33c8", + "doc_type":"api", + "kw":"Deleting an Address Set,Address Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteAddressSet" + } + ], + "title":"Deleting an Address Set", + "githuburl":"" + }, + { + "uri":"topic_300000005.html", + "node_id":"topic_300000005.xml", + "product_code":"cfw", + "code":"43", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Service Set Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Service Set Management", + "githuburl":"" + }, + { + "uri":"AddServiceItems.html", + "node_id":"addserviceitems.xml", + "product_code":"cfw", + "code":"44", + "des":"This API is used to add group members in batches.POST /v1/{project_id}/service-itemsStatus code: 200Status code: 400Add a service group member named ceshi to the project ", + "doc_type":"api", + "kw":"Creating a Service Member,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddServiceItems" + } + ], + "title":"Creating a Service Member", + "githuburl":"" + }, + { + "uri":"BatchDeleteServiceItems.html", + "node_id":"batchdeleteserviceitems.xml", + "product_code":"cfw", + "code":"45", + "des":"This API is used to batch delete service items.DELETE /v1/{project_id}/service-itemsStatus code: 200Delete the service item f837f7ae-22c9-449d-a99c-4be24533e243 under the", + "doc_type":"api", + "kw":"Batch Delete Service Items,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"BatchDeleteServiceItems" + } + ], + "title":"Batch Delete Service Items", + "githuburl":"" + }, + { + "uri":"ListServiceSets.html", + "node_id":"listservicesets.xml", + "product_code":"cfw", + "code":"46", + "des":"This API is used to obtain the service group list.GET /v1/{project_id}/service-setsStatus code: 200Status code: 400Query the service group list on the first page of prote", + "doc_type":"api", + "kw":"Obtaining the Service Set List,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListServiceSets" + } + ], + "title":"Obtaining the Service Set List", + "githuburl":"" + }, + { + "uri":"AddServiceSet.html", + "node_id":"addserviceset.xml", + "product_code":"cfw", + "code":"47", + "des":"This API is used to create a service group.POST /v1/{project_id}/service-setStatus code: 200Status code: 400Add a service group whose project ID is 9d80d070b6d44942af73c9", + "doc_type":"api", + "kw":"Creating a Service Set,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddServiceSet" + } + ], + "title":"Creating a Service Set", + "githuburl":"" + }, + { + "uri":"ListServiceSetDetail.html", + "node_id":"listservicesetdetail.xml", + "product_code":"cfw", + "code":"48", + "des":"This API is used to query the details about a service group.GET /v1/{project_id}/service-sets/{set_id}Status code: 200Status code: 400Query details about the service grou", + "doc_type":"api", + "kw":"Querying Service Set Details,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListServiceSetDetail" + } + ], + "title":"Querying Service Set Details", + "githuburl":"" + }, + { + "uri":"UpdateServiceSet.html", + "node_id":"updateserviceset.xml", + "product_code":"cfw", + "code":"49", + "des":"This API is used to update a service group.PUT /v1/{project_id}/service-sets/{set_id}Status code: 200Status code: 400Change the name and description of service group 221c", + "doc_type":"api", + "kw":"Modifying a Service Set,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateServiceSet" + } + ], + "title":"Modifying a Service Set", + "githuburl":"" + }, + { + "uri":"DeleteServiceSet.html", + "node_id":"deleteserviceset.xml", + "product_code":"cfw", + "code":"50", + "des":"This API is used to delete a service group.DELETE /v1/{project_id}/service-sets/{set_id}Status code: 200Status code: 400Delete the service group whose project ID is 9d80d", + "doc_type":"api", + "kw":"Deleting a Service Set,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteServiceSet" + } + ], + "title":"Deleting a Service Set", + "githuburl":"" + }, + { + "uri":"ListServiceItems.html", + "node_id":"listserviceitems.xml", + "product_code":"cfw", + "code":"51", + "des":"This API is used to query service group members.GET /v1/{project_id}/service-itemsStatus code: 200Status code: 400Query the member list of the service group whose project", + "doc_type":"api", + "kw":"Querying the Service Set Member List,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListServiceItems" + } + ], + "title":"Querying the Service Set Member List", + "githuburl":"" + }, + { + "uri":"DeleteServiceItem.html", + "node_id":"deleteserviceitem.xml", + "product_code":"cfw", + "code":"52", + "des":"This API is used to delete a member from a service group.DELETE /v1/{project_id}/service-items/{item_id}Status code: 200Status code: 400This API is used to Delete the ser", + "doc_type":"api", + "kw":"Deleting a Service Member,Service Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteServiceItem" + } + ], + "title":"Deleting a Service Member", + "githuburl":"" + }, + { + "uri":"topic_300000006.html", + "node_id":"topic_300000006.xml", + "product_code":"cfw", + "code":"53", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Domain Parse and Domain Set Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Domain Parse and Domain Set Management", + "githuburl":"" + }, + { + "uri":"AddDomainSet.html", + "node_id":"adddomainset.xml", + "product_code":"cfw", + "code":"54", + "des":"This API is used to add domain set.POST /v1/{project_id}/domain-setStatus code: 200Add a domain set whose project ID is 9d80d070b6d44942af73c9c3d38e0429, firewall ID is 5", + "doc_type":"api", + "kw":"Add Domain Set,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddDomainSet" + } + ], + "title":"Add Domain Set", + "githuburl":"" + }, + { + "uri":"DeleteDomainSet.html", + "node_id":"deletedomainset.xml", + "product_code":"cfw", + "code":"55", + "des":"This API is used to delete domain set.DELETE /v1/{project_id}/domain-set/{set_id}Status code: 200Delete domain set 89bce6a4-9b59-4d7a-b5f9-cac5ac16d88a from firewall 7a00", + "doc_type":"api", + "kw":"Delete Domain Set,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteDomainSet" + } + ], + "title":"Delete Domain Set", + "githuburl":"" + }, + { + "uri":"UpdateDomainSet.html", + "node_id":"updatedomainset.xml", + "product_code":"cfw", + "code":"56", + "des":"This API is used to update domain set.PUT /v1/{project_id}/domain-set/{set_id}Status code: 200For the firewall 7a004e79-0b8b-4679-ab20-267f3946e8ba in the project 9d80d07", + "doc_type":"api", + "kw":"Update Domain Set,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateDomainSet" + } + ], + "title":"Update Domain Set", + "githuburl":"" + }, + { + "uri":"ListDomainSets.html", + "node_id":"listdomainsets.xml", + "product_code":"cfw", + "code":"57", + "des":"list domain setsGET /v1/{project_id}/domain-setsStatus code: 200Query the domain set list of firewall 546af3f8-88e9-47f2-a205-2346d7090925 in project 9d80d070b6d44942af73", + "doc_type":"api", + "kw":"list domain sets,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListDomainSets" + } + ], + "title":"list domain sets", + "githuburl":"" + }, + { + "uri":"ListDomains.html", + "node_id":"listdomains.xml", + "product_code":"cfw", + "code":"58", + "des":"list domainsGET /v1/{project_id}/domain-set/domains/{domain_set_id}Status code: 200Query the list of domain names under project id 14181c1245cf4fd786824efe1e2b9388, domai", + "doc_type":"api", + "kw":"list domains,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListDomains" + } + ], + "title":"list domains", + "githuburl":"" + }, + { + "uri":"AddDomains.html", + "node_id":"adddomains.xml", + "product_code":"cfw", + "code":"59", + "des":"add domainsPOST /v1/{project_id}/domain-set/domains/{set_id}Status code: 200Add domain names to the domain set under the project where project id is 14181c1245cf4fd786824", + "doc_type":"api", + "kw":"add domains,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddDomains" + } + ], + "title":"add domains", + "githuburl":"" + }, + { + "uri":"DeleteDomains.html", + "node_id":"deletedomains.xml", + "product_code":"cfw", + "code":"60", + "des":"delete domainsDELETE /v1/{project_id}/domain-set/domains/{set_id}Status code: 200For the project whose project id is 14181c1245cf4fd786824efe1e2b9388, delete the domain n", + "doc_type":"api", + "kw":"delete domains,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"DeleteDomains" + } + ], + "title":"delete domains", + "githuburl":"" + }, + { + "uri":"ListDnsServers.html", + "node_id":"listdnsservers.xml", + "product_code":"cfw", + "code":"61", + "des":"This API is used to query the DNS server list.GET /v1/{project_id}/dns/serversStatus code: 200Obtain the DNS server list of the project whose ID is 2349ba469daf4b7daf268b", + "doc_type":"api", + "kw":"Querying the DNS Server List,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListDnsServers" + } + ], + "title":"Querying the DNS Server List", + "githuburl":"" + }, + { + "uri":"UpdateDnsServers.html", + "node_id":"updatednsservers.xml", + "product_code":"cfw", + "code":"62", + "des":"This API is used to update the DNS server list.PUT /v1/{project_id}/dns/serversStatus code: 200Status code: 400Update the settings of the DNS resolver whose project ID is", + "doc_type":"api", + "kw":"Updating the DNS Server List,Domain Parse and Domain Set Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateDnsServers" + } + ], + "title":"Updating the DNS Server List", + "githuburl":"" + }, + { + "uri":"ListDomainParseDetail.html", + "node_id":"listdomainparsedetail.xml", + "product_code":"cfw", + "code":"63", + "des":"This API is used to test the validity of a domain name.GET /v1/{project_id}/domain/parse/{domain_name}Status code: 200Status code: 400Check whether the ceshi.com domain n", + "doc_type":"api", + "kw":"Querying the IP Address for Domain Name Resolution,Domain Parse and Domain Set Management,API Refere", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListDomainParseDetail" + } + ], + "title":"Querying the IP Address for Domain Name Resolution", + "githuburl":"" + }, + { + "uri":"topic_300000007.html", + "node_id":"topic_300000007.xml", + "product_code":"cfw", + "code":"64", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"IPS Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"IPS Management", + "githuburl":"" + }, + { + "uri":"ListIpsSwitchStatus.html", + "node_id":"listipsswitchstatus.xml", + "product_code":"cfw", + "code":"65", + "des":"This API is used to query the IPS switch status.GET /v1/{project_id}/ips/switchStatus code: 200Query the patch status of the current user based on the received user ID 14", + "doc_type":"api", + "kw":"Querying the IPS Switch Status,IPS Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListIpsSwitchStatus" + } + ], + "title":"Querying the IPS Switch Status", + "githuburl":"" + }, + { + "uri":"ChangeIpsSwitchStatus.html", + "node_id":"changeipsswitchstatus.xml", + "product_code":"cfw", + "code":"66", + "des":"This API is used to enable or disable the feature.POST /v1/{project_id}/ips/switchStatus code: 200Enable or disable the basic patch and virtual patch of the engine on the", + "doc_type":"api", + "kw":"Enabling or Disabling IPS,IPS Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ChangeIpsSwitchStatus" + } + ], + "title":"Enabling or Disabling IPS", + "githuburl":"" + }, + { + "uri":"ListIpsProtectMode.html", + "node_id":"listipsprotectmode.xml", + "product_code":"cfw", + "code":"67", + "des":"This API is used to query the protection mode.GET /v1/{project_id}/ips/protectStatus code: 200Status code: 400Query the IPS protection mode of the project whose ID is 9d8", + "doc_type":"api", + "kw":"Querying the Protection Mode,IPS Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListIpsProtectMode" + } + ], + "title":"Querying the Protection Mode", + "githuburl":"" + }, + { + "uri":"ChangeIpsProtectMode.html", + "node_id":"changeipsprotectmode.xml", + "product_code":"cfw", + "code":"68", + "des":"This API is used to switch the protection mode.POST /v1/{project_id}/ips/protectStatus code: 200Status code: 400Deliver the strict protection mode to object cfebd347-b655", + "doc_type":"api", + "kw":"Switching the Protection Mode,IPS Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ChangeIpsProtectMode" + } + ], + "title":"Switching the Protection Mode", + "githuburl":"" + }, + { + "uri":"topic_300000008.html", + "node_id":"topic_300000008.xml", + "product_code":"cfw", + "code":"69", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Log Management", + "githuburl":"" + }, + { + "uri":"ListLogConfig.html", + "node_id":"listlogconfig.xml", + "product_code":"cfw", + "code":"70", + "des":"This API is used to list log config.GET /v1/{project_id}/cfw/logs/configurationStatus code: 200Query the log configuration of whose firewall instance id is 4e113415-7811-", + "doc_type":"api", + "kw":"List Log Config,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListLogConfig" + } + ], + "title":"List Log Config", + "githuburl":"" + }, + { + "uri":"AddLogConfig.html", + "node_id":"addlogconfig.xml", + "product_code":"cfw", + "code":"71", + "des":"This API is used to add log config.POST /v1/{project_id}/cfw/logs/configurationStatus code: 200Add a log flow configuration to the firewall whose firewall instance id is ", + "doc_type":"api", + "kw":"Add Log Config,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"AddLogConfig" + } + ], + "title":"Add Log Config", + "githuburl":"" + }, + { + "uri":"UpdateLogConfig.html", + "node_id":"updatelogconfig.xml", + "product_code":"cfw", + "code":"72", + "des":"This API is used to update log config.PUT /v1/{project_id}/cfw/logs/configurationStatus code: 200Update the log configuration of the firewall whose firewall instance id i", + "doc_type":"api", + "kw":"Update Log Config,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"UpdateLogConfig" + } + ], + "title":"Update Log Config", + "githuburl":"" + }, + { + "uri":"ListFlowLogs.html", + "node_id":"listflowlogs.xml", + "product_code":"cfw", + "code":"73", + "des":"This API is used to query flow logs.GET /v1/{project_id}/cfw/logs/flowStatus code: 200Status code: 400Query the flow logs on the first page of the firewall with the ID 2a", + "doc_type":"api", + "kw":"Querying Flow Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListFlowLogs" + } + ], + "title":"Querying Flow Logs", + "githuburl":"" + }, + { + "uri":"ListAccessControlLogs.html", + "node_id":"listaccesscontrollogs.xml", + "product_code":"cfw", + "code":"74", + "des":"This API is used to query access control logs.GET /v1/{project_id}/cfw/logs/access-controlStatus code: 200Status code: 400Query the records whose initial position is 0 on", + "doc_type":"api", + "kw":"Querying Access Control Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAccessControlLogs" + } + ], + "title":"Querying Access Control Logs", + "githuburl":"" + }, + { + "uri":"ListAttackLogs.html", + "node_id":"listattacklogs.xml", + "product_code":"cfw", + "code":"75", + "des":"This API is used to query attack logs.GET /v1/{project_id}/cfw/logs/attackStatus code: 200Status code: 400Query 10 records on the first page of the firewall with the ID 2", + "doc_type":"api", + "kw":"Querying Attack Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "prodname":"cfw", + "operation_id":"ListAttackLogs" + } + ], + "title":"Querying Attack Logs", + "githuburl":"" + }, + { + "uri":"cfw_02_0011.html", + "node_id":"cfw_02_0011.xml", + "product_code":"cfw", + "code":"76", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw", + "IsBot":"Yes", + "opensource":"true" + } + ], + "title":"Appendix", + "githuburl":"" + }, + { + "uri":"cfw_02_0013.html", + "node_id":"cfw_02_0013.xml", + "product_code":"cfw", + "code":"77", + "des":"NormalStatus CodeDescriptionDescription200OKThe request is successfully processed.AbnormalStatus CodeDescriptionDescription400Bad RequestIt is a bad request.401Unauthoriz", + "doc_type":"api", + "kw":"Status Code,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw", + "IsBot":"Yes", + "opensource":"true" + } + ], + "title":"Status Code", + "githuburl":"" + }, + { + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"cfw", + "code":"78", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cfw", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Error Codes", + "githuburl":"" + }, + { + "uri":"cfw_02_0016.html", + "node_id":"cfw_02_0016.xml", + "product_code":"cfw", + "code":"79", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cfw" + } + ], + "title":"Change History", + "githuburl":"" + } +] \ No newline at end of file diff --git a/docs/cfw/api-ref/AddAclRule.html b/docs/cfw/api-ref/AddAclRule.html new file mode 100644 index 00000000..5189a60f --- /dev/null +++ b/docs/cfw/api-ref/AddAclRule.html @@ -0,0 +1,949 @@ + + +

Creating an ACL Rule

+

Function

This API is used to create an ACL rule.

+
+

URI

POST /v1/{project_id}/acl-rule

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

type

+

Yes

+

Integer

+

Rule type. The value can be 0 (Internet rule), 1 (VPC rule), or 2 (NAT rule).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

rules

+

Yes

+

Array of rules objects

+

rules

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 rules

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Rule name

+

sequence

+

Yes

+

OrderRuleAclDto object

+

Rule sequence

+

address_type

+

Yes

+

Integer

+

Address type. The value can be 0 (IPv4), 1 (IPv6), or 2 (domain).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

action_type

+

Yes

+

Integer

+

Action. 0: allow; 1: deny

+

status

+

Yes

+

Integer

+

Rule delivery status. 0: disabled; 1: enabled.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

long_connect_time

+

No

+

Long

+

Persistent connection duration

+

long_connect_time_hour

+

No

+

Long

+

Persistent connection duration (hour)

+

long_connect_time_minute

+

No

+

Long

+

Persistent connection duration (minute)

+

long_connect_time_second

+

No

+

Long

+

Persistent Connection Duration (second)

+

long_connect_enable

+

Yes

+

Integer

+

Whether to support persistent connections. 0: not supported; 1: supported.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

description

+

No

+

String

+

Description

+

direction

+

No

+

Integer

+

Direction: 0 means outside to inside, 1 means inside to outside, direction value is required when rule type is internet or nat.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

source

+

Yes

+

RuleAddressDto object

+

Source address transmission object

+

destination

+

Yes

+

RuleAddressDto object

+

Destination address transmission object

+

service

+

Yes

+

RuleServiceDto object

+

Service object

+

tag

+

No

+

TagsVO object

+

Tag value

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 6 OrderRuleAclDto

Parameter

+

Mandatory

+

Type

+

Description

+

dest_rule_id

+

No

+

String

+

ID of the rule that the added rule will follow. This parameter cannot be left blank if the rule is not pinned on top, and is empty when the added rule is pinned on top.

+

top

+

No

+

Integer

+

Whether to pin on top. The options are as follows: 0: no; 1: yes.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 RuleAddressDto

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

Yes

+

Integer

+

Source type. 0: manual input; 1: associated IP address group; 2: domain name

+

address_type

+

No

+

Integer

+

Source type. 0: IPv4; 1: IPv6

+

address

+

No

+

String

+

Source IP address. The value cannot be empty for the manual type, and cannot be empty for the automatic or domain type.

+

address_set_id

+

No

+

String

+

ID of the associated IP address group. The value cannot be empty for the automatic type or for the manual or domain type.

+

address_set_name

+

No

+

String

+

IP address group name

+

domain_address_name

+

No

+

String

+

Name of the domain name address. This parameter cannot be left empty for the domain name type, and is empty for the manual or automatic type.

+

region_list_json

+

No

+

String

+

JSON value of the rule region list.

+

region_list

+

No

+

Array of IpRegionDto objects

+

Region list of a rule

+

domain_set_id

+

No

+

String

+

domain set id

+

domain_set_name

+

No

+

String

+

domain set name

+

ip_address

+

No

+

Array of strings

+

IP address list

+

address_group

+

No

+

Array of strings

+

address group

+

address_group_names

+

No

+

Array of AddressGroupVO objects

+

Address set list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 IpRegionDto

Parameter

+

Mandatory

+

Type

+

Description

+

region_id

+

No

+

String

+

region id

+

description_cn

+

No

+

String

+

cn description

+

description_en

+

No

+

String

+

en description

+

region_type

+

No

+

Integer

+

Region type, 0 means country, 1 means province, 2 means continent

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 RuleServiceDto

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

Yes

+

Integer

+

Service input type. The value 0 indicates manual input, and the value 1 indicates automatic input.

+

protocol

+

No

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

No

+

String

+

Source port

+

dest_port

+

No

+

String

+

Destination port

+

service_set_id

+

No

+

String

+

Service group ID. This parameter is left blank for the manual type and cannot be left blank for the automatic type.

+

service_set_name

+

No

+

String

+

Service group name

+

custom_service

+

No

+

Array of ServiceItem objects

+

custom service

+

service_group

+

No

+

Array of strings

+

Service group list

+

service_group_names

+

No

+

Array of AddressGroupVO objects

+

Service group name list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 ServiceItem

Parameter

+

Mandatory

+

Type

+

Description

+

protocol

+

No

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

No

+

String

+

source port

+

dest_port

+

No

+

String

+

destination port

+

description

+

No

+

String

+

description

+

name

+

No

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 11 AddressGroupVO

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

No

+

String

+

set id

+

name

+

No

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 12 TagsVO

Parameter

+

Mandatory

+

Type

+

Description

+

tag_id

+

No

+

String

+

tag id

+

tag_key

+

No

+

String

+

tag key

+

tag_value

+

No

+

String

+

tag value

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

data

+

RuleIdList object

+

Rule ID list

+
+
+ +
+ + + + + + + + + +
Table 14 RuleIdList

Parameter

+

Type

+

Description

+

rules

+

Array of RuleId objects

+

Rule ID list

+
+
+ +
+ + + + + + + + + + + + + +
Table 15 RuleId

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 16 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

The following example shows how to add an IPv4 inbound rule. The rule name is TestRule, the source is the IP address 1.1.1.1, the destination is the IP address 2.2.2.2, the service type is service, the protocol type is TCP, the source port is 0, and the destination port is 0. Persistent connections are not supported. The action is to allow. The status is enabled.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rule
+
+{
+  "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b",
+  "rules" : [ {
+    "name" : "TestRule",
+    "status" : 1,
+    "action_type" : 0,
+    "description" : "",
+    "source" : {
+      "type" : 0,
+      "address" : "1.1.1.1"
+    },
+    "destination" : {
+      "type" : 0,
+      "address" : "2.2.2.2"
+    },
+    "service" : {
+      "type" : 0,
+      "protocol" : 6,
+      "source_port" : "0",
+      "dest_port" : "0"
+    },
+    "address_type" : 0,
+    "tag" : {
+      "tag_key" : "",
+      "tag_value" : ""
+    },
+    "long_connect_enable" : 0,
+    "direction" : 0,
+    "sequence" : {
+      "top" : 1,
+      "dest_rule_id" : null
+    }
+  } ],
+  "type" : 0
+}
+
+

Example Responses

Status code: 200

+

Response to the request for adding an ACL

+
{
+  "data" : {
+    "rules" : [ {
+      "id" : "0475c516-0e41-4caf-990b-0c504eebd73f"
+    } ]
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00900016",
+  "error_msg" : "The import task is in progress. Please operate after the task is completed"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for adding an ACL

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddAddressItem.html b/docs/cfw/api-ref/AddAddressItem.html new file mode 100644 index 00000000..c22b5f8a --- /dev/null +++ b/docs/cfw/api-ref/AddAddressItem.html @@ -0,0 +1,377 @@ + + +

Adding an Address Set Member

+

Function

This API is used to add an address group member.

+
+

URI

POST /v1/{project_id}/address-items

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

No

+

String

+

ID of the IP address group

+

address_items

+

No

+

Array of address_items objects

+

Address group member information

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 address_items

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Address name

+

address_type

+

No

+

Integer

+

Address type. The value can be 0 (IPv4) or 1 (IPv6).

+

address

+

No

+

String

+

IP address information of the address group

+

description

+

No

+

String

+

Address group member description

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

data

+

AddressItems object

+

Data returned after an address group member is added

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 AddressItems

Parameter

+

Type

+

Description

+

items

+

Array of IdObject objects

+

List of address group member IDs

+

covered_ip

+

Array of CoveredIPVO objects

+

covered ip list

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 CoveredIPVO

Parameter

+

Type

+

Description

+

ip

+

String

+

ip address

+

covered_Ip

+

String

+

covered ip

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Add an address group member whose IP address is 2.2.2.2 and name is ceshi to the group whose set_id is 8773c082-2a6c-4529-939a-edc28ef1a67c in project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-items
+
+{
+  "set_id" : "8773c082-2a6c-4529-939a-edc28ef1a67c",
+  "address_items" : [ {
+    "description" : "",
+    "name" : "ceshi",
+    "address" : "2.2.2.2"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

Return value for adding an address group member

+
{
+  "data" : {
+    "covered_ip" : [ ],
+    "items" : [ {
+      "id" : "65cb47fc-e666-4af4-8c2c-1fbd2f4b1eae"
+    } ]
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200001",
+  "error_msg" : "empty param"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value for adding an address group member

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddAddressSet.html b/docs/cfw/api-ref/AddAddressSet.html new file mode 100644 index 00000000..5b3d77ba --- /dev/null +++ b/docs/cfw/api-ref/AddAddressSet.html @@ -0,0 +1,292 @@ + + +

Adding an Address Set

+

Function

This API is used to add an address group.

+
+

URI

POST /v1/{project_id}/address-set

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

name

+

Yes

+

String

+

IP address group name

+

description

+

No

+

String

+

Address group description

+

address_type

+

No

+

Integer

+

Address type. The value can be 0 (IPv4) or 1 (IPv6).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Data returned after an address group is added

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Add an IPv4 address group whose project ID is 14181c1245cf4fd786824efe1e2b9388, protected object ID is 1530de8a-522d-4771-9067-9fa4e2f53b48, and name is ceshi.

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/address-set
+
+{
+  "object_id" : "1530de8a-522d-4771-9067-9fa4e2f53b48",
+  "name" : "ceshi",
+  "description" : "",
+  "address_type" : 0
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "9dffcd62-23bf-4456-83fa-80fa0fee47db"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00900020",
+  "error_msg" : "Address groups exceed the maximum limit"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddBlackWhiteList.html b/docs/cfw/api-ref/AddBlackWhiteList.html new file mode 100644 index 00000000..210ab406 --- /dev/null +++ b/docs/cfw/api-ref/AddBlackWhiteList.html @@ -0,0 +1,328 @@ + + +

Creating a Blacklist or Whitelist Rule

+

Function

This API is used for creating a blacklist or whitelist rule.

+
+

URI

POST /v1/{project_id}/black-white-list

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

list_type

+

Yes

+

Integer

+

Blacklist/Whitelist type. The options are 4 (blacklist) and 5 (whitelist).

+

direction

+

Yes

+

Integer

+

Indicates the address direction. 0: source address 1: destination address

+

address_type

+

Yes

+

Integer

+

IP address type. 0: ipv4; 1: ipv6; 2: domain

+

address

+

Yes

+

String

+

Address type

+

protocol

+

Yes

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

port

+

Yes

+

String

+

Destination port

+

description

+

No

+

String

+

description

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Response to the request for adding a blacklist or whitelist

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Add an IPv4 TCP whitelist to object cfebd347-b655-4b84-b938-3c54317599b2 of project 9d80d070b6d44942af73c9c3d38e0429. Direction: source address; IP address: 1.1.1.1; protocol type: TCP; port number: 1

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/black-white-list
+
+{
+  "object_id" : "cfebd347-b655-4b84-b938-3c54317599b2",
+  "list_type" : 5,
+  "direction" : 0,
+  "address" : "1.1.1.1",
+  "protocol" : 6,
+  "port" : "1",
+  "address_type" : 0
+}
+
+

Example Responses

Status code: 200

+

Response to the request for adding a blacklist or whitelist

+
{
+  "data" : {
+    "id" : "2eee3fe8-0b9b-49ac-8e7f-eaafa321e99a",
+    "name" : "test"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for adding a blacklist or whitelist

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddDomainSet.html b/docs/cfw/api-ref/AddDomainSet.html new file mode 100644 index 00000000..a983896b --- /dev/null +++ b/docs/cfw/api-ref/AddDomainSet.html @@ -0,0 +1,282 @@ + + +

Add Domain Set

+

Function

This API is used to add domain set.

+
+

URI

POST /v1/{project_id}/domain-set

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

name

+

Yes

+

String

+

name

+

description

+

No

+

String

+

description

+

domain_names

+

No

+

Array of DomainSetInfoDto objects

+

domain names

+

domain_set_type

+

Yes

+

Integer

+

Domain set type, 0 means URL filtering, 1 means domain parse

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 DomainSetInfoDto

Parameter

+

Mandatory

+

Type

+

Description

+

domain_name

+

No

+

String

+

domain name

+

description

+

No

+

String

+

description

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

data

+

DomainSetResponseData object

+

Add Domain Set Response Data

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 DomainSetResponseData

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+
+

Example Requests

Add a domain set whose project ID is 9d80d070b6d44942af73c9c3d38e0429, firewall ID is 546af3f8-88e9-47f2-a205-2346d7090925, domain set name is test, domain name is www.aaa.com, and protected object ID is fde07429-2e02-45c0-a85f-4f1cacea24d2.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/domain-set?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default
+
+{
+  "name" : "test",
+  "domain_set_type" : 0,
+  "description" : "",
+  "domain_names" : [ {
+    "domain_name" : "www.aaa.com",
+    "description" : ""
+  } ],
+  "fw_instance_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+  "object_id" : "fde07429-2e02-45c0-a85f-4f1cacea24d2"
+}
+
+

Example Responses

Status code: 200

+

Add Domain Set Response

+
{
+  "data" : {
+    "id" : "e43db369-a863-45ed-8850-58d6b571b1ab",
+    "name" : "test"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Add Domain Set Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddDomains.html b/docs/cfw/api-ref/AddDomains.html new file mode 100644 index 00000000..b57fbdf5 --- /dev/null +++ b/docs/cfw/api-ref/AddDomains.html @@ -0,0 +1,264 @@ + + +

add domains

+

Function

add domains

+
+

URI

POST /v1/{project_id}/domain-set/domains/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

Domain Set ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

domain_names

+

Yes

+

Array of DomainSetInfoDto objects

+

domain names

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 DomainSetInfoDto

Parameter

+

Mandatory

+

Type

+

Description

+

domain_name

+

No

+

String

+

domain name

+

description

+

No

+

String

+

description

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

data

+

DomainSetResponseData object

+

add domains response data

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 DomainSetResponseData

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+
+

Example Requests

Add domain names to the domain set under the project where project id is 14181c1245cf4fd786824efe1e2b9388, the firewall instance id is 546af3f8-88e9-47f2-a205-2346d7090925, the protected object id is ae42418e-f077-41a0-9d3b-5b2f5ad9102b, The domain set id is 78719348-6d79-477e-acec -676a29842ab2, and the domain names are www.bnm.com and www.vbc.com

+
https://{Endpoint}v1/14181c1245cf4fd786824efe1e2b9388/domain-set/domains/78719348-6d79-477e-acec-676a29842ab2?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default
+
+{
+  "domain_names" : [ {
+    "description" : "",
+    "domain_name" : "www.bnm.com"
+  }, {
+    "description" : "",
+    "domain_name" : "www.vbc.com"
+  } ],
+  "fw_instance_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+  "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b"
+}
+
+

Example Responses

Status code: 200

+

add domains response

+
{
+  "data" : {
+    "id" : "78719348-6d79-477e-acec-676a29842ab2",
+    "name" : "test26"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

add domains response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddLogConfig.html b/docs/cfw/api-ref/AddLogConfig.html new file mode 100644 index 00000000..19b01c5f --- /dev/null +++ b/docs/cfw/api-ref/AddLogConfig.html @@ -0,0 +1,245 @@ + + +

Add Log Config

+

Function

This API is used to add log config.

+
+

URI

POST /v1/{project_id}/cfw/logs/configuration

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

lts_enable

+

Yes

+

Integer

+

whether to enable LTS

+

lts_log_group_id

+

Yes

+

String

+

Lts log group id

+

lts_attack_log_stream_id

+

No

+

String

+

Lts attack log stream id

+

lts_attack_log_stream_enable

+

Yes

+

Integer

+

whether to enable attack log streaming

+

lts_access_log_stream_id

+

No

+

String

+

Lts access log stream id

+

lts_access_log_stream_enable

+

Yes

+

Integer

+

whether to enable access log streaming

+

lts_flow_log_stream_id

+

No

+

String

+

Lts flow log stream id

+

lts_flow_log_stream_enable

+

Yes

+

Integer

+

whether to enable flow log streaming

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

String

+

Add Log Config Response Body

+
+
+
+

Example Requests

Add a log flow configuration to the firewall whose firewall instance id is 4d6c860a-0338-49e8-ac64-fcaeb4182ba5 and project id is 408972e72dcd4c1a9b033e955802a36b with LTS group ID 20282428-a8f9-4e75-8246-165e64cf8ba8, and the access control log flow is disabled, the traffic log flow is disabled, the attack log flow is disabled, and the LTS is disabled.

+
https://{Endpoint}/v1/408972e72dcd4c1a9b033e955802a36b/cfw/logs/configuration?fw_instance_id=4d6c860a-0338-49e8-ac64-fcaeb4182ba5&enterprise_project_id=default
+
+{
+  "fw_instance_id" : "4d6c860a-0338-49e8-ac64-fcaeb4182ba5",
+  "lts_enable" : 0,
+  "lts_log_group_id" : "20282428-a8f9-4e75-8246-165e64cf8ba8",
+  "lts_attack_log_stream_enable" : 0,
+  "lts_access_log_stream_enable" : 0,
+  "lts_flow_log_stream_enable" : 0
+}
+
+

Example Responses

Status code: 200

+

Add Log Config Response

+
{
+  "data" : "4d6c860a-0338-49e8-ac64-fcaeb4182ba5"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Add Log Config Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddServiceItems.html b/docs/cfw/api-ref/AddServiceItems.html new file mode 100644 index 00000000..4fc04706 --- /dev/null +++ b/docs/cfw/api-ref/AddServiceItems.html @@ -0,0 +1,363 @@ + + +

Creating a Service Member

+

Function

This API is used to add group members in batches.

+
+

URI

POST /v1/{project_id}/service-items

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

Yes

+

String

+

Service group ID

+

service_items

+

Yes

+

Array of service_items objects

+

Add a member to a service group.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 service_items

Parameter

+

Mandatory

+

Type

+

Description

+

item_id

+

No

+

String

+

Service member ID

+

protocol

+

Yes

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

Yes

+

String

+

Source port

+

dest_port

+

Yes

+

String

+

Destination port

+

name

+

No

+

String

+

Service member name

+

description

+

No

+

String

+

Service member description

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

data

+

ServiceItemIds object

+

Data returned when a service group member is created

+
+
+ +
+ + + + + + + + + +
Table 7 ServiceItemIds

Parameter

+

Type

+

Description

+

items

+

Array of IdObject objects

+

Service group member ID list

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Add a service group member named ceshi to the project whose ID is 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-items
+
+{
+  "set_id" : "7cdebed3-af07-494e-a3c2-b88bb8d58b57",
+  "service_items" : [ {
+    "description" : "Add a member to a service group",
+    "name" : "ceshi",
+    "dest_port" : "1",
+    "source_port" : "1",
+    "protocol" : 6
+  } ]
+}
+
+

Example Responses

Status code: 200

+

Return value for adding a service group member

+
{
+  "data" : {
+    "items" : [ {
+      "id" : "cc41c4af-86e8-4ed2-80ad-87d399aeaed0"
+    } ]
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200001",
+  "error_msg" : "empty param"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value for adding a service group member

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/AddServiceSet.html b/docs/cfw/api-ref/AddServiceSet.html new file mode 100644 index 00000000..e98cb751 --- /dev/null +++ b/docs/cfw/api-ref/AddServiceSet.html @@ -0,0 +1,282 @@ + + +

Creating a Service Set

+

Function

This API is used to create a service group.

+
+

URI

POST /v1/{project_id}/service-set

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

name

+

Yes

+

String

+

Service group name

+

Minimum: 1

+

Maximum: 255

+

description

+

No

+

String

+

Service group description

+

Minimum: 1

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Data returned when a service group is created

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Add a service group whose project ID is 9d80d070b6d44942af73c9c3d38e0429, protected object is cfebd347-b655-4b84-b938-3c54317599b2, and name is ceshi.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-set
+
+{
+  "object_id" : "cfebd347-b655-4b84-b938-3c54317599b2",
+  "name" : "ceshi",
+  "description" : ""
+}
+
+

Example Responses

Status code: 200

+

Return value of creating a service group

+
{
+  "data" : {
+    "id" : "221cfdca-3abf-4c30-ab0d-516a03c70866"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200024",
+  "error_msg" : "Exceeded maximum quantity limit"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value of creating a service group

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/BatchDeleteAclRules.html b/docs/cfw/api-ref/BatchDeleteAclRules.html new file mode 100644 index 00000000..36611843 --- /dev/null +++ b/docs/cfw/api-ref/BatchDeleteAclRules.html @@ -0,0 +1,231 @@ + + +

Batch Delete Acl Rules

+

Function

Batch Delete Acl Rules

+
+

URI

DELETE /v1/{project_id}/acl-rule

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

rule_ids

+

Yes

+

Array of strings

+

rule ids

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

BatchDeleteAclRulesResponseData object

+

Batch delete acl rules response data

+
+
+ +
+ + + + + + + + + +
Table 6 BatchDeleteAclRulesResponseData

Parameter

+

Type

+

Description

+

responseDatas

+

Array of BatchDeleteRuleInfo objects

+

batch delete acl rules response data

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 BatchDeleteRuleInfo

Parameter

+

Type

+

Description

+

name

+

String

+

rule name

+

id

+

String

+

rule id

+
+
+
+

Example Requests

Delete the rule with the object id ae42418e-f077-41a0-9d3b-5b2f5ad9102b under the project id 9d80d070b6d44942af73c9c3d38e0429, the rule id is 0475c516-0e41-4caf-990b-0c504eebd73f and 8 662868e-fe7e-4dfc-bfb1-ca4d73081ca6

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rule
+
+{
+  "rule_ids" : [ "0475c516-0e41-4caf-990b-0c504eebd73f", "8662868e-fe7e-4dfc-bfb1-ca4d73081ca6" ],
+  "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b"
+}
+
+

Example Responses

Status code: 200

+

Batch Delete Acl Rules Response Body

+
{
+  "data" : {
+    "responseDatas" : [ {
+      "name" : "test",
+      "id" : "0475c516-0e41-4caf-990b-0c504eebd73f"
+    }, {
+      "name" : "test2",
+      "id" : "8662868e-fe7e-4dfc-bfb1-ca4d73081ca6"
+    } ]
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Batch Delete Acl Rules Response Body

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/BatchDeleteAddressItems.html b/docs/cfw/api-ref/BatchDeleteAddressItems.html new file mode 100644 index 00000000..97b5301f --- /dev/null +++ b/docs/cfw/api-ref/BatchDeleteAddressItems.html @@ -0,0 +1,176 @@ + + +

Batch Delete Address Items

+

Function

Batch Delete Address Items

+
+

URI

DELETE /v1/{project_id}/address-items

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

Yes

+

String

+

set id

+

address_item_ids

+

Yes

+

Array of strings

+

address item ids

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

Array of strings

+

batch delete address item response

+
+
+
+

Example Requests

Delete address set member whose ID is d072ad2e-033c-40a9-b0b5-751f9c2943a6 from address set e4884376-7efb-40e7-b98b-13668d6f8b85 for project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-items?fw_instance_id=7a004e79-0b8b-4679-ab20-267f3946e8ba&enterprise_project_id=default
+
+{
+  "set_id" : "e4884376-7efb-40e7-b98b-13668d6f8b85",
+  "address_item_ids" : [ "d072ad2e-033c-40a9-b0b5-751f9c2943a6" ]
+}
+
+

Example Responses

Status code: 200

+
{
+  "data" : [ "d072ad2e-033c-40a9-b0b5-751f9c2943a6" ]
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/BatchDeleteServiceItems.html b/docs/cfw/api-ref/BatchDeleteServiceItems.html new file mode 100644 index 00000000..4918fc07 --- /dev/null +++ b/docs/cfw/api-ref/BatchDeleteServiceItems.html @@ -0,0 +1,178 @@ + + +

Batch Delete Service Items

+

Function

This API is used to batch delete service items.

+
+

URI

DELETE /v1/{project_id}/service-items

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

Yes

+

String

+

set id

+

service_item_ids

+

Yes

+

Array of strings

+

service item ids

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

Array of strings

+

batch delete service items

+
+
+
+

Example Requests

Delete the service item f837f7ae-22c9-449d-a99c-4be24533e243 under the service set 688faf62-20fc-4ca6-b9f9-6fbc518df5ae with project id 9d80d070b6d44942af73c9c3d38e0429

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-items?fw_instance_id=7a004e79-0b8b-4679-ab20-267f3946e8ba&enterprise_project_id=default
+
+{
+  "set_id" : "688faf62-20fc-4ca6-b9f9-6fbc518df5ae",
+  "service_item_ids" : [ "f837f7ae-22c9-449d-a99c-4be24533e243" ]
+}
+
+

Example Responses

Status code: 200

+

Batch Delete Service Item Response

+
{
+  "data" : [ "f837f7ae-22c9-449d-a99c-4be24533e243" ]
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Batch Delete Service Item Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/BatchUpdateAclRuleActions.html b/docs/cfw/api-ref/BatchUpdateAclRuleActions.html new file mode 100644 index 00000000..fcb3978d --- /dev/null +++ b/docs/cfw/api-ref/BatchUpdateAclRuleActions.html @@ -0,0 +1,179 @@ + + +

Updating Rule Actions in Batches

+

Function

This API is used to update rule actions in batches.

+
+

URI

PUT /v1/{project_id}/acl-rule/action

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

action

+

Yes

+

String

+

action

+

rule_ids

+

Yes

+

Array of strings

+

rule ids

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

Array of strings

+

batch update acl rule ids

+
+
+
+

Example Requests

Update the statuses of rules 4e12d889-c1d3-491b-8470-3d1b3dadc1fd and f798a6a8-c4c5-42b4-838c-c922c9908cb4 of firewall 546af3f8-88e9-47f2-a205-2346d7090925 in project 14181c1245cf4fd786824efe1e2b9388 to enabled.

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/acl-rule/action?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default
+
+{
+  "action" : "enable",
+  "rule_ids" : [ "4e12d889-c1d3-491b-8470-3d1b3dadc1fd", "f798a6a8-c4c5-42b4-838c-c922c9908cb4" ],
+  "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b"
+}
+
+

Example Responses

Status code: 200

+

Batch Update Acl Rule Response

+
{
+  "data" : [ "4e12d889-c1d3-491b-8470-3d1b3dadc1fd", "f798a6a8-c4c5-42b4-838c-c922c9908cb4" ]
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Batch Update Acl Rule Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/CLASS.TXT.json b/docs/cfw/api-ref/CLASS.TXT.json new file mode 100644 index 00000000..cb4fdb32 --- /dev/null +++ b/docs/cfw/api-ref/CLASS.TXT.json @@ -0,0 +1,713 @@ +[ + { + "desc":"Cloud service APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform", + "product_code":"cfw", + "title":"API Usage Guidelines", + "uri":"cfw_02_0026.html", + "doc_type":"api", + "p_code":"", + "code":"1" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"API", + "uri":"cfw_02_0012.html", + "doc_type":"api", + "p_code":"", + "code":"2" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Firewall Management", + "uri":"topic_300000000.html", + "doc_type":"api", + "p_code":"2", + "code":"3" + }, + { + "desc":"This API is used to create firewall.POST /v2/{project_id}/firewallStatus code: 200Status code: 400Enable a standard firewall with 2000 extended EIP, 5,000 Mbps extended p", + "product_code":"cfw", + "title":"Create Firewall", + "uri":"CreateFirewall.html", + "doc_type":"api", + "p_code":"3", + "code":"4" + }, + { + "desc":"This API is used to obtain job status.GET /v3/{project_id}/jobs/{job_id}Status code: 200Get job status of the job which job id is f588ce71-e26c-400d-8981-f854355f6849 and", + "product_code":"cfw", + "title":"List Job Status", + "uri":"ListJob.html", + "doc_type":"api", + "p_code":"3", + "code":"5" + }, + { + "desc":"Delete firewall instance,only postpaid mode is supported.DELETE /v2/{project_id}/firewall/{resource_id}Status code: 200Delete firewall whose firewall instance id is 08065", + "product_code":"cfw", + "title":"Delete firewall instance", + "uri":"DeleteFirewall.html", + "doc_type":"api", + "p_code":"3", + "code":"6" + }, + { + "desc":"list firewall listPOST /v1/{project_id}/firewalls/listStatus code: 200Query the firewall list on the first page of the enterprise project whose ID is all_granted_eps and ", + "product_code":"cfw", + "title":"list firewall list", + "uri":"ListFirewallList.html", + "doc_type":"api", + "p_code":"3", + "code":"7" + }, + { + "desc":"This API is used to obtain east-west firewall information.GET /v1/{project_id}/firewall/east-westStatus code: 200Status code: 500Obtain the east-west firewall information", + "product_code":"cfw", + "title":"Obtaining East-West Firewall Information", + "uri":"ListEastWestFirewall.html", + "doc_type":"api", + "p_code":"3", + "code":"8" + }, + { + "desc":"This API is used to create east west firewall.POST /v1/{project_id}/firewall/east-westStatus code: 200Create an east-west protection in ER mode under firewall 55b26ab5-e4", + "product_code":"cfw", + "title":"Create East West Firewall", + "uri":"CreateEastWestFirewall.html", + "doc_type":"api", + "p_code":"3", + "code":"9" + }, + { + "desc":"This API is used to query protected VPCs.GET /v1/{project_id}/vpcs/protectionStatus code: 200Status code: 500Query the east-west firewall protection information about the", + "product_code":"cfw", + "title":"Querying the Number of Protected VPCs", + "uri":"ListProtectedVpcs.html", + "doc_type":"api", + "p_code":"3", + "code":"10" + }, + { + "desc":"This API is used to enable or disable east-west protection.POST /v1/{project_id}/firewall/east-west/protectStatus code: 200Status code: 400In the project with the ID 09bb", + "product_code":"cfw", + "title":"Changing the East-West Firewall Protection Status", + "uri":"ChangeEastWestFirewallStatus.html", + "doc_type":"api", + "p_code":"3", + "code":"11" + }, + { + "desc":"This API is used to query a firewall instance.GET /v1/{project_id}/firewall/existStatus code: 200Query the firewall list of the project whose ID is 9d80d070b6d44942af73c9", + "product_code":"cfw", + "title":"List Firewall Detail", + "uri":"ListFirewallDetail.html", + "doc_type":"api", + "p_code":"3", + "code":"12" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"EIP Management", + "uri":"topic_300000001.html", + "doc_type":"api", + "p_code":"2", + "code":"13" + }, + { + "desc":"This API is used to query the number of EIPs.GET /v1/{project_id}/eip-count/{object_id}Status code: 200Status code: 400Query the number of EIPs whose project ID is 9d80d0", + "product_code":"cfw", + "title":"Querying the Number of EIPs", + "uri":"ListEipCount.html", + "doc_type":"api", + "p_code":"13", + "code":"14" + }, + { + "desc":"Enable and disable EIPs, you need to use ListEips to synchronize EIP assets and set the sync field to 1 before enabling EIP protection for the first time after purchasing", + "product_code":"cfw", + "title":"Enabling or Disabling an EIP,To enable and disable EIP, you must use ListEips to synchronize EIP assets before enabling EIP protection for the first time after purchasing EIP, and set the sync field to 1.", + "uri":"ChangeEipStatus.html", + "doc_type":"api", + "p_code":"13", + "code":"15" + }, + { + "desc":"This API is used to query the EIP list.GET /v1/{project_id}/eips/protectStatus code: 200Status code: 400Query the data on the non-synchronized first page whose project ID", + "product_code":"cfw", + "title":"Querying the EIP List", + "uri":"ListEips.html", + "doc_type":"api", + "p_code":"13", + "code":"16" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"ACL Rule Management", + "uri":"topic_300000002.html", + "doc_type":"api", + "p_code":"2", + "code":"17" + }, + { + "desc":"This API is used to create an ACL rule.POST /v1/{project_id}/acl-ruleStatus code: 200Status code: 400The following example shows how to add an IPv4 inbound rule. The rule", + "product_code":"cfw", + "title":"Creating an ACL Rule", + "uri":"AddAclRule.html", + "doc_type":"api", + "p_code":"17", + "code":"18" + }, + { + "desc":"Batch Delete Acl RulesDELETE /v1/{project_id}/acl-ruleStatus code: 200Delete the rule with the object id ae42418e-f077-41a0-9d3b-5b2f5ad9102b under the project id 9d80d07", + "product_code":"cfw", + "title":"Batch Delete Acl Rules", + "uri":"BatchDeleteAclRules.html", + "doc_type":"api", + "p_code":"17", + "code":"19" + }, + { + "desc":"This API is used to update an ACL rule.PUT /v1/{project_id}/acl-rule/{acl_rule_id}Status code: 200Status code: 400The following example shows how to update an IPv4 inboun", + "product_code":"cfw", + "title":"Updating an ACL Rule", + "uri":"UpdateAclRule.html", + "doc_type":"api", + "p_code":"17", + "code":"20" + }, + { + "desc":"This API is used to update rule actions in batches.PUT /v1/{project_id}/acl-rule/actionStatus code: 200Update the statuses of rules 4e12d889-c1d3-491b-8470-3d1b3dadc1fd a", + "product_code":"cfw", + "title":"Updating Rule Actions in Batches", + "uri":"BatchUpdateAclRuleActions.html", + "doc_type":"api", + "p_code":"17", + "code":"21" + }, + { + "desc":"This API is used to list acl rule tags.GET /v2/{project_id}/cfw-acl/tagsStatus code: 200Query the existing ACL tags of the firewall whose ID is 546af3f8-88e9-47f2-a205-23", + "product_code":"cfw", + "title":"List Acl Rule Tags", + "uri":"ListRuleAclTags.html", + "doc_type":"api", + "p_code":"17", + "code":"22" + }, + { + "desc":"This API is used to obtain the rule hit count.POST /v1/{project_id}/acl-rule/countStatus code: 200Query the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 in the p", + "product_code":"cfw", + "title":"Obtaining the Rule Hit Count", + "uri":"ListAclRuleHitCount.html", + "doc_type":"api", + "p_code":"17", + "code":"23" + }, + { + "desc":"This API is used to delete the rule hit count.DELETE /v1/{project_id}/acl-rule/countStatus code: 400Clear the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 in the", + "product_code":"cfw", + "title":"Deleting the Rule Hit Count", + "uri":"DeleteAclRuleHitCount.html", + "doc_type":"api", + "p_code":"17", + "code":"24" + }, + { + "desc":"This API is used to delete an ACL rule group.DELETE /v1/{project_id}/acl-rule/{acl_rule_id}Status code: 200Status code: 400Delete the rule whose project ID is 9d80d070b6d", + "product_code":"cfw", + "title":"Delete Acl Rule", + "uri":"DeleteAclRule.html", + "doc_type":"api", + "p_code":"17", + "code":"25" + }, + { + "desc":"This API is used to query a protection rule.GET /v1/{project_id}/acl-rulesStatus code: 200Status code: 400Query the data whose project ID is 9d80d070b6d44942af73c9c3d38e0", + "product_code":"cfw", + "title":"Querying a Protection Rule", + "uri":"ListAclRules.html", + "doc_type":"api", + "p_code":"17", + "code":"26" + }, + { + "desc":"This API is used to set the priority of an ACL protection rule.PUT /v1/{project_id}/acl-rule/order/{acl_rule_id}Status code: 200Status code: 400Set the rule with the rule", + "product_code":"cfw", + "title":"Setting the Priority of an ACL Protection Rule", + "uri":"UpdateAclRuleOrder.html", + "doc_type":"api", + "p_code":"17", + "code":"27" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Blacklist and Whitelist Management", + "uri":"topic_300000003.html", + "doc_type":"api", + "p_code":"2", + "code":"28" + }, + { + "desc":"This API is used for creating a blacklist or whitelist rule.POST /v1/{project_id}/black-white-listStatus code: 200Status code: 400Add an IPv4 TCP whitelist to object cfeb", + "product_code":"cfw", + "title":"Creating a Blacklist or Whitelist Rule", + "uri":"AddBlackWhiteList.html", + "doc_type":"api", + "p_code":"28", + "code":"29" + }, + { + "desc":"This API is used to update the blacklist or whitelist.PUT /v1/{project_id}/black-white-list/{list_id}Status code: 200Status code: 400Update the whitelist with the project", + "product_code":"cfw", + "title":"Updating the Blacklist or Whitelist", + "uri":"UpdateBlackWhiteList.html", + "doc_type":"api", + "p_code":"28", + "code":"30" + }, + { + "desc":"This API is used to delete a blacklist or whitelist rule.DELETE /v1/{project_id}/black-white-list/{list_id}Status code: 200Status code: 400Delete the black and white list", + "product_code":"cfw", + "title":"Deleting a Blacklist or Whitelist Rule", + "uri":"DeleteBlackWhiteList.html", + "doc_type":"api", + "p_code":"28", + "code":"31" + }, + { + "desc":"This API is used to query a blacklist or whitelist.GET /v1/{project_id}/black-white-listsStatus code: 200Status code: 400Query five whitelist records on the first page of", + "product_code":"cfw", + "title":"Querying a Blacklist or Whitelist", + "uri":"ListBlackWhiteLists.html", + "doc_type":"api", + "p_code":"28", + "code":"32" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Address Set Management", + "uri":"topic_300000004.html", + "doc_type":"api", + "p_code":"2", + "code":"33" + }, + { + "desc":"This API is used to add an address group member.POST /v1/{project_id}/address-itemsStatus code: 200Status code: 400Add an address group member whose IP address is 2.2.2.2", + "product_code":"cfw", + "title":"Adding an Address Set Member", + "uri":"AddAddressItem.html", + "doc_type":"api", + "p_code":"33", + "code":"34" + }, + { + "desc":"Batch Delete Address ItemsDELETE /v1/{project_id}/address-itemsStatus code: 200Delete address set member whose ID is d072ad2e-033c-40a9-b0b5-751f9c2943a6 from address set", + "product_code":"cfw", + "title":"Batch Delete Address Items", + "uri":"BatchDeleteAddressItems.html", + "doc_type":"api", + "p_code":"33", + "code":"35" + }, + { + "desc":"This API is used to delete a member from an address group.DELETE /v1/{project_id}/address-items/{item_id}Status code: 200Status code: 400Delete the address group member w", + "product_code":"cfw", + "title":"Deleting an Address Set Member", + "uri":"DeleteAddressItem.html", + "doc_type":"api", + "p_code":"33", + "code":"36" + }, + { + "desc":"This API is used to query address group members.GET /v1/{project_id}/address-itemsStatus code: 200Status code: 400Query members in address group 8773c082-2a6c-4529-939a-e", + "product_code":"cfw", + "title":"Querying Address Set Members", + "uri":"ListAddressItems.html", + "doc_type":"api", + "p_code":"33", + "code":"37" + }, + { + "desc":"This API is used to add an address group.POST /v1/{project_id}/address-setStatus code: 200Status code: 400Add an IPv4 address group whose project ID is 14181c1245cf4fd786", + "product_code":"cfw", + "title":"Adding an Address Set", + "uri":"AddAddressSet.html", + "doc_type":"api", + "p_code":"33", + "code":"38" + }, + { + "desc":"Querying IP Address SetsGET /v1/{project_id}/address-setsStatus code: 200Status code: 400This API is used to query the IP address group information on the first page of p", + "product_code":"cfw", + "title":"Querying IP Address Sets", + "uri":"ListAddressSets.html", + "doc_type":"api", + "p_code":"33", + "code":"39" + }, + { + "desc":"This API is used to query details about an address group.GET /v1/{project_id}/address-sets/{set_id}Status code: 200Status code: 400Query details about address group cf18f", + "product_code":"cfw", + "title":"Querying Address Set Details", + "uri":"ListAddressSetDetail.html", + "doc_type":"api", + "p_code":"33", + "code":"40" + }, + { + "desc":"This API is used to update address group information.PUT /v1/{project_id}/address-sets/{set_id}Status code: 200Status code: 400In the project 9d80d070b6d44942af73c9c3d38e", + "product_code":"cfw", + "title":"Updating Address Set Information", + "uri":"UpdateAddressSet.html", + "doc_type":"api", + "p_code":"33", + "code":"41" + }, + { + "desc":"This API is used to delete an address group.DELETE /v1/{project_id}/address-sets/{set_id}Status code: 200Status code: 400Delete address set cf18f0b1-0ce7-4eb8-83b6-4b33c8", + "product_code":"cfw", + "title":"Deleting an Address Set", + "uri":"DeleteAddressSet.html", + "doc_type":"api", + "p_code":"33", + "code":"42" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Service Set Management", + "uri":"topic_300000005.html", + "doc_type":"api", + "p_code":"2", + "code":"43" + }, + { + "desc":"This API is used to add group members in batches.POST /v1/{project_id}/service-itemsStatus code: 200Status code: 400Add a service group member named ceshi to the project ", + "product_code":"cfw", + "title":"Creating a Service Member", + "uri":"AddServiceItems.html", + "doc_type":"api", + "p_code":"43", + "code":"44" + }, + { + "desc":"This API is used to batch delete service items.DELETE /v1/{project_id}/service-itemsStatus code: 200Delete the service item f837f7ae-22c9-449d-a99c-4be24533e243 under the", + "product_code":"cfw", + "title":"Batch Delete Service Items", + "uri":"BatchDeleteServiceItems.html", + "doc_type":"api", + "p_code":"43", + "code":"45" + }, + { + "desc":"This API is used to obtain the service group list.GET /v1/{project_id}/service-setsStatus code: 200Status code: 400Query the service group list on the first page of prote", + "product_code":"cfw", + "title":"Obtaining the Service Set List", + "uri":"ListServiceSets.html", + "doc_type":"api", + "p_code":"43", + "code":"46" + }, + { + "desc":"This API is used to create a service group.POST /v1/{project_id}/service-setStatus code: 200Status code: 400Add a service group whose project ID is 9d80d070b6d44942af73c9", + "product_code":"cfw", + "title":"Creating a Service Set", + "uri":"AddServiceSet.html", + "doc_type":"api", + "p_code":"43", + "code":"47" + }, + { + "desc":"This API is used to query the details about a service group.GET /v1/{project_id}/service-sets/{set_id}Status code: 200Status code: 400Query details about the service grou", + "product_code":"cfw", + "title":"Querying Service Set Details", + "uri":"ListServiceSetDetail.html", + "doc_type":"api", + "p_code":"43", + "code":"48" + }, + { + "desc":"This API is used to update a service group.PUT /v1/{project_id}/service-sets/{set_id}Status code: 200Status code: 400Change the name and description of service group 221c", + "product_code":"cfw", + "title":"Modifying a Service Set", + "uri":"UpdateServiceSet.html", + "doc_type":"api", + "p_code":"43", + "code":"49" + }, + { + "desc":"This API is used to delete a service group.DELETE /v1/{project_id}/service-sets/{set_id}Status code: 200Status code: 400Delete the service group whose project ID is 9d80d", + "product_code":"cfw", + "title":"Deleting a Service Set", + "uri":"DeleteServiceSet.html", + "doc_type":"api", + "p_code":"43", + "code":"50" + }, + { + "desc":"This API is used to query service group members.GET /v1/{project_id}/service-itemsStatus code: 200Status code: 400Query the member list of the service group whose project", + "product_code":"cfw", + "title":"Querying the Service Set Member List", + "uri":"ListServiceItems.html", + "doc_type":"api", + "p_code":"43", + "code":"51" + }, + { + "desc":"This API is used to delete a member from a service group.DELETE /v1/{project_id}/service-items/{item_id}Status code: 200Status code: 400This API is used to Delete the ser", + "product_code":"cfw", + "title":"Deleting a Service Member", + "uri":"DeleteServiceItem.html", + "doc_type":"api", + "p_code":"43", + "code":"52" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Domain Parse and Domain Set Management", + "uri":"topic_300000006.html", + "doc_type":"api", + "p_code":"2", + "code":"53" + }, + { + "desc":"This API is used to add domain set.POST /v1/{project_id}/domain-setStatus code: 200Add a domain set whose project ID is 9d80d070b6d44942af73c9c3d38e0429, firewall ID is 5", + "product_code":"cfw", + "title":"Add Domain Set", + "uri":"AddDomainSet.html", + "doc_type":"api", + "p_code":"53", + "code":"54" + }, + { + "desc":"This API is used to delete domain set.DELETE /v1/{project_id}/domain-set/{set_id}Status code: 200Delete domain set 89bce6a4-9b59-4d7a-b5f9-cac5ac16d88a from firewall 7a00", + "product_code":"cfw", + "title":"Delete Domain Set", + "uri":"DeleteDomainSet.html", + "doc_type":"api", + "p_code":"53", + "code":"55" + }, + { + "desc":"This API is used to update domain set.PUT /v1/{project_id}/domain-set/{set_id}Status code: 200For the firewall 7a004e79-0b8b-4679-ab20-267f3946e8ba in the project 9d80d07", + "product_code":"cfw", + "title":"Update Domain Set", + "uri":"UpdateDomainSet.html", + "doc_type":"api", + "p_code":"53", + "code":"56" + }, + { + "desc":"list domain setsGET /v1/{project_id}/domain-setsStatus code: 200Query the domain set list of firewall 546af3f8-88e9-47f2-a205-2346d7090925 in project 9d80d070b6d44942af73", + "product_code":"cfw", + "title":"list domain sets", + "uri":"ListDomainSets.html", + "doc_type":"api", + "p_code":"53", + "code":"57" + }, + { + "desc":"list domainsGET /v1/{project_id}/domain-set/domains/{domain_set_id}Status code: 200Query the list of domain names under project id 14181c1245cf4fd786824efe1e2b9388, domai", + "product_code":"cfw", + "title":"list domains", + "uri":"ListDomains.html", + "doc_type":"api", + "p_code":"53", + "code":"58" + }, + { + "desc":"add domainsPOST /v1/{project_id}/domain-set/domains/{set_id}Status code: 200Add domain names to the domain set under the project where project id is 14181c1245cf4fd786824", + "product_code":"cfw", + "title":"add domains", + "uri":"AddDomains.html", + "doc_type":"api", + "p_code":"53", + "code":"59" + }, + { + "desc":"delete domainsDELETE /v1/{project_id}/domain-set/domains/{set_id}Status code: 200For the project whose project id is 14181c1245cf4fd786824efe1e2b9388, delete the domain n", + "product_code":"cfw", + "title":"delete domains", + "uri":"DeleteDomains.html", + "doc_type":"api", + "p_code":"53", + "code":"60" + }, + { + "desc":"This API is used to query the DNS server list.GET /v1/{project_id}/dns/serversStatus code: 200Obtain the DNS server list of the project whose ID is 2349ba469daf4b7daf268b", + "product_code":"cfw", + "title":"Querying the DNS Server List", + "uri":"ListDnsServers.html", + "doc_type":"api", + "p_code":"53", + "code":"61" + }, + { + "desc":"This API is used to update the DNS server list.PUT /v1/{project_id}/dns/serversStatus code: 200Status code: 400Update the settings of the DNS resolver whose project ID is", + "product_code":"cfw", + "title":"Updating the DNS Server List", + "uri":"UpdateDnsServers.html", + "doc_type":"api", + "p_code":"53", + "code":"62" + }, + { + "desc":"This API is used to test the validity of a domain name.GET /v1/{project_id}/domain/parse/{domain_name}Status code: 200Status code: 400Check whether the ceshi.com domain n", + "product_code":"cfw", + "title":"Querying the IP Address for Domain Name Resolution", + "uri":"ListDomainParseDetail.html", + "doc_type":"api", + "p_code":"53", + "code":"63" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"IPS Management", + "uri":"topic_300000007.html", + "doc_type":"api", + "p_code":"2", + "code":"64" + }, + { + "desc":"This API is used to query the IPS switch status.GET /v1/{project_id}/ips/switchStatus code: 200Query the patch status of the current user based on the received user ID 14", + "product_code":"cfw", + "title":"Querying the IPS Switch Status", + "uri":"ListIpsSwitchStatus.html", + "doc_type":"api", + "p_code":"64", + "code":"65" + }, + { + "desc":"This API is used to enable or disable the feature.POST /v1/{project_id}/ips/switchStatus code: 200Enable or disable the basic patch and virtual patch of the engine on the", + "product_code":"cfw", + "title":"Enabling or Disabling IPS", + "uri":"ChangeIpsSwitchStatus.html", + "doc_type":"api", + "p_code":"64", + "code":"66" + }, + { + "desc":"This API is used to query the protection mode.GET /v1/{project_id}/ips/protectStatus code: 200Status code: 400Query the IPS protection mode of the project whose ID is 9d8", + "product_code":"cfw", + "title":"Querying the Protection Mode", + "uri":"ListIpsProtectMode.html", + "doc_type":"api", + "p_code":"64", + "code":"67" + }, + { + "desc":"This API is used to switch the protection mode.POST /v1/{project_id}/ips/protectStatus code: 200Status code: 400Deliver the strict protection mode to object cfebd347-b655", + "product_code":"cfw", + "title":"Switching the Protection Mode", + "uri":"ChangeIpsProtectMode.html", + "doc_type":"api", + "p_code":"64", + "code":"68" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Log Management", + "uri":"topic_300000008.html", + "doc_type":"api", + "p_code":"2", + "code":"69" + }, + { + "desc":"This API is used to list log config.GET /v1/{project_id}/cfw/logs/configurationStatus code: 200Query the log configuration of whose firewall instance id is 4e113415-7811-", + "product_code":"cfw", + "title":"List Log Config", + "uri":"ListLogConfig.html", + "doc_type":"api", + "p_code":"69", + "code":"70" + }, + { + "desc":"This API is used to add log config.POST /v1/{project_id}/cfw/logs/configurationStatus code: 200Add a log flow configuration to the firewall whose firewall instance id is ", + "product_code":"cfw", + "title":"Add Log Config", + "uri":"AddLogConfig.html", + "doc_type":"api", + "p_code":"69", + "code":"71" + }, + { + "desc":"This API is used to update log config.PUT /v1/{project_id}/cfw/logs/configurationStatus code: 200Update the log configuration of the firewall whose firewall instance id i", + "product_code":"cfw", + "title":"Update Log Config", + "uri":"UpdateLogConfig.html", + "doc_type":"api", + "p_code":"69", + "code":"72" + }, + { + "desc":"This API is used to query flow logs.GET /v1/{project_id}/cfw/logs/flowStatus code: 200Status code: 400Query the flow logs on the first page of the firewall with the ID 2a", + "product_code":"cfw", + "title":"Querying Flow Logs", + "uri":"ListFlowLogs.html", + "doc_type":"api", + "p_code":"69", + "code":"73" + }, + { + "desc":"This API is used to query access control logs.GET /v1/{project_id}/cfw/logs/access-controlStatus code: 200Status code: 400Query the records whose initial position is 0 on", + "product_code":"cfw", + "title":"Querying Access Control Logs", + "uri":"ListAccessControlLogs.html", + "doc_type":"api", + "p_code":"69", + "code":"74" + }, + { + "desc":"This API is used to query attack logs.GET /v1/{project_id}/cfw/logs/attackStatus code: 200Status code: 400Query 10 records on the first page of the firewall with the ID 2", + "product_code":"cfw", + "title":"Querying Attack Logs", + "uri":"ListAttackLogs.html", + "doc_type":"api", + "p_code":"69", + "code":"75" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Appendix", + "uri":"cfw_02_0011.html", + "doc_type":"api", + "p_code":"", + "code":"76" + }, + { + "desc":"NormalStatus CodeDescriptionDescription200OKThe request is successfully processed.AbnormalStatus CodeDescriptionDescription400Bad RequestIt is a bad request.401Unauthoriz", + "product_code":"cfw", + "title":"Status Code", + "uri":"cfw_02_0013.html", + "doc_type":"api", + "p_code":"76", + "code":"77" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Error Codes", + "uri":"ErrorCode.html", + "doc_type":"api", + "p_code":"76", + "code":"78" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"cfw", + "title":"Change History", + "uri":"cfw_02_0016.html", + "doc_type":"api", + "p_code":"", + "code":"79" + } +] \ No newline at end of file diff --git a/docs/cfw/api-ref/ChangeEastWestFirewallStatus.html b/docs/cfw/api-ref/ChangeEastWestFirewallStatus.html new file mode 100644 index 00000000..c520af52 --- /dev/null +++ b/docs/cfw/api-ref/ChangeEastWestFirewallStatus.html @@ -0,0 +1,272 @@ + + +

Changing the East-West Firewall Protection Status

+

Function

This API is used to enable or disable east-west protection.

+
+

URI

POST /v1/{project_id}/firewall/east-west/protect

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

status

+

Yes

+

Integer

+

Protection status. The value can be 0 (enabled) or 1 (disabled).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Response body

+

trace_id

+

String

+

trace id

+
+
+ +
+ + + + + + + + + +
Table 6 data

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

In the project with the ID 09bb24e6fe80d23d2fa2c010b53b418c, enable east-west firewall protection for the object with the ID 74820b38-1cc0-4f0b-8cce-32490fa840a3.

+
https://{Endpoint}/v1/09bb24e6fe80d23d2fa2c010b53b418c/firewall/east-west/protect
+
+{
+  "object_id" : "74820b38-1cc0-4f0b-8cce-32490fa840a3",
+  "status" : 1
+}
+
+

Example Responses

Status code: 200

+

Response body for updating the east-west protection status

+
{
+  "data" : {
+    "id" : "5c539816-7a94-4833-9df0-944b362f0797"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response body for updating the east-west protection status

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ChangeEipStatus.html b/docs/cfw/api-ref/ChangeEipStatus.html new file mode 100644 index 00000000..e7d3fb1a --- /dev/null +++ b/docs/cfw/api-ref/ChangeEipStatus.html @@ -0,0 +1,348 @@ + + +

Enabling or Disabling an EIP,To enable and disable EIP, you must use ListEips to synchronize EIP assets before enabling EIP protection for the first time after purchasing EIP, and set the sync field to 1.

+

Function

Enable and disable EIPs, you need to use ListEips to synchronize EIP assets and set the sync field to 1 before enabling EIP protection for the first time after purchasing an EIP.

+
+

URI

POST /v1/{project_id}/eip/protect

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

Minimum: 36

+

Maximum: 36

+

status

+

Yes

+

Integer

+

EIP Status,0:protected,1:unprotected

+

Minimum: 0

+

Maximum: 1

+

ip_infos

+

Yes

+

Array of ip_infos objects

+

EIP information list

+

Array Length: 0 - 50

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 ip_infos

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

No

+

String

+

EIP data ID

+

Minimum: 36

+

Maximum: 36

+

public_ip

+

No

+

String

+

EIP

+

Minimum: 0

+

Maximum: 255

+

public_ipv6

+

No

+

String

+

EIP IPv6

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

data

+

EIPSwitchStatusVO object

+

Eip Switch Status Vo

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 7 EIPSwitchStatusVO

Parameter

+

Type

+

Description

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

fail_eip_id_list

+

Array of strings

+

failed eip id list

+

id

+

String

+

ID

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

Return value for enabling or disabling EIP protection

+
{
+  "data" : {
+    "fail_eip_id_list" : [ ],
+    "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b",
+    "id" : "b0a2dacc-3886-4805-838e-281653d3cd1f"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value for enabling or disabling EIP protection

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ChangeIpsProtectMode.html b/docs/cfw/api-ref/ChangeIpsProtectMode.html new file mode 100644 index 00000000..e0f74b2f --- /dev/null +++ b/docs/cfw/api-ref/ChangeIpsProtectMode.html @@ -0,0 +1,268 @@ + + +

Switching the Protection Mode

+

Function

This API is used to switch the protection mode.

+
+

URI

POST /v1/{project_id}/ips/protect

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

No

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

mode

+

No

+

Integer

+

IPS protection mode. 0: observation mode; 1: strict mode; 2: medium mode; 3: loose mode

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Update the IPS protection mode

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Deliver the strict protection mode to object cfebd347-b655-4b84-b938-3c54317599b2 in project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/ips/protect
+
+{
+  "object_id" : "cfebd347-b655-4b84-b938-3c54317599b2",
+  "mode" : 1
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "cfebd347-b655-4b84-b938-3c54317599b2"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ChangeIpsSwitchStatus.html b/docs/cfw/api-ref/ChangeIpsSwitchStatus.html new file mode 100644 index 00000000..25fbf29f --- /dev/null +++ b/docs/cfw/api-ref/ChangeIpsSwitchStatus.html @@ -0,0 +1,250 @@ + + +

Enabling or Disabling IPS

+

Function

This API is used to enable or disable the feature.

+
+

URI

POST /v1/{project_id}/ips/switch

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project_id

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+

X-Language

+

No

+

String

+

Language header, the default is zh-cn, if you need to use English, please select en-us.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

ips_type

+

Yes

+

Integer

+

Patch type. Only virtual patch is supported. The value is 2.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

status

+

Yes

+

Integer

+

IPS switch status

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

trace_id

+

String

+

trace_id

+

data

+

data object

+

object

+
+
+ +
+ + + + + + + + + +
Table 6 data

Parameter

+

Type

+

Description

+

id

+

String

+

Protected object ID

+
+
+
+

Example Requests

Enable or disable the basic patch and virtual patch of the engine on the user portal. The following example shows how to enable the virtual patch function for project 14181c1245cf4fd786824efe1e2b9388 whose protected object ID is 1530de8a-522d-4771-9067-9fa4e2f53b48.

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/ips/switch?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default
+
+{
+  "ips_type" : 1,
+  "object_id" : "1530de8a-522d-4771-9067-9fa4e2f53b48",
+  "status" : 1
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "1530de8a-522d-4771-9067-9fa4e2f53b48"
+  },
+  "trace_id" : "358144a9885ff55100aa63cb0d0e1039"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/CreateEastWestFirewall.html b/docs/cfw/api-ref/CreateEastWestFirewall.html new file mode 100644 index 00000000..cc5af112 --- /dev/null +++ b/docs/cfw/api-ref/CreateEastWestFirewall.html @@ -0,0 +1,216 @@ + + +

Create East West Firewall

+

Function

This API is used to create east west firewall.

+
+

URI

POST /v1/{project_id}/firewall/east-west

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

er_id

+

No

+

String

+

Instance ID of the associated outbound ER

+

inspection_cidr

+

Yes

+

String

+

inspection cidr

+

mode

+

Yes

+

String

+

east-west protection mode,only er mode is supported

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

create east west firewall response

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+
+

Example Requests

Create an east-west protection in ER mode under firewall 55b26ab5-e4b0-40e8-941c-a1778fe2a500, the project ID is 09bb24e6f280d23d0f9fc0104b901480, the inspection_cidr is 10.1.0.0/24, and the er_id is e0b22a23-02cf-4092-ace9-34b39e10dc77.

+
https://{Endpoint}/v1/09bb24e6f280d23d0f9fc0104b901480/firewall/east-west?fw_instance_id=55b26ab5-e4b0-40e8-941c-a1778fe2a500&enterprise_project_id=default
+
+{
+  "inspection_cidr" : "10.1.0.0/24",
+  "mode" : "er",
+  "er_id" : "e0b22a23-02cf-4092-ace9-34b39e10dc77"
+}
+
+

Example Responses

Status code: 200

+

Create East West Firewall Response Body

+
{
+  "data" : {
+    "id" : "b6d4a7d5-388e-4594-b696-fb4bba1d2b9e"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Create East West Firewall Response Body

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/CreateFirewall.html b/docs/cfw/api-ref/CreateFirewall.html new file mode 100644 index 00000000..139d3841 --- /dev/null +++ b/docs/cfw/api-ref/CreateFirewall.html @@ -0,0 +1,592 @@ + + +

Create Firewall

+

Function

This API is used to create firewall.

+
+

URI

POST /v2/{project_id}/firewall

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

No

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+

X-Client-Token

+

No

+

String

+

An identity that guarantees the idempotency of client requests. The identifier is in 32-bit UUID format, generated by the client, and must be unique between requests.

+

X-Trace-Id

+

No

+

String

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Firewall Name

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

Default: 0

+

tags

+

No

+

Array of tags objects

+

Resource Tag

+

flavor

+

No

+

flavor object

+

flavor

+

charge_info

+

Yes

+

charge_info object

+

Billing type information, prepaid and postpaid, the default is postpaid.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 tags

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag Key

+

value

+

Yes

+

String

+

Tag Value

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 flavor

Parameter

+

Mandatory

+

Type

+

Description

+

version

+

No

+

String

+

Firewall version: If charge_mode is set to prePaid, only the Professional Edition is supported, and when charge_mode is set to postPaid, the Standard and Professional Editions are supported.

+

Enumeration values:

+
  • Standard

    +
  • Professional

    +
+

extend_eip_count

+

No

+

Integer

+

Expand the number of EIPs and take effect only in the prepaid mode.

+

Minimum: 0

+

Maximum: 2000

+

Default: 0

+

extend_bandwidth

+

No

+

Integer

+

Expand band width and take effect only in the prepaid mode.

+

Minimum: 0

+

Maximum: 5000

+

extend_vpc_count

+

No

+

Integer

+

Expand the number of VPCs and take effect only in the prepaid mode.

+

Minimum: 0

+

Maximum: 100

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 charge_info

Parameter

+

Mandatory

+

Type

+

Description

+

charge_mode

+

Yes

+

String

+

The billing mode can be prepaid, i.e., yearly/monthly, and postPaid: postpaid, i.e., pay-per-use.

+

period_type

+

No

+

String

+

The value range of the subscription cycle,include monthly and yearly. Note: This parameter takes effect when charge_mode is set to prePaid, and the value is required.

+

period_num

+

No

+

Integer

+

the time of the subscription, take effect when charge_mode is prePaid and it is required, value range: 1~9 when period_type is set to month, and 1~3 when period_type is set to year.

+

is_auto_renew

+

Yes

+

Boolean

+

whether the firewall instance is auto renewed

+

Default: false

+

is_auto_pay

+

Yes

+

Boolean

+

whether the firewall instance is auto paid

+

Default: false

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

job_id

+

String

+

The job id, created when the firewall instance is created, which is returned only when the billing mode is postpaid.

+

order_id

+

String

+

Order id,which is returned when the firewall instance is created.

+

data

+

CreateFirewallReq object

+

Create Firewall Request

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 CreateFirewallReq

Parameter

+

Type

+

Description

+

name

+

String

+

Firewall Name

+

enterprise_project_id

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

Default: 0

+

tags

+

Array of tags objects

+

Resource Tag

+

flavor

+

flavor object

+

flavor

+

charge_info

+

charge_info object

+

Billing type information, prepaid and postpaid, the default is postpaid.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 tags

Parameter

+

Type

+

Description

+

key

+

String

+

Tag Key

+

value

+

String

+

Tag Value

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 10 flavor

Parameter

+

Type

+

Description

+

version

+

String

+

Firewall version: If charge_mode is set to prePaid, only the Professional Edition is supported, and when charge_mode is set to postPaid, the Standard and Professional Editions are supported.

+

Enumeration values:

+
  • Standard

    +
  • Professional

    +
+

extend_eip_count

+

Integer

+

Expand the number of EIPs and take effect only in the prepaid mode.

+

Minimum: 0

+

Maximum: 2000

+

Default: 0

+

extend_bandwidth

+

Integer

+

Expand band width and take effect only in the prepaid mode.

+

Minimum: 0

+

Maximum: 5000

+

extend_vpc_count

+

Integer

+

Expand the number of VPCs and take effect only in the prepaid mode.

+

Minimum: 0

+

Maximum: 100

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 charge_info

Parameter

+

Type

+

Description

+

charge_mode

+

String

+

The billing mode can be prepaid, i.e., yearly/monthly, and postPaid: postpaid, i.e., pay-per-use.

+

period_type

+

String

+

The value range of the subscription cycle,include monthly and yearly. Note: This parameter takes effect when charge_mode is set to prePaid, and the value is required.

+

period_num

+

Integer

+

the time of the subscription, take effect when charge_mode is prePaid and it is required, value range: 1~9 when period_type is set to month, and 1~3 when period_type is set to year.

+

is_auto_renew

+

Boolean

+

whether the firewall instance is auto renewed

+

Default: false

+

is_auto_pay

+

Boolean

+

whether the firewall instance is auto paid

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Enable a standard firewall with 2000 extended EIP, 5,000 Mbps extended protection bandwidth, 100 extended protection VCPs under a monthly billing auto-renewal model.

+
https://{Endpoint}/v2/124147da-5b08-471a-93d2-bc82acc290c6/firewall
+
+{
+  "name" : "CFW-TEST",
+  "enterprise_project_id" : "0",
+  "tags" : [ {
+    "key" : "TagKey",
+    "value" : "TagVal"
+  } ],
+  "flavor" : {
+    "version" : "standard",
+    "extend_eip_count" : 2000,
+    "extend_bandwidth" : 5000,
+    "extend_vpc_count" : 100
+  },
+  "charge_info" : {
+    "charge_mode" : "prePaid",
+    "period_type" : "month",
+    "period_num" : 1,
+    "is_auto_renew" : true,
+    "is_auto_pay" : true
+  }
+}
+
+

Example Responses

Status code: 200

+

Create Firewall Response

+
{
+  "data" : "6ed72853-34cb-4b97-9b87-cfc47087c96e"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00100001",
+  "error_msg" : "The system is busy. Please try again later."
+}
+
+

Status Codes

+
+ + + + + + + + + + +

Status Code

+

Description

+

200

+

Create Firewall Response

+

400

+

Bad Request

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteAclRule.html b/docs/cfw/api-ref/DeleteAclRule.html new file mode 100644 index 00000000..dcdc4849 --- /dev/null +++ b/docs/cfw/api-ref/DeleteAclRule.html @@ -0,0 +1,240 @@ + + +

Delete Acl Rule

+

Function

This API is used to delete an ACL rule group.

+
+

URI

DELETE /v1/{project_id}/acl-rule/{acl_rule_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

acl_rule_id

+

Yes

+

String

+

Rule ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

RuleId object

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 RuleId

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Delete the rule whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and rule ID is ceaa0407-b9c8-4dfd-9eca-b6ead2dfd031.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rule/ceaa0407-b9c8-4dfd-9eca-b6ead2dfd031
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "ceaa0407-b9c8-4dfd-9eca-b6ead2dfd031",
+    "name" : "name"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00900016",
+  "error_msg" : "The import task is in progress. Please operate after the task is completed"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteAclRuleHitCount.html b/docs/cfw/api-ref/DeleteAclRuleHitCount.html new file mode 100644 index 00000000..0f1fafdb --- /dev/null +++ b/docs/cfw/api-ref/DeleteAclRuleHitCount.html @@ -0,0 +1,208 @@ + + +

Deleting the Rule Hit Count

+

Function

This API is used to delete the rule hit count.

+
+

URI

DELETE /v1/{project_id}/acl-rule/count

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project id

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

rule_ids

+

Yes

+

Array of strings

+

Rule ID list

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Clear the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 in the project whose ID is 0b2179bbe180d3762fb0c01a2d5725c7.

+
https://{Endpoint}/v1/0b2179bbe180d3762fb0c01a2d5725c7/acl-rule/count
+
+{
+  "rule_ids" : [ "59ff6bd9-0a76-41ec-9650-380086069965" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{ }
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00400006",
+  "error_msg" : "clear rule hit count param error."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteAddressItem.html b/docs/cfw/api-ref/DeleteAddressItem.html new file mode 100644 index 00000000..1d30a609 --- /dev/null +++ b/docs/cfw/api-ref/DeleteAddressItem.html @@ -0,0 +1,241 @@ + + +

Deleting an Address Set Member

+

Function

This API is used to delete a member from an address group.

+
+

URI

DELETE /v1/{project_id}/address-items/{item_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

item_id

+

Yes

+

String

+

ID of an address group member

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

delete address item response

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Delete the address group member whose ID is 65cb47fc-e666-4af4-8c2c-1fbd2f4b1eae from the project whose ID is 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-items/65cb47fc-e666-4af4-8c2c-1fbd2f4b1eae
+
+

Example Responses

Status code: 200

+

Return value for deleting an address group member

+
{
+  "data" : {
+    "id" : "65cb47fc-e666-4af4-8c2c-1fbd2f4b1eae",
+    "name" : "test"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "Incorrect instance status."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value for deleting an address group member

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteAddressSet.html b/docs/cfw/api-ref/DeleteAddressSet.html new file mode 100644 index 00000000..5918eca1 --- /dev/null +++ b/docs/cfw/api-ref/DeleteAddressSet.html @@ -0,0 +1,241 @@ + + +

Deleting an Address Set

+

Function

This API is used to delete an address group.

+
+

URI

DELETE /v1/{project_id}/address-sets/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

ID of the IP address group

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Data returned after an address group is deleted

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Delete address set cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16 from project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-sets/cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16",
+    "name" : "test"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200004",
+  "error_msg" : "can not delete for used"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteBlackWhiteList.html b/docs/cfw/api-ref/DeleteBlackWhiteList.html new file mode 100644 index 00000000..aa9df60b --- /dev/null +++ b/docs/cfw/api-ref/DeleteBlackWhiteList.html @@ -0,0 +1,240 @@ + + +

Deleting a Blacklist or Whitelist Rule

+

Function

This API is used to delete a blacklist or whitelist rule.

+
+

URI

DELETE /v1/{project_id}/black-white-list/{list_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

list_id

+

Yes

+

String

+

Blacklist/Whitelist ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Response to the request for deleting a blacklist or whitelist

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Delete the black and white list with the project id 9d80d070b6d44942af73c9c3d38e0429 and the black and white list with the id 2eee3fe8-0b9b-49ac-8e7f-eaafa321e99a

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/black-white-list/2eee3fe8-0b9b-49ac-8e7f-eaafa321e99a
+
+

Example Responses

Status code: 200

+

Blacklist/Whitelist deletion response

+
{
+  "data" : {
+    "id" : "2eee3fe8-0b9b-49ac-8e7f-eaafa321e99a"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Blacklist/Whitelist deletion response

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteDomainSet.html b/docs/cfw/api-ref/DeleteDomainSet.html new file mode 100644 index 00000000..81e19ef0 --- /dev/null +++ b/docs/cfw/api-ref/DeleteDomainSet.html @@ -0,0 +1,179 @@ + + +

Delete Domain Set

+

Function

This API is used to delete domain set.

+
+

URI

DELETE /v1/{project_id}/domain-set/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+

set_id

+

Yes

+

String

+

set id

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

DomainSetResponseData object

+

delete domain set response

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 DomainSetResponseData

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+
+

Example Requests

Delete domain set 89bce6a4-9b59-4d7a-b5f9-cac5ac16d88a from firewall 7a004e79-0b8b-4679-ab20-267f3946e8ba in project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/domain-set/89bce6a4-9b59-4d7a-b5f9-cac5ac16d88a?fw_instance_id=7a004e79-0b8b-4679-ab20-267f3946e8ba&enterprise_project_id=default
+
+

Example Responses

Status code: 200

+

Delete Domain Set Response

+
{
+  "data" : {
+    "id" : "89bce6a4-9b59-4d7a-b5f9-cac5ac16d88a",
+    "name" : "test"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Delete Domain Set Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteDomains.html b/docs/cfw/api-ref/DeleteDomains.html new file mode 100644 index 00000000..f6770c6b --- /dev/null +++ b/docs/cfw/api-ref/DeleteDomains.html @@ -0,0 +1,207 @@ + + +

delete domains

+

Function

delete domains

+
+

URI

DELETE /v1/{project_id}/domain-set/domains/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

Domain Set ID

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

domain_address_ids

+

Yes

+

Array of strings

+

domain address ids

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

DomainSetResponseData object

+

delete domains response data

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 DomainSetResponseData

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+
+

Example Requests

For the project whose project id is 14181c1245cf4fd786824efe1e2b9388, delete the domain names under the firewall whose firewall id is 546af3f8-88e9-47f2-a205-2346d7090925, the protected object id is ae42418e-f077-41a0-9d3b-5b2f5ad910 2b, the domain set id is 78719348-6d79- 477e-acec-676a29842ab2, and the domain names are "b9c23ad8-16d2-4f14-894f-29250c5d27e5", "c36f9462-467b-4303-9734-f9abc38ddb95".

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/domain-set/domains/78719348-6d79-477e-acec-676a29842ab2?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default
+
+{
+  "domain_address_ids" : [ "b9c23ad8-16d2-4f14-894f-29250c5d27e5", "c36f9462-467b-4303-9734-f9abc38ddb95" ],
+  "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b"
+}
+
+

Example Responses

Status code: 200

+

delete domains response

+
{
+  "data" : {
+    "id" : "78719348-6d79-477e-acec-676a29842ab2",
+    "name" : "test26"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

delete domains response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteFirewall.html b/docs/cfw/api-ref/DeleteFirewall.html new file mode 100644 index 00000000..735c9761 --- /dev/null +++ b/docs/cfw/api-ref/DeleteFirewall.html @@ -0,0 +1,118 @@ + + +

Delete firewall instance

+

Function

Delete firewall instance,only postpaid mode is supported.

+
+

URI

DELETE /v2/{project_id}/firewall/{resource_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

resource_id

+

Yes

+

String

+

Resource Id

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

No

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

data

+

String

+

Delete Firewall Response

+
+
+
+

Example Requests

Delete firewall whose firewall instance id is 08065281-860a-4c98-aeb5-82cf65c44c46c46 and project id is 06217ebc876e427a80a2c05d51264ab1.

+
https://{Endpoint}/v2/06217ebc876e427a80a2c05d51264ab1/firewall/08065281-860a-4c98-aeb5-82cf65c44c46
+
+

Example Responses

Status code: 200

+

Delete Firewall Response

+
{
+  "data" : "56884cd0-cf3c-4cb7-bbeb-59d8722a2671"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Delete Firewall Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteServiceItem.html b/docs/cfw/api-ref/DeleteServiceItem.html new file mode 100644 index 00000000..54fea3f1 --- /dev/null +++ b/docs/cfw/api-ref/DeleteServiceItem.html @@ -0,0 +1,240 @@ + + +

Deleting a Service Member

+

Function

This API is used to delete a member from a service group.

+
+

URI

DELETE /v1/{project_id}/service-items/{item_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

item_id

+

Yes

+

String

+

ID of a service group member

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Delete service group member data.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

This API is used to Delete the service group member whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and service group member ID is 6b37ed55-1e21-46a5-a7dc-a59ef418d359.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-items/6b37ed55-1e21-46a5-a7dc-a59ef418d359
+
+

Example Responses

Status code: 200

+

Response to the request for deleting a service group member.

+
{
+  "data" : {
+    "id" : "26f562c4-fe11-43d0-9654-f54298d5b12e"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for deleting a service group member.

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/DeleteServiceSet.html b/docs/cfw/api-ref/DeleteServiceSet.html new file mode 100644 index 00000000..c6f9da96 --- /dev/null +++ b/docs/cfw/api-ref/DeleteServiceSet.html @@ -0,0 +1,241 @@ + + +

Deleting a Service Set

+

Function

This API is used to delete a service group.

+
+

URI

DELETE /v1/{project_id}/service-sets/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

Indicates the service set ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Data returned after a service group is deleted

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Delete the service group whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and service group ID is 221cfdca-3abf-4c30-ab0d-516a03c70866.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-sets/221cfdca-3abf-4c30-ab0d-516a03c70866
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "221cfdca-3abf-4c30-ab0d-516a03c70866",
+    "name" : "test"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200004",
+  "error_msg" : "can not delete for used"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ErrorCode.html b/docs/cfw/api-ref/ErrorCode.html new file mode 100644 index 00000000..0e49105d --- /dev/null +++ b/docs/cfw/api-ref/ErrorCode.html @@ -0,0 +1,598 @@ + + +

Error Codes

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Error Codes

+

Error Message

+

Description

+

Solution

+

400

+

CFW.00109004

+

http to external service error.

+

http to external service error.

+

Try again later or contact technical support.

+

400

+

CFW.00200001

+

empty param

+

empty param.

+

contact technical support.

+

400

+

can not delete for used.

+

can not delete for used.

+

can not delete for used.

+

contact technical support.

+

400

+

CFW.00200005

+

operation content does not exist.

+

operation content does not exist.

+

contact technical support.

+

400

+

CFW.00200007

+

name conflict.

+

name conflict.

+

please rename the name.

+

400

+

CFW.00200009

+

A request with the same param already exists.

+

A request with the same param already exists.

+

contact technical support.

+

400

+

CFW.00200010

+

Config type error.

+

Config type error.

+

contact technical support.

+

400

+

CFW.00200011

+

Not support batch operation.

+

Not support batch operation.

+

contact technical support.

+

400

+

CFW.00200013

+

url syntax error.

+

url syntax error.

+

contact technical support.

+

400

+

CFW.00200020

+

added acl rules can't exceed 20.

+

added acl rules can't exceed 20.

+

Please reduce the number of added acl rules.

+

400

+

CFW.00200022

+

all IP address segments is not allowed in black and white list.

+

all IP address segments is not allowed in black and white list.

+

Please specify the black and white list ip address segment.

+

400

+

CFW.00200023

+

PARAM_UPGRADING_TASK_OUT_OF_RANGE

+

PARAM_UPGRADING_TASK_OUT_OF_RANGE.

+

contact technical support.

+

400

+

CFW.00200024

+

Exceeded maximum quantity limit.

+

Exceeded maximum quantity limit.

+

contact technical support.

+

400

+

CFW.00200025

+

long connection acl rules time out of range.

+

long connection acl rules time out of range.

+

Please make sure the long connection rule duration is from one second to a thousand days.

+

400

+

CFW.00200026

+

Long connection acl rules reach limit.

+

Long connection acl rules reach limit.

+

Please delete some long connection rules.

+

400

+

CFW.00200027

+

acl address is error.

+

acl address is error.

+

Please make sure that the acl rule address conforms to the specification.

+

400

+

CFW.00200028

+

inconsistent address types.

+

inconsistent address types.

+

Please make sure the address type is the same.

+

400

+

CFW.00200030

+

address type is error.

+

address type is error.

+

contact technical support.

+

400

+

CFW.00200032

+

The engine does not support IPv6.

+

The engine does not support IPv6.

+

contact technical support.

+

400

+

CFW.00200036

+

The network segment cannot be changed to a private network segment.

+

The network segment cannot be changed to a private network segment.

+

contact technical support.

+

400

+

CFW.00200041

+

address is null.

+

address is null.

+

Please add address type parameter.

+

400

+

CFW.00200016

+

instance status error.

+

instance status error.

+

contact technical support.

+

400

+

CFW.00200110

+

Can't operate basic defense

+

Can't operate basic defense

+

contact technical support.

+

400

+

CFW.00300001

+

Parse command error.

+

Parse command error.

+

contact technical support.

+

400

+

CFW.00400002

+

not need to operate.

+

not need to operate.

+

contact technical support.

+

400

+

CFW.00400004

+

item already exist.

+

item already exist.

+

Please delete some service items.

+

400

+

CFW.00400006

+

clear rule hit count param error.

+

clear rule hit count param error.

+

Please check and confirm whether the parameter value is legal.

+

400

+

CFW.00400007

+

ACL_RULE_TYPE_INCONSISTENT.

+

ACL_RULE_TYPE_INCONSISTENT.

+

Make sure to add the same rule type.

+

400

+

CFW.00400008

+

protect object doesn't exist.

+

protect object doesn't exist.

+

contact technical support.

+

400

+

CFW.00400009

+

The number of wildcard domain name protection rules exceeds the upper limit

+

The number of wildcard domain name protection rules exceeds the upper limit

+

Please delete some generic domain name protection rules.

+

400

+

CFW.00400010

+

not supported protocol for long connection.

+

not supported protocol for long connection.

+

Please make sure that the rule protocol belongs to TCP, UDP.

+

400

+

CFW.00400011

+

BLACK_WHITE_LIST_REPEAT.

+

BLACK_WHITE_LIST_REPEAT.

+

Make sure to add a different black and white list.

+

400

+

CFW.00400012

+

East west protection not existed,private Ip blackWhite list cannot be submitted.

+

East west protection not existed,private Ip blackWhite list cannot be submitted.

+

Please add east-west protection.

+

400

+

CFW.00400013

+

The number of blocklists or trustlists exceeds the maximum 2000.

+

The number of blocklists or trustlists exceeds the maximum 2000.

+

Please delete some black and white lists.

+

400

+

CFW.00500002

+

time range error.

+

time range error.

+

contact technical support.

+

400

+

CFW.00500004

+

time range error.

+

time range error.

+

contact technical support.

+

400

+

CFW.00600003

+

HTTP response status code does not match.

+

HTTP response status code does not match.

+

contact technical support.

+

400

+

CFW.00700001

+

er not exist error.

+

er not exist error.

+

Please check if er exists.

+

400

+

CFW.00700002

+

vpc not exist error.

+

vpc not exist error.

+

Please check if vpc exists.

+

400

+

CFW.00700003

+

associated subnet conflict.

+

associated subnet conflict.

+

Please make sure that the created subnet does not overlap with the subnet segment under the existing vpc.

+

400

+

CFW.00700004

+

create subnet error.

+

create subnet error.

+

contact technical support.

+

400

+

CFW.00700007

+

er attach vpc error.

+

er attach vpc error.

+

contact technical support.

+

400

+

CFW.00700012

+

change route error.

+

change route error.

+

contact technical support.

+

400

+

CFW.00700015

+

Get VPC quotas error.

+

Get VPC quotas error.

+

contact technical support.

+

400

+

CFW.00700016

+

Vpc contain route table quota not enough.

+

Vpc contain route table quota not enough.

+

Please delete the existing routing table under vpc.

+

400

+

CFW.00800001

+

An error occurred when querying from etcd.

+

An error occurred when querying from etcd.

+

contact technical support.

+

400

+

CFW.00800002

+

An error occurred when deleting from etcd.

+

An error occurred when deleting from etcd.

+

contact technical support.

+

400

+

CFW.00800003

+

An error occurred when save to etcd.

+

An error occurred when save to etcd.

+

contact technical support.

+

400

+

CFW.00900016

+

The import task is in progress. Please operate after the task is completed.

+

The import task is in progress. Please operate after the task is completed.

+

Please wait some time until the import task finishes.

+

400

+

CFW.00900020

+

Address groups exceed the maximum limit

+

Address groups exceed the maximum limit

+

Please delete some address groups.

+

400

+

CFW.00900030

+

Global services reach limit.

+

Global services reach limit.

+

Please delete some service items.

+

400

+

CFW.01100008

+

Configurations cannot be delivered during cluster capacity expansion.

+

Configurations cannot be delivered during cluster capacity expansion.

+

contact technical support.

+
+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAccessControlLogs.html b/docs/cfw/api-ref/ListAccessControlLogs.html new file mode 100644 index 00000000..124c648c --- /dev/null +++ b/docs/cfw/api-ref/ListAccessControlLogs.html @@ -0,0 +1,534 @@ + + +

Querying Access Control Logs

+

Function

This API is used to query access control logs.

+
+

URI

GET /v1/{project_id}/cfw/logs/access-control

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.

+

rule_id

+

No

+

String

+

Rule ID

+

start_time

+

Yes

+

Long

+

Start time

+

end_time

+

Yes

+

Long

+

End time

+

src_ip

+

No

+

String

+

Source IP address

+

src_port

+

No

+

Integer

+

Source port

+

dst_ip

+

No

+

String

+

Destination IP address

+

dst_port

+

No

+

Integer

+

Destination port

+

protocol

+

No

+

String

+

Protocol

+

app

+

No

+

String

+

Application protocol

+

log_id

+

No

+

String

+

Document ID. The value is null for the first page and not null for the rest of the pages.

+

next_date

+

No

+

Integer

+

Date. The value is null for the first page and not null for the rest of the pages.

+

offset

+

No

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

log_type

+

No

+

String

+

Log type

+

Enumeration values:

+
  • internet

    +
  • nat

    +
  • vpc

    +
+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

dst_host

+

No

+

String

+

destination host

+

rule_name

+

No

+

String

+

rule name

+

action

+

No

+

String

+

Action. 0: allow; 1: deny

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Data returned for querying access control logs

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

total

+

Integer

+

Returned quantity

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

records

+

Array of records objects

+

Record

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

action

+

String

+

Action. 0: allow; 1: deny

+

rule_name

+

String

+

Rule name

+

rule_id

+

String

+

Rule ID

+

hit_time

+

Long

+

Hit time

+

src_region_id

+

String

+

source region id

+

src_region_name

+

String

+

source region name

+

dst_region_id

+

String

+

destination region id

+

dst_region_name

+

String

+

destination region name

+

log_id

+

String

+

Document ID

+

src_ip

+

String

+

Source IP address

+

src_port

+

Integer

+

Source port

+

dst_ip

+

String

+

Destination IP address

+

dst_port

+

Integer

+

Destination port

+

protocol

+

String

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

app

+

String

+

Application protocol

+

dst_host

+

String

+

destination host

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the records whose initial position is 0 on the first page of the firewall with the ID 2af58b7c-893c-4453-a984-bdd9b1bd6318 in the project 9d80d070b6d44942af73c9c3d38e0429. The query time range is 1664159069544 to 1664162669544.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/cfw/logs/access-control?fw_instance_id=2af58b7c-893c-4453-a984-bdd9b1bd6318&start_time=1664159069544&end_time=1664162669544&limit=10
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "limit" : 10,
+    "records" : [ {
+      "action" : "deny",
+      "app" : "PING",
+      "dst_ip" : "100.85.216.211",
+      "dst_port" : 59,
+      "hit_time" : 1664164255000,
+      "log_id" : "46032",
+      "protocol" : "ICMP: ECHO_REQUEST",
+      "rule_id" : "c755be1c-4b92-4ae7-a15e-c2d02b152538",
+      "rule_name" : "eip_ipv4_w_n_default_deny",
+      "src_ip" : "100.95.148.49",
+      "src_port" : 24954
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00500002",
+  "error_msg" : "time range error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAclRuleHitCount.html b/docs/cfw/api-ref/ListAclRuleHitCount.html new file mode 100644 index 00000000..175b4d5a --- /dev/null +++ b/docs/cfw/api-ref/ListAclRuleHitCount.html @@ -0,0 +1,262 @@ + + +

Obtaining the Rule Hit Count

+

Function

This API is used to obtain the rule hit count.

+
+

URI

POST /v1/{project_id}/acl-rule/count

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

No

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

rule_ids

+

Yes

+

Array of strings

+

Rule ID list

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

RuleHitCountRecords object

+

Rule hit count

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 RuleHitCountRecords

Parameter

+

Type

+

Description

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

total

+

Integer

+

Total

+

records

+

Array of RuleHitCountObject objects

+

Rule hit count list

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 RuleHitCountObject

Parameter

+

Type

+

Description

+

rule_id

+

String

+

Rule ID

+

rule_hit_count

+

Integer

+

Rule Hit Count

+
+
+
+

Example Requests

Query the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 in the project whose ID is 0b2179bbe180d3762fb0c01a2d5725c7.

+
https://{Endpoint}/v1/0b2179bbe180d3762fb0c01a2d5725c7/acl-rule/count
+
+{
+  "rule_ids" : [ "59ff6bd9-0a76-41ec-9650-380086069965" ]
+}
+
+

Example Responses

Status code: 200

+

Response to the request for obtaining the number of rule hits

+
{
+  "data" : {
+    "limit" : 1,
+    "offset" : 1,
+    "records" : [ {
+      "rule_hit_count" : 0,
+      "rule_id" : "59ff6bd9-0a76-41ec-9650-380086069965"
+    } ],
+    "total" : 1
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for obtaining the number of rule hits

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAclRules.html b/docs/cfw/api-ref/ListAclRules.html new file mode 100644 index 00000000..bce3a6e2 --- /dev/null +++ b/docs/cfw/api-ref/ListAclRules.html @@ -0,0 +1,955 @@ + + +

Querying a Protection Rule

+

Function

This API is used to query a protection rule.

+
+

URI

GET /v1/{project_id}/acl-rules

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

type

+

No

+

Integer

+

Specifies the rule type. The value can be 0 (Internet rule), 1 (VPC rule), or 2 (NAT rule).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

protocol

+

No

+

Integer

+

Protocol type. The value is 6 for TCP, 17 for UDP, 1 for ICMP, 58 for ICMPv6, and -1 for any protocol.

+

Enumeration values:

+
  • 6

    +
  • 17

    +
  • 1

    +
  • 58

    +
+

ip

+

No

+

String

+

IP address

+

name

+

No

+

String

+

Name

+

direction

+

No

+

Integer

+

Direction. 0: inbound; 1: outbound

+

status

+

No

+

Integer

+

Indicates the rule delivery status. 0: disabled; 1: enabled.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

action_type

+

No

+

Integer

+

Action. 0: allow; 1: deny

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

address_type

+

No

+

Integer

+

Address type. The value can be 0 (IPv4), 1 (IPv6), or 2 (domain).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

tags_id

+

No

+

String

+

tags id

+

source

+

No

+

String

+

source address

+

destination

+

No

+

String

+

destination address

+

service

+

No

+

String

+

service port

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

data

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

Total number of queried records

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

records

+

Array of records objects

+

records

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

rule_id

+

String

+

Rule ID

+

address_type

+

Integer

+

Address type. The value can be 0 (IPv4) or 1 (IPv6).

+

name

+

String

+

Rule name

+

sequence

+

OrderRuleAclDto object

+

UpdateRuleAclDto

+

direction

+

Integer

+

Direction: 0 means outside to inside, 1 means inside to outside, direction value is required when rule type is internet or nat.

+

Enumeration values:

+
  • 0

    +
  • 1end_time

    +
+

action_type

+

Integer

+

Action. 0: allow; 1: deny

+

status

+

Integer

+

Rule delivery status. 0: disabled; 1: enabled.

+

description

+

String

+

Description

+

long_connect_time_hour

+

Long

+

Persistent connection duration (hour)

+

long_connect_time_minute

+

Long

+

Persistent connection duration (hour)

+

long_connect_time_second

+

Long

+

Persistent connection duration (hour)

+

long_connect_time

+

Long

+

Persistent connection duration

+

long_connect_enable

+

Integer

+

Persistent connection support

+

source

+

RuleAddressDto object

+

Source address transmission object

+

destination

+

RuleAddressDto object

+

destination

+

service

+

RuleServiceDto object

+

service

+

type

+

Integer

+

Rule type. The value can be 0 (Internet rule), 1 (VPC rule), or 2 (NAT rule).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

created_date

+

String

+

Created time

+

last_open_time

+

String

+

Last open time

+

tag

+

TagsVO object

+

tag

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 OrderRuleAclDto

Parameter

+

Type

+

Description

+

dest_rule_id

+

String

+

ID of the rule that the added rule will follow. This parameter cannot be left blank if the rule is not pinned on top, and is empty when the added rule is pinned on top.

+

top

+

Integer

+

Whether to pin on top. The options are as follows: 0: no; 1: yes.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 RuleAddressDto

Parameter

+

Type

+

Description

+

type

+

Integer

+

Source type. 0: manual input; 1: associated IP address group; 2: domain name

+

address_type

+

Integer

+

Source type. 0: IPv4; 1: IPv6

+

address

+

String

+

Source IP address. The value cannot be empty for the manual type, and cannot be empty for the automatic or domain type.

+

address_set_id

+

String

+

ID of the associated IP address group. The value cannot be empty for the automatic type or for the manual or domain type.

+

address_set_name

+

String

+

IP address group name

+

domain_address_name

+

String

+

Name of the domain name address. This parameter cannot be left empty for the domain name type, and is empty for the manual or automatic type.

+

region_list_json

+

String

+

JSON value of the rule region list.

+

region_list

+

Array of IpRegionDto objects

+

Region list of a rule

+

domain_set_id

+

String

+

domain set id

+

domain_set_name

+

String

+

domain set name

+

ip_address

+

Array of strings

+

IP address list

+

address_group

+

Array of strings

+

address group

+

address_group_names

+

Array of AddressGroupVO objects

+

Address set list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 9 IpRegionDto

Parameter

+

Type

+

Description

+

region_id

+

String

+

region id

+

description_cn

+

String

+

cn description

+

description_en

+

String

+

en description

+

region_type

+

Integer

+

Region type, 0 means country, 1 means province, 2 means continent

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 RuleServiceDto

Parameter

+

Type

+

Description

+

type

+

Integer

+

Service input type. The value 0 indicates manual input, and the value 1 indicates automatic input.

+

protocol

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

String

+

Source port

+

dest_port

+

String

+

Destination port

+

service_set_id

+

String

+

Service group ID. This parameter is left blank for the manual type and cannot be left blank for the automatic type.

+

service_set_name

+

String

+

Service group name

+

custom_service

+

Array of ServiceItem objects

+

custom service

+

service_group

+

Array of strings

+

Service group list

+

service_group_names

+

Array of AddressGroupVO objects

+

Service group name list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 ServiceItem

Parameter

+

Type

+

Description

+

protocol

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

String

+

source port

+

dest_port

+

String

+

destination port

+

description

+

String

+

description

+

name

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + +
Table 12 AddressGroupVO

Parameter

+

Type

+

Description

+

set_id

+

String

+

set id

+

name

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 13 TagsVO

Parameter

+

Type

+

Description

+

tag_id

+

String

+

tag id

+

tag_key

+

String

+

tag key

+

tag_value

+

String

+

tag value

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the data whose project ID is 9d80d070b6d44942af73c9c3d38e0429, project ID is e12bd2cd-ebfc-4af7-ad6f-ebe6da398029, and size is 10.

+
https://{Endpoint}/cfw/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rules?object_id=e12bd2cd-ebfc-4af7-ad6f-ebe6da398029&limit=10&offset=0
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "limit" : 10,
+    "object_id" : "cfebd347-b655-4b84-b938-3c54317599b2",
+    "offset" : 0,
+    "records" : [ {
+      "action_type" : 0,
+      "address_type" : 0,
+      "destination" : {
+        "address" : "0.0.0.0/0",
+        "address_type" : 0,
+        "type" : 0
+      },
+      "direction" : 1,
+      "long_connect_enable" : 0,
+      "created_date" : "2024-02-27 04:01:17",
+      "last_open_time" : "2024-02-27 04:01:17",
+      "description" : "description",
+      "name" : "eip_ipv4_n_w_allow",
+      "rule_id" : "ffe9af47-d893-483b-86e3-ee5242e8cb15",
+      "service" : {
+        "dest_port" : "0",
+        "protocol" : -1,
+        "source_port" : "0",
+        "type" : 0
+      },
+      "source" : {
+        "address_set_id" : "48bfb09b-6f3a-4371-8ddb-05d5d7148bcc",
+        "address_set_name" : "ip_group",
+        "address_type" : 0,
+        "type" : 1
+      },
+      "status" : 1,
+      "type" : "0"
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAddressItems.html b/docs/cfw/api-ref/ListAddressItems.html new file mode 100644 index 00000000..762cbdef --- /dev/null +++ b/docs/cfw/api-ref/ListAddressItems.html @@ -0,0 +1,353 @@ + + +

Querying Address Set Members

+

Function

This API is used to query address group members.

+
+

URI

GET /v1/{project_id}/address-items

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

Yes

+

String

+

ID of the IP address group

+

key_word

+

No

+

String

+

Keyword

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

address

+

No

+

String

+

IP address

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Response for address group member query

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

Total

+

set_id

+

String

+

ID of the IP address group

+

records

+

Array of records objects

+

Member information

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

item_id

+

String

+

ID of an address group member

+

name

+

String

+

Name of an address group member

+

description

+

String

+

Description

+

address_type

+

Integer

+

Address group type. The value can be 0 (IPv4) or 1 (IPv6).

+

address

+

String

+

Address group

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query members in address group 8773c082-2a6c-4529-939a-edc28ef1a67c of project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-items?set_id=8773c082-2a6c-4529-939a-edc28ef1a67c&limit=10&offset=0
+
+

Example Responses

Status code: 200

+

Return value for querying address group members

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "records" : [ {
+      "address" : "1.1.1.1",
+      "address_type" : 0,
+      "description" : "",
+      "item_id" : "294fab71-34bf-4858-a380-8f7530e1c816"
+    } ],
+    "set_id" : "8773c082-2a6c-4529-939a-edc28ef1a67c",
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value for querying address group members

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAddressSetDetail.html b/docs/cfw/api-ref/ListAddressSetDetail.html new file mode 100644 index 00000000..d4fc6828 --- /dev/null +++ b/docs/cfw/api-ref/ListAddressSetDetail.html @@ -0,0 +1,278 @@ + + +

Querying Address Set Details

+

Function

This API is used to query details about an address group.

+
+

URI

GET /v1/{project_id}/address-sets/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

ID of the IP address group

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

query_address_set_type

+

No

+

Integer

+

Query address set type, 0 indicates a custom address set and 1 indicates a predefined address set

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Query address group details.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

id

+

String

+

ID of the IP address group

+

name

+

String

+

IP address group name

+

description

+

String

+

Address group description

+

address_set_type

+

Integer

+

Address set type, 0 indicates a custom address set and 1 indicates a predefined address set

+

address_type

+

Integer

+

Specifies the address type. The value can be 0 (IPv4) or 1 (IPv6).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query details about address group cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16 in project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-sets/cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "address_set_type" : 0,
+    "address_type" : 0,
+    "description" : "",
+    "id" : "cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16",
+    "name" : "ABC"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAddressSets.html b/docs/cfw/api-ref/ListAddressSets.html new file mode 100644 index 00000000..7251ca8f --- /dev/null +++ b/docs/cfw/api-ref/ListAddressSets.html @@ -0,0 +1,384 @@ + + +

Querying IP Address Sets

+

Function

Querying IP Address Sets

+
+

URI

GET /v1/{project_id}/address-sets

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

key_word

+

No

+

String

+

Keyword

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

address

+

No

+

String

+

IP address

+

address_type

+

No

+

Integer

+

Specifies the address type. The value can be 0 (IPv4) or 1 (IPv6).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

query_address_set_type

+

No

+

Integer

+

Query address set type, 0 indicates a custom address set and 1 indicates a predefined address set

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Data returned for the address group list query

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

Total

+

records

+

Array of records objects

+

IP address set list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

set_id

+

String

+

ID of the IP address group

+

ref_count

+

Integer

+

Reference count

+

description

+

String

+

Description

+

name

+

String

+

IP address group name

+

address_type

+

Integer

+

Address type. The value can be 0 (IPv4) or 1 (IPv6).

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

address_set_type

+

Integer

+

Address set type, 0 indicates a custom address set and 1 indicates a predefined address set

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

This API is used to query the IP address group information on the first page of project 8a41d6a5-f215-428a-a76c-dc923b5d599a. The protected object ID is 5c69cf330cda42369cbd726ee1bc5e76.

+
https://{Endpoint}/v1/5c69cf330cda42369cbd726ee1bc5e76/address-sets?object_id=8a41d6a5-f215-428a-a76c-dc923b5d599a&limit=10&offset=0
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "records" : [ {
+      "address_set_type" : 0,
+      "object_id" : "cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16",
+      "address_type" : 0,
+      "description" : "",
+      "name" : "test",
+      "ref_count" : 0,
+      "set_id" : "50da1eff-e58d-4380-b899-a78f94137d3b"
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListAttackLogs.html b/docs/cfw/api-ref/ListAttackLogs.html new file mode 100644 index 00000000..f85e31cb --- /dev/null +++ b/docs/cfw/api-ref/ListAttackLogs.html @@ -0,0 +1,715 @@ + + +

Querying Attack Logs

+

Function

This API is used to query attack logs.

+
+

URI

GET /v1/{project_id}/cfw/logs/attack

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

start_time

+

Yes

+

Long

+

Start time

+

end_time

+

Yes

+

Long

+

End time

+

src_ip

+

No

+

String

+

Source IP address

+

src_port

+

No

+

Integer

+

Source port number

+

Minimum: 0

+

Maximum: 65535

+

dst_ip

+

No

+

String

+

Destination IP address

+

dst_port

+

No

+

Integer

+

Destination port number

+

Minimum: 0

+

Maximum: 65535

+

protocol

+

No

+

String

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

Enumeration values:

+
  • 6

    +
  • 17

    +
  • 1

    +
  • 58

    +
+

app

+

No

+

String

+

Application protocol

+

log_id

+

No

+

String

+

Log ID. The value is null for the first page and not null for the rest of the pages.

+

next_date

+

No

+

Long

+

Next date. The value is null for the first page and not null for the rest of the pages.

+

offset

+

No

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.

+

action

+

No

+

String

+

Action. 0: allow; 1: deny

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

direction

+

No

+

String

+

Direction. 0: inbound; 1: outbound

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

attack_type

+

No

+

String

+

Intrusion event type

+

attack_rule

+

No

+

String

+

Intrusion event rule

+

level

+

No

+

String

+

Threat level

+

source

+

No

+

String

+

Source

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

dst_host

+

No

+

String

+

destination host

+

log_type

+

No

+

String

+

log_type

+

Enumeration values:

+
  • internet

    +
  • nat

    +
  • vpc

    +
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Return value of attack log query

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

total

+

Integer

+

Returned quantity

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

records

+

Array of records objects

+

Record

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

direction

+

String

+

Direction, which can be inbound or outbound

+

Enumeration values:

+
  • out2in

    +
  • in2out

    +
+

action

+

String

+

Action

+

event_time

+

Long

+

Event time

+

attack_type

+

String

+

Attack type

+

attack_rule

+

String

+

Attack rule

+

level

+

String

+

Threat level

+

source

+

String

+

Source

+

packet_length

+

Long

+

Packet length

+

attack_rule_id

+

String

+

Attack rule ID

+

hit_time

+

Integer

+

Hit time

+

log_id

+

String

+

Log ID

+

src_ip

+

String

+

Source IP address

+

src_port

+

Integer

+

Source port

+

Minimum: 0

+

Maximum: 65535

+

dst_ip

+

String

+

Destination IP address

+

dst_port

+

Integer

+

Destination port

+

Minimum: 0

+

Maximum: 65535

+

protocol

+

String

+

Protocol

+

packet

+

String

+

Attack log packet

+

app

+

String

+

Application protocol

+

packetMessages

+

Array of PacketMessage objects

+

packet message

+

dst_host

+

String

+

destination host

+

src_region_id

+

String

+

source region id

+

src_region_name

+

String

+

source region name

+

dst_region_id

+

String

+

destination region id

+

dst_region_name

+

String

+

destination region name

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 7 PacketMessage

Parameter

+

Type

+

Description

+

hex_index

+

String

+

hex index

+

hexs

+

Array of strings

+

hexs

+

utf8_String

+

String

+

utf8 string

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query 10 records on the first page of the firewall with the ID 2af58b7c-893c-4453-a984-bdd9b1bd6318 in the project 9d80d070b6d44942af73c9c3d38e0429. The query time range is 1663567058000 to 1664171765000.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/cfw/logs/attack?fw_instance_id=2af58b7c-893c-4453-a984-bdd9b1bd6318&start_time=1663567058000&end_time=1664171765000&limit=10
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "limit" : 10,
+    "records" : [ {
+      "action" : "deny",
+      "app" : "HTTP",
+      "attack_rule" : "Tool Nmap Web Server Probe Detected",
+      "attack_rule_id" : "336154",
+      "attack_type" : "Web Attack",
+      "direction" : "out2in",
+      "dst_ip" : "100.95.148.49",
+      "dst_port" : 8080,
+      "event_time" : 1664146216000,
+      "level" : "MEDIUM",
+      "log_id" : "15591",
+      "packet" : "+hZUZMhV+hY/AaHMCABFKABpXPNAADAGof1kVe6QZF+UMcTQH5B0wdaz888+uoAYAOVyNQAAAQEICjrmikVb9JLCR0VUIC9uaWNlJTIwcG9ydHMlMkMvVHJpJTZFaXR5LnR4dCUyZWJhayBIVFRQLzEuMA0KDQo=",
+      "packetMessages" : [ {
+        "hex_index" : "00000000",
+        "hexs" : [ "fa", "16", "54", "64", "c8", "55", "fa", "16", "3f", "01", "a1", "cc", "08", "00", "45", "28" ],
+        "utf8_String" : ".\u0016Td.U.\u0016?.....E("
+      }, {
+        "hex_index" : "00000010",
+        "hexs" : [ "00", "69", "5c", "f3", "40", "00", "30", "06", "a1", "fd", "64", "55", "ee", "90", "64", "5f" ],
+        "utf8_String" : ".i\\.@.0...dU.d_"
+      }, {
+        "hex_index" : "00000020",
+        "hexs" : [ "94", "31", "c4", "d0", "1f", "90", "74", "c1", "d6", "b3", "f3", "cf", "3e", "ba", "80", "18" ],
+        "utf8_String" : ".1..\u001F.t.Ö³..>..."
+      }, {
+        "hex_index" : "00000030",
+        "hexs" : [ "00", "e5", "72", "35", "00", "00", "01", "01", "08", "0a", "3a", "e6", "8a", "45", "5b", "f4" ],
+        "utf8_String" : "..r5......:.E[."
+      }, {
+        "hex_index" : "00000040",
+        "hexs" : [ "92", "c2", "47", "45", "54", "20", "2f", "6e", "69", "63", "65", "25", "32", "30", "70", "6f" ],
+        "utf8_String" : "..GET /nice%20po"
+      }, {
+        "hex_index" : "00000050",
+        "hexs" : [ "72", "74", "73", "25", "32", "43", "2f", "54", "72", "69", "25", "36", "45", "69", "74", "79" ],
+        "utf8_String" : "rts%2C/Tri%6Eity"
+      }, {
+        "hex_index" : "00000060",
+        "hexs" : [ "2e", "74", "78", "74", "25", "32", "65", "62", "61", "6b", "20", "48", "54", "54", "50", "2f" ],
+        "utf8_String" : ".txt%2ebak HTTP/"
+      }, {
+        "hex_index" : "00000070",
+        "hexs" : [ "31", "2e", "30", "0d", "0a", "0d", "0a" ],
+        "utf8_String" : "1.0\r.\r."
+      } ],
+      "packet_length" : 119,
+      "protocol" : "TCP",
+      "source" : "0",
+      "src_ip" : "100.85.238.144",
+      "src_port" : 50384
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "00500002",
+  "error_msg" : "time range error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListBlackWhiteLists.html b/docs/cfw/api-ref/ListBlackWhiteLists.html new file mode 100644 index 00000000..2f4a7524 --- /dev/null +++ b/docs/cfw/api-ref/ListBlackWhiteLists.html @@ -0,0 +1,395 @@ + + +

Querying a Blacklist or Whitelist

+

Function

This API is used to query a blacklist or whitelist.

+
+

URI

GET /v1/{project_id}/black-white-lists

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

list_type

+

Yes

+

Integer

+

Blacklist/Whitelist type. The options are 4 (blacklist) and 5 (whitelist).

+

Enumeration values:

+
  • 4

    +
  • 5

    +
+

address_type

+

No

+

Integer

+

Specifies the IP address type. The value can be 0 (IPv4), 1 (IPv6), or 2 (domain).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

address

+

No

+

String

+

IP address

+

port

+

No

+

String

+

Port

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Return value for querying the blacklist or whitelist

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

Total number of queried records

+

records

+

Array of records objects

+

Blacklist and whitelist records

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

list_id

+

String

+

Blacklist/Whitelist ID

+

direction

+

Integer

+

Direction of a black or white address. 0: source address; 1: destination address.

+

address_type

+

Integer

+

IP address type. 0: ipv4; 1: ipv6; 2: domain

+

address

+

String

+

IP address

+

protocol

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

port

+

String

+

Port

+

description

+

String

+

description

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query five whitelist records on the first page of object cfebd347-b655-4b84-b938-3c54317599b2 in project 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/black-white-lists?object_id=cfebd347-b655-4b84-b938-3c54317599b2&limit=10&offset=0&list_type=5
+
+

Example Responses

Status code: 200

+

Return value of a blacklist or whitelist query

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "records" : [ {
+      "address" : "1.1.1.1",
+      "address_type" : 0,
+      "description" : "",
+      "direction" : 0,
+      "list_id" : "1310d401-daf5-44f2-8276-f79e1643984d",
+      "protocol" : 6
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value of a blacklist or whitelist query

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListDnsServers.html b/docs/cfw/api-ref/ListDnsServers.html new file mode 100644 index 00000000..232afe7f --- /dev/null +++ b/docs/cfw/api-ref/ListDnsServers.html @@ -0,0 +1,248 @@ + + +

Querying the DNS Server List

+

Function

This API is used to query the DNS server list.

+
+

URI

GET /v1/{project_id}/dns/servers

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

limit

+

No

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

No

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

Array of DnsServersResponseDTO objects

+

dns server list

+

total

+

Integer

+

dns server total

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 DnsServersResponseDTO

Parameter

+

Type

+

Description

+

id

+

Integer

+

id

+

is_applied

+

Integer

+

Indicates whether to apply. 0: no; 1: yes

+

is_customized

+

Integer

+

Indicates whether the DNS server is user-defined. 0: no; 1: yes

+

server_ip

+

String

+

DNS server IP address

+

health_check_domain_name

+

String

+

health check domain name

+
+
+
+

Example Requests

Obtain the DNS server list of the project whose ID is 2349ba469daf4b7daf268bb0261d18b0.

+
https://endpoint/cfw/v1/2349ba469daf4b7daf268bb0261d18b0/dns/servers
+
+

Example Responses

Status code: 200

+

Response to the request for obtaining DNS servers

+
{
+  "data" : {
+    "data" : [ {
+      "health_check_domain_name" : "sslstatic.xiaoyusan.com",
+      "id" : 20165,
+      "is_applied" : 0,
+      "is_customized" : 1,
+      "server_ip" : "0.0.0.0"
+    }, {
+      "health_check_domain_name" : "sslstatic.xiaoyusan.com",
+      "id" : 14190,
+      "is_applied" : 1,
+      "is_customized" : 0,
+      "server_ip" : "100.79.1.240"
+    } ]
+  },
+  "total" : 2
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for obtaining DNS servers

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListDomainParseDetail.html b/docs/cfw/api-ref/ListDomainParseDetail.html new file mode 100644 index 00000000..739328a3 --- /dev/null +++ b/docs/cfw/api-ref/ListDomainParseDetail.html @@ -0,0 +1,221 @@ + + +

Querying the IP Address for Domain Name Resolution

+

Function

This API is used to test the validity of a domain name.

+
+

URI

GET /v1/{project_id}/domain/parse/{domain_name}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

domain_name

+

Yes

+

String

+

Domain name

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

address_type

+

No

+

String

+

Specifies the address type. The value can be 0 (IPv4) or 1 (IPv6).

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

Array of strings

+

Domain name ID list

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Check whether the ceshi.com domain name in the project whose ID is 5c69cf330cda42369cbd726ee1bc5e76 is valid.

+
https://{Endpoint}/v1/5c69cf330cda42369cbd726ee1bc5e76/domain/parse/ceshi.com
+
+

Example Responses

Status code: 200

+

Return value of a domain name validity query

+
{
+  "data" : [ "192.168.88.85", "192.168.88.50", "192.168.88.22", "192.168.88.87", "192.168.88.86", "192.168.5.1", "192.168.88.88", "192.168.88.90", "192.168.88.83", "192.168.88.84" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00109004",
+  "error_msg" : "http to external service error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value of a domain name validity query

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListDomainSets.html b/docs/cfw/api-ref/ListDomainSets.html new file mode 100644 index 00000000..c359a0e8 --- /dev/null +++ b/docs/cfw/api-ref/ListDomainSets.html @@ -0,0 +1,308 @@ + + +

list domain sets

+

Function

list domain sets

+
+

URI

GET /v1/{project_id}/domain-sets

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

key_word

+

No

+

String

+

key

+

domain_set_type

+

No

+

Integer

+

Domain set type, 0 means URL filtering, 1 means domain parse

+

config_status

+

No

+

Integer

+

config status

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

ListDomainsetsResponseData object

+

list domain set response

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 ListDomainsetsResponseData

Parameter

+

Type

+

Description

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

total

+

Integer

+

total

+

records

+

Array of DomainSetVo objects

+

domain set list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 DomainSetVo

Parameter

+

Type

+

Description

+

set_id

+

String

+

set id

+

name

+

String

+

domain set name

+

description

+

String

+

description

+

ref_count

+

Integer

+

reference count

+

domain_set_type

+

Integer

+

domain set type

+

config_status

+

Integer

+

config status

+

message

+

String

+

message

+
+
+
+

Example Requests

Query the domain set list of firewall 546af3f8-88e9-47f2-a205-2346d7090925 in project 9d80d070b6d44942af73c9c3d38e0429. The protected object ID is ae42418e-f077-41a0-9d3b-5b2f5ad9102b.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/domain-sets?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default&limit=50&offset=0&object_id=ae42418e-f077-41a0-9d3b-5b2f5ad9102b
+
+

Example Responses

Status code: 200

+

List Domain Set Response

+
{
+  "data" : {
+    "limit" : 50,
+    "offset" : 0,
+    "records" : [ {
+      "config_status" : 3,
+      "description" : "",
+      "domain_set_type" : 0,
+      "name" : "ccdd",
+      "ref_count" : 0,
+      "set_id" : "e43db369-a863-45ed-8850-58d6b571b1ab"
+    } ],
+    "total" : 1
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

List Domain Set Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListDomains.html b/docs/cfw/api-ref/ListDomains.html new file mode 100644 index 00000000..5c748126 --- /dev/null +++ b/docs/cfw/api-ref/ListDomains.html @@ -0,0 +1,309 @@ + + +

list domains

+

Function

list domains

+
+

URI

GET /v1/{project_id}/domain-set/domains/{domain_set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

domain_set_id

+

Yes

+

String

+

domain set id

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

domain_name

+

No

+

String

+

domain name

+

description

+

No

+

String

+

description

+

set_id

+

No

+

String

+

domain_set_id

+

object_Id

+

No

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

No

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

ListDomainResponseData object

+

list domain response data

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ListDomainResponseData

Parameter

+

Type

+

Description

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

project_id

+

String

+

Project ID

+

records

+

Array of DomainInfo objects

+

domain info list

+

set_id

+

String

+

domain set id

+

total

+

Integer

+

total

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 DomainInfo

Parameter

+

Type

+

Description

+

domain_address_id

+

String

+

domain address id

+

domain_name

+

String

+

domain name

+

description

+

String

+

description

+

dns_ips

+

Array of strings

+

dns ips

+
+
+
+

Example Requests

Query the list of domain names under project id 14181c1245cf4fd786824efe1e2b9388, domain set id 78719348-6d79-477e-acec-676a29842ab2, and the firewall instance id 546af3f8-88e9-47f2-a205-2346d7090925.

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/domain-set/domains/78719348-6d79-477e-acec-676a29842ab2?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default&limit=200&offset=0
+
+

Example Responses

Status code: 200

+

list domain response

+
{
+  "data" : {
+    "limit" : 200,
+    "offset" : 0,
+    "project_id" : "14181c1245cf4fd786824efe1e2b9388",
+    "records" : [ {
+      "description" : "",
+      "domain_address_id" : "6718279e-9761-4623-a48d-b16957b19e1b",
+      "domain_name" : "www.test.com"
+    } ],
+    "set_id" : "78719348-6d79-477e-acec-676a29842ab2",
+    "total" : 1
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

list domain response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListEastWestFirewall.html b/docs/cfw/api-ref/ListEastWestFirewall.html new file mode 100644 index 00000000..46229fe4 --- /dev/null +++ b/docs/cfw/api-ref/ListEastWestFirewall.html @@ -0,0 +1,598 @@ + + +

Obtaining East-West Firewall Information

+

Function

This API is used to obtain east-west firewall information.

+
+

URI

GET /v1/{project_id}/firewall/east-west

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

GetEastWestFirewallResponseBody object

+

Get east west firewall data response

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 GetEastWestFirewallResponseBody

Parameter

+

Type

+

Description

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

project_id

+

String

+

Project ID

+

status

+

Integer

+

Protection status. The value can be 0 (protection enabled) or 1 (protection disabled).

+

er_associated_subnet

+

SubnetInfo object

+

Information about the subnet associated with ER

+

firewall_associated_subnets

+

Array of SubnetInfo objects

+

Subnet associated with CFW

+

er

+

ErInstance object

+

Information about the associated outbound enterprise router

+

inspection_vpc

+

VpcDetail object

+

Monitoring VPC information

+

protect_infos

+

Array of EwProtectResourceInfo objects

+

East-west protection resource information

+

total

+

Integer

+

Total number of protected VPCs

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

mode

+

String

+

mode

+

ew_vpc_route_limit

+

Integer

+

east west vpc route limit

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 SubnetInfo

Parameter

+

Type

+

Description

+

availability_zone

+

String

+

Subnet ID

+

cidr

+

String

+

vpc cidr

+

name

+

String

+

Subnet name

+

id

+

String

+

Subnet ID

+

gateway_ip

+

String

+

Subnet gateway IP address

+

vpc_id

+

String

+

vpc id

+

status

+

String

+

Subnet status

+

ipv6_enable

+

Boolean

+

Whether IPv6 is supported. The value true indicates yes and the value false indicates no.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 ErInstance

Parameter

+

Type

+

Description

+

id

+

String

+

ER instance ID

+

name

+

String

+

ER name

+

state

+

String

+

ER status

+

enterprise_project_id

+

String

+

Enterprise user ID

+

project_id

+

String

+

User ID

+

enable_ipv6

+

String

+

Whether to enable IPv6

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 VpcDetail

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

Name

+

cidr

+

String

+

vpc cidr

+

status

+

String

+

Status

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 EwProtectResourceInfo

Parameter

+

Type

+

Description

+

protected_resource_type

+

Integer

+

Protection resource type. The value can be 0 (VPC) or 1 (VGW).

+

protected_resource_name

+

String

+

Protected resource name

+

protected_resource_id

+

String

+

Protected resource ID

+

protected_resource_nat_name

+

String

+

Name of the NAT gateway of the protected resource

+

protected_resource_nat_id

+

String

+

ID of the NAT gateway of the protected resource

+

protected_resource_project_id

+

String

+

Tenant ID of the protected resource

+

protected_resource_mode

+

String

+

protected resource mode

+

status

+

Integer

+

The protection status of the protected VPC, 0 indicates that it is associated, and 1 indicates that it is not associated.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Obtain the east-west firewall information of the project whose ID is 09bb24e6f280d23d0f9fc0104b901480.

+
https://{Endpoint}/v1/09bb24e6f280d23d0f9fc0104b901480/firewall/east-west?limit=10&offset=0
+
+

Example Responses

Status code: 200

+

Response to the request for querying east-west firewall information

+
{
+  "data" : {
+    "ew_vpc_route_limit" : 5,
+    "inspection_vpc" : {
+      "cidr" : "10.90.90.0/24",
+      "id" : "4471b50f-811a-4f9b-9575-a491e6c81dd0",
+      "name" : "inspection-vpc"
+    },
+    "limit" : 50,
+    "mode" : "peer",
+    "object_id" : "5681ed03-ff3f-4dab-9bb1-daf388121ad1",
+    "offset" : 0,
+    "project_id" : "28f403ddd3f141daa6e046e85cb15519",
+    "protect_infos" : [ {
+      "protected_resource_id" : "4c51e814-03b5-4754-87cb-243701f5b4ff",
+      "protected_resource_mode" : "peer",
+      "protected_resource_name" : "vpc-c247",
+      "protected_resource_project_id" : "28f403ddd3f141daa6e046e85cb15519",
+      "protected_resource_type" : 0,
+      "status" : 0
+    }, {
+      "protected_resource_id" : "af44c693-a13c-46a7-a6d2-eb2cb2570e57",
+      "protected_resource_mode" : "peer",
+      "protected_resource_name" : "vpc-10.1",
+      "protected_resource_project_id" : "28f403ddd3f141daa6e046e85cb15519",
+      "protected_resource_type" : 0,
+      "status" : 0
+    }, {
+      "protected_resource_id" : "2ae53845-64b8-4cd5-bcbe-efb93a7c9207",
+      "protected_resource_mode" : "peer",
+      "protected_resource_name" : "vpc-test",
+      "protected_resource_project_id" : "28f403ddd3f141daa6e046e85cb15519",
+      "protected_resource_type" : 0,
+      "status" : 1
+    }, {
+      "protected_resource_id" : "8a51174b-376b-40e5-8ccf-89d33703842b",
+      "protected_resource_mode" : "peer",
+      "protected_resource_name" : "vpc-a0c1",
+      "protected_resource_project_id" : "28f403ddd3f141daa6e046e85cb15519",
+      "protected_resource_type" : 0,
+      "status" : 1
+    }, {
+      "protected_resource_id" : "9cccb096-31be-4d68-a7ee-156f0c947f0b",
+      "protected_resource_mode" : "peer",
+      "protected_resource_name" : "vpc-192.168",
+      "protected_resource_project_id" : "28f403ddd3f141daa6e046e85cb15519",
+      "protected_resource_type" : 0,
+      "status" : 1
+    } ],
+    "status" : 0,
+    "total" : 5
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for querying east-west firewall information

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListEipCount.html b/docs/cfw/api-ref/ListEipCount.html new file mode 100644 index 00000000..85e16fab --- /dev/null +++ b/docs/cfw/api-ref/ListEipCount.html @@ -0,0 +1,267 @@ + + +

Querying the Number of EIPs

+

Function

This API is used to query the number of EIPs.

+
+

URI

GET /v1/{project_id}/eip-count/{object_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

Minimum: 32

+

Maximum: 32

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

Minimum: 36

+

Maximum: 36

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

EipCountRespData object

+

eip count response data

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 EipCountRespData

Parameter

+

Type

+

Description

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

Minimum: 36

+

Maximum: 36

+

eip_total

+

Integer

+

Total EIPs

+

Minimum: 0

+

Default: 0

+

eip_protected

+

Integer

+

protected eip count

+

Minimum: 0

+

Default: 0

+

eip_protected_self

+

Integer

+

self protected eip count

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the number of EIPs whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and protected object ID is cfebd347-b655-4b84-b938-3c54317599b2.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/eip-count/cfebd347-b655-4b84-b938-3c54317599b2
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "eip_protected" : 1,
+    "eip_protected_self" : 4,
+    "eip_total" : 5,
+    "object_id" : "6d3db4fd-fd58-4d8e-914b-ef91aa268f62"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListEips.html b/docs/cfw/api-ref/ListEips.html new file mode 100644 index 00000000..7609042f --- /dev/null +++ b/docs/cfw/api-ref/ListEips.html @@ -0,0 +1,508 @@ + + +

Querying the EIP List

+

Function

This API is used to query the EIP list.

+
+

URI

GET /v1/{project_id}/eips/protect

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

Minimum: 36

+

Maximum: 36

+

key_word

+

No

+

String

+

Public network ID or EIP

+

Minimum: 0

+

Maximum: 255

+

status

+

No

+

String

+

Specifies the protection status. The value can be null, 0 (enabled), or 1 (disabled).

+

Enumeration values:

+
  • null
  • 0
  • 1
+

sync

+

No

+

Integer

+

Specifies whether to synchronize tenant EIP data. The options are as follows: 0: no; 1: yes

+

Enumeration values:

+
  • 0
  • 1
+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

Minimum: 0

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

Minimum: 0

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

device_key

+

No

+

String

+

Device key

+

address_type

+

No

+

Integer

+

Specifies the address type. The value can be 0 (IPv4) or 1 (IPv6).

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

fw_key_word

+

No

+

String

+

The bound firewall name

+

eps_id

+

No

+

String

+

The enterprise project id of the eip

+

tags

+

No

+

String

+

Tag list

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

EipResponseData object

+

eip query response

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 EipResponseData

Parameter

+

Type

+

Description

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

total

+

Integer

+

total

+

records

+

Array of EipResource objects

+

eip records

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 EipResource

Parameter

+

Type

+

Description

+

id

+

String

+

EIP ID

+

public_ip

+

String

+

EIP

+

status

+

Integer

+

EIP protection status,0:protected,1:unprotected

+

Enumeration values:

+
  • 0
  • 1
+

public_ipv6

+

String

+

EIP IPv6

+

enterprise_project_id

+

String

+

Enterprise project ID

+

device_id

+

String

+

Device ID

+

device_name

+

String

+

Device name

+

device_owner

+

String

+

Device owner

+

associate_instance_type

+

String

+

Type of the associated instance

+

fw_instance_name

+

String

+

firewall name

+

fw_instance_id

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.

+

fw_enterprise_project_id

+

String

+

Firewall enterprise project id bound to Eip

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

tags

+

String

+

tags

+

domain_id

+

String

+

domain id

+

owner

+

String

+

owner

+

fw_domain_id

+

String

+

firewall domain id

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the data on the non-synchronized first page whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and protected object ID is cfebd347-b655-4b84-b938-3c54317599b2.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/eips/protect?object_id=cfebd347-b655-4b84-b938-3c54317599b2&limit=10&offset=0&sync=0
+
+

Example Responses

Status code: 200

+

Return value of EIP data query

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "records" : [ {
+      "associate_instance_type" : "PORT",
+      "device_id" : "c87579ab-c76a-4afd-83ce-62e0f531f13e",
+      "device_name" : "test",
+      "device_owner" : "compute:endpoint",
+      "domain_id" : "7d07807209524a4280266db9df63c4fa",
+      "enterprise_project_id" : "0",
+      "fw_domain_id" : "7d07807209524a4280266db9df63c4fa",
+      "fw_enterprise_project_id" : "default",
+      "fw_instance_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+      "fw_instance_name" : "test",
+      "id" : "465b34fe-e017-4831-a21c-9c6c753bb1f2",
+      "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b",
+      "public_ip" : "100.85.223.15",
+      "status" : 0,
+      "tags" : "combined_order_id=CBRCS23040615138M2KW912"
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00109004",
+  "error_msg" : "http to external service error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value of EIP data query

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListFirewallDetail.html b/docs/cfw/api-ref/ListFirewallDetail.html new file mode 100644 index 00000000..3d2eec73 --- /dev/null +++ b/docs/cfw/api-ref/ListFirewallDetail.html @@ -0,0 +1,694 @@ + + +

List Firewall Detail

+

Function

This API is used to query a firewall instance.

+
+

URI

GET /v1/{project_id}/firewall/exist

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

service_type

+

Yes

+

Integer

+

Service type 0. North-south firewall

+
  1. East-west firewall

    +
+

Minimum: 0

+

Maximum: 1

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

GetFirewallInstanceData object

+

get firewall instance response data

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 GetFirewallInstanceData

Parameter

+

Type

+

Description

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

total

+

Integer

+

total

+

records

+

Array of GetFirewallInstanceResponseRecord objects

+

Get firewall instance records

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 GetFirewallInstanceResponseRecord

Parameter

+

Type

+

Description

+

fw_instance_id

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.

+

name

+

String

+

Firewall name

+

ha_type

+

Integer

+

Cluster type

+

charge_mode

+

Integer

+

Billing mode. The value can be 0 (yearly/monthly) or 1 (pay-per-use).

+

service_type

+

Integer

+

Service type

+

engine_type

+

Integer

+

Engine type

+

flavor

+

Flavor object

+

Firewall specifications

+

protect_objects

+

Array of ProtectObjectVO objects

+

Project list

+

status

+

Integer

+

Firewall status list. The options are as follows: -1: waiting for payment; 0: creating; 1: deleting; 2: running; 3: upgrading; 4: deletion completed; 5: freezing; 6: creation failed; 7: deletion failed; 8: freezing failed; 9: storage in progress; 10: storage failed; 11: upgrade failed

+

Enumeration values:

+
  • -1

    +
  • 0

    +
  • 1

    +
  • 2

    +
  • 3

    +
  • 4

    +
  • 5

    +
  • 6

    +
  • 7

    +
  • 8

    +
  • 9

    +
  • 10

    +
  • 11

    +
+

is_old_firewall_instance

+

Boolean

+

Whether the engine is an old engine. The options are true (yes) and false (no).

+

Enumeration values:

+
  • true

    +
  • false

    +
+

is_available_obs

+

Boolean

+

Whether obs is available

+

is_support_threat_tags

+

Boolean

+

Whether threat tags is supported

+

support_ipv6

+

Boolean

+

Whether IPv6 is supported. The options are true (yes) and false (no).

+

feature_toggle

+

Map<String,Boolean>

+

Whether to enable the feature. The options are true (yes) and false (no).

+

resources

+

Array of FirewallInstanceResource objects

+

Firewall instance resources

+

fw_instance_name

+

String

+

firewall name

+

enterprise_project_id

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

resource_id

+

String

+

resource id

+

support_url_filtering

+

Boolean

+

whether to enable url filtering. The options are true (yes) and false (no).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 Flavor

Parameter

+

Type

+

Description

+

version

+

Integer

+

Firewall version. The value can be 0 (standard edition), 1 (professional edition), or 3 (basic edition).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 3

    +
+

eip_count

+

Integer

+

Number of EIPs

+

Minimum: 1

+

vpc_count

+

Integer

+

Number of VPCs

+

Minimum: 1

+

bandwidth

+

Integer

+

Bandwidth

+

Minimum: 1

+

log_storage

+

Integer

+

Log storage

+

session_concurrent

+

Integer

+

concurrent session

+

session_create

+

Integer

+

created session

+

total_rule_count

+

Integer

+

total rule count

+

used_rule_count

+

Integer

+

used rule count

+

vpc_bandwith

+

Integer

+

vpc bandwith

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 8 ProtectObjectVO

Parameter

+

Type

+

Description

+

object_id

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

object_name

+

String

+

Protected object name

+

type

+

Integer

+

Project type. The options are as follows: 0: north-south; 1: east-west.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 FirewallInstanceResource

Parameter

+

Type

+

Description

+

resource_id

+

String

+

Resource ID

+

cloud_service_type

+

String

+

Service type, which is used by CBC. The value is hws.service.type.cfw.

+

resource_type

+

String

+

Resource type. The options are as follows:1. CFW: hws.resource.type.cfw 2. EIP:hws.resource.type.cfw.exp.eip 3. Bandwidth: hws.resource.type.cfw.exp.bandwidth 4. VPC: hws.resource.type.cfw.exp.vpc 5. Log storage: hws.resource.type.cfw.exp.logaudit

+

resource_spec_code

+

String

+

Inventory unit code

+

resource_size

+

Integer

+

Resource quantity

+

resource_size_measure_id

+

Integer

+

Resource unit name

+
+
+
+

Example Requests

Query the firewall list of the project whose ID is 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/firewall/exist?service_type=0&offset=0&limit=10
+
+

Example Responses

Status code: 200

+

Response to the request for obtaining a firewall instance

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "records" : [ {
+      "charge_mode" : 0,
+      "engine_type" : 1,
+      "enterprise_project_id" : "default",
+      "feature_toggle" : {
+        "is_support_anti_virus" : true,
+        "is_support_application" : true,
+        "is_support_tcp_proxy" : false,
+        "is_support_url_profile" : true,
+        "is_support_threat_tags" : true,
+        "is_support_flow_associated_host" : false,
+        "is_support_predefined" : true,
+        "isSupportSession" : false,
+        "is_support_acl_region_config" : true,
+        "is_support_ips" : true,
+        "is_support_ew_create_er_tenant_inspection_mode" : false,
+        "ips_rule_list" : true,
+        "long_connect" : true,
+        "is_support_ew_create_vpc_peering_inspection_mode" : true,
+        "alarm_config" : true,
+        "is_not_support_resource_reduction" : false,
+        "acl_multi_object" : true,
+        "is_support_advanced_ips_rule" : true,
+        "is_support_multi_account" : false,
+        "is_support_capture" : true,
+        "is_support_ew_create_er_bearer_inspection_mode" : true
+      },
+      "flavor" : {
+        "bandwidth" : 60,
+        "eip_count" : 51,
+        "log_storage" : 0,
+        "session_concurrent" : 200,
+        "session_create" : 200,
+        "total_rule_count" : 200,
+        "used_rule_count" : 2136,
+        "version" : 1,
+        "vpc_bandwith" : 1400,
+        "vpc_count" : 8
+      },
+      "fw_instance_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+      "fw_instance_name" : "test",
+      "ha_type" : 1,
+      "is_available_obs" : false,
+      "is_old_firewall_instance" : false,
+      "is_support_threat_tags" : false,
+      "name" : "1680054140516",
+      "protect_objects" : [ {
+        "object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b",
+        "object_name" : "1680054141674",
+        "type" : 0
+      }, {
+        "object_id" : "be83d202-df0b-498d-a96e-41589dc85c86",
+        "object_name" : "ew-1680070626042",
+        "type" : 1
+      } ],
+      "resource_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+      "resources" : [ {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+        "resource_spec_code" : "cfw.professional",
+        "resource_type" : "hws.resource.type.cfw"
+      }, {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "0acdd5c7-1178-4bea-b5b6-bd55dc5e2669",
+        "resource_size" : 5,
+        "resource_size_measure_id" : 14,
+        "resource_spec_code" : "cfw.expack.vpc.professional",
+        "resource_type" : "hws.resource.type.cfw.exp.vpc"
+      }, {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "4002620c-916a-49c7-8042-cbe02fc17e61",
+        "resource_size" : 5,
+        "resource_size_measure_id" : 36,
+        "resource_spec_code" : "cfw.expack.bandwidth.professional",
+        "resource_type" : "hws.resource.type.cfw.exp.bandwidth"
+      }, {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "0235c7db-0baa-4c82-8db2-7b8d5108bd86",
+        "resource_size" : 2,
+        "resource_size_measure_id" : 14,
+        "resource_spec_code" : "cfw.expack.eip.professional",
+        "resource_type" : "hws.resource.type.cfw.exp.eip"
+      }, {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "079ade46-18cd-4917-b7bb-00d402931097",
+        "resource_size" : 6,
+        "resource_size_measure_id" : 14,
+        "resource_spec_code" : "cfw.expack.vpc.professional",
+        "resource_type" : "hws.resource.type.cfw.exp.vpc"
+      }, {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "dd078faa-abfd-4e63-b681-1a93489955b9",
+        "resource_size" : 1,
+        "resource_size_measure_id" : 14,
+        "resource_spec_code" : "cfw.expack.eip.professional",
+        "resource_type" : "hws.resource.type.cfw.exp.eip"
+      }, {
+        "cloud_service_type" : "hws.service.type.cfw",
+        "resource_id" : "4d78d523-745d-4d54-a9ca-e6d25e555bde",
+        "resource_size" : 10,
+        "resource_size_measure_id" : 36,
+        "resource_spec_code" : "cfw.expack.bandwidth.professional",
+        "resource_type" : "hws.resource.type.cfw.exp.bandwidth"
+      } ],
+      "service_type" : 0,
+      "status" : 2,
+      "support_ipv6" : true,
+      "support_url_filtering" : true
+    } ],
+    "total" : 1
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for obtaining a firewall instance

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListFirewallList.html b/docs/cfw/api-ref/ListFirewallList.html new file mode 100644 index 00000000..631cb551 --- /dev/null +++ b/docs/cfw/api-ref/ListFirewallList.html @@ -0,0 +1,517 @@ + + +

list firewall list

+

Function

list firewall list

+
+

URI

POST /v1/{project_id}/firewalls/list

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

key_word

+

No

+

String

+

key

+

tags

+

No

+

Array of TagInfo objects

+

tags

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 TagInfo

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

key

+

values

+

No

+

Array of strings

+

tag values

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

user_support_eps

+

Boolean

+

Whether to enable eps. The options are true (yes) and false (no).

+

has_ndr

+

Boolean

+

Whether NDR exists

+

is_support_postpaid

+

Boolean

+

Whether postpaid is supported

+

is_support_basic_version

+

Boolean

+

Whether basic version is supported

+

is_support_buy_professional

+

Boolean

+

Whether professional version firewall is supported to buy

+

data

+

HttpFirewallInstanceListResponseData object

+

query firewall instance list response

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 HttpFirewallInstanceListResponseData

Parameter

+

Type

+

Description

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

project_id

+

String

+

project ID

+

total

+

Integer

+

total

+

records

+

Array of FirewallInstanceVO objects

+

query firewall isntance list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 FirewallInstanceVO

Parameter

+

Type

+

Description

+

fw_instance_id

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

resource_id

+

String

+

resource id

+

name

+

String

+

name

+

fw_instance_name

+

String

+

firewall instance name

+

enterprise_project_id

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

ha_type

+

Integer

+

ha type

+

charge_mode

+

Integer

+

Billing mode 0: Yearly/monthly subscription 1: On-demand

+

service_type

+

Integer

+

service type

+

engine_type

+

Integer

+

flavor

+

Flavor object

+

flavor

+

status

+

Integer

+

Firewall status list. The options are as follows: -1: waiting for payment; 0: creating; 1: deleting; 2: running; 3: upgrading; 4: deletion completed; 5: freezing; 6: creation failed; 7: deletion failed; 8: freezing failed; 9: storage in progress; 10: storage failed; 11: upgrade failed

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 Flavor

Parameter

+

Type

+

Description

+

version

+

Integer

+

Firewall version. The value can be 0 (standard edition), 1 (professional edition), or 3 (basic edition).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 3

    +
+

eip_count

+

Integer

+

Number of EIPs

+

Minimum: 1

+

vpc_count

+

Integer

+

Number of VPCs

+

Minimum: 1

+

bandwidth

+

Integer

+

Bandwidth

+

Minimum: 1

+

log_storage

+

Integer

+

Log storage

+

session_concurrent

+

Integer

+

concurrent session

+

session_create

+

Integer

+

created session

+

total_rule_count

+

Integer

+

total rule count

+

used_rule_count

+

Integer

+

used rule count

+

vpc_bandwith

+

Integer

+

vpc bandwith

+
+
+
+

Example Requests

Query the firewall list on the first page of the enterprise project whose ID is all_granted_eps and project ID is 14181c1245cf4fd786824efe1e2b9388.

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/firewalls/list?enterprise_project_id=all_granted_eps
+
+{
+  "limit" : 10,
+  "offset" : 0
+}
+
+

Example Responses

Status code: 200

+

list firewall list response

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "project_id" : "14181c1245cf4fd786824efe1e2b9388",
+    "records" : [ {
+      "charge_mode" : 0,
+      "engine_type" : 1,
+      "enterprise_project_id" : "default",
+      "flavor" : {
+        "bandwidth" : 60,
+        "eip_count" : 51,
+        "log_storage" : 0,
+        "version" : 1,
+        "vpc_count" : 8
+      },
+      "fw_instance_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+      "fw_instance_name" : "test",
+      "ha_type" : 1,
+      "name" : "1680054140516",
+      "resource_id" : "546af3f8-88e9-47f2-a205-2346d7090925",
+      "service_type" : 0,
+      "status" : 2
+    } ],
+    "total" : 1
+  },
+  "user_support_eps" : false,
+  "has_ndr" : false,
+  "is_support_postpaid" : false,
+  "is_support_basic_version" : false,
+  "is_support_buy_professional" : false
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

list firewall list response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListFlowLogs.html b/docs/cfw/api-ref/ListFlowLogs.html new file mode 100644 index 00000000..1be24fa9 --- /dev/null +++ b/docs/cfw/api-ref/ListFlowLogs.html @@ -0,0 +1,512 @@ + + +

Querying Flow Logs

+

Function

This API is used to query flow logs.

+
+

URI

GET /v1/{project_id}/cfw/logs/flow

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.

+

direction

+

No

+

String

+

Direction

+

log_type

+

No

+

String

+

Log type

+

Enumeration values:

+
  • internet

    +
  • vpc

    +
  • nat

    +
+

start_time

+

Yes

+

Long

+

Start time

+

end_time

+

Yes

+

Long

+

End time

+

src_ip

+

No

+

String

+

Source IP address

+

src_port

+

No

+

Integer

+

Source port

+

Minimum: 0

+

Maximum: 65535

+

dst_ip

+

No

+

String

+

Destination IP address

+

dst_port

+

No

+

Integer

+

Destination port

+

Minimum: 0

+

Maximum: 65535

+

protocol

+

No

+

String

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

Enumeration values:

+
  • 6

    +
  • 17

    +
  • 1

    +
  • 58

    +
+

app

+

No

+

String

+

Application protocol

+

log_id

+

No

+

String

+

Document ID. The value is null for the first page and not null for the rest of the pages.

+

next_date

+

No

+

Long

+

Date. The value is null for the first page and not null for the rest of the pages.

+

offset

+

No

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

Minimum: 1

+

Maximum: 1024

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

dst_host

+

No

+

String

+

destination host

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Value returned for flow log query

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

total

+

Integer

+

Returned quantity

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

records

+

Array of records objects

+

Record

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

bytes

+

Integer

+

Byte

+

direction

+

String

+

Direction, which can be inbound or outbound

+

Enumeration values:

+
  • out2in

    +
  • in2out

    +
+

packets

+

Integer

+

Packet

+

start_time

+

Long

+

Start time

+

end_time

+

Long

+

End time

+

log_id

+

String

+

Document ID

+

src_ip

+

String

+

Source IP address

+

src_port

+

Integer

+

Source port

+

dst_ip

+

String

+

Destination IP address

+

app

+

String

+

Application protocol

+

dst_port

+

Integer

+

Destination port

+

protocol

+

String

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

dst_host

+

String

+

destination host

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the flow logs on the first page of the firewall with the ID 2af58b7c-893c-4453-a984-bdd9b1bd6318 in the project 9d80d070b6d44942af73c9c3d38e0429. The query time range is 1663555012000 to 1664159798000.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/cfw/logs/flow?fw_instance_id=2af58b7c-893c-4453-a984-bdd9b1bd6318&start_time=1663555012000&end_time=1664159798000&limit=10
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "limit" : 10,
+    "records" : [ {
+      "app" : "SSH",
+      "bytes" : 34.5,
+      "direction" : "out2in",
+      "dst_ip" : "100.95.148.49",
+      "dst_port" : 22,
+      "end_time" : 1664155493000,
+      "log_id" : "76354",
+      "packets" : 25,
+      "protocol" : "TCP",
+      "src_ip" : "100.93.27.17",
+      "src_port" : 49634,
+      "start_time" : 1664155428000
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00500002",
+  "error_msg" : "time range error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListIpsProtectMode.html b/docs/cfw/api-ref/ListIpsProtectMode.html new file mode 100644 index 00000000..bca644e5 --- /dev/null +++ b/docs/cfw/api-ref/ListIpsProtectMode.html @@ -0,0 +1,233 @@ + + +

Querying the Protection Mode

+

Function

This API is used to query the protection mode.

+
+

URI

GET /v1/{project_id}/ips/protect

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IpsProtectModeObject object

+

IpsProtectModeObject

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 IpsProtectModeObject

Parameter

+

Type

+

Description

+

id

+

String

+

ips protect mode id

+

mode

+

Integer

+

IPS protection mode. 0: observation mode; 1: strict mode; 2: medium mode; 3: loose mode

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the IPS protection mode of the project whose ID is 9d80d070b6d44942af73c9c3d38e0429.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/ips/protect?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default&object_id=cfebd347-b655-4b84-b938-3c54317599b2
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListIpsSwitchStatus.html b/docs/cfw/api-ref/ListIpsSwitchStatus.html new file mode 100644 index 00000000..ae66c1e4 --- /dev/null +++ b/docs/cfw/api-ref/ListIpsSwitchStatus.html @@ -0,0 +1,207 @@ + + +

Querying the IPS Switch Status

+

Function

This API is used to query the IPS switch status.

+
+

URI

GET /v1/{project_id}/ips/switch

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project_id

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IpsSwitchResponseDTO object

+

ips switch response

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 IpsSwitchResponseDTO

Parameter

+

Type

+

Description

+

id

+

String

+

Ips switch id

+

basic_defense_status

+

Integer

+

Basic defense status

+

virtual_patches_status

+

Integer

+

Virtual patch status

+
+
+
+

Example Requests

Query the patch status of the current user based on the received user ID 14181c1245cf4fd786824efe1e2b9388 and load the virtual patch on the intrusion prevention page.

+
https://{Endpoint}/v1/14181c1245cf4fd786824efe1e2b9388/ips/switch?fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default&object_id=cfebd347-b655-4b84-b938-3c54317599b2
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "basic_defense_status" : 1,
+    "id" : "cefe80aa-83e4-4308-99aa-f9b6c816de00",
+    "virtual_patches_status" : 0
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListJob.html b/docs/cfw/api-ref/ListJob.html new file mode 100644 index 00000000..1fbbc9de --- /dev/null +++ b/docs/cfw/api-ref/ListJob.html @@ -0,0 +1,183 @@ + + +

List Job Status

+

Function

This API is used to obtain job status.

+
+

URI

GET /v3/{project_id}/jobs/{job_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

job_id

+

Yes

+

String

+

job id

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

No

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+

data

+

data object

+

Job Result

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 data

Parameter

+

Type

+

Description

+

id

+

String

+

Job Id

+

status

+

String

+

Job execution status. Running means the job is being executed, Success means the job is successful, Failed means the job is failed.

+

Enumeration values:

+
  • Running
  • Success
  • Failed
+

begin_time

+

String

+

Creation time, in the format yyyy-mm-ddThh:mm:ssZ. where T refers to the beginning of a certain time; Z refers to the time zone offset.

+

end_time

+

String

+

End time, in the format "yyyy-mm-ddThh:mm:ssZ". where T refers to the beginning of a certain time; Z refers to the time zone offset.

+
+
+
+

Example Requests

Get job status of the job which job id is f588ce71-e26c-400d-8981-f854355f6849 and project id is 09bb24e6fe80d23d2fa2c010b53b418c.

+
/v3/09bb24e6fe80d23d2fa2c010b53b418c/jobs/f588ce71-e26c-400d-8981-f854355f6849
+
+

Example Responses

Status code: 200

+

Get Job Response

+
{
+  "data" : {
+    "begin_time" : 1641370501000,
+    "end_time" : 1641370515000,
+    "id" : "f588ce71-e26c-400d-8981-f854355f6849",
+    "status" : "Success"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Get Job Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListLogConfig.html b/docs/cfw/api-ref/ListLogConfig.html new file mode 100644 index 00000000..c06f7ad3 --- /dev/null +++ b/docs/cfw/api-ref/ListLogConfig.html @@ -0,0 +1,223 @@ + + +

List Log Config

+

Function

This API is used to list log config.

+
+

URI

GET /v1/{project_id}/cfw/logs/configuration

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

LogConfigDto object

+

Log Config Response

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 LogConfigDto

Parameter

+

Type

+

Description

+

fw_instance_id

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

lts_enable

+

Integer

+

whether to enable LTS

+

lts_log_group_id

+

String

+

Lts log group id

+

lts_attack_log_stream_id

+

String

+

Lts attack log stream id

+

lts_attack_log_stream_enable

+

Integer

+

whether to enable attack log streaming

+

lts_access_log_stream_id

+

String

+

Lts access log stream id

+

lts_access_log_stream_enable

+

Integer

+

whether to enable access log streaming

+

lts_flow_log_stream_id

+

String

+

Lts flow log stream id

+

lts_flow_log_stream_enable

+

Integer

+

whether to enable flow log streaming

+
+
+
+

Example Requests

Query the log configuration of whose firewall instance id is 4e113415-7811-4bb3-bf5e-eb835953f7d4 and project id is 408972e72dcd4c1a9b033e955802a36b.

+
https://{Endpoint}/v1/408972e72dcd4c1a9b033e955802a36b/cfw/logs/configuration?fw_instance_id=4e113415-7811-4bb3-bf5e-eb835953f7d4&enterprise_project_id=default
+
+

Example Responses

Status code: 200

+

List Log Config Response

+
{
+  "data" : {
+    "fw_instance_id" : "4df2bcd1-6299-4fba-8e71-8d50ea807090",
+    "lts_access_log_stream_enable" : 0,
+    "lts_attack_log_stream_enable" : 0,
+    "lts_enable" : 0,
+    "lts_flow_log_stream_enable" : 0,
+    "lts_log_group_id" : "d783ce42-7f56-4c2d-9a96-b1043d016f5a"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

List Log Config Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListProtectedVpcs.html b/docs/cfw/api-ref/ListProtectedVpcs.html new file mode 100644 index 00000000..e6bcbc3f --- /dev/null +++ b/docs/cfw/api-ref/ListProtectedVpcs.html @@ -0,0 +1,410 @@ + + +

Querying the Number of Protected VPCs

+

Function

This API is used to query protected VPCs.

+
+

URI

GET /v1/{project_id}/vpcs/protection

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

trace_id

+

String

+

Call chain ID

+

data

+

VPCProtectsVo object

+

Return value of VPC protection

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 VPCProtectsVo

Parameter

+

Type

+

Description

+

total

+

Integer

+

Total number of VPCs

+

self_total

+

Integer

+

Total number of self VPCs

+

other_total

+

Integer

+

Total number of other VPCs

+

protect_vpcs

+

Array of VpcAttachmentDetail objects

+

Protect VPC

+

self_protect_vpcs

+

Array of VpcAttachmentDetail objects

+

Self Protect VPC

+

other_protect_vpcs

+

Array of VpcAttachmentDetail objects

+

Other Protect VPC

+

total_assets

+

Integer

+

Total Assets

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 VpcAttachmentDetail

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+

vpc_id

+

String

+

vpc id

+

virsubnet_id

+

String

+

subnet id

+

state

+

String

+

state

+

created_at

+

String

+

create time

+

updated_at

+

String

+

update time

+

tags

+

Array of Tag objects

+

tag

+

description

+

String

+

description

+

project_id

+

String

+

project id

+

vpc_project_id

+

String

+

vpc project id

+

enterprise_project_id

+

String

+

enterprise project id

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 Tag

Parameter

+

Type

+

Description

+

key

+

String

+

key

+

value

+

String

+

value

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the east-west firewall protection information about the projected object with the ID 8839526e-b804-4a15-a082-a2c797dce633 in project 0b2179bbe180d3762fb0c01a2d5725c7.

+
https://{ENDPOINT}/v1/0b2179bbe180d3762fb0c01a2d5725c7/vpcs/protection?object_id=8839526e-b804-4a15-a082-a2c797dce633
+
+

Example Responses

Status code: 200

+

Return value of east-west protection query

+
{
+  "data" : {
+    "other_protect_vpcs" : [ ],
+    "other_total" : 0,
+    "protect_vpcs" : [ ],
+    "self_protect_vpcs" : [ ],
+    "self_total" : 0,
+    "total" : 0,
+    "total_assets" : 5
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00109004",
+  "error_msg" : "http to external service error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value of east-west protection query

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListRuleAclTags.html b/docs/cfw/api-ref/ListRuleAclTags.html new file mode 100644 index 00000000..8e9fb9ad --- /dev/null +++ b/docs/cfw/api-ref/ListRuleAclTags.html @@ -0,0 +1,246 @@ + + +

List Acl Rule Tags

+

Function

This API is used to list acl rule tags.

+
+

URI

GET /v2/{project_id}/cfw-acl/tags

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

HttpGetAclTagResponseData object

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 HttpGetAclTagResponseData

Parameter

+

Type

+

Description

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

total

+

records

+

Array of TagsVO objects

+

tag vos

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 TagsVO

Parameter

+

Type

+

Description

+

tag_id

+

String

+

tag id

+

tag_key

+

String

+

tag key

+

tag_value

+

String

+

tag value

+
+
+
+

Example Requests

Query the existing ACL tags of the firewall whose ID is 546af3f8-88e9-47f2-a205-2346d7090925 in the project whose ID is 14181c1245cf4fd786824efe1e2b9388.

+
https://{Endpoint}/v2/14181c1245cf4fd786824efe1e2b9388/cfw-acl/tags?limit=1000&offset=0&fw_instance_id=546af3f8-88e9-47f2-a205-2346d7090925&enterprise_project_id=default
+
+

Example Responses

Status code: 200

+
{
+  "data" : {
+    "limit" : 1000,
+    "offset" : 0,
+    "records" : [ {
+      "tag_id" : "98fdf013-e7ad-4581-9c71-6de04c76a18f",
+      "tag_key" : "1",
+      "tag_value" : "1"
+    }, {
+      "tag_id" : "36e6fbfe-7fcd-48be-872b-4f6074e1e4e8",
+      "tag_key" : "1",
+      "tag_value" : "2"
+    }, {
+      "tag_id" : "0bf41046-6587-42f2-8399-a6864022b504",
+      "tag_key" : "test",
+      "tag_value" : "test"
+    } ],
+    "total" : 3
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListServiceItems.html b/docs/cfw/api-ref/ListServiceItems.html new file mode 100644 index 00000000..aab2070c --- /dev/null +++ b/docs/cfw/api-ref/ListServiceItems.html @@ -0,0 +1,352 @@ + + +

Querying the Service Set Member List

+

Function

This API is used to query service group members.

+
+

URI

GET /v1/{project_id}/service-items

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

Yes

+

String

+

Service group ID

+

key_word

+

No

+

String

+

Query field

+

limit

+

Yes

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

data object

+

Service group member list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 data

Parameter

+

Type

+

Description

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

Total number of records

+

set_id

+

String

+

service set id

+

records

+

Array of records objects

+

Record

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 records

Parameter

+

Type

+

Description

+

item_id

+

String

+

Service member ID

+

protocol

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

String

+

Source port

+

dest_port

+

String

+

Destination port

+

name

+

String

+

Service member name

+

description

+

String

+

Service member description

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the member list of the service group whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and service group ID is 7cdebed3-af07-494e-a3c2-b88bb8d58b57.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-items?set_id=7cdebed3-af07-494e-a3c2-b88bb8d58b57&limit=10&offset=0
+
+

Example Responses

Status code: 200

+

Return value of the service group member list

+
{
+  "data" : {
+    "limit" : 10,
+    "offset" : 0,
+    "records" : [ {
+      "dest_port" : "0",
+      "item_id" : "805b711d-c558-41e3-aab1-a4b8c3f1f90b",
+      "description" : "",
+      "protocol" : 1,
+      "source_port" : "0"
+    } ],
+    "set_id" : "7cdebed3-af07-494e-a3c2-b88bb8d58b57",
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Return value of the service group member list

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListServiceSetDetail.html b/docs/cfw/api-ref/ListServiceSetDetail.html new file mode 100644 index 00000000..01a18135 --- /dev/null +++ b/docs/cfw/api-ref/ListServiceSetDetail.html @@ -0,0 +1,260 @@ + + +

Querying Service Set Details

+

Function

This API is used to query the details about a service group.

+
+

URI

GET /v1/{project_id}/service-sets/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

Service group ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

ServiceSetDetailResponseDto object

+

service set detail response

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 ServiceSetDetailResponseDto

Parameter

+

Type

+

Description

+

id

+

String

+

Service group ID

+

name

+

String

+

Service group name

+

Minimum: 1

+

Maximum: 255

+

description

+

String

+

Service group description

+

Minimum: 1

+

Maximum: 255

+

service_set_type

+

Integer

+

Service set type, 0 indicates a custom service set and 1 indicates a predefined service set

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query details about the service group whose project ID is 9d80d070b6d44942af73c9c3d38e0429 and service group ID is 221cfdca-3abf-4c30-ab0d-516a03c70866.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-sets/221cfdca-3abf-4c30-ab0d-516a03c70866
+
+

Example Responses

Status code: 200

+

Response to the request for querying details about a service group member

+
{
+  "data" : {
+    "service_set_type" : 0,
+    "id" : "221cfdca-3abf-4c30-ab0d-516a03c70866",
+    "name" : "ceshi2"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for querying details about a service group member

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/ListServiceSets.html b/docs/cfw/api-ref/ListServiceSets.html new file mode 100644 index 00000000..4c872826 --- /dev/null +++ b/docs/cfw/api-ref/ListServiceSets.html @@ -0,0 +1,362 @@ + + +

Obtaining the Service Set List

+

Function

This API is used to obtain the service group list.

+
+

URI

GET /v1/{project_id}/service-sets

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

object_id

+

Yes

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

key_word

+

No

+

String

+

Keyword

+

limit

+

Yes

+

Integer

+

Number of queries on each page, in the range 1-1024

+

Minimum: 1

+

Maximum: 1024

+

offset

+

Yes

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

Minimum: 0

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

No

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

data

+

ServiceSetRecords object

+

QueryServiceSetResponse

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 ServiceSetRecords

Parameter

+

Type

+

Description

+

offset

+

Integer

+

Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0.

+

limit

+

Integer

+

Number of records displayed on each page, in the range 1-1024

+

total

+

Integer

+

Total number of records queried

+

records

+

Array of ServiceSet objects

+

Service group list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ServiceSet

Parameter

+

Type

+

Description

+

set_id

+

String

+

Service group ID

+

name

+

String

+

Name

+

description

+

String

+

Description

+

service_set_type

+

Integer

+

Service set type, 0 indicates a custom service set and 1 indicates a predefined service set

+

ref_count

+

Integer

+

Reference count

+

status

+

String

+

Status

+

project_id

+

String

+

Project ID

+

protocols

+

Array of integers

+

Protocols

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Query the service group list on the first page of protected object a37bb4eb-c49e-4e88-bf77-944a75b0ce8a in project 2349ba469daf4b7daf268bb0261d18b0.

+
https://{Endpoint}/v1/2349ba469daf4b7daf268bb0261d18b0/service-sets?object_id=a37bb4eb-c49e-4e88-bf77-944a75b0ce8a&limit=10&offset=0
+
+

Example Responses

Status code: 200

+

Response to the request for querying service group information

+
{
+  "data" : {
+    "limit" : 50,
+    "offset" : 0,
+    "records" : [ {
+      "name" : "test",
+      "project_id" : "2349ba469daf4b7daf268bb0261d18b0",
+      "protocols" : [ 6 ],
+      "ref_count" : 2,
+      "service_set_type" : 0,
+      "set_id" : "6f475bad-5d33-45d1-98f8-c79f2f308d5a"
+    } ],
+    "total" : 1
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.0020016",
+  "error_msg" : "instance status error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for querying service group information

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/PARAMETERS.txt b/docs/cfw/api-ref/PARAMETERS.txt new file mode 100644 index 00000000..6da8d5f0 --- /dev/null +++ b/docs/cfw/api-ref/PARAMETERS.txt @@ -0,0 +1,3 @@ +version="" +language="en-us" +type="" \ No newline at end of file diff --git a/docs/cfw/api-ref/UpdateAclRule.html b/docs/cfw/api-ref/UpdateAclRule.html new file mode 100644 index 00000000..4cef6250 --- /dev/null +++ b/docs/cfw/api-ref/UpdateAclRule.html @@ -0,0 +1,897 @@ + + +

Updating an ACL Rule

+

Function

This API is used to update an ACL rule.

+
+

URI

PUT /v1/{project_id}/acl-rule/{acl_rule_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

acl_rule_id

+

Yes

+

String

+

Rule ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

address_type

+

No

+

Integer

+

Address type. The value can be 0 (IPv4) or 1 (IPv6).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

name

+

No

+

String

+

Rule name

+

sequence

+

No

+

OrderRuleAclDto object

+

UpdateRuleAclDto

+

direction

+

No

+

Integer

+

Direction: 0 means outside to inside, 1 means inside to outside, direction value is required when rule type is internet or nat.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

action_type

+

No

+

Integer

+

Action. 0: allow; 1: deny

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

status

+

No

+

Integer

+

Rule delivery status. 0: disabled; 1: enabled.

+

description

+

No

+

String

+

Description

+

long_connect_time_hour

+

No

+

Long

+

Persistent connection duration (hour)

+

long_connect_time_minute

+

No

+

Long

+

Persistent connection duration (hour)

+

long_connect_time_second

+

No

+

Long

+

Persistent connection duration (minute)

+

long_connect_time

+

No

+

Long

+

Persistent connection duration

+

long_connect_enable

+

No

+

Integer

+

Whether to support persistent connections. 0: not supported; 1: supported.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

source

+

No

+

RuleAddressDto object

+

Rule address DTO

+

destination

+

No

+

RuleAddressDto object

+

Rule address DTO

+

service

+

No

+

RuleServiceDto object

+

RuleServiceDto

+

type

+

No

+

Integer

+

Rule type. The value can be 0 (Internet rule), 1 (VPC rule), or 2 (NAT rule).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+

tag

+

No

+

TagsVO object

+

tag

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 OrderRuleAclDto

Parameter

+

Mandatory

+

Type

+

Description

+

dest_rule_id

+

No

+

String

+

ID of the rule that the added rule will follow. This parameter cannot be left blank if the rule is not pinned on top, and is empty when the added rule is pinned on top.

+

top

+

No

+

Integer

+

Whether to pin on top. The options are as follows: 0: no; 1: yes.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 RuleAddressDto

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

Yes

+

Integer

+

Source type. 0: manual input; 1: associated IP address group; 2: domain name

+

address_type

+

No

+

Integer

+

Source type. 0: IPv4; 1: IPv6

+

address

+

No

+

String

+

Source IP address. The value cannot be empty for the manual type, and cannot be empty for the automatic or domain type.

+

address_set_id

+

No

+

String

+

ID of the associated IP address group. The value cannot be empty for the automatic type or for the manual or domain type.

+

address_set_name

+

No

+

String

+

IP address group name

+

domain_address_name

+

No

+

String

+

Name of the domain name address. This parameter cannot be left empty for the domain name type, and is empty for the manual or automatic type.

+

region_list_json

+

No

+

String

+

JSON value of the rule region list.

+

region_list

+

No

+

Array of IpRegionDto objects

+

Region list of a rule

+

domain_set_id

+

No

+

String

+

domain set id

+

domain_set_name

+

No

+

String

+

domain set name

+

ip_address

+

No

+

Array of strings

+

IP address list

+

address_group

+

No

+

Array of strings

+

address group

+

address_group_names

+

No

+

Array of AddressGroupVO objects

+

Address set list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 IpRegionDto

Parameter

+

Mandatory

+

Type

+

Description

+

region_id

+

No

+

String

+

region id

+

description_cn

+

No

+

String

+

cn description

+

description_en

+

No

+

String

+

en description

+

region_type

+

No

+

Integer

+

Region type, 0 means country, 1 means province, 2 means continent

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 RuleServiceDto

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

Yes

+

Integer

+

Service input type. The value 0 indicates manual input, and the value 1 indicates automatic input.

+

protocol

+

No

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

No

+

String

+

Source port

+

dest_port

+

No

+

String

+

Destination port

+

service_set_id

+

No

+

String

+

Service group ID. This parameter is left blank for the manual type and cannot be left blank for the automatic type.

+

service_set_name

+

No

+

String

+

Service group name

+

custom_service

+

No

+

Array of ServiceItem objects

+

custom service

+

service_group

+

No

+

Array of strings

+

Service group list

+

service_group_names

+

No

+

Array of AddressGroupVO objects

+

Service group name list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 ServiceItem

Parameter

+

Mandatory

+

Type

+

Description

+

protocol

+

No

+

Integer

+

Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.

+

source_port

+

No

+

String

+

source port

+

dest_port

+

No

+

String

+

destination port

+

description

+

No

+

String

+

description

+

name

+

No

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 10 AddressGroupVO

Parameter

+

Mandatory

+

Type

+

Description

+

set_id

+

No

+

String

+

set id

+

name

+

No

+

String

+

name

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 11 TagsVO

Parameter

+

Mandatory

+

Type

+

Description

+

tag_id

+

No

+

String

+

tag id

+

tag_key

+

No

+

String

+

tag key

+

tag_value

+

No

+

String

+

tag value

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

data

+

RuleId object

+

Rule ID

+
+
+ +
+ + + + + + + + + + + + + +
Table 13 RuleId

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

The following example shows how to update an IPv4 inbound rule. The rule name is TestRule, the source is the IP address 1.1.1.1, the destination is the IP address 2.2.2.2, the service type is service, the protocol type is TCP, the source port is 0, and the destination port is 0. Persistent connections are not supported. The action is to allow. The status is enabled.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rule/ceaa0407-b9c8-4dfd-9eca-b6ead2dfd031
+
+{
+  "name" : "TestRule",
+  "status" : 1,
+  "action_type" : 0,
+  "description" : "",
+  "source" : {
+    "type" : 0,
+    "address" : "1.1.1.1"
+  },
+  "destination" : {
+    "type" : 0,
+    "address" : "2.2.2.2"
+  },
+  "service" : {
+    "type" : 0,
+    "protocol" : 6,
+    "source_port" : "0",
+    "dest_port" : "0"
+  },
+  "type" : 0,
+  "address_type" : 0,
+  "tag" : {
+    "tag_key" : "",
+    "tag_value" : ""
+  },
+  "long_connect_enable" : 0,
+  "direction" : 0
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "ceaa0407-b9c8-4dfd-9eca-b6ead2dfd031"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateAclRuleOrder.html b/docs/cfw/api-ref/UpdateAclRuleOrder.html new file mode 100644 index 00000000..99356d71 --- /dev/null +++ b/docs/cfw/api-ref/UpdateAclRuleOrder.html @@ -0,0 +1,277 @@ + + +

Setting the Priority of an ACL Protection Rule

+

Function

This API is used to set the priority of an ACL protection rule.

+
+

URI

PUT /v1/{project_id}/acl-rule/order/{acl_rule_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

acl_rule_id

+

Yes

+

String

+

Rule ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

dest_rule_id

+

No

+

String

+

ID of the rule that the added rule will follow. This parameter cannot be left blank if the rule is not pinned on top, and is empty when the added rule is pinned on top.

+

top

+

No

+

Integer

+

Whether to pin on top. The options are as follows: 0: no; 1: yes.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

RuleId object

+

Rule ID list

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 RuleId

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Set the rule with the rule id of ffe9af47-d893-483b-86e3-ee5242e8cb15 in the project id9d80d070b6d44942af73c9c3d38e0429 under the rule with the id of 69c32dc5-f801-4294-98ee-978b51f97d35

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rule/order/ffe9af47-d893-483b-86e3-ee5242e8cb15
+
+{
+  "top" : 0,
+  "dest_rule_id" : "69c32dc5-f801-4294-98ee-978b51f97d35"
+}
+
+

Example Responses

Status code: 200

+

Rule sorting response

+
{
+  "data" : {
+    "id" : "ffe9af47-d893-483b-86e3-ee5242e8cb15"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Rule sorting response

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateAddressSet.html b/docs/cfw/api-ref/UpdateAddressSet.html new file mode 100644 index 00000000..27ebb520 --- /dev/null +++ b/docs/cfw/api-ref/UpdateAddressSet.html @@ -0,0 +1,285 @@ + + +

Updating Address Set Information

+

Function

This API is used to update address group information.

+
+

URI

PUT /v1/{project_id}/address-sets/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

ID of the IP address group

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

IP address group name

+

description

+

No

+

String

+

Address group description

+

address_type

+

No

+

Integer

+

Address type. The value can be 0 (IPv4), 1 (IPv6), or 2 (domain).

+

Enumeration values:

+
  • 0

    +
  • 1

    +
  • 2

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

UpdateAddressSetResponseData object

+

Data returned after an address group is updated

+
+
+ +
+ + + + + + + + + +
Table 6 UpdateAddressSetResponseData

Parameter

+

Type

+

Description

+

id

+

String

+

Id

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

In the project 9d80d070b6d44942af73c9c3d38e0429, change the name of the address set whose ID is cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16 to ABCD. Change its address set type to IPV4.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/address-sets/cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16
+
+{
+  "name" : "ABCD",
+  "description" : "",
+  "address_type" : 0
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "cf18f0b1-0ce7-4eb8-83b6-4b33c8448e16"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateBlackWhiteList.html b/docs/cfw/api-ref/UpdateBlackWhiteList.html new file mode 100644 index 00000000..ef2d71c2 --- /dev/null +++ b/docs/cfw/api-ref/UpdateBlackWhiteList.html @@ -0,0 +1,341 @@ + + +

Updating the Blacklist or Whitelist

+

Function

This API is used to update the blacklist or whitelist.

+
+

URI

PUT /v1/{project_id}/black-white-list/{list_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

list_id

+

Yes

+

String

+

Blacklist/Whitelist ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

direction

+

No

+

Integer

+

Indicates the address direction. 0: source address 1: destination address

+

address_type

+

No

+

Integer

+

Address type. 0: ipv4; 1: ipv6; 2: domain

+

address

+

No

+

String

+

IP address

+

protocol

+

No

+

Integer

+

Protocol type. The value is 6 for TCP, 17 for UDP, 1 for ICMP, 58 for ICMPv6, and -1 for any protocol.

+

port

+

No

+

String

+

Port

+

list_type

+

No

+

Integer

+

Blacklist/Whitelist type. The options are 4 (blacklist) and 5 (whitelist).

+

Enumeration values:

+
  • 4

    +
  • 5

    +
+

object_id

+

No

+

String

+

Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.

+

description

+

No

+

String

+

description

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Response to the request for updating a blacklist or whitelist

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Update the whitelist with the project id 9d80d070b6d44942af73c9c3d38e0429 and the protected object id as cfebd347-b655-4b84-b938-3c54317599b2. The direction is the source address, the address is 1.1.1.1, the protocol type is tcp, and the port is 1 ipv4 tcp

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/black-white-list/9d80d070b6d44942af73c9c3d38e042b
+
+{
+  "object_id" : "cfebd347-b655-4b84-b938-3c54317599b2",
+  "list_type" : 5,
+  "direction" : 0,
+  "address" : "1.1.1.1",
+  "protocol" : 6,
+  "port" : "1",
+  "address_type" : 0
+}
+
+

Example Responses

Status code: 200

+

Blacklist/Whitelist update response

+
{
+  "data" : {
+    "id" : "2eee3fe8-0b9b-49ac-8e7f-eaafa321e99a",
+    "name" : "test"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Blacklist/Whitelist update response

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateDnsServers.html b/docs/cfw/api-ref/UpdateDnsServers.html new file mode 100644 index 00000000..393273c0 --- /dev/null +++ b/docs/cfw/api-ref/UpdateDnsServers.html @@ -0,0 +1,288 @@ + + +

Updating the DNS Server List

+

Function

This API is used to update the DNS server list.

+
+

URI

PUT /v1/{project_id}/dns/servers

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

dns_server

+

No

+

Array of dns_server objects

+

DNS server

+

health_check_domain_name

+

No

+

String

+

Health check domain name

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 dns_server

Parameter

+

Mandatory

+

Type

+

Description

+

server_ip

+

No

+

String

+

DNS server IP address

+

is_customized

+

No

+

Integer

+

Indicates whether the DNS server is user-defined. 0: no; 1: yes

+

is_applied

+

No

+

Integer

+

Indicates whether to apply. 0: no; 1: yes

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

data

+

Array of strings

+

Domain name server list

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Update the settings of the DNS resolver whose project ID is 2349ba469daf4b7daf268bb0261d18b0. Set server 8.8.8.8 to the default server and put it in use. Set server IP address 192.168.0.2 to a user-defined server and do not put it in use.

+
https://{Endpoint}/v1/2349ba469daf4b7daf268bb0261d18b0/dns/servers
+
+{
+  "dns_server" : [ {
+    "server_ip" : "8.8.8.8",
+    "is_customized" : 0,
+    "is_applied" : 1
+  }, {
+    "server_ip" : "192.168.0.2",
+    "is_customized" : 1,
+    "is_applied" : 0
+  } ]
+}
+
+

Example Responses

Status code: 200

+

Response to the request for updating the DNS server list

+
{
+  "data" : [ "100.95.150.83", "114.114.114.114", "223.5.5.5", "223.6.6.6", "119.29.29.29", "8.8.8.8", "100.79.1.250", "100.79.1.240" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.01000001",
+  "error_msg" : "Duplicate DNS server IP address"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response to the request for updating the DNS server list

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateDomainSet.html b/docs/cfw/api-ref/UpdateDomainSet.html new file mode 100644 index 00000000..c2137d71 --- /dev/null +++ b/docs/cfw/api-ref/UpdateDomainSet.html @@ -0,0 +1,234 @@ + + +

Update Domain Set

+

Function

This API is used to update domain set.

+
+

URI

PUT /v1/{project_id}/domain-set/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

project ID

+

set_id

+

Yes

+

String

+

set id

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

name

+

description

+

No

+

String

+

description

+

set_id

+

No

+

String

+

domain set id

+

domain_set_type

+

No

+

Integer

+

domain set type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

DomainSetResponseData object

+

update domain set response

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 DomainSetResponseData

Parameter

+

Type

+

Description

+

id

+

String

+

id

+

name

+

String

+

name

+
+
+
+

Example Requests

For the firewall 7a004e79-0b8b-4679-ab20-267f3946e8ba in the project 9d80d070b6d44942af73c9c3d38e0429, change the domain set ID to 94da194d-24b2-4f60-919e-cf0bc76c75b3, the domain name to www.aaa.com, and name to test.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/domain-set/94da194d-24b2-4f60-919e-cf0bc76c75b3?fw_instance_id=7a004e79-0b8b-4679-ab20-267f3946e8ba&enterprise_project_id=default
+
+{
+  "name" : "test",
+  "description" : ""
+}
+
+

Example Responses

Status code: 200

+

Update Domain Set Response

+
{
+  "data" : {
+    "id" : "94da194d-24b2-4f60-919e-cf0bc76c75b3",
+    "name" : "test"
+  }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Update Domain Set Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateLogConfig.html b/docs/cfw/api-ref/UpdateLogConfig.html new file mode 100644 index 00000000..b780dda3 --- /dev/null +++ b/docs/cfw/api-ref/UpdateLogConfig.html @@ -0,0 +1,245 @@ + + +

Update Log Config

+

Function

This API is used to update log config.

+
+

URI

PUT /v1/{project_id}/cfw/logs/configuration

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

fw_instance_id

+

Yes

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+

lts_enable

+

Yes

+

Integer

+

whether to enable LTS

+

lts_log_group_id

+

Yes

+

String

+

Lts log group id

+

lts_attack_log_stream_id

+

No

+

String

+

Lts attack log stream id

+

lts_attack_log_stream_enable

+

Yes

+

Integer

+

whether to enable attack log streaming

+

lts_access_log_stream_id

+

No

+

String

+

Lts access log stream id

+

lts_access_log_stream_enable

+

Yes

+

Integer

+

whether to enable access log streaming

+

lts_flow_log_stream_id

+

No

+

String

+

Lts flow log stream id

+

lts_flow_log_stream_enable

+

Yes

+

Integer

+

whether to enable flow log streaming

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

String

+

Log Config Id

+
+
+
+

Example Requests

Update the log configuration of the firewall whose firewall instance id is 22c4a5db-504c-471f-8187-5192bc11de0b and project id is 408972e72dcd4c1a9b033e955802a36b, set LTS logs to disabled, and set flow logs, access control logs, and attack logs to disabled.

+
https://{Endpoint}/v1/408972e72dcd4c1a9b033e955802a36b/cfw/logs/configuration?fw_instance_id=22c4a5db-504c-471f-8187-5192bc11de0b&enterprise_project_id=default
+
+{
+  "fw_instance_id" : "22c4a5db-504c-471f-8187-5192bc11de0b",
+  "lts_enable" : 0,
+  "lts_log_group_id" : "20282428-a8f9-4e75-8246-165e64cf8ba8",
+  "lts_attack_log_stream_enable" : 0,
+  "lts_access_log_stream_enable" : 0,
+  "lts_flow_log_stream_enable" : 0
+}
+
+

Example Responses

Status code: 200

+

Update Log Config Response

+
{
+  "data" : "4e113415-7811-4bb3-bf5e-eb835953f7d4"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Update Log Config Response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/UpdateServiceSet.html b/docs/cfw/api-ref/UpdateServiceSet.html new file mode 100644 index 00000000..a7b47b18 --- /dev/null +++ b/docs/cfw/api-ref/UpdateServiceSet.html @@ -0,0 +1,281 @@ + + +

Modifying a Service Set

+

Function

This API is used to update a service group.

+
+

URI

PUT /v1/{project_id}/service-sets/{set_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

set_id

+

Yes

+

String

+

Service group ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

enterprise_project_id

+

No

+

String

+

Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.

+

fw_instance_id

+

No

+

String

+

Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Service group name

+

Minimum: 1

+

Maximum: 255

+

description

+

No

+

String

+

Service group description

+

Minimum: 1

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

data

+

IdObject object

+

Data returned when a service group is updated

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IdObject

Parameter

+

Type

+

Description

+

id

+

String

+

ID

+

name

+

String

+

name

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

error_msg

+

String

+

Description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Change the name and description of service group 221cfdca-3abf-4c30-ab0d-516a03c70866 of project 9d80d070b6d44942af73c9c3d38e0429 to ceshi2.

+
https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-sets/221cfdca-3abf-4c30-ab0d-516a03c70866
+
+{
+  "name" : "ceshi2",
+  "description" : "Description"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "data" : {
+    "id" : "221cfdca-3abf-4c30-ab0d-516a03c70866"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "CFW.00200005",
+  "error_msg" : "operation content does not exist"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/cfw_02_0011.html b/docs/cfw/api-ref/cfw_02_0011.html new file mode 100644 index 00000000..87648e76 --- /dev/null +++ b/docs/cfw/api-ref/cfw_02_0011.html @@ -0,0 +1,13 @@ + + +

Appendix

+
+
+ +
+ diff --git a/docs/cfw/api-ref/cfw_02_0012.html b/docs/cfw/api-ref/cfw_02_0012.html new file mode 100644 index 00000000..f4321cc0 --- /dev/null +++ b/docs/cfw/api-ref/cfw_02_0012.html @@ -0,0 +1,27 @@ + + +

API

+
+
+ +
+ diff --git a/docs/cfw/api-ref/cfw_02_0013.html b/docs/cfw/api-ref/cfw_02_0013.html new file mode 100644 index 00000000..06168005 --- /dev/null +++ b/docs/cfw/api-ref/cfw_02_0013.html @@ -0,0 +1,77 @@ + + +

Status Code

+
+
+
+ +
+ diff --git a/docs/cfw/api-ref/cfw_02_0016.html b/docs/cfw/api-ref/cfw_02_0016.html new file mode 100644 index 00000000..969d86de --- /dev/null +++ b/docs/cfw/api-ref/cfw_02_0016.html @@ -0,0 +1,20 @@ + + +

Change History

+
+
+ + + + + + + +

Release Date

+

Description

+

2024-04-30

+

This issue is the first official release.

+
+
+
+ diff --git a/docs/cfw/api-ref/cfw_02_0026.html b/docs/cfw/api-ref/cfw_02_0026.html new file mode 100644 index 00000000..001a75c7 --- /dev/null +++ b/docs/cfw/api-ref/cfw_02_0026.html @@ -0,0 +1,8 @@ + + +

API Usage Guidelines

+

Cloud service APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.

+

Cloud service APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

+

For details about how to use APIs, see API Usage Guidelines.

+
+ diff --git a/docs/cfw/api-ref/public_sys-resources/caution_3.0-en-us.png b/docs/cfw/api-ref/public_sys-resources/caution_3.0-en-us.png new file mode 100644 index 00000000..60f60762 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/caution_3.0-en-us.png differ diff --git a/docs/cfw/api-ref/public_sys-resources/danger_3.0-en-us.png b/docs/cfw/api-ref/public_sys-resources/danger_3.0-en-us.png new file mode 100644 index 00000000..47a9c723 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/danger_3.0-en-us.png differ diff --git a/docs/cfw/api-ref/public_sys-resources/delta.gif b/docs/cfw/api-ref/public_sys-resources/delta.gif new file mode 100644 index 00000000..0d1b1f67 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/delta.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/deltaend.gif b/docs/cfw/api-ref/public_sys-resources/deltaend.gif new file mode 100644 index 00000000..cc7da0fc Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/deltaend.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-arrowdn.gif b/docs/cfw/api-ref/public_sys-resources/icon-arrowdn.gif new file mode 100644 index 00000000..37942803 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-arrowdn.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-arrowrt.gif b/docs/cfw/api-ref/public_sys-resources/icon-arrowrt.gif new file mode 100644 index 00000000..6aaaa11c Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-arrowrt.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-caution.gif b/docs/cfw/api-ref/public_sys-resources/icon-caution.gif new file mode 100644 index 00000000..079c79b2 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-caution.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-danger.gif b/docs/cfw/api-ref/public_sys-resources/icon-danger.gif new file mode 100644 index 00000000..079c79b2 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-danger.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-huawei.gif b/docs/cfw/api-ref/public_sys-resources/icon-huawei.gif new file mode 100644 index 00000000..a31d60f8 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-huawei.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-note.gif b/docs/cfw/api-ref/public_sys-resources/icon-note.gif new file mode 100644 index 00000000..31be2b03 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-note.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-notice.gif b/docs/cfw/api-ref/public_sys-resources/icon-notice.gif new file mode 100644 index 00000000..40907065 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-notice.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-tip.gif b/docs/cfw/api-ref/public_sys-resources/icon-tip.gif new file mode 100644 index 00000000..c47bae05 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-tip.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/icon-warning.gif b/docs/cfw/api-ref/public_sys-resources/icon-warning.gif new file mode 100644 index 00000000..079c79b2 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/icon-warning.gif differ diff --git a/docs/cfw/api-ref/public_sys-resources/note_3.0-en-us.png b/docs/cfw/api-ref/public_sys-resources/note_3.0-en-us.png new file mode 100644 index 00000000..57a0e1f5 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/note_3.0-en-us.png differ diff --git a/docs/cfw/api-ref/public_sys-resources/notice_3.0-en-us.png b/docs/cfw/api-ref/public_sys-resources/notice_3.0-en-us.png new file mode 100644 index 00000000..fa4b6499 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/notice_3.0-en-us.png differ diff --git a/docs/cfw/api-ref/public_sys-resources/warning_3.0-en-us.png b/docs/cfw/api-ref/public_sys-resources/warning_3.0-en-us.png new file mode 100644 index 00000000..def5c356 Binary files /dev/null and b/docs/cfw/api-ref/public_sys-resources/warning_3.0-en-us.png differ diff --git a/docs/cfw/api-ref/topic_300000000.html b/docs/cfw/api-ref/topic_300000000.html new file mode 100644 index 00000000..8565ac39 --- /dev/null +++ b/docs/cfw/api-ref/topic_300000000.html @@ -0,0 +1,32 @@ + + +

Firewall Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000001.html b/docs/cfw/api-ref/topic_300000001.html new file mode 100644 index 00000000..7144ecc8 --- /dev/null +++ b/docs/cfw/api-ref/topic_300000001.html @@ -0,0 +1,20 @@ + + +

EIP Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000002.html b/docs/cfw/api-ref/topic_300000002.html new file mode 100644 index 00000000..4e2c26be --- /dev/null +++ b/docs/cfw/api-ref/topic_300000002.html @@ -0,0 +1,34 @@ + + +

ACL Rule Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000003.html b/docs/cfw/api-ref/topic_300000003.html new file mode 100644 index 00000000..39dff81e --- /dev/null +++ b/docs/cfw/api-ref/topic_300000003.html @@ -0,0 +1,22 @@ + + +

Blacklist and Whitelist Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000004.html b/docs/cfw/api-ref/topic_300000004.html new file mode 100644 index 00000000..28f62c3c --- /dev/null +++ b/docs/cfw/api-ref/topic_300000004.html @@ -0,0 +1,32 @@ + + +

Address Set Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000005.html b/docs/cfw/api-ref/topic_300000005.html new file mode 100644 index 00000000..b1ae89e8 --- /dev/null +++ b/docs/cfw/api-ref/topic_300000005.html @@ -0,0 +1,32 @@ + + +

Service Set Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000006.html b/docs/cfw/api-ref/topic_300000006.html new file mode 100644 index 00000000..a82b527e --- /dev/null +++ b/docs/cfw/api-ref/topic_300000006.html @@ -0,0 +1,34 @@ + + +

Domain Parse and Domain Set Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000007.html b/docs/cfw/api-ref/topic_300000007.html new file mode 100644 index 00000000..b9cefd9c --- /dev/null +++ b/docs/cfw/api-ref/topic_300000007.html @@ -0,0 +1,22 @@ + + +

IPS Management

+

+
+
+ + + +
+ diff --git a/docs/cfw/api-ref/topic_300000008.html b/docs/cfw/api-ref/topic_300000008.html new file mode 100644 index 00000000..b065de9d --- /dev/null +++ b/docs/cfw/api-ref/topic_300000008.html @@ -0,0 +1,26 @@ + + +

Log Management

+

+
+
+ + + +
+