Cisco Cisco Prime Network Services Controller 3.0 개발자 가이드
Page 32
OL-28369-01
Resource Management
The Resource Management component performs the following functions:
●
Creates an edge firewall.
●
Assigns compute and edge firewalls to policies.
●
Queries for available firewall instances.
●
Associates firewall instances with a managed object.
●
Allows the binding of organizations to resource pools.
●
Interacts with virtual centers to retrieve VM attributes.
The following topics provide examples for working with firewalls:
●
●
●
●
Create an Edge Firewall
The following example creates an edge firewall with one inside data interface and one outside data interface.
Request
<configConfMos
cookie="<real_cookie">
<inConfigs>
<inConfigs>
<pair key="org-root/efw-default">
<fwEdgeFirewall
dn="org-root/efw-default"
rn="efw-default"
name="default"
haMode="standalone"
status="created"/>
rn="efw-default"
name="default"
haMode="standalone"
status="created"/>
</pair>
<pair key="org-root/efw-default/interface-inside">
<pair key="org-root/efw-default/interface-inside">
<fwDataInterface
dn="org-root/efw-default/interface-inside"
name="inside"
role="inside"
ipSubnet="255.255.255.0"
ipAddressPrimary="10.10.10.1"
status="created"/>
name="inside"
role="inside"
ipSubnet="255.255.255.0"
ipAddressPrimary="10.10.10.1"
status="created"/>
</pair>
<pair key="org-root/efw-default/interface-outside">
<pair key="org-root/efw-default/interface-outside">
<fwDataInterface
dn="org-root/efw-default/interface-outside"
name="outside"
role="outside"
ipSubnet="255.255.255.0"
ipAddressPrimary="10.10.20.1"
status="created"/>
name="outside"
role="outside"
ipSubnet="255.255.255.0"
ipAddressPrimary="10.10.20.1"
status="created"/>
</pair>
</inConfigs>
</configConfMos>
Response
<configConfMos
cookie="<real_cookie>"
commCookie="5/12/0/35da"
commCookie="5/12/0/35da"