Chapter 11 Using Apis For Shared Object Management; Insert A Shared Object - Juniper NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1 Manual

Api guide
Table of Contents

Advertisement

CHAPTER 11
Using APIs for Shared Object
Management

Insert a Shared Object

testAddressInsert.xml
Sample Code
Copyright © 2010, Juniper Networks, Inc.
The following sections show how to use the NSM APIs to manage shared objects.
Insert a Shared Object on page 105
Replace a Shared Object on page 106
Delete a Shared Object on page 108
Get a List of Shared Objects on page 108
Get a Shared Object on page 109
This sample shows how to insert a shared object.
The following XML documentation is the input for the Data Centric Service API sample
code.
<?xml version="1.0" encoding="UTF-8"?>
<address>
<name_>AddrA</name_>
<address>
<zone>trust</zone>
<address>
<subnet>
<ip>1.1.1.8</ip>
<netmask>21</netmask>
</subnet>
</address>
</address>
<comment>AddrA object</comment>
</address>
* Inserts an Address object
*/
public void testInsertAddressObject() {
try {
File addressFile = new File(webDir + File.separator + pathOfInput +
"/Input/" + "testAddressInsert.xml");
105

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Network and security manager 2010.4

Table of Contents