Using Apis For Policy Management; Create A New Policy - Juniper NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1 Manual

Api guide
Table of Contents

Advertisement

CHAPTER 10

Using APIs for Policy Management

Create a New Policy

testPolicyInsert.xml
testRuleBaseFirewallInsert.xml
Copyright © 2010, Juniper Networks, Inc.
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
This section provides Data Centric Service API sample code that creates a new policy.
<?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>
<?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

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Network and security manager 2010.4

Table of Contents