Merge "Add firewall-policy insert_rule/remove_rule"
This commit is contained in:
commit
ed11113c62
@ -8877,6 +8877,28 @@
|
|||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
|
<!ENTITY firewallPolicyInsertBeforeParameter '
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
required="false" name="insert_before" style="plain" type="csapi:UUID">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
The UUID of the firewall_rule. A new firewall_rule
|
||||||
|
will be inserted before this firewall_rule.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
</param>'>
|
||||||
|
<!ENTITY firewallPolicyInsertAfterParameter '
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
required="false" name="insert_after" style="plain" type="csapi:UUID">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
The UUID of the firewall_rule. A new firewall_rule
|
||||||
|
will be inserted after this firewall_rule.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
</param>'>
|
||||||
<!ENTITY firewallPolicyResponseParameters '
|
<!ENTITY firewallPolicyResponseParameters '
|
||||||
&firewall_policy-auditedResponseParameter;
|
&firewall_policy-auditedResponseParameter;
|
||||||
&firewall_policy-descriptionResponseParameter;
|
&firewall_policy-descriptionResponseParameter;
|
||||||
@ -8886,92 +8908,93 @@
|
|||||||
&firewall_policy-sharedResponseParameter;
|
&firewall_policy-sharedResponseParameter;
|
||||||
&firewall_policy-tenant_idResponseParameter;'>
|
&firewall_policy-tenant_idResponseParameter;'>
|
||||||
<!ENTITY firewall_policy-auditedResponseParameter '
|
<!ENTITY firewall_policy-auditedResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
|
||||||
name="audited" style="plain" type="xsd:boolean">
|
name="audited" style="plain" type="xsd:boolean">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Indicates whether the policy has been audited.
|
Indicates whether the policy has been audited.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Each time that the firewall policy or its associated rules are changed,
|
Each time that the firewall policy or its associated rules are
|
||||||
the API sets this attribute to <code>False</code>. To audit the policy,
|
changed, the API sets this attribute to <code>False</code>. To
|
||||||
the policy owner must explicitly update the policy to set this attribute
|
audit the policy, the policy owner must explicitly update the
|
||||||
to <code>True</code>.
|
policy to set this attribute to <code>True</code>.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewall_policy-descriptionResponseParameter '
|
<!ENTITY firewall_policy-descriptionResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
|
||||||
name="description" style="plain" type="xsd:string">
|
name="description" style="plain" type="xsd:string">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
xml:lang="EN">
|
<para>
|
||||||
<para>
|
The human-readable description for the firewall policy.
|
||||||
The human-readable description for the firewall policy.
|
</para>
|
||||||
</para>
|
</wadl:doc>
|
||||||
</wadl:doc>
|
</param>'>
|
||||||
|
<!ENTITY firewall_policy-firewall_listResponseParameter '
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
|
name="firewall_list" style="plain" type="xsd:list">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
A list of the UUIDs for firewall associated with the
|
||||||
|
firewall policy.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewall_policy-firewall_rulesResponseParameter '
|
<!ENTITY firewall_policy-firewall_rulesResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
name="firewall_rules" style="plain" type="xsd:list">
|
||||||
name="firewall_policy_id" style="plain" type="xsd:list">
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<para>
|
||||||
xml:lang="EN">
|
A list of the UUIDs for firewall rule associated with the
|
||||||
<para>
|
firewall policy.
|
||||||
A list of rules that are associated with the firewall policy.
|
</para>
|
||||||
</para>
|
</wadl:doc>
|
||||||
</wadl:doc>
|
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewall_policy-idResponseParameter '
|
<!ENTITY firewall_policy-idResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
|
||||||
name="id" style="plain" type="csapi:UUID">
|
name="id" style="plain" type="csapi:UUID">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
xml:lang="EN">
|
<para>
|
||||||
<para>
|
The UUID for the firewall policy.
|
||||||
The UUID for the firewall policy.
|
</para>
|
||||||
</para>
|
</wadl:doc>
|
||||||
</wadl:doc>
|
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewall_policy-nameResponseParameter '
|
<!ENTITY firewall_policy-nameResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
|
||||||
name="name" style="plain" type="xsd:string">
|
name="name" style="plain" type="xsd:string">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
xml:lang="EN">
|
<para>
|
||||||
<para>
|
Human-readable name for the firewall policy.
|
||||||
Human-readable name for the firewall policy. Does not have to be unique.
|
Does not have to be unique.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewall_policy-sharedResponseParameter '
|
<!ENTITY firewall_policy-sharedResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
|
||||||
name="shared" style="plain" type="xsd:boolean">
|
name="shared" style="plain" type="xsd:boolean">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Indicates whether the firewall policy is shared across all tenants.
|
Indicates whether the firewall policy is shared across all tenants.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewall_policy-tenant_idResponseParameter '
|
<!ENTITY firewall_policy-tenant_idResponseParameter '
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02" required="true"
|
||||||
required="true"
|
|
||||||
name="tenant_id" style="plain" type="csapi:UUID">
|
name="tenant_id" style="plain" type="csapi:UUID">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
xml:lang="EN">
|
<para>
|
||||||
<para>
|
The UUID of the tenant who owns the firewall policy.
|
||||||
The owner of the firewall policy.
|
</para>
|
||||||
</para>
|
</wadl:doc>
|
||||||
</wadl:doc>
|
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY firewallPolicyRequestParameters '
|
<!ENTITY firewallPolicyRequestParameters '
|
||||||
&firewall_policy-auditedRequestParameter;
|
&firewall_policy-auditedRequestParameter;
|
||||||
@ -9070,6 +9093,16 @@
|
|||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
|
<!ENTITY firewallRuleIdParameter '
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
required="true" name="firewall_rule_id" style="plain" type="csapi:UUID">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
The UUID of the firewall rule.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
</param>'>
|
||||||
<!ENTITY firewallRulesRequestParameters '
|
<!ENTITY firewallRulesRequestParameters '
|
||||||
&firewall_rule-tenant_idRequestParameter;
|
&firewall_rule-tenant_idRequestParameter;
|
||||||
&firewall_rule-nameRequestParameter;
|
&firewall_rule-nameRequestParameter;
|
||||||
|
@ -44,6 +44,12 @@
|
|||||||
<method href="#showFirewallPolicy"/>
|
<method href="#showFirewallPolicy"/>
|
||||||
<method href="#updateFirewallPolicy"/>
|
<method href="#updateFirewallPolicy"/>
|
||||||
<method href="#deleteFirewallPolicy"/>
|
<method href="#deleteFirewallPolicy"/>
|
||||||
|
<resource path="insert_rule" id="insert_rule">
|
||||||
|
<method href="#insert_ruleFirewallPolicy"/>
|
||||||
|
</resource>
|
||||||
|
<resource path="remove_rule" id="remove_rule">
|
||||||
|
<method href="#remove_ruleFirewallPolicy"/>
|
||||||
|
</resource>
|
||||||
</resource>
|
</resource>
|
||||||
</resource>
|
</resource>
|
||||||
<resource id="firewall_rules" path="firewall_rules">
|
<resource id="firewall_rules" path="firewall_rules">
|
||||||
@ -288,6 +294,86 @@
|
|||||||
<!-- &fault401; -->
|
<!-- &fault401; -->
|
||||||
<!-- &fault404; -->
|
<!-- &fault404; -->
|
||||||
</method>
|
</method>
|
||||||
|
<method name="PUT" id="insert_ruleFirewallPolicy">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
|
||||||
|
title="Insert rule into a firewall policy">
|
||||||
|
<para role="shortdesc">
|
||||||
|
Insert firewall rule into a policy.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
A firewall_rule_id is inserted relative to the position of the
|
||||||
|
firewall_rule_id set in <code>insert_before</code> or
|
||||||
|
<code>insert_after</code>. If <code>insert_before</code> is set,
|
||||||
|
<code>insert_after</code> is ignored. If both
|
||||||
|
<code>insert_before</code> and <code>insert_after</code> are not
|
||||||
|
set, the new firewall_rule_id is inserted at the top of the
|
||||||
|
policy.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
<request>
|
||||||
|
<representation mediaType="application/json">
|
||||||
|
<wadl:doc xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<xsdxt:code href="../samples/firewalls/firewall-policy-insert-rule-request.json"/>
|
||||||
|
</wadl:doc>
|
||||||
|
&firewallRuleIdParameter;
|
||||||
|
&firewallPolicyInsertBeforeParameter;
|
||||||
|
&firewallPolicyInsertAfterParameter;
|
||||||
|
</representation>
|
||||||
|
</request>
|
||||||
|
<response status="200">
|
||||||
|
<representation mediaType="application/json">
|
||||||
|
<wadl:doc xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<xsdxt:code href="../samples/firewalls/firewall-policy-insert-rule-response.json"/>
|
||||||
|
</wadl:doc>
|
||||||
|
&firewall_policy-auditedResponseParameter;
|
||||||
|
&firewall_policy-descriptionResponseParameter;
|
||||||
|
&firewall_policy-firewall_listResponseParameter;
|
||||||
|
&firewall_policy-firewall_rulesResponseParameter;
|
||||||
|
&firewall_policy-idResponseParameter;
|
||||||
|
&firewall_policy-nameResponseParameter;
|
||||||
|
&firewall_policy-sharedResponseParameter;
|
||||||
|
&firewall_policy-tenant_idResponseParameter;
|
||||||
|
</representation>
|
||||||
|
</response>
|
||||||
|
&fault400;
|
||||||
|
&fault401;
|
||||||
|
&fault404;
|
||||||
|
&fault409;
|
||||||
|
</method>
|
||||||
|
<method name="PUT" id="remove_ruleFirewallPolicy">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
|
||||||
|
title="Remove rule from firewall policy">
|
||||||
|
<para role="shortdesc">
|
||||||
|
Remove firewall rule from a policy.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
<request>
|
||||||
|
<representation mediaType="application/json">
|
||||||
|
<wadl:doc xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<xsdxt:code href="../samples/firewalls/firewall-policy-remove-rule-request.json"/>
|
||||||
|
</wadl:doc>
|
||||||
|
&firewallRuleIdParameter;
|
||||||
|
</representation>
|
||||||
|
</request>
|
||||||
|
<response status="200">
|
||||||
|
<representation mediaType="application/json">
|
||||||
|
<wadl:doc xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
|
||||||
|
<xsdxt:code href="../samples/firewalls/firewall-policy-remove-rule-response.json"/>
|
||||||
|
</wadl:doc>
|
||||||
|
&firewall_policy-auditedResponseParameter;
|
||||||
|
&firewall_policy-descriptionResponseParameter;
|
||||||
|
&firewall_policy-firewall_listResponseParameter;
|
||||||
|
&firewall_policy-firewall_rulesResponseParameter;
|
||||||
|
&firewall_policy-idResponseParameter;
|
||||||
|
&firewall_policy-nameResponseParameter;
|
||||||
|
&firewall_policy-sharedResponseParameter;
|
||||||
|
&firewall_policy-tenant_idResponseParameter;
|
||||||
|
</representation>
|
||||||
|
</response>
|
||||||
|
&fault400;
|
||||||
|
&fault401;
|
||||||
|
&fault404;
|
||||||
|
</method>
|
||||||
<method name="DELETE" id="deleteFirewallPolicy">
|
<method name="DELETE" id="deleteFirewallPolicy">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN" title="Delete firewall policy">
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN" title="Delete firewall policy">
|
||||||
<para role="shortdesc">
|
<para role="shortdesc">
|
||||||
|
Loading…
Reference in New Issue
Block a user