Cisco Cisco Security Manager 4.6 Guia De Especificaciones
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
Cisco Security Manager 4.4 API Specification (Version 1.1)
OL- 29074-01
Page 49
3.1.4.4 ServicePolicyObject
A ServicePolicyObject extends from the BasePolicyObject class and inherits all its attributes. A
ServicePolicyObject defines services such as tcp, udp etc. Policy definitions reference the ServicePolicyObject via
the gid value. The contents of a ServicePolicyObject can also be “empty” in some cases when the inherited isGroup
attribute is set to true. In such cases the ServicePolicyObject is itself a container reference to “other Service Policy
Objects”. The list of gid values for such a PolicyObject is obtained from the refs inherited attribute.
ServicePolicyObject defines services such as tcp, udp etc. Policy definitions reference the ServicePolicyObject via
the gid value. The contents of a ServicePolicyObject can also be “empty” in some cases when the inherited isGroup
attribute is set to true. In such cases the ServicePolicyObject is itself a container reference to “other Service Policy
Objects”. The list of gid values for such a PolicyObject is obtained from the refs inherited attribute.
In some cases the ServicePolicyObject can have a group of gid values from the refs attribute and additionally
contain a definition for a single service. In such cases, the combination of references and the value inside the
ServicePolicyObject element together constitute the groups of ports specified by the definition.
contain a definition for a single service. In such cases, the combination of references and the value inside the
ServicePolicyObject element together constitute the groups of ports specified by the definition.
The following table defines the contents of the ServicePolicyObject:
Element
Type
Comment
protocol
String
A string defining a protocol such as tcp, udp etc.
sourcePort
Complex
Element container that holds the source port data. This is a
choice type complex type so only one of the sub-elements
will be defined.
choice type complex type so only one of the sub-elements
will be defined.
sourcePort.port
Unsigned Int
The actual port value.
sourcePort.portRef
ObjectIdentifier Gid reference to a PortListPolicyObject.
destinationPort
Complex
Element container that holds the destination port data.
This is a choice type complex type so only one of the sub-
elements will be defined.
This is a choice type complex type so only one of the sub-
elements will be defined.
destinationPort.port
Unsigned Int
The actual port value.
destinationPort.portRef
ObjectIdentifier Gid reference to a PortListPolicyObject.
icmpMessage
String
ICMP Message content.
Table 24: ServicePolicyObject Class Definition