CHAPTER 13
Using APIs for Device Management
•
Retrieve Domains on page 117
•
Retrieve the Device List in One Domain on page 117
Retrieve Domains
This System Service API code sample retrieves information about all domains.
public void testGetSystemInfo() {
try {
GetSystemInfoRequest getSystemInfoRequest = new GetSystemInfoRequest();
getSystemInfoRequest.setAuthToken(authToken);
stub.GetSystemInfoRequest(getSystemInfoRequest);
} catch (Exception e) {
e.printStackTrace();
}
}
Retrieve the Device List in One Domain
This Data Centric Service API code sample retrieves a list of devices in one domain.
/**
* Gets the IP addresses and the interfaces of all devices in one domain.
*/
public void testGetDeviceObjectByCategory_Filter() {
try {
System.out.println("Running testGetDeviceObjectByCategory_Filter()");
//creates an object of GetObjectViewByCategoryRequest:
:
GetObjectViewByCategoryRequest request = new
GetObjectViewByCategoryRequest();
request.setAuthToken(DataCentricServiceTest.authToken);
request.setCategory("deviceobj");
request.setDomainId(new UnsignedShort("1"));
//specifies the filter to retrieve the ip addresse and the interfaces:
117
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...