NOTE:
The COLOR and COMMENT arguments are optional for these
procedures.
Add Service Objects
This section shows how to use the Perl Client Library to add service objects.
To add a service object:
1.
Log in to the Perl client.
2.
Initialize the service object.
my $service = UTILS::SERVICE->init( 'SOAP'=>$connect );
3.
Add the object.
Enter:
'IS_ICMP'=>[
{'TYPE'=>'10',
'CODE'=>'11'},
{'TYPE'=>'20', 'CODE'=>'21'}
]
};
my $result = $service->addServiceObjects('OBJECT_NAME'=>'Service-1',
'APPLICATION'=>'FTP', 'GROUP_MEMBERS'=>$members );
$members = {
'NOT_ICMP'=>[
{'PROTOCOL'=>'UDP'},
{'PROTOCOL'=>'TCP','SRC_TYPE'=>'specific','DST_TYPE'=>'specific'},
{'PROTOCOL'=>'IGMP','SRC_TYPE'=>'specific-string','DST_TYPE'=>'specific-string'},
{'PROTOCOL'=>'IP','SRC_TYPE'=>'range','DST_TYPE'=>'range'}
]};
$result = $service->addServiceObjects('OBJECT_NAME'=>'Service-2',
'APPLICATION'=>'DNS', 'GROUP_MEMBERS'=>$members );
$members = {
'SUN_RPC'=>[
{'SUN_LOW'=>'101'},
{'SUN_LOW'=>'201'}
]};
$result =
$service->addServiceObjects('OBJECT_NAME'=>'Service-3',
'APPLICATION'=>'DNS', 'GROUP_MEMBERS'=>$members );
Copyright © 2010, Juniper Networks, Inc.
88
Network and Security Manager 2010.4 API Guide
Summary of Contents for NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 10: ...Copyright 2010 Juniper Networks Inc x Network and Security Manager 2010 4 API Guide...
Page 12: ...Copyright 2010 Juniper Networks Inc xii Network and Security Manager 2010 4 API Guide...
Page 20: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager 2010 4 API Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc 6 Network and Security Manager 2010 4 API Guide...
Page 34: ...Copyright 2010 Juniper Networks Inc 16 Network and Security Manager 2010 4 API Guide...
Page 92: ...Copyright 2010 Juniper Networks Inc 74 Network and Security Manager 2010 4 API Guide...
Page 98: ...Copyright 2010 Juniper Networks Inc 80 Network and Security Manager 2010 4 API Guide...
Page 100: ...Copyright 2010 Juniper Networks Inc 82 Network and Security Manager 2010 4 API Guide...
Page 112: ...Copyright 2010 Juniper Networks Inc 94 Network and Security Manager 2010 4 API Guide...
Page 128: ...Copyright 2010 Juniper Networks Inc 110 Network and Security Manager 2010 4 API Guide...
Page 138: ...Copyright 2010 Juniper Networks Inc 120 Network and Security Manager 2010 4 API Guide...
Page 152: ...Copyright 2010 Juniper Networks Inc 134 Network and Security Manager 2010 4 API Guide...
Page 165: ...PART 6 Index Index on page 149 147 Copyright 2010 Juniper Networks Inc...
Page 166: ...Copyright 2010 Juniper Networks Inc 148 Network and Security Manager 2010 4 API Guide...