The openstack_dashboard.api.fwaas ModuleΒΆ

class openstack_dashboard.api.fwaas.Firewall(apiresource)[source]

Bases: openstack_dashboard.api.neutron.NeutronAPIDictWrapper

Wrapper for neutron firewall.

get_dict()[source]
class openstack_dashboard.api.fwaas.Policy(apidict)[source]

Bases: openstack_dashboard.api.neutron.NeutronAPIDictWrapper

Wrapper for neutron firewall policy.

get_dict()[source]
class openstack_dashboard.api.fwaas.Rule(apidict)[source]

Bases: openstack_dashboard.api.neutron.NeutronAPIDictWrapper

Wrapper for neutron firewall rule.

get_dict()[source]
openstack_dashboard.api.fwaas.firewall_create(request, **kwargs)[source]

Create a firewall for specified policy

Parameters:
  • request – request context
  • name – name for firewall
  • description – description for firewall
  • firewall_policy_id – policy id used by firewall
  • shared – boolean (default false)
  • admin_state_up – boolean (default true)
Returns:

Firewall object

openstack_dashboard.api.fwaas.firewall_delete(request, firewall_id)[source]
openstack_dashboard.api.fwaas.firewall_get(request, firewall_id)[source]
openstack_dashboard.api.fwaas.firewall_list(request, **kwargs)[source]
openstack_dashboard.api.fwaas.firewall_list_for_tenant(request, tenant_id, **kwargs)[source]

Return a firewall list available for the tenant.

The list contains firewalls owned by the tenant and shared firewalls. This is required because Neutron returns all resources including all tenants if a user has admin role.

openstack_dashboard.api.fwaas.firewall_unassociated_routers_list(*args, **kwargs)[source]
openstack_dashboard.api.fwaas.firewall_update(request, firewall_id, **kwargs)[source]
openstack_dashboard.api.fwaas.policy_create(request, **kwargs)[source]

Create a firewall policy

Parameters:
  • request – request context
  • name – name for policy
  • description – description for policy
  • firewall_rules – ordered list of rules in policy
  • shared – boolean (default false)
  • audited – boolean (default false)
Returns:

Policy object

openstack_dashboard.api.fwaas.policy_delete(request, policy_id)[source]
openstack_dashboard.api.fwaas.policy_get(request, policy_id)[source]
openstack_dashboard.api.fwaas.policy_insert_rule(request, policy_id, **kwargs)[source]
openstack_dashboard.api.fwaas.policy_list(request, **kwargs)[source]
openstack_dashboard.api.fwaas.policy_list_for_tenant(request, tenant_id, **kwargs)[source]

Return a policy list available for the tenant.

The list contains policies owned by the tenant and shared policies. This is required because Neutron returns all resources including all tenants if a user has admin role.

openstack_dashboard.api.fwaas.policy_remove_rule(request, policy_id, **kwargs)[source]
openstack_dashboard.api.fwaas.policy_update(request, policy_id, **kwargs)[source]
openstack_dashboard.api.fwaas.rule_create(request, **kwargs)[source]

Create a firewall rule

Parameters:
  • request – request context
  • name – name for rule
  • description – description for rule
  • protocol – protocol for rule
  • action – action for rule
  • source_ip_address – source IP address or subnet
  • source_port – integer in [1, 65535] or range in a:b
  • destination_ip_address – destination IP address or subnet
  • destination_port – integer in [1, 65535] or range in a:b
  • shared – boolean (default false)
  • enabled – boolean (default true)
Returns:

Rule object

openstack_dashboard.api.fwaas.rule_delete(request, rule_id)[source]
openstack_dashboard.api.fwaas.rule_get(request, rule_id)[source]
openstack_dashboard.api.fwaas.rule_list(request, **kwargs)[source]
openstack_dashboard.api.fwaas.rule_list_for_tenant(request, tenant_id, **kwargs)[source]

Return a rule list available for the tenant.

The list contains rules owned by the tenant and shared rules. This is required because Neutron returns all resources including all tenants if a user has admin role.

openstack_dashboard.api.fwaas.rule_update(request, rule_id, **kwargs)[source]

Previous topic

The openstack_dashboard.api.cinder Module

Next topic

The openstack_dashboard.api.base Module

Project Source

This Page