CHAPTER 10
Using APIs for Policy Management
This chapter shows how to use the NSM APIs to manage policies.
This chapter contains the following sections:
•
Create a New Policy on page 97
•
Update an Existing Policy on page 99
•
Delete a Policy on page 100
•
Get a List of Policies on page 101
•
Get a Policy on page 101
•
Assign a Policy to a Device on page 102
•
Remove a Policy Assignment on page 103
Create a New Policy
This section provides Data Centric Service API sample code that creates a new policy.
testPolicyInsert.xml
<?xml version="1.0" encoding="UTF-8"?>
<nsmpolicy>
<name_>test100</name_>
<accesstype>regular</accesstype>
<rulebases>
<firewall>&1.rb_firewall.?????????rb_test100_130q6f9fs</firewall>
</rulebases>
</nsmpolicy>
testRuleBaseFirewallInsert.xml
<?xml version="1.0" encoding="UTF-8"?>
<rb_firewall>
<name_>rb_test100_130q6f9fs</name_>
<rules_collection>
<rules>
<name_></name_>
<direction>
<global>false</global>
<from_zone>trust</from_zone>
<to_zone>untrust</to_zone>
</direction>
<dialupvpn>
<enabled>false</enabled>
<src-or-dst>none</src-or-dst>
</dialupvpn>
<src_addr_collection>
97
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...