Cisco Cisco Security Manager 4.5 Guia De Especificaciones

Descargar
Página de 217
 
 
 
  
 
Cisco Security Manager 4.4 API Specification (Version 1.1) 
 
OL- 29074-01 
Page  48
 
3.1.4.3 PortListPolicyObject 
A PortListPolicyObject extends from the BasePolicyObject class and inherits all its attributes.  A 
PortListPolicyObject defines an individual port or a group of ports. Policy definitions reference the 
PortListPolicyObject via the gid value. The contents of a PortListPolicyObject can also be “empty” in some cases 
when the inherited isGroup attribute is set to true. In such cases the PortListPolicyObject is itself a container 
reference to “other Port List Policy Objects”. The list of gid values for such a PolicyObject is obtained from the refs 
inherited attribute. 
 
In some cases the PortListPolicyObject can have a group of gid values from the refs attribute and additionally 
contain a definition for a single port list object. In such cases, the combination of references and the value inside the 
PortListPolicyObject element together constitute the groups of ports specified by the definition. 
 
The following table defines the contents of the ServicePolicyObject: 
Element 
 
Type 
Comment 
startPort 
PortIdentifier  Defines  the starting port. 
endPort 
PortIdentifier  Defines the end port. Start port to end port specify the range of ports 
specified by this PolicyObject. If start and end Ports are equal then the 
definition corresponds to a “single” port.  
Table 23: PortListPolicyObject Class Definition 
 
 
Figure 29: PortListPolicyObject XML Schema   
 
<
xs:complexType
 name
="PortListPolicyObject"> 
 
 
<
xs:complexContent
 
 
 
<
xs:extension
 base
="BasePolicyObject"> 
 
 
 
 
<
xs:sequence
 minOccurs
="0"
 maxOccurs
="unbounded"> 
 
 
 
 
 
<
xs:element
 name
="startPort"
 type
="PortIdentifier"
 minOccurs
="1"
 maxOccurs
="1"/> 
 
 
 
 
 
<
xs:element
 name
="endPort"
 type
="PortIdentifier"
 minOccurs
="1"
 maxOccurs
="1"/> 
 
 
 
 
</
xs:sequence
 
 
 
</
xs:extension
 
 
</
xs:complexContent
 
</
xs:complexType
>