Xml Request For All Configuration Data; Xml Request For All Configuration Data Per Component - 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
The actual data returned in a <Get> request will depend on the value of the Source attribute as defined
in the section
The term "container" is used in this document as a general reference to any grouping of related data, for
Note
example, all of the configuration data for a particular Border Gateway Protocol (BGP) neighbor. The
term "table" is used more specifically to denote a type of container that holds a list of named
homogeneous objects. For example, the BGP neighbor address table contains a list of neighbor
addresses, each of which is identified by its IP address. All table entries in the Cisco CRS-1 Series
Carrier Routing System (Cisco CRS-1 Series) XML API are identified by the unique value of their
<Naming> element.

XML Request for All Configuration Data

Use the empty <Configuration/> tag to retrieve the entire configuration object class hierarchy.
The following example shows how to get the entire configuration hierarchy by specifying the empty
<Configuration/> tag.
Sample XML Client Request to <Get> the Entire Configuration Object Class Hierarchy
<?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>
</Get>
</Response>

XML Request for All Configuration Data per Component

All the configuration data for a component is retrieved by specifying the highest level tag for the
component.
In the following example, all the configuration data for BGP is retrieved by specifying the empty
<BGP/> tag.
Sample XML Client Request for All BGP Configuration Data
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
Cisco CRS-1 Series Carrier Routing System XML API Guide
5-64
"Getting Configuration Data" section on page
<Configuration/>
<Configuration>
.
.
.
response data goes here
.
.
.
</Configuration>
Chapter 5
Cisco CRS-1 Series XML and Native Data Access Techniques
2-28.
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents