Copyright © 2010, Juniper Networks, Inc.
The application includes the
level for the object type. As with all requests for configuration information, the client
emits a
<get-configuration>
all levels of the configuration hierarchy from the root (represented by the
tag element) down to the level at which the
request is enclosed in an
<rpc>
<rpc>
<get-configuration>
<configuration>
<!-- opening tags for each parent of the level -->
<level matching="matching-expression"/>
<!-- closing tags for each parent of the level -->
</configuration>
</get-configuration>
</rpc>
In the value for the
matching
be either a full level name or a regular expression that matches the identifier name of
one or more instances of an object type:
object-type[name='regular-expression']"
The regular expression uses the notation defined in POSIX Standard 1003.2 for extended
(modern) UNIX regular expressions. Explaining regular expression syntax is beyond the
scope of this document, but Table 7 on page 91 specifies which character or characters
are matched by some of the regular expression operators that can be used in the
expression. In the descriptions, the term term refers to either a single alphanumeric
character or a set of characters enclosed in square brackets, parentheses, or braces.
NOTE: The
attribute is not case-sensitive.
matching
Table 7: Regular Expression Operators for the matching Attribute
Operator
Matches
(period)
One instance of any character except the space.
.
(asterisk)
Zero or more instances of the immediately preceding term.
*
(plus sign)
One or more instances of the immediately preceding term.
+
(question mark)
Zero or one instance of the immediately preceding term.
?
(pipe)
One of the terms that appear on either side of the pipe operator.
|
(caret)
The start of a line, when the caret appears outside square brackets.
^
One instance of any character that does not follow it within square
brackets, when the caret is the first character inside square brackets.
matching
attribute in the empty tag that represents a parent
tag element that encloses the tag elements representing
matching
attribute is included. The entire
tag element:
attribute, each level in the XPath-like representation can
Chapter 4: Requesting Information
<configuration>
91
Need help?
Do you have a question about the JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 and is the answer not in the manual?
Questions and answers