Requesting All Configuration Objects Of A Specified Type - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Requesting All Configuration Objects of a Specified Type

Copyright © 2010, Juniper Networks, Inc.
The application can also request additional configuration elements of the same or other
types by including the appropriate tag elements in the same
element. For more information, see "Requesting Multiple Configuration Elements
Simultaneously" on page 93.
The following example shows how to request the contents of the
hierarchy level in the candidate configuration. The output is tagged with Junos XML tag
elements (the default).
Client Application
Junos XML Protocol Server
<rpc>
<get-configuration>
<configuration>
<system>
<login/>
</system>
</configuration>
</get-configuration>
</rpc>
<rpc-reply xmlns:junos="URL ">
</rpc-reply>
To request complete information about all configuration objects of a specified type in a
hierarchy level, a client application emits a
the tag elements representing all levels of the configuration hierarchy from the root
(represented by the
<configuration>
for the object type. An empty tag represents the requested object type. The entire request
is enclosed in an
tag element.
<rpc>
This type of request is useful when the object's parent hierarchy level has child objects
of multiple types and the application is requesting just one of the types. If the requested
object is the only possible child type, then this type of request yields the same output as
a request for the complete parent hierarchy (described in "Requesting a Hierarchy Level
or Container Object Without an Identifier" on page 82).
<rpc>
<get-configuration>
<configuration>
<!-- opening tags for each parent of the object type -->
<object-type/>
<!-- closing tags for each parent of the object type -->
<configuration junos:changed-seconds=" seconds " \
junos:changed-localtime="timestamp">
<system>
<login>
<user>
<name>barbara</name>
<full-name>Barbara Anderson</full-name>
<!- - other child tags for this user- ->
</user>
<!- - other children of <login> - ->
</login>
</system>
</configuration>
<get-configuration>
tag element) down to the immediate parent level
Chapter 4: Requesting Information
tag
<get-configuration>
[edit system login]
tag element that encloses
83

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents