Xml Request Using Operation Scope (Content Attribute) - Cisco CRS-1 - Carrier Routing System Router Api Manual

Carrier routing system xml api guide
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Available Set of Native Data Access Techniques
</Get>
</Response>

XML Request Using Operation Scope (Content Attribute)

The Content attribute is used on any table element in order to specify the scope of a <Get> operation.
Currently two Content attribute values are supported. (See
Table 5-1
Content Attribute
All
Entries
If the Content attribute is specified on a nontable element, it will be ignored. Note also that the Content
and Count attributes can be used together on the same table element.
In the follow example, the Content attribute is used to list all configured BGP neighbors:
Sample XML Client Request Using the All Content Attribute
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
</Get>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>
Cisco CRS-1 Series Carrier Routing System XML API Guide
5-74
</BGPEntity>
</AS>
</BGP>
</Configuration>
Content Attributes
Description
Use to get all leaf items and their values. All is the default when the Content
attribute is not specified on a table element.
Use to get the Naming information for each entry within a specified table
object class. Entries provides a one-level get capability.
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable Content="Entries"/>
</BGPEntity>
</AS>
</BGP>
</Configuration>
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable Content="Entries">
<Neighbor>
Chapter 5
Cisco CRS-1 Series XML and Native Data Access Techniques
Table
5-1.)
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents