CHAPTER 11
Using APIs for Shared Object
Management
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
Insert a Shared Object
This sample shows how to insert a shared object.
The following XML documentation is the input for the Data Centric Service API sample
code.
testAddressInsert.xml
<?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>
Sample Code
* Inserts an Address object
*/
public void testInsertAddressObject() {
try {
File addressFile = new File( File.sep pathO
"/Input/" + "testAddressInsert.xml");
105
Copyright © 2010, Juniper Networks, Inc.
Содержание NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 10: ...Copyright 2010 Juniper Networks Inc x Network and Security Manager 2010 4 API Guide...
Страница 12: ...Copyright 2010 Juniper Networks Inc xii Network and Security Manager 2010 4 API Guide...
Страница 20: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager 2010 4 API Guide...
Страница 24: ...Copyright 2010 Juniper Networks Inc 6 Network and Security Manager 2010 4 API Guide...
Страница 34: ...Copyright 2010 Juniper Networks Inc 16 Network and Security Manager 2010 4 API Guide...
Страница 58: ...Figure 10 IDP Rulebase Copyright 2010 Juniper Networks Inc 40 Network and Security Manager 2010 4 API Guide...
Страница 92: ...Copyright 2010 Juniper Networks Inc 74 Network and Security Manager 2010 4 API Guide...
Страница 98: ...Copyright 2010 Juniper Networks Inc 80 Network and Security Manager 2010 4 API Guide...
Страница 100: ...Copyright 2010 Juniper Networks Inc 82 Network and Security Manager 2010 4 API Guide...
Страница 112: ...Copyright 2010 Juniper Networks Inc 94 Network and Security Manager 2010 4 API Guide...
Страница 128: ...Copyright 2010 Juniper Networks Inc 110 Network and Security Manager 2010 4 API Guide...
Страница 138: ...Copyright 2010 Juniper Networks Inc 120 Network and Security Manager 2010 4 API Guide...
Страница 152: ...Copyright 2010 Juniper Networks Inc 134 Network and Security Manager 2010 4 API Guide...
Страница 165: ...PART 6 Index Index on page 149 147 Copyright 2010 Juniper Networks Inc...
Страница 166: ...Copyright 2010 Juniper Networks Inc 148 Network and Security Manager 2010 4 API Guide...