Requesting An Indicator For Identifiers - 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 an Indicator for Identifiers

Copyright © 2010, Juniper Networks, Inc.
To request that the Junos XML protocol server indicate whether a child configuration
element is an identifier for its parent element, a client application includes the
attribute in the opening
junos:key="key"
session, which appears here on two lines for legibility only:
<junoscript version="version" hostname="hostname" junos:key="key"
release="release-code">
For more information about the
Tag" on page 40.
When the identifier indicator is requested, the Junos XML protocol server includes the
attribute in the opening tag for each identifier. As always, the Junos XML
junos:key="key"
protocol server encloses its response in
For information about the attributes in the opening
Information from the Committed or Candidate Configuration" on page 65. In the following,
the identifier tag element is called
<rpc-reply xmlns:junos="URL">
<configuration attributes>
<!-- opening tag for each parent of the object -->
<!-- For each configuration object with an identifier -->
<object>
<name junos:key="key">identifier</name>
<!-- additional children of object -->
</object>
<!-- closing tag for each parent of the object -->
</configuration>
</rpc-reply>
The client application can include one or more of the following other attributes in the
<get-configuration/>
tag or opening
is included in the opening
changed
, which is described in "Requesting a Change Indicator for Configuration
Elements" on page 70
, which is described in "Requesting Information from the Committed or
database
Candidate Configuration" on page 65
inherit
and optionally
groups
for Configuration Groups" on page 74
When requesting an indicator for identifiers, it does not make sense to include the
attribute in the
format="text"
"Requesting Output as Formatted ASCII Text or Junos XML Tag Elements" on page 68).
The
junos:key="key"
attribute appears only in Junos XML-tagged output, which is the
default output format.
The following example shows how indicators for identifiers appear on configuration
elements at the
[edit interfaces]
<junoscript>
tag, see "Emitting the Opening <junoscript>
<junoscript>
<rpc-reply>
<configuration>
:
<name>
<get-configuration>
tag:
<junoscript>
, which are described in "Specifying the Output Format
tag element (as described in
<get-configuration>
hierarchy level in the candidate configuration when the
Chapter 4: Requesting Information
tag for the Junos XML protocol
and
tag elements.
<configuration>
tag, see "Requesting
tag when the
junos:key
attribute
73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents