forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
12 KiB
12 KiB
Querying a Firewall Policy
Function
This API is used to query details about a specific firewall policy.
Request Parameters
None
Example Request
GET https://{Endpoint}/v2.0/fwaas/firewall_policies/fed2d88f-d0e7-4cc5-bd7e-c495f67037b6
Response Parameters
Parameter |
Type |
Description |
---|---|---|
firewall_policy |
firewall_policy object |
Specifies the firewall policy. For details, see Table 3. |
Attribute |
Type |
Description |
---|---|---|
id |
String |
Specifies the UUID of the firewall policy. |
name |
String |
Specifies the name of the firewall policy. |
description |
String |
Provides supplementary information about the firewall policy. |
tenant_id |
String |
Specifies the project ID. |
firewall_rules |
Array of strings |
Specifies the firewall rules referenced by the firewall policy. |
audited |
Boolean |
Specifies the audit flag. |
public |
Boolean |
Specifies whether the firewall policy can be shared by different tenants. |
project_id |
String |
Specifies the project ID. |
Example Response
{ "firewall_policy": { "description": "", "firewall_rules": [ "3c0e6267-73df-4d9a-87a6-e226f2db2036" ], "tenant_id": "23c8a121505047b6869edf39f3062712", "public": false, "id": "fed2d88f-d0e7-4cc5-bd7e-c495f67037b6", "audited": false, "name": "bobby_fwp1", "project_id": "23c8a121505047b6869edf39f3062712" } }
Status Code
See Status Codes.
Error Code
See Error Codes.
Parent topic: Firewall