Post on 10-Jul-2020
API Reference Guide
NetworkAppsAPI release 12.3
Author
Juniper
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 2
Revision History
Revision Date Issued Description Author
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 3
Table of Contents
1 Introduction ............................................................................................................................................................ 12
1.1 Juniper applications supported in 12.3 ........................................................................................................... 12
1.2 Payload / response types supported – XML and JSON ................................................................................... 12
1.3 Media types supported ................................................................................................................................... 12
1.4 Structure of Request/Response supported .................................................................................................... 13
2 Customer Management API .................................................................................................................................... 14
2.1 GET All Customers ........................................................................................................................................... 14
2.2 GET All Customers with Pagination ................................................................................................................. 14
2.3 GET Customer – Filtered based on AccountNo ............................................................................................... 15
2.4 GET Customer ................................................................................................................................................. 16
2.5 Add Customer ................................................................................................................................................. 16
2.6 Modify Customer ............................................................................................................................................ 17
2.7 Delete Customer ............................................................................................................................................. 18
3 PE Device API........................................................................................................................................................... 19
3.1 Get All PEDevices ............................................................................................................................................ 19
3.2 Get PEDevice ................................................................................................................................................... 20
4 Resource Pool ......................................................................................................................................................... 22
4.1 Resource Pool for VLAN .................................................................................................................................. 22
4.2 Resource Pool for Virtual Circuit ..................................................................................................................... 22
4.3 Resource Pool for Route Distinguisher (RD) ................................................................................................... 23
4.4 Resource Pool for Route Target (RT)............................................................................................................... 23
4.5 Resource Pool for IPV4Address Profile ........................................................................................................... 23
4.5.1 Get All Resource Pools ............................................................................................................................ 24
4.5.2 Get Resource Pool ................................................................................................................................... 24
4.5.3 Create IPV4 Resource Pool ...................................................................................................................... 24
4.5.4 Delete IPV4 Resource Pool ...................................................................................................................... 25
5 Eline P2P (with LDP) – Ethernet, ATM, TDM ........................................................................................................... 26
5.1 Service-Definition API ..................................................................................................................................... 26
5.1.1 Get All Service Definitions ....................................................................................................................... 26
5.1.2 Get All Service Definitions with Pagination............................................................................................. 28
5.1.3 Get Service Definition ............................................................................................................................. 29
5.1.4 Create Service Definition ........................................................................................................................ 30
5.1.5 Publish/UnPublish Service Definition...................................................................................................... 32
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 4
5.1.6 Delete Service Definition......................................................................................................................... 33
5.2 Service-Order Management API ..................................................................................................................... 34
5.2.1 Get All Service Orders ............................................................................................................................. 34
5.2.2 Get All Service Orders with Pagination ................................................................................................... 35
5.2.3 Get All Service Orders – Filtered based on CustomerId/CustomerName ............................................... 36
5.2.4 Get Service Order .................................................................................................................................... 37
5.2.5 Create Service Order ............................................................................................................................... 39
5.2.6 Deploy/Validate/PartialDelete an already created SO ........................................................................... 41
5.2.7 Delete Service Order ............................................................................................................................... 42
5.2.8 View Pending Order Configuration ......................................................................................................... 42
5.3 Service Management API ................................................................................................................................ 43
5.3.1 Get All Services ........................................................................................................................................ 43
5.3.2 Get All Services with Pagination ............................................................................................................. 44
5.3.3 Get All Services – Filtered Based on CustomerId/CustomerName ......................................................... 45
5.3.4 Get Service .............................................................................................................................................. 46
5.3.5 Modify Service......................................................................................................................................... 48
5.3.6 Clone Service ........................................................................................................................................... 50
5.3.7 Force Deploy Service ............................................................................................................................... 51
5.3.8 Decommissioning of Service ................................................................................................................... 52
5.4 Auditing API ..................................................................................................................................................... 53
5.4.1 Perform Configuration Audit................................................................................................................... 53
5.4.2 Perform Functional Audit ........................................................................................................................ 54
5.4.3 View Configuration Audit Results ........................................................................................................... 55
5.4.4 View Functional Audit Results................................................................................................................. 55
5.4.5 View Service Configuration Change Result ............................................................................................. 56
5.4.6 View Monitoring/Troubleshoot Results .................................................................................................. 57
6 Eline P2P with BGP .................................................................................................................................................. 62
6.1 Create Service Definition ................................................................................................................................ 62
6.2 Get Service Definition ..................................................................................................................................... 64
6.3 Create Service Order ....................................................................................................................................... 65
6.4 Get Service Order ............................................................................................................................................ 68
6.5 Get Service ...................................................................................................................................................... 69
7 L3VPN ...................................................................................................................................................................... 71
7.1 Service-Definition API ..................................................................................................................................... 71
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 5
7.1.1 Get All Service Definitions ....................................................................................................................... 71
7.1.2 Get All Service Definitions with Pagination............................................................................................. 73
7.1.3 Get Service Definition ............................................................................................................................. 74
7.1.4 Create Service Definition ........................................................................................................................ 75
7.1.5 Publish/UnPublish Service Definition...................................................................................................... 76
7.1.6 Delete Service Definition......................................................................................................................... 77
7.2 Service-Order Management API ..................................................................................................................... 78
7.2.1 Get All Service Orders ............................................................................................................................. 78
7.2.2 Get All Service Orders – Filtered based on Customer ............................................................................. 79
7.2.3 Get Service Order .................................................................................................................................... 80
7.2.4 Create Service Order ............................................................................................................................... 82
7.2.5 Deploy/Validate/PartialDelete an already created SO ........................................................................... 87
7.2.6 Delete Service Order ............................................................................................................................... 88
7.2.7 View Pending Order Configuration ......................................................................................................... 88
7.3 Service Management API ................................................................................................................................ 89
7.3.1 Get All Services ........................................................................................................................................ 89
7.3.2 Get All Services – Filtered Based on Customer ....................................................................................... 92
7.3.3 Get Service .............................................................................................................................................. 93
7.3.4 Modify Service......................................................................................................................................... 95
7.3.5 Force Deploy Service ............................................................................................................................... 97
7.3.6 Decommissioning of Service ................................................................................................................... 97
7.4 Auditing API ..................................................................................................................................................... 99
7.4.1 Perform Configuration Audit................................................................................................................... 99
7.4.2 Perform Functional Audit ........................................................................................................................ 99
7.4.3 View Configuration Audit Results ......................................................................................................... 100
7.4.4 View Functional Audit Results............................................................................................................... 101
7.4.5 View Service Configuration Change Result ........................................................................................... 102
7.4.6 View Monitoring/Troubleshoot Results ................................................................................................ 103
8 VPLS (with BGP)..................................................................................................................................................... 114
8.1 Service-Definition API ................................................................................................................................... 114
8.1.1 Get All Service Definitions ..................................................................................................................... 114
8.1.2 Get All Service Definitions with Pagination........................................................................................... 115
8.1.3 Get Service Definition ........................................................................................................................... 116
8.1.4 Create Service Definition ...................................................................................................................... 118
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 6
8.1.5 Publish/UnPublish Service Definition.................................................................................................... 118
8.1.6 Delete Service Definition....................................................................................................................... 119
8.2 Service-Order Management API ................................................................................................................... 119
8.2.1 Get All Service Orders ........................................................................................................................... 119
8.2.2 Get All Service Orders with Pagination ................................................................................................. 122
8.2.3 Get All Service Orders – Filtered based on Customer ........................................................................... 123
8.2.4 Get Service Order .................................................................................................................................. 124
8.2.5 Create Service Order ............................................................................................................................. 126
8.2.6 Deploy/Validate/PartialDelete an already created SO ......................................................................... 129
8.2.7 Delete Service Order ............................................................................................................................. 130
8.2.8 View Pending Order Configuration ....................................................................................................... 130
8.3 Service Management API .............................................................................................................................. 131
8.3.1 Get All Services ...................................................................................................................................... 131
8.3.2 Get All Services – Filtered Based on Customer ..................................................................................... 133
8.3.3 Get Service ............................................................................................................................................ 134
8.3.4 Modify Service....................................................................................................................................... 136
8.3.5 Force Deploy Service ............................................................................................................................. 139
8.3.6 Decommissioning of Service ................................................................................................................. 140
8.4 Auditing API ................................................................................................................................................... 141
8.4.1 Perform Configuration Audit................................................................................................................. 141
8.4.2 Perform Functional Audit ...................................................................................................................... 141
8.4.3 View Configuration Audit Results ......................................................................................................... 142
8.4.4 View Functional Audit Results............................................................................................................... 143
8.4.5 View Service Configuration Change Result ........................................................................................... 144
8.4.6 View Monitoring/Troubleshoot Results ................................................................................................ 145
9 VPLS (with LDP ) .................................................................................................................................................... 154
9.1 Get Service Definition ................................................................................................................................... 154
9.2 Create Service Order ..................................................................................................................................... 155
9.3 Get Service Order .......................................................................................................................................... 157
9.4 Get Service .................................................................................................................................................... 158
10 MultiHomed Groups ......................................................................................................................................... 160
10.1 Get All Multihomed Groups .......................................................................................................................... 160
10.2 Get Multihomed Group ................................................................................................................................. 160
10.3 Create Multihomed Group ............................................................................................................................ 161
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 7
10.4 Delete Multihomed Group ............................................................................................................................ 162
10.5 Delete Multihomed Groups .......................................................................................................................... 162
11 Service Template ............................................................................................................................................... 163
11.1 GetAllServiceTemplate .................................................................................................................................. 163
11.2 GetServiceTemplate ...................................................................................................................................... 165
11.3 GetServiceTemplateBySD ............................................................................................................................. 165
11.4 GetServiceDefinition ..................................................................................................................................... 166
11.5 Get Service Order .......................................................................................................................................... 168
11.6 Create Service Order ..................................................................................................................................... 179
11.7 Get Service .................................................................................................................................................... 195
11.8 Modify Service .............................................................................................................................................. 198
11.9 Create Service Definition .............................................................................................................................. 200
12 List Services which are down ............................................................................................................................ 203
12.1 Get Services – Filtered Based on Fault Status for Eline-P2P ......................................................................... 204
12.2 Get Services – Filtered Based on Fault Status for Elan-VPLS ........................................................................ 204
12.3 Get Services – Filtered Based on Fault Status for L3VPN .............................................................................. 205
13 Service Level CFM through NA .......................................................................................................................... 206
13.1 GET All CFM Profiles ...................................................................................................................................... 207
13.2 GET CFM Profile ............................................................................................................................................ 209
13.3 GET Service Order ......................................................................................................................................... 210
13.4 GET Service .................................................................................................................................................... 211
13.5 Create Service Order (P2P) ........................................................................................................................... 213
13.6 Create Service Order (VPLS) .......................................................................................................................... 214
13.7 Modify Service – VPLS (Adding CFM Profile) ................................................................................................ 215
13.8 Modify Service – VPLS (Disable CFM) ........................................................................................................... 216
13.9 Modify Service – P2P (Adding CFM Profile) .................................................................................................. 217
13.10 Modify Service – P2P (Disable CFM) ......................................................................................................... 219
13.11 View FA results – P2P (with CFM) ............................................................................................................. 220
13.12 View FA results – VPLS (with CFM) ........................................................................................................... 222
13.13 View TroubleShooting results – P2P (with CFM/OAM) ............................................................................ 223
13.14 View TroubleShooting results – VPLS (with CFM/OAM) ........................................................................... 252
13.15 View Service Configuration Change – P2P (with CFM/OAM) ................................................................... 298
13.16 View Service Configuration Change – VPLS (with CFM/OAM) .................................................................. 306
14 PW Redundancy ................................................................................................................................................ 318
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 8
14.1 Create Service Order (P2P-LDP) .................................................................................................................... 318
14.2 Create Service Order (P2P-LDP-TDM) ........................................................................................................... 320
14.3 Get Service (P2P-LDP) ................................................................................................................................... 322
14.4 Modify Service (P2P-LDP) .............................................................................................................................. 326
14.5 Get Service Order (P2P-LDP) ......................................................................................................................... 328
14.6 Create Service Order (P2P-BGP) ................................................................................................................... 331
14.7 Get Service Order (P2P-BGP) ........................................................................................................................ 333
14.8 Modify Service (P2P-BGP) ............................................................................................................................. 336
14.9 Create Service Order (VPLS–LDP) .................................................................................................................. 338
14.10 Get Service Order (VPLS- LDP) .................................................................................................................. 341
14.11 Get Service (VPLS-LDP) .............................................................................................................................. 344
15 PM Stats ............................................................................................................................................................ 347
15.1 Start PM Collection ....................................................................................................................................... 347
15.2 Stop PM Collection ........................................................................................................................................ 348
15.3 Get PM Stats ................................................................................................................................................. 348
15.4 Get PM Status ............................................................................................................................................... 349
15.5 Get Service Path ............................................................................................................................................ 350
16 VRF Table Label (L3VPN) ................................................................................................................................... 352
16.1 Create Service Definition .............................................................................................................................. 352
16.2 Get Service Definition ................................................................................................................................... 353
16.3 Create Service Order ..................................................................................................................................... 354
16.4 Get Service Order .......................................................................................................................................... 355
16.5 Get Service .................................................................................................................................................... 356
17 Manual RT Support (VPLS) ................................................................................................................................ 357
17.1 Get Service Definition ................................................................................................................................... 357
17.2 Create Service Order ..................................................................................................................................... 358
17.3 Get Service Order .......................................................................................................................................... 360
17.4 Get Service .................................................................................................................................................... 362
18 Manual RT/RD Support (P2P) ............................................................................................................................ 364
18.1 Create Service Definition .............................................................................................................................. 364
18.2 Get Service Definition ................................................................................................................................... 365
18.3 Create Service Order ..................................................................................................................................... 366
18.4 Get Service Order .......................................................................................................................................... 367
18.5 Get Service .................................................................................................................................................... 369
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 9
19 Manual RT/RD Support (L3VPN) ....................................................................................................................... 370
19.1 Create Service Definition .............................................................................................................................. 370
19.2 Get Service Definition ................................................................................................................................... 371
19.3 Create Service Order ..................................................................................................................................... 372
19.4 Get Service Order .......................................................................................................................................... 374
19.5 Get Service .................................................................................................................................................... 375
20 TPID Parameter for Service Order/Service ....................................................................................................... 376
20.1 Get Service Order (P2P-LDP) ......................................................................................................................... 376
20.2 Get Service Order(P2P-BGP) ......................................................................................................................... 377
20.3 Get Service Order (VPLS-MTM-LDP) ............................................................................................................. 379
20.4 Get Service Order (VPLS-PTM-LDP) ............................................................................................................... 381
20.5 Get Service Order (VPLS-MTM-BGP) ............................................................................................................. 382
20.6 Get Service Order (VPLS-PTM-BGP) .............................................................................................................. 384
20.7 Create Service Order (P2P-LDP) .................................................................................................................... 385
20.8 Create Service Order (P2P-BGP) ................................................................................................................... 386
20.9 Create Service Order (VPLS-MTM-LDP) ........................................................................................................ 387
20.10 Create Service Order (VPLS-PTM-LDP) ...................................................................................................... 388
20.11 Create Service Order (VPLS-MTM-BGP) .................................................................................................... 390
20.12 Create Service Order (VPLS-PTM-BGP) ..................................................................................................... 391
21 Clone Service ..................................................................................................................................................... 392
21.1 Clone (P2P-LDP) ............................................................................................................................................ 392
21.2 Clone (P2P-BGP) ............................................................................................................................................ 393
22 Bulk Operations ................................................................................................................................................. 394
22.1 Bulk - Add Customers .................................................................................................................................... 394
22.2 Bulk – Modify Customers .............................................................................................................................. 396
22.3 Bulk – Delete Customers ............................................................................................................................... 397
22.4 Bulk – Create ServiceOrders ......................................................................................................................... 398
22.5 Bulk – Create ServiceOrders (P2P-LDP) ......................................................................................................... 403
22.6 Bulk – Create ServiceOrders (P2P-BGP) ........................................................................................................ 408
22.7 Bulk – Deploy/Validate/PartialDelete Created ServiceOrders ...................................................................... 414
22.8 Bulk – Delete ServiceOrders .......................................................................................................................... 415
22.9 Bulk – Modify Services .................................................................................................................................. 416
22.10 Bulk – ForceDeploy Services ..................................................................................................................... 419
22.11 Bulk – Decomissioning Services ................................................................................................................ 420
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 10
22.12 Bulk – Perform Functional/Configurational Audit on Services ................................................................. 421
23 JSON Conversion from XML .............................................................................................................................. 424
24 APPENDIX I – Sample Input XMLs ................................................................................................................... 425
24.1 Create ServiceOrder: P2P – with LSPTunnelName input .............................................................................. 425
24.2 Create ServiceOrder: P2P – SingleEnded provisioning input ........................................................................ 426
24.3 Create ServiceOrder: P2P – QINQ Vlan Range ............................................................................................. 427
24.4 Create ServiceOrder: P2P – PORT-PORT ...................................................................................................... 428
24.5 Create ServiceOrder: P2P - ATM .................................................................................................................. 429
24.6 Create ServiceOrder: P2P - TDM ................................................................................................................... 430
24.7 Create ServiceOrder: VPLS- MultiHomeGroup ............................................................................................ 431
24.8 Create ServiceOrder: VPLS - with Advanced settings made Editable in SD .................................................. 432
24.9 Create ServiceOrder: VPLS - with Normalized to Dot1QTag/QinQTag option.............................................. 433
24.10 Create ServiceOrder: VPLS - with Asymmetric Tag EthernetOption ......................................................... 434
24.11 Create ServiceOrder:HS VPLS - with multihome,advanced setting, Normalized to QinQ vlan................. 435
24.12 Modify Service: P2P – ATM ....................................................................................................................... 437
24.13 Modify Service: P2P – TDM ....................................................................................................................... 437
24.14 View ServiceOrder:P2P - Created with LSPTunnelName: ......................................................................... 438
24.15 Single Ended TDM ..................................................................................................................................... 440
25 APPENDIX II – Transition Guide for API 12.1 to 12.3 releases ........................................................................ 441
25.1 Introduction .................................................................................................................................................. 441
25.2 Root Level hierarchy ..................................................................................................................................... 442
25.2.1 API 12.1 ................................................................................................................................................. 442
25.2.2 API 12.3 ................................................................................................................................................. 442
25.3 Service EndPoint Group ................................................................................................................................ 442
25.3.1 API 12.1 ................................................................................................................................................. 442
25.3.2 API 12.3 ................................................................................................................................................. 443
25.4 Custom action / Operation Specific Data ...................................................................................................... 443
25.4.1 API 12.1 ................................................................................................................................................. 443
25.4.2 API 12.3 ................................................................................................................................................. 443
25.5 Service End Point Configuration Parameter Types ....................................................................................... 443
25.5.1 API 12.1 ................................................................................................................................................. 444
25.5.2 API 12.3 ................................................................................................................................................. 444
25.6 Differences in Response Structure: ............................................................................................................... 444
25.6.1 API 12.1 ................................................................................................................................................. 444
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 11
25.6.2 API 12.3 ................................................................................................................................................. 445
25.7 Enhancement features available in 12.3 over 12.1 ...................................................................................... 445
25.7.1 Modified/Optimized the Request/Response structure ........................................................................ 445
25.7.2 Added the support for Service Types – L3VPN , VPLS and ELine-BGP ................................................. 446
25.7.3 API 12.3 provides support for Service Definition creation ................................................................... 446
25.7.4 Support for Resource utilization API ..................................................................................................... 446
25.7.5 Multi-homed Groups API ...................................................................................................................... 446
25.7.6 Media types / Content types similar to Space API ................................................................................ 446
25.7.7 JSON support for creation operations using JSON Payload ................................................................. 446
25.7.8 Support for filters to view the list of services associated with a customer .......................................... 447
25.7.9 Clone Service API ................................................................................................................................... 447
25.7.10 View Service Configuration change .................................................................................................. 447
25.7.11 Perform FA ........................................................................................................................................ 447
25.7.12 View Monitoring/troubleshoot results ............................................................................................. 448
25.7.13 Single Ended Service (support for unmanaged service at one end) ................................................. 448
25.7.14 View pending order configuration ................................................................................................... 449
25.7.15 Single Job id for Bulk operations ....................................................................................................... 449
25.7.16 PE Device Details ............................................................................................................................... 450
25.7.17 Support for local switching of P2P/ATM/TDM Services ................................................................... 450
25.7.18 API URL grouping changed ................................................................................................................ 450
25.7.19 Service Template support ................................................................................................................. 451
25.7.20 List Services which are down (P2P/VPLS/L3VPN) ............................................................................. 451
25.7.21 VRF Table parameter (L3VPN) ........................................................................................................... 451
25.7.22 Manual RT/RD Support .................................................................................................................... 451
25.7.23 Service Level CFM through NA .......................................................................................................... 453
25.7.24 TPID Parameter for Service Order/Service ....................................................................................... 455
25.7.25 PW Redundancy ................................................................................................................................ 456
25.7.26 PM Stats collection ............................................................................................................................ 457
25.7.27 URL resources similar to JUNOS Space API ....................................................................................... 459
25.7.28 Notification for Add/Modify/Delete operations of Service Order/Service ....................................... 459
25.7.29 Clone and Bulk Support in 12.3 ........................................................................................................ 460
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 12
1 Introduction
This document aims to provide the API reference Guide for NetworkAppsAPI rel 12.3, which can be used to
build OSS-NBI APIs over the Network Activate application’s Interfaces for Service provisioning and Service
management APIs exposed by Network activate.
The APIs implemented in the NetworkAppsAPI provide wrapper to the Network Activate interfaces to do
Service Provisioning, Service Management, Audit Management and Customer Management actions. Apart from
Network Activate (NA), the NetworkAppsAPI also provide some wrapper APIs to utilize the OAM-CFM profiles to
be attached to NA’s Service order and Performance Management (PM) APIs.
1.1 Juniper applications supported in 12.3
� Network Activate
� OAM
1.2 Payload / response types supported – XML and JSON
� The Payload/Request could be both in XML format and JSON format, even though this reference guide
shows only the XML type input/payload in the samples. There is an API available for converting any
given XMl Payload into a JSON payload, which is detailed in the chapter 23 - JSON Conversion from
XML of this document.
� Similarly. Response could be both in XML format and JSON format, even though this reference guide
shows only the XML type responses in the samples.
1.3 Media types supported
� For API which employs GET method - ‘Accept’ would be used, since only a Response is the involved
operation here. The Accept type determines the type of the Response obtained, which could be
either in XML or in JSON format.
� For API which employs POST method - ‘Content-type’ need to be used, which determines the type of
the input payload / request that is sent.
� For API which employs PUT method - ‘Content-type’ need to be used, which determines the type of
the input payload / request that is sent.
� For API which employs DELETE method - ‘Accept’ need to be used, since only a Response is the
involved operation here. The Accept type determines the type of the Response obtained, which could
be either in XML or in JSON format.
For example – for Add customer API, Content and Accept types for XML are given below:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 13
XML:
Content-Type: application/vnd.net.juniper.space.customer-management.customers+xml
Accept: application/vnd.net.juniper.space.customer-management.customers-status+xml
JSON for the same API operation would be:
Content-Type: application/vnd.net.juniper.space.customer-management.customers+json
Accept: application/vnd.net.juniper.space.customer-management.customers-status+json
1.4 Structure of Request/Response supported
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Payload XML relevant to the resource involved>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Code>200</Code>
<Message>………...</Message>
<Identity>
<Type>…….</Type>
<Value>xxxxxx</Value>
</Identity>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 14
2 Customer Management API
2.1 GET All Customers
URL: api/space/nsas/customer-management/customers
Method: GET
Accept: application/vnd.net.juniper.space.customer-management.customers+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers size="3">
<Customer href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" key="327680">
<Common>
<Name>Customer_001</Name>
<Identity>327680</Identity>
<CreatedDate>2012-06-28T15:17:56.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:17:56.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324001</AccountNo>
<ContactName>customer001</ContactName>
<ContactEmail>customer001@juniper.net</ContactEmail>
</Customer>
<Customer href="/api/space/nsas/customer-management/customers/327681"
uri="/api/space/nsas/customer-management/customers/327681" key="327681">
<Common>
<Name>Customer_002</Name>
<Identity>327681</Identity>
<CreatedDate>2012-06-28T15:18:20.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:18:20.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324002</AccountNo>
<ContactName>customer002</ContactName>
<ContactEmail>customer002@juniper.net</ContactEmail>
</Customer>
<Customer href="/api/space/nsas/customer-management/customers/6193152"
uri="/api/space/nsas/customer-management/customers/6193152" key="6193152">
<Common>
<Name>Customer_003</Name>
<Identity>6193152</Identity>
<CreatedDate>2012-07-27T19:46:51.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-27T19:46:51.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324003</AccountNo>
<ContactName>customer003</ContactName>
<ContactEmail>customer003@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
2.2 GET All Customers with Pagination
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 15
URL: api/space/nsas/customer-management/customers?start=3&limit=2
URL2: api/space/nsas/customer-management/customers?paging=(start eq 3, limit eq 2)
Method: GET
Accept: application/vnd.net.juniper.space.customer-management.customers+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers size="3">
<Customer href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" key="327680">
<Common>
<Name>Customer_001</Name>
<Identity>327680</Identity>
<CreatedDate>2012-06-28T15:17:56.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:17:56.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324001</AccountNo>
<ContactName>customer001</ContactName>
<ContactEmail>customer001@juniper.net</ContactEmail>
</Customer>
<Customer href="/api/space/nsas/customer-management/customers/327681"
uri="/api/space/nsas/customer-management/customers/327681" key="327681">
<Common>
<Name>Customer_002</Name>
<Identity>327681</Identity>
<CreatedDate>2012-06-28T15:18:20.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:18:20.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324002</AccountNo>
<ContactName>customer002</ContactName>
<ContactEmail>customer002@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
2.3 GET Customer – Filtered based on AccountNo
URL: api/space/nsas/customer-management/customers?accountNo=40132324001
Method: GET
Accept: application/vnd.net.juniper.space.customer-management.customers+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers size="1">
<Customer href="/api/space/nsas/customer-management/customers/1015808"
uri="/api/space/nsas/customer-management/customers/1015808" key="1015808">
<Common>
<Name>Customer_001</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 16
<Identity>1015808</Identity>
<CreatedDate>2012-08-13T15:09:48.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-13T15:09:48.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324001</AccountNo>
<ContactName>customer001</ContactName>
<ContactEmail>customer001@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
2.4 GET Customer
URL: api/space/nsas/customer-management/customers/<customerId>
METHOD: GET
Accept: application/vnd.net.juniper.space.customer-management.customer+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers>
<Customer href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" key="327680">
<Common>
<Name>Customer_001</Name>
<Identity>327680</Identity>
<CreatedDate>2012-06-28T15:17:56.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:17:56.000+05:30</LastUpdatedDate>
</Common>
<AccountNo>40132324001</AccountNo>
<ContactName>customer001</ContactName>
<ContactEmail>customer001@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
2.5 Add Customer
URL: api/space/nsas/customer-management/customers
METHOD: POST
Content-Type: application/vnd.net.juniper.space.customer-management.customers+xml
Accept: application/vnd.net.juniper.space.customer-management.customers-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers>
<Customer>
<Common>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 17
<Name>Customer_005</Name>
</Common>
<AccountNo>40132324005</AccountNo>
<ContactName>customer005</ContactName>
<ContactEmail>customer005@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Code>200</Code>
<Message>Customer Created Successfully.</Message>
<Identity>
<Type>Customer</Type>
<Value>6488064</Value>
</Identity>
</Status>
</Data>
2.6 Modify Customer
URL: api/space/nsas/customer-management/customers/<customerId>
METHOD: PUT
Content-Type: application/vnd.net.juniper.space.customer-management.customer+xml
Accept: application/vnd.net.juniper.space.customer-management.customer-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers>
<Customer>
<Common>
<Name>Customer_005</Name>
<Identity>6488064</Identity>
</Common>
<AccountNo>40132324005</AccountNo>
<ContactName>customer005_mod</ContactName>
<ContactEmail>customer005_mod@juniper.net</ContactEmail>
<ContactInfo>customerInfo_mod</ContactInfo>
</Customer>
</Customers>
</Data
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Customer</Type>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 18
<Value>3768322</Value>
</Identity>
<Code>200</Code>
<Message>Customer Modified Successfully.</Message>
</Status>
</Data>
2.7 Delete Customer
URL: api/space/nsas/customer-management/customers/<customerId>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.customer-management.customer-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Code>200</Code>
<Message>Customer Deleted Successfully.</Message>
<Identity>
<Type>Customer</Type>
<Value>6488064</Value>
</Identity>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 19
3 PE Device API
3.1 Get All PEDevices
URL: api/space/nsas/device-roles/pe-devices
METHOD: GET
Accept: application/vnd.net.juniper.space.device-roles.pe-devices+xml
Sample Response:
<Data>
<Devices size="11">
<Device href=
"/api/space/nsas/device-roles/pe-devices/1179927"
uri="/api/space/nsas/device-roles/pe-devices/1179927" key="1179927">
<Common>
<Name>junos-m10-1-space</Name>
<Identity>1179927</Identity>
</Common>
<Role>N_PE</Role>
<MEId>368542</MEId>
</Device>
<Device href=
"/api/space/nsas/device-roles/pe-devices/1179964"
uri="/api/space/nsas/device-roles/pe-devices/1179964" key="1179964">
<Common>
<Name>junos-m10-2-space</Name>
<Identity>1179964</Identity>
</Common>
<Role>N_PE</Role>
<MEId>368845</MEId>
</Device>
<Device href=
"/api/space/nsas/device-roles/pe-devices/1179891"
uri="/api/space/nsas/device-roles/pe-devices/1179891" key="1179891">
<Common>
<Name>junos-mx240-space</Name>
<Identity>1179891</Identity>
</Common>
<Role>N_PE</Role>
<MEId>368173</MEId>
</Device>
<Device href=
"/api/space/nsas/device-roles/pe-devices/1179663"
uri="/api/space/nsas/device-roles/pe-devices/1179663" key="1179663">
<Common>
<Name>junos-mx480-space</Name>
<Identity>1179663</Identity>
</Common>
<Role>N_PE</Role>
<MEId>360610</MEId>
</Device>
<Device href=
"/api/space/nsas/device-roles/pe-devices/1179752"
uri="/api/space/nsas/device-roles/pe-devices/1179752" key="1179752">
<Common>
<Name>junos-mx80-1-space</Name>
<Identity>1179752</Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 20
</Common>
<Role>N_PE</Role>
<MEId>361763</MEId>
</Device>
<Device href=
"/api/space/nsas/device-roles/pe-devices/1194778"
uri="/api/space/nsas/device-roles/pe-devices/1194778" key="1194778">
<Common>
<Name>junos-mx80-2-space</Name>
<Identity>1194778</Identity>
</Common>
<Role>N_PE</Role>
<MEId>374403</MEId>
</Device>
</Devices>
</Data>
3.2 Get PEDevice
URL: api/space/nsas/device-roles/pe-devices/<pe-deviceID>
METHOD: GET
Accept: application/vnd.net.juniper.space.device-roles.pe-device+xml
Sample Response:
<Data>
<Devices>
<Device href=
"/api/space/nsas/device-roles/pe-devices/1179964"
uri="/api/space/nsas/device-roles/pe-devices/1179964" key="1179964">
<Common>
<Name>junos-m10-2-space</Name>
<Identity>1179964</Identity>
</Common>
<Role>N_PE</Role>
<MEId>368845</MEId>
<Ports>
<Port>
<Name>ge-0/0/1</Name>
<Id>1179966</Id>
<AdminStatus>up</AdminStatus>
<Encapsulation>flexible-ethernet-services</Encapsulation>
</Port>
<Port>
<Name>ge-0/0/3</Name>
<Id>1179967</Id>
<AdminStatus>up</AdminStatus>
<Encapsulation>flexible-ethernet-services</Encapsulation>
</Port>
<Port>
<Name>fe-0/1/0</Name>
<Id>1179968</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>vlan-ccc</Encapsulation>
</Port>
<Port>
<Name>fe-0/1/1</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 21
<Id>1179969</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>vlan-ccc</Encapsulation>
</Port>
<Port>
<Name>fe-0/1/2</Name>
<Id>1179970</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
<Port>
<Name>fe-0/1/3</Name>
<Id>1179971</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
<Port>
<Name>t1-0/2/0</Name>
<Id>1179972</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
<Port>
<Name>t1-0/2/1</Name>
<Id>1179973</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
<Port>
<Name>t1-0/2/2</Name>
<Id>1179974</Id>
<AdminStatus>down</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
<Port>
<Name>t1-0/2/3</Name>
<Id>1179975</Id>
<AdminStatus>up</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
<Port>
<Name>t1-0/2/4</Name>
<Id>1179976</Id>
<AdminStatus>up</AdminStatus>
<Encapsulation>none</Encapsulation>
</Port>
</Ports>
<TunnelNames>
<Static>
<LSPTunnelName>Static_MH_001_to_30_1_2_5</LSPTunnelName>
</Static>
<NonStatic>
<LSPTunnelName>m10-2-to-mx240</LSPTunnelName>
<LSPTunnelName>M10-2-to-MX-80-2</LSPTunnelName>
<LSPTunnelName>M10i-2-to-M10i-1</LSPTunnelName>
<LSPTunnelName>M10-2-to-MX-80-1</LSPTunnelName>
<LSPTunnelName>M10i-2-to-MX480</LSPTunnelName>
<LSPTunnelName>M10i-2-to-fortius1</LSPTunnelName>
<LSPTunnelName>M10i-2-to-fortius2</LSPTunnelName>
<LSPTunnelName>M10i-2-to-fortius3</LSPTunnelName>
<LSPTunnelName>M10i-2-to-fortius4</LSPTunnelName>
</NonStatic>
</TunnelNames>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 22
</Device>
</Devices>
</Data>
4 Resource Pool
4.1 Resource Pool for VLAN
While creating service order, there is a possibility that we may give already allocated VLAN ID.To find out whether a
particular VLAN ID is already allocated or not, Resource Pool API has been designed.
Interface Id for a particular interface in a device is found by using the following API:
api/space/nsas/device-roles/pe-devices
URL: api/space/nsas/resource-utilization/vlan-resource/<interface-id>/<vlan-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.resource-utilization.vlan-resource-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ResourceItem>
<Type>VLAN</Type>
<Value>1252</Value>
<Status>Available </Status>
</ResourceItem>
</Data>
4.2 Resource Pool for Virtual Circuit
Interface Id for a particular interface in a device is found by using the following API:
api/space/nsas/device-roles/pe-devices
URL: api/space/nsas/resource-utilization/vc-resource/<vc-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.resource-utilization.vc-resource-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ResourceItem>
<Type>VCID</Type>
<Value>2147467331</Value>
<Status>Allocated</Status>
</ResourceItem>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 23
4.3 Resource Pool for Route Distinguisher (RD)
This API finds the availability of a particular RD Value for a given device. The Device Id for the given device is found
by using the following API:
api/space/nsas/device-roles/pe-devices
URL: api/space/nsas/resource-utilization/rd-resource/<deviceId>/<rdValue>
METHOD: GET
Accept: application/vnd.net.juniper.space.resource-utilization.rd-resource-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ResourceItem>
<Type>RD</Type>
<Value>100</Value>
<Status>Allocated</Status>
</ResourceItem>
</Data>
4.4 Resource Pool for Route Target (RT)
This API finds the availability of a particular RT Value for a given device. The Device Id for the given device is found
by using the following API:
api/space/nsas/device-roles/pe-devices
URL: api/space/nsas/resource-utilization/rt-resource/<deviceId>/<rtValue>
METHOD: GET
Accept: application/vnd.net.juniper.space.resource-utilization.rt-resource-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ResourceItem>
<Type>RT</Type>
<Value>301</Value>
<Status>Available</Status>
</ResourceItem>
</Data>
4.5 Resource Pool for IPV4Address Profile
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 24
4.5.1 Get All Resource Pools
URL: api/space/nsas/resource-utilization/ipv4address-pool
METHOD: GET
Accept: application/vnd.net.juniper.space.resource-utilization.ipv4address-pools+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<IPV4AddressPool>
<PoolName>IPV4 Resource Pool:10.0.77.0/24</PoolName>
<PoolID>4</PoolID>
<PoolType>Global</PoolType>
<PoolDescription>Pool of IPV4 Addresses:10.0.77.0/24</PoolDescription>
<IPAddressPool>10.0.77.0/24</IPAddressPool>
</IPV4AddressPool>
<IPV4AddressPool>
<PoolName>IPV4 Resource Pool:10.0.88.0/24</PoolName>
<PoolID>7</PoolID>
<PoolType>Global</PoolType>
<PoolDescription>Pool of IPV4 Addresses:10.0.88.0/24</PoolDescription>
<IPAddressPool>10.0.88.0/24</IPAddressPool>
</IPV4AddressPool>
<IPV4AddressPool>
<PoolName>IPV4 Resource Pool:10.0.99.0/24</PoolName>
<PoolID>10</PoolID>
<PoolType>Global</PoolType>
<PoolDescription>Pool of IPV4 Addresses:10.0.99.0/24</PoolDescription>
<IPAddressPool>10.0.99.0/24</IPAddressPool>
</IPV4AddressPool>
</Data>
4.5.2 Get Resource Pool
URL: api/space/nsas/resource-utilization/ipv4address-pool/<poolId>
METHOD: GET
Accept: application/vnd.net.juniper.space.resource-utilization.ipv4address-pool+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<IPV4AddressPool>
<PoolName>IPV4 Resource Pool:10.0.77.0/24</PoolName>
<PoolID>4</PoolID>
<PoolType>Global</PoolType>
<PoolDescription>Pool of IPV4 Addresses:10.0.77.0/24</PoolDescription>
<IPAddressPool>10.0.77.0/24</IPAddressPool>
</IPV4AddressPool>
</Data>
4.5.3 Create IPV4 Resource Pool
URL: api/space/nsas/resource-utilization/ipv4address-pool
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 25
METHOD: POST
Accept: application/vnd.net.juniper.space.resource-utilization.ipv4address-pool-status+xml
Content-type: application/vnd.net.juniper.space.resource-utilization.ipv4address-pool+xml
Sample Request for creating Global Pool:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<IPV4AddressPool>
<PoolName>Test4</PoolName>
<PoolType>Global</PoolType>
<PoolDescription></PoolDescription>
<IPAddressPool>10.0.19.0</IPAddressPool>
<IPBlockSize>24</IPBlockSize>
</IPV4AddressPool>
</Data>
Sample Request for creating Customer Pool:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<IPV4AddressPool>
<PoolName>Custom</PoolName>
<PoolType>Customer</PoolType>
<PoolDescription></PoolDescription>
<IPAddressPool>10.0.25.0</IPAddressPool>
<IPBlockSize>24</IPBlockSize>
<AssociatedCustomer>John Mclane</AssociatedCustomer>
</IPV4AddressPool>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>IPV4ResourcePool</Type>
<Value>393236</Value>
</Identity>
<Code>200</Code>
<Message>IPV4ResourcePool created successfully</Message>
</Status>
</Data>
4.5.4 Delete IPV4 Resource Pool
URL: api/space/nsas/resource-utilization/ipv4address-pool/<poolId>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.resource-utilization.ipv4address-pool-status+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 26
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>IPV4ResourcePool</Type>
<Value>393236</Value>
</Identity>
<Code>200</Code>
<Message>IPV4ResourcePool deleted successfully</Message>
</Status>
</Data>
5 Eline P2P (with LDP) – Ethernet, ATM, TDM
5.1 Service-Definition API
5.1.1 Get All Service Definitions
URL: api/space/nsas/eline-ptp/service-management/service-definitions
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definitions+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="19">
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
key="262144">
<Common>
<Name>ELine-QinQ-AllVLAN</Name>
<Identity>262144</Identity>
<State>Published</State>
<Comments>Used to deliver a point-to-point service between two
remote sites, with high BW requirements.</Comments>
<CreatedDate>2012-06-28T15:10:55.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:10:55.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262156"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262156"
key="262156">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 27
<Common>
<Name>ELine-EM</Name>
<Identity>262156</Identity>
<State>Published</State>
<Comments>Used to deliver a point-to-point service between two
remote sites on EM interface only.</Comments>
<CreatedDate>2012-06-28T15:10:55.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:10:55.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262167"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262167"
key="262167">
<Common>
<Name>ELine-QinQ-AllVLAN-CCC</Name>
<Identity>262167</Identity>
<State>Published</State>
<Comments>Used to deliver a point-to-point service between two
remote sites, with high BW requirements.</Comments>
<CreatedDate>2012-06-28T15:10:55.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:10:55.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262292"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262292"
key="262292">
<Common>
<Name>Static TDM pseudowire</Name>
<Identity>262292</Identity>
<State>Published</State>
<Comments>TDM Point to point Static pseudowire</Comments>
<CreatedDate>2012-06-28T15:11:00.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:11:00.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262307"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 28
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262307"
key="262307">
<Common>
<Name>ATM pseudowire</Name>
<Identity>262307</Identity>
<State>Published</State>
<Comments>ATM Point to point pseudowire</Comments>
<CreatedDate>2012-06-28T15:11:00.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:11:00.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
</ServiceResource>
</Data>
5.1.2 Get All Service Definitions with Pagination
URL1: api/space/nsas/eline-ptp/service-management/service-definitions?start=4&limit=2
URL2: api/space/nsas/eline-ptp/service-management/service-definitions?paging=(start eq 4, limit eq 2)
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definitions+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="19">
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
key="262191">
<Common>
<Name>ELine-QinQ-VLANRange</Name>
<Identity>262191</Identity>
<State>Published</State>
<Comments>Used to deliver a point-to-point service between two
remote sites, with high BW requirements.</Comments>
<CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 29
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262205"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262205"
key="262205">
<Common>
<Name>ELine-QinQ-VLANRange-CCC</Name>
<Identity>262205</Identity>
<State>Published</State>
<Comments>Used to deliver a point-to-point service between two
remote sites,with high BW requirements.</Comments>
<CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
</ServiceResource>
</Data>
5.1.3 Get Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions/<servicedefinition-Id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
key="262191">
<Common>
<Name>ELine-QinQ-VLANRange</Name>
<Identity>262191</Identity>
<State>Published</State>
<Comments>Used to deliver a point-to-point service between two
remote sites, with high BW requirements.</Comments>
<CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<InterfaceType>ETHERNET</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType" />
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
</ServiceDefinition>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 30
</Data>
5.1.4 Create Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
ETHERNET
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>ELineSD</Name>
<Comments>ELineQinQAllVLAN001</Comments>
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<VCID selection="Select manually"/>
<MTU default="1522" editable="false"/>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="true"/>
<TrafficType>Transport vlan range</TrafficType>
<VlanIdAuto min="1" max="4094" />
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" />
<EnableRateLimiting>Enabled</EnableRateLimiting>
<DefaultBandwidth editable="true">10</DefaultBandwidth>
<MinBandwidth>78</MinBandwidth>
<MaxBandwidth>10</MaxBandwidth>
<Increment>74</Increment>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
Multiple inputs for TPID
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>EthernetTPID005</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 31
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<EnableL3Access>false</EnableL3Access>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<VCID default="1" selection="Auto pick" editable="false" min="1"
max="4294967296" />
<MTU default="1522" editable="false" min="1522" max="9192" />
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
<EthernetOption>qinq</EthernetOption>
<VlanIdSelection selection="Select manually"
editable="false" />
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192" />
<EnableRateLimiting>Not enabled</EnableRateLimiting>
<OuterTagProtocolId editable="false">0x88a8,0x8100</OuterTagProtocolId>
<InnerTagProtocolId editable="false">0x9100,0x8100</InnerTagProtocolId>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
ATM
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>ATM pseudowire</Name>
<Comments>ATM Point to point pseudowire</Comments>
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>ATM</InterfaceType>
<StaticpseudoWire>true</StaticpseudoWire>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMServiceEndpointGroupParameterDefType">
<VCID selection="Auto pick" editable="true"/>
<MTU default="1522" editable="false"/>
<OutGoingLabel selection="Select manually"/>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointParameterDefType">
<PhysicalEncapsulation>atm-ccc-cell-relay</PhysicalEncapsulation>
<VPISelection selection="Select manually" editable="true" />
<VCISelection selection="Select manually" editable="true" />
<CellBundleSize editable="true">150</CellBundleSize>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 32
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
TDM
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>TDMInterface</Name>
<Comments>TDMPointtopointpseudowire</Comments>
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>TDM</InterfaceType>
<StaticpseudoWire>true</StaticpseudoWire>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
<VCID selection="Auto pick" editable="true"/>
<MTU default="1522" editable="true" max="1900" min="1500"/>
<OutGoingLabel selection="Select manually"/>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointParameterDefType">
<JitterBuffer editable="true">5</JitterBuffer>
<IdlePattern editable="true">255</IdlePattern>
<ExcessPacketLossRate editable="true">20</ExcessPacketLossRate>
<PayloadSize editable="true">192</PayloadSize>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
5.1.5 Publish/UnPublish Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions/<servicedefinition-Id>
METHOD: POST
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
UnPublish
Request
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
<Action>UnPublish</Action>
</CustomAction>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 33
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition UnPublished Successfully</Message>
</Status>
</Data>
Publish
Request
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
<Action>Publish</Action>
</CustomAction>
</Data>
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Published Successfully</Message>
</Status>
</Data>
5.1.6 Delete Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions/<servicedefinition-Id>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Deleted Successfully</Message>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 34
</Status>
</Data>
5.2 Service-Order Management API
5.2.1 Get All Service Orders
URL: api/space/nsas/eline-ptp/service-management/service-orders
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="3">
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/4161536"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/4161536"
key="4161536">
<Common>
<Name>Eline_tes02_6</Name>
<Identity>4161536</Identity>
<State>Invalid</State>
<CreatedDate>2012-07-18T17:52:32.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-18T17:52:32.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType> Point-to-Point Pseudowire (LDP)</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="327680"
href="/api/space/nsas/customer-management/customers/327680" uri="/api/space/nsas/customer-
management/customers/327680" />
<ServiceDefinition>
<ServiceDefinitionID key="1179660"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179660"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179660" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/3866624"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/3866624"
key="3866624">
<Common>
<Name>Eline_audit_2012-07-17 15:43:28.54</Name>
<Identity>3866624</Identity>
<State>Completed</State>
<Comments>Audit Eline2012-07-17 15:43:28.54</Comments>
<CreatedDate>2012-07-17T15:43:28.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-17T15:43:28.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType> Point-to-Point Pseudowire (LDP)</ServiceType>
<Action>Provisioning</Action>
<Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 35
<Customer key="327680"
href="/api/space/nsas/customer-management/customers/327680" uri="/api/space/nsas/customer-
management/customers/327680" />
<ServiceDefinition>
<ServiceDefinitionID key="1179648"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648" />
</ServiceDefinition>
<Service key="1179679"
href="/api/space/nsas/eline-ptp/service-management/services/1179679"
uri="/api/space/nsas/eline-ptp/service-management/services/1179679" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/1474567"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1474567"
key="1474567">
<Common>
<Name>Eline_tes02_2</Name>
<Identity>1474567</Identity>
<State>Invalid</State>
<CreatedDate>2012-07-03T20:16:32.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-03T20:16:32.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType> Point-to-Point Pseudowire (LDP)</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="327680"
href="/api/space/nsas/customer-management/customers/327680" uri="/api/space/nsas/customer-
management/customers/327680" />
<ServiceDefinition>
<ServiceDefinitionID key="1179660"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179660"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179660" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
5.2.2 Get All Service Orders with Pagination
URL1: api/space/nsas/eline-ptp/service-management/service-orders?start=3&limit=2
URL2: api/space/nsas/eline-ptp/service-management/service-orders?paging=(start eq 3, limit eq 2>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="10">
<ServiceOrder
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 36
href="/api/space/nsas/eline-ptp/service-management/service-orders/3866624"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/3866624"
key="3866624">
<Common>
<Name>Eline_audit_2012-07-17 15:43:28.54</Name>
<Identity>3866624</Identity>
<State>Completed</State>
<Comments>Audit Eline2012-07-17 15:43:28.54</Comments>
<CreatedDate>2012-07-17T15:43:28.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-17T15:43:28.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType> Point-to-Point Pseudowire (LDP)</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="327680"
href="/api/space/nsas/customer-management/customers/327680" uri="/api/space/nsas/customer-
management/customers/327680" />
<ServiceDefinition>
<ServiceDefinitionID key="1179648"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648" />
</ServiceDefinition>
<Service key="1179679"
href="/api/space/nsas/eline-ptp/service-management/services/1179679"
uri="/api/space/nsas/eline-ptp/service-management/services/1179679" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/1474567"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1474567"
key="1474567">
<Common>
<Name>Eline_tes02_2</Name>
<Identity>1474567</Identity>
<State>Invalid</State>
<CreatedDate>2012-07-03T20:16:32.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-03T20:16:32.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType> Point-to-Point Pseudowire (LDP)</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="327680"
href="/api/space/nsas/customer-management/customers/327680" uri="/api/space/nsas/customer-
management/customers/327680" />
<ServiceDefinition>
<ServiceDefinitionID key="1179660"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179660"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179660" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
5.2.3 Get All Service Orders – Filtered based on CustomerId/CustomerName
URL1: api/space/nsas/eline-ptp/service-management/service-orders?customerId=1015808
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 37
URL2: api/space/nsas/eline-ptp/service-management/service-orders?customerName=Customer_001
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="1">
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/1671168"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1671168"
key="1671168">
<Common>
<Name>Eline_TDM_008</Name>
<Identity>1671168</Identity>
<State>Completed</State>
<Comments>TDM service order</Comments>
<CreatedDate>2012-08-13T17:24:50.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-13T17:25:10.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire (LDP)</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="1015808"
href="/api/space/nsas/customer-management/customers/1015808" uri="/api/space/nsas/customer-
management/customers/1015808" />
<ServiceDefinition>
<ServiceDefinitionID key="262279"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262279"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262279" />
</ServiceDefinition>
<Service key="1671189"
href="/api/space/nsas/eline-ptp/service-management/services/1671189"
uri="/api/space/nsas/eline-ptp/service-management/services/1671189" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
5.2.4 Get Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/262371"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262371"
key="262371">
<Common>
<Name>Eline_LSP_001</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 38
<Identity>262371</Identity>
<State>Requested</State>
<Comments>P2P service order</Comments>
<CreatedDate>2012-08-08T17:25:23.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-08T17:25:22.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>LDP</ServiceType>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/491654" uri="/api/space/nsas/device-roles/pe-
devices/491654"
key="491654">
<DeviceName>jaipur</DeviceName>
<DeviceID>491654</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>771</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description>N/A</Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/491570" uri="/api/space/nsas/device-roles/pe-
devices/491570" key="491570">
<DeviceName>exora</DeviceName>
<DeviceID>491570</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>771</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description>N/A</Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 39
<VCID>771</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="491664"
href="/api/space/nsas/customer-management/customers/491664" \
uri="/api/space/nsas/customer-management/customers/491664" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262144" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
5.2.5 Create Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>P2P_SO</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>327752</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>760</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 40
<DeviceID>327689</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>760</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>760</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="327680"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553609</Value>
</Identity>
<Job>
<ID>1998898</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Order Created Successfully and Deployment is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
For the various options in creating ServiceOrder the options must be specified in the ‘Action’ Element inside
OperationSpecificData.
The values available are
a. Save – (Create and only Save a SO)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 41
b. SaveAndValidate – (Create, Save and Validate a SO) – Default value when no Custom action is specified.
c. SaveAndDeployNow – (Create, Save and Deploy a SO)
d. SaveAndDeployLater – (Create, Save and Deploy Later a SO)
5.2.6 Deploy/Validate/PartialDelete an already created SO
URL: api/space/nsas/eline-ptp/service-management/service-orders/<serviceorder-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>DeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553600</Value>
</Identity>
<Job>
<ID>1998905</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Deployment is in Progress. Please check the
status using the JOB ID.</Message>
</Status>
</Data>
The options must be specified in the ‘Action’ Element inside OperationSpecificData.
The various options are as follows:
a. DeployNow – (Deploy an already created SO)
b. DeployLater – (Deploy Later an already created SO)
c. ValidateNow – (Validate now an already created SO)
d. ValidateLater – (Validate later an already created SO)
e. PartialDeleteNow – (Delete the partially created configuration now)
f. PartialDeleteLater – (Delete the partially created configuration Later)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 42
5.2.7 Delete Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders/<serviceId>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553600</Value>
</Identity>
<Code>200</Code>
<Message>Service order Deleted Successfully.</Message>
</Status>
</Data>
5.2.8 View Pending Order Configuration
URL: api/space/nsas/eline-ptp/service-management/service-orders/view-pendingorder-
configuration/<serviceorder-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.pendingorder-config+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<PendingOrderConfiguration>
<PendingOrderConfigDeviceEnd>
<DeviceName>exora</DeviceName>
<Configuration><configuration><interfaces><interface><name>ge-
0/1/1</name><flexible-vlan-tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>24</name><encapsulation>vlan-ccc</encapsulation><vlan-id-
range>24-34</vlan-id-
range></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.1</name
><interface><name>ge-0/1/1.24</name><virtual-circuit-id>2147467281</virtual-circuit-id><no-control-
word/><mtu>1522</mtu><revert-time>5</revert-time><backup-
neighbor><name>30.1.2.7</name><virtual-circuit-id>2147467281</virtual-circuit-id><standby/></backup-
neighbor></interface></neighbor></l2circuit></protocols></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
<PendingOrderConfigDeviceEnd>
<DeviceName>junos-space1</DeviceName>
<Configuration><configuration><interfaces><interface><name>ge-
0/1/5</name><flexible-vlan-tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>24</name><encapsulation>vlan-ccc</encapsulation><vlan-id-
range>24-34</vlan-id-
range></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 43
><interface><name>ge-0/1/5.24</name><virtual-circuit-id>2147467281</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
<PendingOrderConfigDeviceEnd>
<DeviceName>kochin</DeviceName>
<Configuration><configuration><interfaces><interface><name>ge-
0/0/4</name><flexible-vlan-tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>24</name><encapsulation>vlan-ccc</encapsulation><vlan-id-
range>24-34</vlan-id-
range></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name
><interface><name>ge-0/0/4.24</name><virtual-circuit-id>2147467281</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
</PendingOrderConfiguration>
</Data>
5.3 Service Management API
5.3.1 Get All Services
URL: api/space/nsas/eline-ptp/service-management/services
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="2">
<Service href="/api/space/nsas/eline-ptp/service-management/services/262378"
uri="/api/space/nsas/eline-ptp/service-management/services/262378" key="262378">
<Common>
<Name>Eline_QinQ_AVlan_001</Name>
<Identity>262378</Identity>
<State>Deployed</State>
<Comments>Eline_QinQ_AVlan_001</Comments>
<CreatedDate>2012-06-28T16:32:56.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T16:32:56.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<Reference>
<ServiceOrder key="262371"
href="/api/space/nsas/eline-ptp/service-management/service-orders/262371"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262371" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262144" />
</ServiceDefinition>
<Customer key="327680" href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" />
</Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 44
</Service>
<Service href="/api/space/nsas/eline-ptp/service-management/services/262396"
uri="/api/space/nsas/eline-ptp/service-management/services/262396" key="262396">
<Common>
<Name>ATM_001</Name>
<Identity>262396</Identity>
<State>Deployed</State>
<Comments>ATM_001</Comments>
<CreatedDate>2012-06-28T16:35:52.000+05:30</CreatedDate>
<LastUpdatedDate>2012-06-28T16:35:52.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<Reference>
<ServiceOrder key="262389"
href="/api/space/nsas/eline-ptp/service-management/service-orders/262389"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262389" />
<ServiceDefinition>
<ServiceDefinitionID key="262307"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262307"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262307" />
</ServiceDefinition>
<Customer key="327680" href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" />
</Reference>
</Service>
</ServiceResource>
</Data>
5.3.2 Get All Services with Pagination
URL1: api/space/nsas/eline-ptp/service-management/services?start=2&limit=3
URL2: api/space/nsas/eline-ptp/service-management/services?paging=(start eq 2, limit eq 3)
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="5">
<Service href="/api/space/nsas/eline-ptp/service-management/services/1179679"
uri="/api/space/nsas/eline-ptp/service-management/services/1179679" key="1179679">
<Common>
<Name>Eline</Name>
<Identity>1179679</Identity>
<State>Deployed</State>
<Comments>Eline</Comments>
<CreatedDate>2012-07-02T15:34:00.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-02T15:34:00.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 45
<ServiceOrder key="1179672"
href="/api/space/nsas/eline-ptp/service-management/service-orders/1179672"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1179672" />
<ServiceDefinition>
<ServiceDefinitionID key="1179648"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648" />
</ServiceDefinition>
<Customer key="327680" href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" />
</Reference>
</Service>
</ServiceResource>
</Data>
5.3.3 Get All Services – Filtered Based on CustomerId/CustomerName
URL1: api/space/nsas/eline-ptp/service-management/services?customerId=360448
URL2: api/space/nsas/eline-ptp/service-management/services?customerName=Customer_005
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="3">
<Service href="/api/space/nsas/eline-ptp/service-management/services/262378"
uri="/api/space/nsas/eline-ptp/service-management/services/262378" key="262378">
<Common>
<Name>Eline_TDM_001</Name>
<Identity>262378</Identity>
<State>Deployed</State>
<Comments>Eline_TDM_001</Comments>
<CreatedDate>2012-08-09T19:21:25.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-09T19:21:25.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<Reference>
<ServiceOrder key="262371"
href="/api/space/nsas/eline-ptp/service-management/service-orders/262371"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262371" />
<ServiceDefinition>
<ServiceDefinitionID key="262279"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262279"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262279" />
</ServiceDefinition>
<Customer key="360448"
href="/api/space/nsas/customer-management/customers/360448" uri="/api/space/nsas/customer-
management/customers/360448" />
</Reference>
</Service>
<Service href="/api/space/nsas/eline-ptp/service-management/services/262423"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 46
uri="/api/space/nsas/eline-ptp/service-management/services/262423" key="262423">
<Common>
<Name>Eline_SO_004</Name>
<Identity>262423</Identity>
<State>Deployed</State>
<Comments>Eline_SO_004</Comments>
<CreatedDate>2012-08-09T19:47:09.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-09T19:47:09.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<Reference>
<ServiceOrder key="262416"
href="/api/space/nsas/eline-ptp/service-management/service-orders/262416"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262416" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262144" />
</ServiceDefinition>
<Customer key="360448"
href="/api/space/nsas/customer-management/customers/360448" uri="/api/space/nsas/customer-
management/customers/360448" />
</Reference>
</Service>
<Service href="/api/space/nsas/eline-ptp/service-management/services/262441"
uri="/api/space/nsas/eline-ptp/service-management/services/262441" key="262441">
<Common>
<Name>ATM_001</Name>
<Identity>262441</Identity>
<State>Deployed</State>
<Comments>ATM_001</Comments>
<CreatedDate>2012-08-09T20:00:15.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-09T20:00:15.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<Reference>
<ServiceOrder key="262434"
href="/api/space/nsas/eline-ptp/service-management/service-orders/262434"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262434" />
<ServiceDefinition>
<ServiceDefinitionID key="262307"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262307"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262307" />
</ServiceDefinition>
<Customer key="360448"
href="/api/space/nsas/customer-management/customers/360448" uri="/api/space/nsas/customer-
management/customers/360448" />
</Reference>
</Service>
</ServiceResource>
</Data>
5.3.4 Get Service
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 47
URL: api/space/nsas/eline-ptp/service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/eline-ptp/service-management/services/1179679"
uri="/api/space/nsas/eline-ptp/service-management/services/1179679" key="1179679">
<Common>
<Name>Service_005</Name>
<Identity>1179679</Identity>
<State>Deployed</State>
<Comments></Comments>
<CreatedDate>2012-07-02T15:34:00.000+05:30</CreatedDate>
<LastUpdatedDate>2012-07-02T15:34:00.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/327689" uri="/api/space/nsas/device-roles/pe-
devices/327689"
key="327689">
<DeviceName>exora</DeviceName>
<DeviceID>327689</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1231</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">1</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.3</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.2</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/327742" uri="/api/space/nsas/device-roles/pe-
devices/327742"
key="327742">
<DeviceName>jaipur</DeviceName>
<DeviceID>327742</DeviceID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 48
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1231</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">1</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.2</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.3</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<Reference>
<ServiceOrder key="1179672"
href="/api/space/nsas/eline-ptp/service-management/service-orders/1179672"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1179672" />
<ServiceDefinition>
<ServiceDefinitionID key="1179648"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1179648" />
</ServiceDefinition>
<Customer key="327680"
href="/api/space/nsas/customer-management/customers/327680"
uri="/api/space/nsas/customer-management/customers/327680" />
</Reference>
</Service>
</ServiceResource>
</Data>
5.3.5 Modify Service
URL: api/space/nsas/eline-ptp/service-management/services/<serviceId>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>P2PSERVICE_modified</Name>
<Comments>New Schema</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 49
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>2392175</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/8</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<Bandwidth unit="Mbps">70</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>2392220</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/8</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<Bandwidth unit="Mbps">90</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>3964937</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>3964948</Value>
</Identity>
<Job>
<ID>1474600</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Modified Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 50
5.3.6 Clone Service
URL: api/space/nsas/eline-ptp/service-management/services/clone/<serviceId>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.clone-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_Test_505_Clone_1</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<VlanId>238</VlanId>
<Bandwidth unit="Mbps">20</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<VlanId>238</VlanId>
<Bandwidth unit="Mbps">20</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<VCID>238</VCID>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 51
xsi:type="ServiceCustomActionType">
<Action>Save</Action>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3964937</Value>
</Identity>
<Job>
<ID>1474600</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Created Successfully.</Message>
</Status>
</Data>
5.3.7 Force Deploy Service
URL: api/space/nsas/eline-ptp/service-management/services/{serviceId}
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance">
<CustomAction xsi:type="ServiceCustomActionType">
<Action>DeployLater</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>3964937</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>3964948</Value>
</Identity>
<Job>
<ID>1474600</ID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 52
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Force Deploy was Successfully triggered.
Please check the status using the JOB ID.</Message>
</Status>
</Data>
The various Options like DeployNow and DeployLater can be given in the Action element with in the
OperationSpecificData tag.
5.3.8 Decommissioning of Service
5.3.8.1 Decommission Now
URL: api/space/nsas/eline-ptp/service-management/services/{serviceId}
METHOD: DELETE
Sample Request: No Payload is supported/ required
Sample Response:
<RESTOperation xmlns="services.schema.networkapi.jmp.juniper.net">
<Response>
<Job>
<ID>1540110</ID>
<Status>INPROGRESS</Status>
</Job>
<Identity>
<Type>Service</Type>
<Value>2850823</Value>
</Identity>
<Data>
<OperationSpecificData>
<ResponseMessage>
<HTTPResponseCode>200</HTTPResponseCode>
<ResponseMessage>Service Decommission was Successfully triggered.
Please check the status using the JOB ID.</ResponseMessage>
</ResponseMessage>
</OperationSpecificData>
</Data>
</Response>
</RESTOperation>
5.3.8.2 Decommission Later
URL: api/space/nsas/eline-ptp/service-management/services
METHOD: DELETE
Content-type: application/vnd.net.juniper.space.service-management.service+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 53
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Identity>
<Type>Service</Type>
<Value>1540110</Value>
</Identity>
<CustomAction xsi:type="ServiceCustomActionType">
<Action>DecommissionLater</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>1179679</Value>
</Identity>
<Job>
<ID>1998906</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Decommission was Successfully triggered. Please check
the status using the JOB ID.</Message>
</Status>
</Data>
5.4 Auditing API
5.4.1 Perform Configuration Audit
URL: api/space/nsas/eline-ptp/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ConfigAuditCustomActionType">
<Action>AuditNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 54
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>262378</Value>
</Identity>
<Job>
<ID>1998913</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Configurational Audit was Successfully triggered.Please
check the status using the JOB ID.</Message>
</Status>
</Data>
The options for AuditNow and AuditLater can be given in the ‘Action’ element within the “OperationSpecificData”.
5.4.2 Perform Functional Audit
URL: api/space/nsas/eline-ptp/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="FunctionalAuditCustomActionType">
<Action>AuditNow</Action>
</CustomAction>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>754022</Value>
</Identity>
<Job>
<ID>231082</ID>
<Status>INPROGRESS</Status>
<AssociatedJob>
<ID>231083</ID>
<Status>INPROGRESS</Status>
<Code>200</Code>
<Message>The Monitoring Audit was successfully triggered. Please
check the status using the JOB ID.</Message>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 55
</AssociatedJob>
</Job>
<Code>200</Code>
<Message>The Functional Audit was successfully triggered. Please check
the status using the JOB ID.</Message>
</Status>
</Data>
The options for AuditNow and AuditLater can be given in the ‘Action’ element within the “OperationSpecificData”.
5.4.3 View Configuration Audit Results
URL: api/space/nsas/eline-ptp/service-management/services/view-configuration-audit/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.config-audit+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<ConfigurationAuditResult>
<ConfigDeviceEnd>
<DeviceName>embassy</DeviceName>
<DeviceStatus>Up</DeviceStatus>
<Details>Successfully Config Audited
</Details>
</ConfigDeviceEnd>
<ConfigDeviceEnd>
<DeviceName>exora</DeviceName>
<DeviceStatus>Up</DeviceStatus>
<Details>Successfully Config Audited
</Details>
</ConfigDeviceEnd>
</ConfigurationAuditResult>
</AuditResults>
</Data>
5.4.4 View Functional Audit Results
URL: api/space/nsas/eline-ptp/service-management/services/view-functional-audit/<service-id>
METHOD : GET
Accept: application/vnd.net.juniper.space.service-management.functional-audit+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<FunctionalAuditResult>
<Common>
<Name>Eline_QinQ_AVlan_001</Name>
<Identity>262378</Identity>
<State>Deployed</State>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<ServiceDefinitionName>ELine-QinQ-AllVLAN</ServiceDefinitionName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 56
<OperationState>Down</OperationState>
<DeviceEnd>
<DeviceName>ge-1/0/1 embassy</DeviceName>
<Topology>P2P</Topology>
<OperationState>Down</OperationState>
<RemoteEnd>
<ControlPlaneParams>
<Command>get-l2ckt-connection-information</Command>
<RemoteEndpoint>ge-0/1/1 exora</RemoteEndpoint>
<CommandStatus>no outgoing label </CommandStatus>
</ControlPlaneParams>
<DataPlaneParams>
<Command>request-ping-l2circuit-virtual-circuit</Command>
<Result>Status: probably configuration missing on device
</Result>
</DataPlaneParams>
<ServiceStatistics>
<Command>show interfaces ge-1/0/1.784 statistics</Command>
<RemoteLoopbackIP>50.1.2.4</RemoteLoopbackIP>
<VCID>1456783</VCID>
<InputPackets>0</InputPackets>
<OutputPackets>0</OutputPackets>
</ServiceStatistics>
</RemoteEnd>
</DeviceEnd>
<DeviceEnd>
<DeviceName>ge-0/1/1 exora</DeviceName>
<Topology>P2P</Topology>
<OperationState>Down</OperationState>
<RemoteEnd>
<ControlPlaneParams>
<Command>get-l2ckt-connection-information</Command>
<RemoteEndpoint>ge-1/0/1 embassy</RemoteEndpoint>
<CommandStatus>no outgoing label </CommandStatus>
</ControlPlaneParams>
<DataPlaneParams>
<Command>request-ping-l2circuit-virtual-circuit</Command>
<Result>Status: probably configuration missing on device
</Result>
</DataPlaneParams>
<ServiceStatistics>
<Command>show interfaces ge-0/1/1.784 statistics</Command>
<RemoteLoopbackIP>50.1.2.3</RemoteLoopbackIP>
<VCID>1456783</VCID>
<InputPackets>0</InputPackets>
<OutputPackets>0</OutputPackets>
</ServiceStatistics>
</RemoteEnd>
</DeviceEnd>
</FunctionalAuditResult>
</AuditResults>
</Data>
5.4.5 View Service Configuration Change Result
URL: api/space/nsas/eline-ptp/service-management/services/view-serviceconfiguration-change/<service-id>
METHOD:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 57
Accept : application/vnd.net.juniper.space.service-management.config-change+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<ServiceConfigurationChangeResult>
<ServiceConfigDeviceEnd>
<DeviceName>embassy</DeviceName>
<Configuration><configuration><firewall><policer><name>policer_in_ge-
1/0/1_784</name><if-exceeding><bandwidth-limit>10000000</bandwidth-limit><burst-size-
limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><ccc><filter><name>filter_in_ge-
1/0/1_784</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
1/0/1_784</policer><accept/></then></term></filter></ccc></family></firewall><interfaces&
gt;<interface><name>ge-1/0/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>784</name><description>No
description available for selected UNI
interface.</description><encapsulation>vlan-
ccc</encapsulation><family><ccc><filter><input>filter_in_ge-
1/0/1_784</input></filter></ccc></family><vlan-tags><outer>784</outer></vlan-
tags></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name&
gt;<interface><name>ge-1/0/1.784</name><virtual-circuit-id>1456783</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration></Config
uration>
</ServiceConfigDeviceEnd>
<ServiceConfigDeviceEnd>
<DeviceName>exora</DeviceName>
<Configuration><configuration><firewall><policer><name>policer_in_ge-
0/1/1_784</name><if-exceeding><bandwidth-limit>10000000</bandwidth-limit><burst-size-
limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><ccc><filter><name>filter_in_ge-
0/1/1_784</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
0/1/1_784</policer><accept/></then></term></filter></ccc></family></firewall><interfaces&
gt;<interface><name>ge-0/1/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>784</name><description>No
description available for selected UNI
interface.</description><encapsulation>vlan-
ccc</encapsulation><family><ccc><filter><input>filter_in_ge-
0/1/1_784</input></filter></ccc></family><vlan-tags><outer>784</outer></vlan-
tags></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.4</name&
gt;<interface><name>ge-0/1/1.784</name><virtual-circuit-id>1456783</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols><policy-
options/></configuration></Configuration>
</ServiceConfigDeviceEnd>
</ServiceConfigurationChangeResult>
</AuditResults>
</Data>
5.4.6 View Monitoring/Troubleshoot Results
URL: api/space/nsas/eline-ptp/service-management/services/view-troubleshoot-results/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.troubleshoot-results+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 58
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<TroubleshootResult>
<DeviceEnd>
<DeviceName>embassy</DeviceName>
<CommandResult>
<Protocol>
<UNI>
<CommandDetails>
<Command>show l2circuit connections interface ge-1/0/1.760</Command>
<Results>
<Row>
<Parameter>
<Name>Connection-site</Name>
<Value>ge-1/0/1.760(vc 760)</Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>OL</Value>
</Parameter>
<Parameter>
<Name>Type</Name>
<Value>rmt</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-1/0/1.760 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Link</Name>
<Value>
up
</Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value>
up
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show ldp database session 50.1.2.3</Command>
<Results>
<Row>
<Parameter>
<Name>State</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Neighbor Address</Name>
<Value></Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 59
<Name>Connection State</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp neighbor 50.1.2.3</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>lo0.0</Value>
</Parameter>
<Parameter>
<Name>Label</Name>
<Value>0.0.0.0:0</Value>
</Parameter>
<Parameter>
<Name>Neighbor Address</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table inet.3 protocol ldp terse</Command>
<Results>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.3.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.1/32</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.3.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.2/32</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 60
<Value>40.1.3.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.3/32</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>exora</DeviceName>
<CommandResult>
<Protocol>
<UNI>
<CommandDetails>
<Command>show l2circuit connections interface ge-0/1/2.760</Command>
<Results>
<Row>
<Parameter>
<Name>Connection-site</Name>
<Value>ge-0/1/2.760(vc 760)</Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>OL</Value>
</Parameter>
<Parameter>
<Name>Type</Name>
<Value>rmt</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/1/2.760 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Link</Name>
<Value>
up
</Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value>
up
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show ldp database session 50.1.2.4</Command>
<Results>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 61
<Name>State</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Neighbor Address</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Connection State</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp neighbor 50.1.2.4</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Label</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Neighbor Address</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table inet.3 protocol ldp terse</Command>
<Results>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.1/32</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.2/32</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 62
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.4/32</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
</Protocol>
</CommandResult>
</DeviceEnd>
</TroubleshootResult>
</AuditResults>
</Data>
6 Eline P2P with BGP
6.1 Create Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Sample Request (Ethernet-BGP) :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>BGP_Ether1</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire(BGP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<MTU default="1522" editable="false" />
<RD selection="Select manually" editable="true" />
<RT selection="Select manually" editable="true" />
</ServiceElementConfigurationDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 63
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false" />
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" />
<EnableRateLimiting>Not enabled</EnableRateLimiting>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>3964928</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Created Successfully</Message>
</Status>
</Data>
Sample Request (ATM- BGP):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>BGP_ATM1</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire(BGP)</ServiceType>
<InterfaceType>ATM</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMServiceEndpointGroupParameterDefType">
<MTU default="1522" editable="false" />
<RD selection="Select manually" editable="true" />
<RT selection="Select manually" editable="true" />
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointParameterDefType">
<PhysicalEncapsulation>atm-ccc-cell-relay</PhysicalEncapsulation>
<VPISelection selection="Select manually" editable="false" />
<VCISelection selection="Select manually" editable="false" />
<CellBundleSize editable="false" min="1" max="176">1
</CellBundleSize>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 64
</Data>
Sample Request (TDM–BGP):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>BGP_TDM1</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire(BGP)</ServiceType>
<InterfaceType>TDM</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
<MTU default="1522" editable="false" />
<RD selection="Select manually" editable="true" />
<RT selection="Select manually" editable="true" />
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointParameterDefType">
<PhysicalEncapsulation>satop</PhysicalEncapsulation>
<JitterBuffer editable="false">5</JitterBuffer>
<IdlePattern editable="false" min="0" max="255">255
</IdlePattern>
<ExcessPacketLossRate editable="false" min="0"
max="100">20</ExcessPacketLossRate>
<PayloadSize editable="false">192</PayloadSize>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
6.2 Get Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions/<servicedefinitionId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition href="/api/space/nsas/eline-ptp/service-management/service-definitions/1703977" uri="/api/space/nsas/eline-
ptp/service-management/service-definitions/1703977" key="1703977">
<Common>
<Name>PTPBGPRTRDManual</Name>
<Identity>1703977</Identity>
<State>Published</State>
<CreatedDate>2012-12-16T20:42:08.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-16T20:42:08.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire(BGP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 65
<EnableL3Access>false</EnableL3Access>
<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<MTU default="1522" editable="false" min="1522" max="9192"/>
<RD selection="Select manually" editable="true"/>
<RT selection="Select manually" editable="true"/>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false"/>
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0"/>
<VlanIdManual default="0" min="0" max="0"/>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192"/>
<EnableRateLimiting>Not enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="false" min="1" max="100" unit="Mbps">N/A</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">0</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">0</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">0</Increment>
<OuterTagProtocolId editable="false"/>
<InnerTagProtocolId editable="false"/>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
6.3 Create Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request: (Ethernet – BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Ethernet-BGP-API</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>393286</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/5</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 66
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>393340</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/5</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>100:6</RouteTarget>
<RouteDistinguisher>100:27</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="393216"/>
<ServiceDefinition>
<ServiceDefinitionID key="3506181"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Request: (ATM – BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>BGP_ATM_API</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>393269</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointConfigParameterOrderType">
<VPI>2</VPI>
<VCI>3</VCI>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>Unmanaged device</DeviceName>
<DeviceID>0</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/3</InterfaceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 67
<LoopbackIP>30.1.2.4</LoopbackIP>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<RouteTarget>10:13</RouteTarget>
<RouteDistinguisher>10:76</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="393216"/>
<ServiceDefinition>
<ServiceDefinitionID key="1441819"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>2424838</Value>
</Identity>
<Job>
<ID>688205</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
Sample Request: (TDM-BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name> BGP_TDM_API </Name>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-space1</DeviceName>
<DeviceID>393414</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
</ServiceEndpointConfiguration>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 68
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>Unmanaged device</DeviceName>
<DeviceID>0</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/9</InterfaceName>
<LoopbackIP>30.1.2.7</LoopbackIP>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<RouteTarget>69:144410</RouteTarget>
<RouteDistinguisher>69:1444</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="393216"/>
<ServiceDefinition>
<ServiceDefinitionID key="3506205"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
6.4 Get Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders/<serviceorderId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder href="/api/space/nsas/eline-ptp/service-management/service-orders/1998872" uri="/api/space/nsas/eline-ptp/service-
management/service-orders/1998872" key="1998872">
<Common>
<Name>P2P_Eline_BGP</Name>
<Identity>1998872</Identity>
<State>Invalid</State>
<Comments>
</Comments>
<CreatedDate>2012-12-17T00:27:48.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-17T00:27:48.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/720968" uri="/api/space/nsas/device-roles/pe-devices/720968" key="720968">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 69
<DeviceName>jaipur</DeviceName>
<DeviceID>720968</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>lt-0/1/0</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>DOT1Q Transport single vlan</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>513</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721104" uri="/api/space/nsas/device-roles/pe-devices/721104" key="721104">
<DeviceName>junos-space1</DeviceName>
<DeviceID>721104</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/5</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>DOT1Q Transport single vlan</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>512</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType">
<RouteTarget>10:89</RouteTarget>
<RouteDistinguisher>10:77</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
<ServiceDefinition>
<ServiceDefinitionID key="1703977" href="/api/space/nsas/service-management/service-definitions/1703977"
uri="/api/space/nsas/service-management/service-definitions/1703977"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
6.5 Get Service
URL: api/space/nsas/eline-ptp/service-management/services/<serviceId>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 70
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/eline-ptp/service-management/services/2261005" uri="/api/space/nsas/eline-ptp/service-
management/services/2261005" key="2261005">
<Common>
<Name>BGP_PTP</Name>
<Identity>2261005</Identity>
<State>Deployed</State>
<Comments>
</Comments>
<CreatedDate>2012-12-17T01:32:09.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-17T01:32:09.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>BGP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721065" uri="/api/space/nsas/device-roles/pe-devices/721065" key="721065">
<DeviceName>exora</DeviceName>
<DeviceID>721065</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/1.656</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>656</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.3</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.4</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721075" uri="/api/space/nsas/device-roles/pe-devices/721075" key="721075">
<DeviceName>embassy</DeviceName>
<DeviceID>721075</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>xe-0/0/2.99</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterServiceType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 71
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>99</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.4</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.3</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterServiceType">
<RouteTarget>100:10</RouteTarget>
<RouteDistinguisher>100:36</RouteDistinguisher>
</ServiceParameters>
<Reference>
<ServiceOrder key="2260992" href="/api/space/nsas/eline-ptp/service-management/service-orders/2260992" uri="/api/space/nsas/eline-
ptp/service-management/service-orders/2260992"/>
<ServiceDefinition>
<ServiceDefinitionID key="360448" href="/api/space/nsas/eline-ptp/service-management/service-definitions/360448"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/360448"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
7 L3VPN
7.1 Service-Definition API
7.1.1 Get All Service Definitions
URL: api/space/nsas/l3vpn/service-management/service-definitions
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definitions+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="10">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 72
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294912"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294912"
key="294912">
<Common>
<Name>L3VPN-BGP-Static</Name>
<Identity>294912</Identity>
<State>Published</State>
<Comments>L3VPN with BGP/Static as PE-CE routing protocol</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294925"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294925"
key="294925">
<Common>
<Name>L3VPN-OSPF-Static</Name>
<Identity>294925</Identity>
<State>Published</State>
<Comments>L3VPN with OSPF/Static as PE-CE routing protocol
</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294938"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294938"
key="294938">
<Common>
<Name>L3VPN-OSPF-Static(Hub-Spoke-1-Interface)</Name>
<Identity>294938</Identity>
<State>Published</State>
<Comments>L3VPN Hub and Spoke 1 interface with OSPF/Static as PE-CE
routing protocol</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294951"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294951"
key="294951">
<Common>
<Name>L3VPN-BGP-Static(Hub-Spoke-1-Interface)</Name>
<Identity>294951</Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 73
<State>Published</State>
<Comments>L3VPN Hub and Spoke 1 interface with BGP/Static as PE-CE
routing protocol</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
</ServiceResource>
</Data>
7.1.2 Get All Service Definitions with Pagination
URL1: api/space/nsas/l3vpn/service-management/service-definitions?start=4&limit=2
URL2: api/space/nsas/l3vpn/service-management/service-definitions?paging=(start eq 4, limit eq 2)
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definitions+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="10">
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294912"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294912"
key="294912">
<Common>
<Name>L3VPN-BGP-Static</Name>
<Identity>294912</Identity>
<State>Published</State>
<Comments>L3VPN with BGP/Static as PE-CE routing protocol</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294925"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294925"
key="294925">
<Common>
<Name>L3VPN-OSPF-Static</Name>
<Identity>294925</Identity>
<State>Published</State>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 74
<Comments>L3VPN with OSPF/Static as PE-CE routing protocol
</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294938"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294938"
key="294938">
<Common>
<Name>L3VPN-OSPF-Static(Hub-Spoke-1-Interface)</Name>
<Identity>294938</Identity>
<State>Published</State>
<Comments>L3VPN Hub and Spoke 1 interface with OSPF/Static as PE-CE
routing protocol</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/294951"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/294951"
key="294951">
<Common>
<Name>L3VPN-BGP-Static(Hub-Spoke-1-Interface)</Name>
<Identity>294951</Identity>
<State>Published</State>
<Comments>L3VPN Hub and Spoke 1 interface with BGP/Static as PE-CE
routing protocol</Comments>
<CreatedDate>2012-08-10T15:48:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-10T15:48:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType" />
</ServiceDefinition>
</ServiceResource>
</Data>
7.1.3 Get Service Definition
URL: api/space/nsas/l3vpn/service-management/service-definitions/<servicedefinition-Id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 75
Sample Response:
<Data>
<ServiceResource>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/2326954"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/2326954"
key="2326954">
<Common>
<Name>L3VPNFULL041</Name>
<Identity>2326954</Identity>
<State>Unpublished</State>
<CreatedDate>2012-09-05T06:33:28.000Z</CreatedDate>
<LastUpdatedDate>2012-09-05T06:33:28.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
<ServiceElementConfigurationDefinition
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Auto pick" editable="false" />
<RouteDistinguisher selection="Select manually"
editable="true" />
<VRFTabelLabel>true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="true" />
</PEInterfaceIP>
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="false">29</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Select manually"
editable="true" />
<VlanIdAuto max="0" min="0" />
<VlanIdManual max="400" min="200" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
7.1.4 Create Service Definition
URL: api/space/nsas/l3vpn/service-management/service-definitions
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>L3VPNFULL002</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 76
<Comments>L3VPNFULLMESH001</Comments>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Auto pick" editable="false" />
<RouteDistinguisher editable="false" selection="Auto pick"/>
<VRFTabelLabel>true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP editable="false" selection="Auto pick"/>
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="false">29</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" />
<VlanIdAuto max="3000" min="33" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
7.1.5 Publish/UnPublish Service Definition
URL: api/space/nsas/l3vpn/service-management/service-definitions/<servicedefinition-Id>
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Publish
Request
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
<Action>UnPublish</Action>
</CustomAction>
</Data>
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition UnPublished Successfully</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 77
UnPublish
Request
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
<Action>Publish</Action>
</CustomAction>
</Data>
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Published Successfully</Message>
</Status>
</Data>
7.1.6 Delete Service Definition
URL: api/space/nsas/l3vpn/service-management/service-definitions/<servicedefinition-Id>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Deleted Successfully</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 78
7.2 Service-Order Management API
7.2.1 Get All Service Orders
URL: api/space/nsas/l3vpn/service-management/service-orders
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="2">
<ServiceOrder
href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-
management/service-orders/983419"
key="983419">
<Common>
<Name>L3VPNHSOSPFService0017</Name>
<Identity>983419</Identity>
<State>Completed</State>
<CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Modification</Action>
<Reference>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
<ServiceDefinition>
<ServiceDefinitionID key="360474"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360474"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" />
</ServiceDefinition>
<Service key="983303"
href="/api/space/nsas/l3vpn/service-management/services/983303"
uri="/api/space/nsas/l3vpn/service-management/services/983303" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/l3vpn/service-management/service-orders/983367" uri="/api/space/nsas/l3vpn/service-
management/service-orders/983367"
key="983367">
<Common>
<Name>L3VPNHSOSPFService0016</Name>
<Identity>983367</Identity>
<State>Completed</State>
<CreatedDate>2012-09-08T14:44:31.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T14:44:59.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Modification</Action>
<Reference>
<Customer key="557278"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 79
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
<ServiceDefinition>
<ServiceDefinitionID key="360474"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360474"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" />
</ServiceDefinition>
<Service key="983303"
href="/api/space/nsas/l3vpn/service-management/services/983303"
uri="/api/space/nsas/l3vpn/service-management/services/983303" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
7.2.2 Get All Service Orders – Filtered based on Customer
URL1: api/space/nsas/l3vpn/service-management/service-orders?customerId=557278
URL2: api/space/nsas/l3vpn/service-management/service-orders?customerName=Customer_001
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="2">
<ServiceOrder
href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-
management/service-orders/983419"
key="983419">
<Common>
<Name>L3VPNHSOSPFService0017</Name>
<Identity>983419</Identity>
<State>Completed</State>
<CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Modification</Action>
<Reference>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
<ServiceDefinition>
<ServiceDefinitionID key="360474"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360474"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" />
</ServiceDefinition>
<Service key="983303"
href="/api/space/nsas/l3vpn/service-management/services/983303"
uri="/api/space/nsas/l3vpn/service-management/services/983303" />
</Reference>
</ServiceOrder>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 80
<ServiceOrder
href="/api/space/nsas/l3vpn/service-management/service-orders/983367" uri="/api/space/nsas/l3vpn/service-
management/service-orders/983367"
key="983367">
<Common>
<Name>L3VPNHSOSPFService0016</Name>
<Identity>983367</Identity>
<State>Completed</State>
<CreatedDate>2012-09-08T14:44:31.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T14:44:59.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Modification</Action>
<Reference>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
<ServiceDefinition>
<ServiceDefinitionID key="360474"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360474"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" />
</ServiceDefinition>
<Service key="983303"
href="/api/space/nsas/l3vpn/service-management/services/983303"
uri="/api/space/nsas/l3vpn/service-management/services/983303" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
7.2.3 Get Service Order
URL: api/space/nsas/l3vpn/service-management/service-orders/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-
management/service-orders/983419"
key="983419">
<Common>
<Name>L3VPNHSOSPFService0017</Name>
<Identity>983419</Identity>
<State>Completed</State>
<Comments></Comments>
<CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Modification</Action>
<ServiceEndPointGroup>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 81
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/557219" uri="/api/space/nsas/device-
roles/pe-devices/557219"
key="557219">
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>557219</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>695</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.77.9</InterfaceIP>
<Hub>false</Hub>
<OSPFAreaId>0.3.0.4</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/557109" uri="/api/space/nsas/device-
roles/pe-devices/557109"
key="557109">
<DeviceName>exora</DeviceName>
<DeviceID>557109</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>695</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.88.21</InterfaceIP>
<Hub>false</Hub>
<OSPFAreaId>0.2.0.3</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<VRFTabelLabel>Enabled</VRFTabelLabel>
<HubRouteTarget>100:6</HubRouteTarget>
<SpokeRouteTarget>100:7</SpokeRouteTarget>
</ServiceOrderParameter>
<Reference>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
<ServiceDefinition>
<ServiceDefinitionID key="360474"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360474"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 82
</ServiceDefinition>
<Service key="983303"
href="/api/space/nsas/l3vpn/service-management/services/983303"
uri="/api/space/nsas/l3vpn/service-management/services/983303" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
7.2.4 Create Service Order
URL: api/space/nsas/l3vpn/service-management/service-orders
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request :
i)L3VPNHubSpokeOSPF :
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNHSOSPFService_API6</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>1475014</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>fe-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<EthernetOption>Flexible UNI</EthernetOption>
<Hub>true</Hub>
<InterfaceIP AutoPick="false">10.0.88.93</InterfaceIP>
<IPBlockSize>32</IPBlockSize>
<UnitID>12</UnitID>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-space1</DeviceName>
<DeviceID>1474976</DeviceID>
</NA>
</DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 83
<ServiceEndPoint>
<InterfaceName>fe-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>false</Hub>
<InterfaceIP AutoPick="true" />
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<OSPFAreaId>1.1.1.1</OSPFAreaId>
<OSPFVersion>Ver 3</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="1474923" />
<ServiceDefinition>
<ServiceDefinitionID key="1409050" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
ii)L3VPNFullMeshOSPF :
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNFMOSPFService_API3</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>557101</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>Flexible UNI</EthernetOption>
<InterfaceIP AutoPick="true" />
<IPAddressPool>10.0.99.0/24</IPAddressPool>
<IPBlockSize>32</IPBlockSize>
<UnitID>12</UnitID>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 84
<DeviceInfo>
<NA>
<DeviceName>junos-space1</DeviceName>
<DeviceID>557247</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<AutoPickVlanID>true</AutoPickVlanID>
<InterfaceIP AutoPick="true" />
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<OSPFAreaId>1.1.1.2</OSPFAreaId>
<OSPFVersion>Ver 3</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="557262" />
<ServiceDefinition>
<ServiceDefinitionID key="360461" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
iii)L3VPNFullMeshBGP :
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNFMBGPService_API6</Name>
<Comments>test</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>mx801</DeviceName>
<DeviceID>753805</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName> ge-1/2/9 </InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<InterfaceIP AutoPick="false">10.0.77.90</InterfaceIP>
<IPBlockSize>32</IPBlockSize>
<PeerAS>23</PeerAS>
<NeighborIP>10.0.77.75</NeighborIP>
</ServiceEndpointConfiguration>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 85
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-space1</DeviceName>
<DeviceID>753850</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/9</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<AutoPickVlanID>true</AutoPickVlanID>
<InterfaceIP AutoPick="true" />
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<PeerAS>23</PeerAS>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<ASOverride>true</ASOverride>
<MaximumPrefixes>56</MaximumPrefixes>
</ServiceOrderParameter>
<Reference>
<Customer key="754039" />
<ServiceDefinition>
<ServiceDefinitionID key="688128" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>Save</Action>
</CustomAction>
</Data>
iv)L3VPNHubSpokeBGP :
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNHSBGPService_API1</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>1474769</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName> fe-0/1/2 </InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 86
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>true</Hub>
<InterfaceIP AutoPick="false">10.0.77.14</InterfaceIP>
<IPBlockSize>32</IPBlockSize>
<PeerAS>23</PeerAS>
<NeighborIP>10.0.77.87</NeighborIP>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-space1</DeviceName>
<DeviceID>1474728</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>fe-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>false</Hub>
<AutoPickVlanID>false</AutoPickVlanID>
<VlanId>1761</VlanId>
<InterfaceIP AutoPick="true" />
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<PeerAS>23</PeerAS>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="1474923" />
<ServiceDefinition>
<ServiceDefinitionID key="1409063" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1507439</Value>
</Identity>
<Job>
<ID>622660</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Order Created Successfully and Deployment is in
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 87
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
Note:
Creating a service order with Ethernet option “Flexible UNI” requires a service template to be associated for
providing VlanID input. The sample with service template is listed separately under the header Service Template.
For the various options in creating ServiceOrder the options must be specified in the ‘Action’ Element inside
OperationSpecificData.
The values available are
e. Save – (Create and only Save a SO)
f. SaveAndValidate – (Create, Save and Validate a SO) – Default value when no Custom action is specified.
g. SaveAndDeployNow – (Create, Save and Deploy a SO)
h. SaveAndDeployLater – (Create, Save and Deploy Later a SO)
7.2.5 Deploy/Validate/PartialDelete an already created SO
URL: api/space/nsas/l3vpn/service-management/service-orders/<serviceorder-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>DeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
The options must be specified in the ‘Action’ Element inside OperationSpecificData.
The various options are as follows:
g. DeployNow – (Deploy an already created SO)
h. DeployLater – (Deploy Later an already created SO)
i. ValidateNow – (Validate now an already created SO)
j. ValidateLater – (Validate later an already created SO)
k. PartialDeleteNow – (Delete the partially created configuration now)
l. PartialDeleteLater – (Delete the partially created configuration Later)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 88
7.2.6 Delete Service Order
URL: api/space/nsas/l3vpn/service-management/service-orders/<serviceId>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553600</Value>
</Identity>
<Code>200</Code>
<Message>Service order Deleted Successfully.</Message>
</Status>
</Data>
7.2.7 View Pending Order Configuration
URL: api/space/nsas/ l3vpn /service-management/service-orders/view-pendingorder-configuration/<serviceorder-
id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.pendingorder-config+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<PendingOrderConfiguration>
<PendingOrderConfigDeviceEnd>
<DeviceName>embassy</DeviceName>
<Configuration><configuration><routing-options><auto-export/></routing-
options><interfaces><interface><name>ge-1/0/1</name><flexible-vlan-
tagging/><unit><name>1</name><vlan-id>1</vlan-
id><family><inet><address><name>10.0.88.1/30</name></address></inet><inet6/></famil
y></unit></interface></interfaces><policy-options><policy-
statement><name>l3_test_spoke_bgp2ospf_pol</name><term><name>a</name><from><protocol&g
t;bgp</protocol></from><then><accept/></then></term><term><name>b</name><the
n><reject/></then></term></policy-statement><policy-
statement><name>l3_test_spoke_hs1_export_pol</name><term><name>a</name><from><protocol
>ospf</protocol><protocol>direct</protocol></from><then><community><add/><community-
name>l3_test_spoke_hs1_spoke_export_comm</community-
name></community><accept/></then></term><term><name>b</name><then><reject/>
;</then></term></policy-statement><policy-
statement><name>l3_test_spoke_hs1_import_pol</name><term><name>a</name><from><protocol
>bgp</protocol><protocol>ospf</protocol><protocol>direct</protocol><community>l3_test_spoke_hs1_
spoke_import_comm</community></from><then><accept/></then></term><term><name>b<
/name><then><reject/></then></term></policy-statement><community
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 89
operation="replace"><name>l3_test_spoke_hs1_spoke_export_comm</name><members>target:10
0:4</members></community><community
operation="replace"><name>l3_test_spoke_hs1_spoke_import_comm</name><members>target:1
00:2</members></community></policy-options><routing-
instances><instance><name>l3_test_spoke</name><instance-type>vrf</instance-type><interface
operation="replace"><name>ge-
1/0/1.1</name></interface><route-distinguisher><rd-type>100:4</rd-type></route-distinguisher><vrf-
import
operation="replace">l3_test_spoke_hs1_import_pol</vrf-import><vrf-export
operation="replace">l3_test_spoke_hs1_export_pol</vrf-export><vrf-table-
label/><protocols><ospf><area><name>0.0.0.0</name><interface><name>ge-
1/0/1.1</name></interface></area><export>l3_test_spoke_bgp2ospf_pol</export></ospf></protocols&g
t;</instance></routing-instances></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
<PendingOrderConfigDeviceEnd>
<DeviceName>jaipur</DeviceName>
<Configuration><configuration><routing-options><auto-export/></routing-
options><interfaces><interface><name>ge-0/1/1</name><flexible-vlan-
tagging/><unit><name>1</name><vlan-id>1</vlan-
id><family><inet><address><name>10.0.99.1/30</name></address></inet><inet6/></famil
y></unit></interface></interfaces><policy-options><policy-
statement><name>l3_test_hub_bgp2ospf_pol</name><term><name>a</name><from><protocol>b
gp</protocol></from><then><accept/></then></term><term><name>b</name><then&
gt;<reject/></then></term></policy-statement><policy-
statement><name>l3_test_hub_hs1_export_pol</name><term><name>a</name><from><protocol&g
t;ospf</protocol><protocol>direct</protocol></from><then><community><add/><community-
name>l3_test_hub_hs1_hub_export_comm</community-
name></community><accept/></then></term><term><name>b</name><then><reject/>
;</then></term></policy-statement><policy-
statement><name>l3_test_hub_hs1_import_pol</name><term><name>a</name><from><protocol&g
t;bgp</protocol><protocol>ospf</protocol><protocol>direct</protocol><community>l3_test_hub_hs1_hub
_import_comm</community></from><then><accept/></then></term><term><name>b</nam
e><then><reject/></then></term></policy-statement><community
operation="replace"><name>l3_test_hub_hs1_hub_export_comm</name><members>target:100:2
</members></community><community
operation="replace"><name>l3_test_hub_hs1_hub_import_comm</name><members>target:100:4
</members></community></policy-options><routing-
instances><instance><name>l3_test_hub</name><instance-type>vrf</instance-type><interface
operation="replace"><name>ge-
0/1/1.1</name></interface><route-distinguisher><rd-type>100:8</rd-type></route-distinguisher><vrf-
import
operation="replace">l3_test_hub_hs1_import_pol</vrf-import><vrf-export
operation="replace">l3_test_hub_hs1_export_pol</vrf-export><vrf-table-
label/><protocols><ospf><area><name>0.0.0.0</name><interface><name>ge-
0/1/1.1</name></interface></area><export>l3_test_hub_bgp2ospf_pol</export></ospf></protocols>
</instance></routing-instances></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
</PendingOrderConfiguration>
</Data>
7.3 Service Management API
7.3.1 Get All Services
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 90
URL: api/space/nsas/l3vpn/service-management/services
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="4">
<Service href="/api/space/nsas/l3vpn/service-management/services/360513"
uri="/api/space/nsas/l3vpn/service-management/services/360513" key="360513">
<Common>
<Name>L3VPNBGPFMService</Name>
<Identity>360513</Identity>
<State>Deployed</State>
<Comments>L3VPNBGPFMService</Comments>
<CreatedDate>2012-09-06T15:10:06.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-06T15:10:06.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="360500"
href="/api/space/nsas/l3vpn/service-management/service-orders/360500"
uri="/api/space/nsas/l3vpn/service-management/service-orders/360500" />
<ServiceDefinition>
<ServiceDefinitionID key="360448"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360448"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360448" />
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
</Service>
<Service href="/api/space/nsas/l3vpn/service-management/services/786452"
uri="/api/space/nsas/l3vpn/service-management/services/786452" key="786452">
<Common>
<Name>L3VPPOSPFFMService</Name>
<Identity>786452</Identity>
<State>Deployed</State>
<Comments>L3VPPOSPFFMService</Comments>
<CreatedDate>2012-09-07T17:15:29.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T11:19:30.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="786439"
href="/api/space/nsas/l3vpn/service-management/service-orders/786439"
uri="/api/space/nsas/l3vpn/service-management/service-orders/786439" />
<ServiceDefinition>
<ServiceDefinitionID key="360461"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360461"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360461" />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 91
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
</Service>
<Service href="/api/space/nsas/l3vpn/service-management/services/983167"
uri="/api/space/nsas/l3vpn/service-management/services/983167" key="983167">
<Common>
<Name>L3VPNHSBGPService</Name>
<Identity>983167</Identity>
<State>Deployed</State>
<Comments>L3VPNHSBGPService</Comments>
<CreatedDate>2012-09-08T11:53:49.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T13:55:50.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="983154"
href="/api/space/nsas/l3vpn/service-management/service-orders/983154"
uri="/api/space/nsas/l3vpn/service-management/service-orders/983154" />
<ServiceDefinition>
<ServiceDefinitionID key="360487"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360487"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360487" />
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
</Service>
<Service href="/api/space/nsas/l3vpn/service-management/services/983303"
uri="/api/space/nsas/l3vpn/service-management/services/983303" key="983303">
<Common>
<Name>L3VPNHSOSPFService</Name>
<Identity>983303</Identity>
<State>Deployed</State>
<Comments>L3VPNHSOSPFService</Comments>
<CreatedDate>2012-09-08T14:00:13.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="983290"
href="/api/space/nsas/l3vpn/service-management/service-orders/983290"
uri="/api/space/nsas/l3vpn/service-management/service-orders/983290" />
<ServiceDefinition>
<ServiceDefinitionID key="360474"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360474"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" />
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 92
</Service>
</ServiceResource>
</Data>
7.3.2 Get All Services – Filtered Based on Customer
URL1: api/space/nsas/l3vpn/service-management/services?customerId=557278
URL1: api/space/nsas/l3vpn/service-management/services?customerName=557278
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="2">
<Service href="/api/space/nsas/l3vpn/service-management/services/360513"
uri="/api/space/nsas/l3vpn/service-management/services/360513" key="360513">
<Common>
<Name>L3VPNBGPFMService</Name>
<Identity>360513</Identity>
<State>Deployed</State>
<Comments>L3VPNBGPFMService</Comments>
<CreatedDate>2012-09-06T15:10:06.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-06T15:10:06.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="360500"
href="/api/space/nsas/l3vpn/service-management/service-orders/360500"
uri="/api/space/nsas/l3vpn/service-management/service-orders/360500" />
<ServiceDefinition>
<ServiceDefinitionID key="360448"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360448"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360448" />
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
</Service>
<Service href="/api/space/nsas/l3vpn/service-management/services/786452"
uri="/api/space/nsas/l3vpn/service-management/services/786452" key="786452">
<Common>
<Name>L3VPPOSPFFMService</Name>
<Identity>786452</Identity>
<State>Deployed</State>
<Comments>L3VPPOSPFFMService</Comments>
<CreatedDate>2012-09-07T17:15:29.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-08T11:19:30.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 93
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="786439"
href="/api/space/nsas/l3vpn/service-management/service-orders/786439"
uri="/api/space/nsas/l3vpn/service-management/service-orders/786439" />
<ServiceDefinition>
<ServiceDefinitionID key="360461"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360461"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360461" />
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
</Service>
</ServiceResource>
</Data>
7.3.3 Get Service
URL: api/space/nsas/l3vpn/service-management/services/<serviceId>
Content-type: application/vnd.net.juniper.space.service-management.services+xml
METHOD: GET
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/l3vpn/service-management/services/360513"
uri="/api/space/nsas/l3vpn/service-management/services/360513" key="360513">
<Common>
<Name>L3VPNBGPFMService</Name>
<Identity>360513</Identity>
<State>Deployed</State>
<Comments></Comments>
<CreatedDate>2012-09-06T15:10:06.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-06T15:10:06.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/557109" uri="/api/space/nsas/device-
roles/pe-devices/557109"
key="557109">
<DeviceName>exora</DeviceName>
<DeviceID>557109</DeviceID>
</NA>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 94
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMBGPEndPointConfigParameterServiceType">
<RoutingProtocol>BGP</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>650</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.77.1</InterfaceIP>
<PeerAS>22</PeerAS>
<NeighborIP>10.0.77.2</NeighborIP>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/557164" uri="/api/space/nsas/device-
roles/pe-devices/557164"
key="557164">
<DeviceName>jaipur</DeviceName>
<DeviceID>557164</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMBGPEndPointConfigParameterServiceType">
<RoutingProtocol>BGP</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>650</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.88.1</InterfaceIP>
<PeerAS>22</PeerAS>
<NeighborIP>10.0.88.2</NeighborIP>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterServiceType">
<RouteTarget>100:2</RouteTarget>
<RouteDistinguisher>100:17</RouteDistinguisher>
<VRFTabelLabel>Enabled</VRFTabelLabel>
</ServiceParameters>
<Reference>
<ServiceOrder key="360500"
href="/api/space/nsas/l3vpn/service-management/service-orders/360500"
uri="/api/space/nsas/l3vpn/service-management/service-orders/360500" />
<ServiceDefinition>
<ServiceDefinitionID key="360448"
href="/api/space/nsas/l3vpn/service-management/service-definitions/360448"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/360448" />
</ServiceDefinition>
<Customer key="557278"
href="/api/space/nsas/customer-management/customers/557278"
uri="/api/space/nsas/customer-management/customers/557278" />
</Reference>
</Service>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 95
7.3.4 Modify Service
URL: api/space/nsas/l3vpn/service-management/services/<service-id>/add-sites
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNHSOSPFModified_addSite</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>m10i2</DeviceName>
<DeviceID>1736846</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>false</Hub>
<InterfaceIP AutoPick="true" />
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<VlanID>14</VlanID>
<OSPFAreaId>1.1.1.1</OSPFAreaId>
<OSPFVersion>Ver 3</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>Service</Type>
<Value>2818205</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>2818348</Value>
</Identity>
<Job>
<ID>597830</ID>
<Status>INPROGRESS</Status>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 96
</Job>
<Code>200</Code>
<Message>
The Service Modified Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
</Data>
URL: api/space/nsas/l3vpn/service-management/services/<service-id>/delete-sites
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>2883721</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/9</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<VlanId>2</VlanId>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>Service</Type>
<Value>2818205</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>2818348</Value>
</Identity>
<Job>
<ID>597830</ID>
<Status>INPROGRESS</Status>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 97
</Job>
<Code>200</Code>
<Message>
The Service Modified Successfully and Validation is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
</Data>
7.3.5 Force Deploy Service
URL: api/space/nsas/l3vpn/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="services.schema.networkapi.jmp.juniper.net REST_Data_Model.xsd">
<CustomAction xsi:type="ServiceCustomActionType">
<Action>DeployLater</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</ CustomAction>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>2097255</Value>
</Identity>
<Job>
<ID>655791</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Force Deploy was Successfully triggered. Please check
the status using the JOB ID.</Message>
</Status>
</Data>
The various Options like DeployNow and DeployLater can be given in the Action element with in the
OperationSpecificData tag.
7.3.6 Decommissioning of Service
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 98
URL: api/space/nsas/l3vpn/service-management/services/<service-id>
METHOD: DELETE
Decommission Now
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Decommission Later
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="services.schema.networkapi.jmp.juniper.net REST_Data_Model.xsd">
<CustomAction xsi:type="ServiceCustomActionType">
<Action>DecommissionLater</Action>
<ScheduledDateTime></ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
The various Options like DecommissionNow and DecommissionLater can be given in the Action element with in the
OperationSpecificData tag.
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 99
7.4 Auditing API
7.4.1 Perform Configuration Audit
URL: api/space/nsas/l3vpn/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ConfigAuditCustomActionType">
<Action>AuditNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>262378</Value>
</Identity>
<Job>
<ID>1998913</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Configurational Audit was Successfully triggered.Please
check the status using the JOB ID.</Message>
</Status>
</Data>
The options for AuditNow and AuditLater can be given in the ‘Action’ element within the “OperationSpecificData”.
7.4.2 Perform Functional Audit
URL: api/space/nsas/l3vpn/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 100
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="FunctionalAuditCustomActionType">
<Action>AuditNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>262378</Value>
</Identity>
<Job>
<ID>1998913</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Functional Audit was Successfully triggered.Please
check the status using the JOB ID.</Message>
</Status>
</Data>
The options for AuditNow and AuditLater can be given in the ‘Action’ element within the “OperationSpecificData”.
7.4.3 View Configuration Audit Results
URL: api/space/nsas/l3vpn/service-management/services/view-configuration-audit/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.config-audit+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<ConfigurationAuditResult>
<ConfigDeviceEnd>
<DeviceName>kochin</DeviceName>
<DeviceStatus>Down</DeviceStatus>
<Details>Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/interfaces/interface[name="ge-
0/0/4"]/unit[name="6"]
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 101
] Current null
Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/policy-options/policy-
statement[name="TESTL3VPN_2_spoke_bgp2ospf_pol"]
] Current null
Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/policy-options/policy-
statement[name="TESTL3VPN_2_spoke_hs1_export_pol"]
] Current null
Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/policy-options/policy-
statement[name="TESTL3VPN_2_spoke_hs1_import_pol"]
] Current null
Mismatch [ attributePath=/deviceobj/junos</Details>
</ConfigDeviceEnd>
<ConfigDeviceEnd>
<DeviceName>jaipur</DeviceName>
<DeviceStatus>Up</DeviceStatus>
<Details>Successfully Config Audited
</Details>
</ConfigDeviceEnd>
</ConfigurationAuditResult>
</AuditResults>
</Data>
7.4.4 View Functional Audit Results
URL: api/space/nsas/l3vpn/service-management/services/view-functional-audit/<service-id>
METHOD : GET
Accept: application/vnd.net.juniper.space.service-management.functional-audit+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<FunctionalAuditResult>
<Common>
<Name>TESTL3VPN_2</Name>
<Identity>2162763</Identity>
<State>Deployed</State>
</Common>
<ServiceType>L3VPN</ServiceType>
<OperationState>Down</OperationState>
<ServiceDefinitionName>L3VPN-OSPF-Static(Hub-Spoke-1-Interface)</ServiceDefinitionName>
<NoOfUNIs>2</NoOfUNIs>
<UpUNIs>0</UpUNIs>
<DownUNIs>2</DownUNIs>
<DeviceEnd>
<DeviceName>ge-0/0/4.6 kochin</DeviceName>
<Topology>L3VPNSPOKE</Topology>
<OperationState>Down</OperationState>
<NoOfRemoteUNIs>1</NoOfRemoteUNIs>
<UpRemoteUNIs>0</UpRemoteUNIs>
<DownRemoteUNIs>1</DownRemoteUNIs>
<RemoteEnd>
<ControlPlaneParams>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 102
<Command>get-route-information</Command>
<RemoteEndpoint>ge-0/0/3.7 jaipur</RemoteEndpoint>
<Result>Status: probably configuration missing on device
</Result>
</ControlPlaneParams>
<DataPlaneParams>
<Command>ping routing-instance remotehost</Command>
<Result>Status: probably configuration missing on device
</Result>
</DataPlaneParams>
</RemoteEnd>
</DeviceEnd>
<DeviceEnd>
<DeviceName>ge-0/0/3.7 jaipur</DeviceName>
<Topology>L3VPNHUB</Topology>
<OperationState>Down</OperationState>
<NoOfRemoteUNIs>1</NoOfRemoteUNIs>
<UpRemoteUNIs>0</UpRemoteUNIs>
<DownRemoteUNIs>1</DownRemoteUNIs>
<RemoteEnd>
<ControlPlaneParams>
<Command>get-route-information</Command>
<RemoteEndpoint>ge-0/0/4.6 kochin</RemoteEndpoint>
<Result>Status: probably configuration missing on device
</Result>
</ControlPlaneParams>
<DataPlaneParams>
<Command>ping routing-instance remotehost</Command>
<PacketsTransmitted>5</PacketsTransmitted>
<PacketsReceived>0</PacketsReceived>
<PacketsLostPercentage>100</PacketsLostPercentage>
</DataPlaneParams>
</RemoteEnd>
</DeviceEnd>
</FunctionalAuditResult>
</AuditResults>
</Data>
7.4.5 View Service Configuration Change Result
URL: api/space/nsas/l3vpn/service-management/services/view-serviceconfiguration-change/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.config-change+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<ServiceConfigurationChangeResult>
<ServiceConfigDeviceEnd>
<DeviceName>embassy</DeviceName>
<Configuration><configuration><firewall><policer><name>policer_in_ge-
1/0/1_784</name><if-exceeding><bandwidth-limit>10000000</bandwidth-limit><burst-size-
limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><ccc><filter><name>filter_in_ge-
1/0/1_784</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
1/0/1_784</policer><accept/></then></term></filter></ccc></family></firewall><interfaces&
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 103
gt;<interface><name>ge-1/0/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>784</name><description>No
description available for selected UNI
interface.</description><encapsulation>vlan-
ccc</encapsulation><family><ccc><filter><input>filter_in_ge-
1/0/1_784</input></filter></ccc></family><vlan-tags><outer>784</outer></vlan-
tags></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name&
gt;<interface><name>ge-1/0/1.784</name><virtual-circuit-id>1456783</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration></Config
uration>
</ServiceConfigDeviceEnd>
<ServiceConfigDeviceEnd>
<DeviceName>exora</DeviceName>
<Configuration><configuration><firewall><policer><name>policer_in_ge-
0/1/1_784</name><if-exceeding><bandwidth-limit>10000000</bandwidth-limit><burst-size-
limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><ccc><filter><name>filter_in_ge-
0/1/1_784</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
0/1/1_784</policer><accept/></then></term></filter></ccc></family></firewall><interfaces&
gt;<interface><name>ge-0/1/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>784</name><description>No
description available for selected UNI
interface.</description><encapsulation>vlan-
ccc</encapsulation><family><ccc><filter><input>filter_in_ge-
0/1/1_784</input></filter></ccc></family><vlan-tags><outer>784</outer></vlan-
tags></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.4</name&
gt;<interface><name>ge-0/1/1.784</name><virtual-circuit-id>1456783</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols><policy-
options/></configuration></Configuration>
</ServiceConfigDeviceEnd>
</ServiceConfigurationChangeResult>
</AuditResults>
</Data>
7.4.6 View Monitoring/Troubleshoot Results
URL: api/space/nsas/l3vpn/service-management/services/view-troubleshoot-results/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.troubleshoot-results+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<TroubleshootResult>
<DeviceEnd>
<DeviceName>kochin</DeviceName>
<CommandResult>
<Protocol>
<ROUTE>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 104
<Name>LSP Name</Name>
<Value>to_jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_kochin_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table bgp.l3vpn.0</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 105
<Value></Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ospf neighbor</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.1.2</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>32</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>21</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.2</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 106
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
<UNI>
<CommandDetails>
<Command>show interface ge-0/0/4 terse </Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/4
</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>
up
</Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value>
up
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/0/4 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/4.1
</Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value>
0
</Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value>
0
</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/4.2
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 107
</Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value>
0
</Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value>
0
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_kochin_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 108
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls static-lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>jaipur</DeviceName>
<CommandResult>
<Protocol>
<ROUTE>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>RSVP1_to_50_1_2_1</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 109
<Value>50.1.2.2</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table bgp.l3vpn.0</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ospf neighbor</Command>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 110
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>37</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>27</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
<UNI>
<CommandDetails>
<Command>show interface ge-0/0/3 terse </Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/3
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 111
</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>
up
</Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value>
up
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/0/3 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/3.1
</Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value>
0
</Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value>
0
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>RSVP1_to_50_1_2_1</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 112
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls static-lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
</Protocol>
</CommandResult>
</DeviceEnd>
</TroubleshootResult>
</AuditResults>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 113
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 114
8 VPLS (with BGP)
8.1 Service-Definition API
8.1.1 Get All Service Definitions
URL: api/space/nsas/elan-vpls/service-management/service-definitions
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definitions+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="5">
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/294912"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294912"
key="294912">
<Common>
<Name>ELAN-BGP-QinQ-AllVLAN</Name>
<Identity>294912</Identity>
<State>Published</State>
<Comments>Used for multisite LAN connectivity with high BW
requirements.</Comments>
<CreatedDate>2012-09-13T13:29:41.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-13T13:29:41.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/294932"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294932"
key="294932">
<Common>
<Name>ELAN-BGP-Dot1Q-SingleVLAN</Name>
<Identity>294932</Identity>
<State>Published</State>
<Comments>Used to transport single VLAN between multiple sites.
</Comments>
<CreatedDate>2012-09-13T13:29:42.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-13T13:29:42.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/294952"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294952"
key="294952">
<Common>
<Name>ELAN-BGP-PortBased-10-100M</Name>
<Identity>294952</Identity>
<State>Published</State>
<Comments>Used for multisite LAN connectivity with high BW
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 115
requirements using dedicated ports.</Comments>
<CreatedDate>2012-09-13T13:29:43.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-13T13:29:43.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/294970"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294970"
key="294970">
<Common>
<Name>ELAN-BGP-QinQ-Range-Normalized-VLAN</Name>
<Identity>294970</Identity>
<State>Published</State>
<Comments>Used for multisite LAN connectivity, with VLAN
normalization.</Comments>
<CreatedDate>2012-09-13T13:29:43.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-13T13:29:43.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/294993"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294993"
key="294993">
<Common>
<Name>ELAN-BGP-QinQ-AllVLAN-Normalized-All</Name>
<Identity>294993</Identity>
<State>Published</State>
<Comments>Used for multisite LAN connectivity, with VLAN
normalization.</Comments>
<CreatedDate>2012-09-13T13:29:43.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-13T13:29:43.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
</ServiceResource>
</Data>
8.1.2 Get All Service Definitions with Pagination
URL1: api/space/nsas/elan-vpls/service-management/service-definitions?start=4&limit=2
URL2: api/space/nsas/elan-vpls/service-management/service-definitions?paging=(start eq 4, limit eq 2)
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definitions+xml
Sample Response:
<Comments>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 116
Used for multisite LAN connectivity with high BW requirements.
</Comments>
<CreatedDate>2012-10-23T04:14:26.000Z</CreatedDate>
<LastUpdatedDate>2012-10-23T04:14:26.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
<ServiceDefinition href=
"/api/space/nsas/elan-vpls/service-management/service-definitions/2424852"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2424852" key="2424852">
<Common>
<Name>ELAN-BGP-Dot1Q-SingleVLAN</Name>
<Identity>2424852</Identity>
<State>Published</State>
<Comments>
Used to transport single VLAN between multiple sites.
</Comments>
<CreatedDate>2012-10-23T04:14:32.000Z</CreatedDate>
<LastUpdatedDate>2012-10-23T04:14:32.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
<ServiceDefinition href=
"/api/space/nsas/elan-vpls/service-management/service-definitions/2424872"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2424872" key="2424872">
<Common>
<Name>ELAN-BGP-PortBased-10-100M</Name>
<Identity>2424872</Identity>
<State>Published</State>
<Comments>
Used for multisite LAN connectivity with high BW requirements using dedicated ports.
</Comments>
<CreatedDate>2012-10-23T04:14:32.000Z</CreatedDate>
<LastUpdatedDate>2012-10-23T04:14:32.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
</ServiceDefinition>
</ServiceResource>
</Data>
8.1.3 Get Service Definition
URL: api/space/nsas/elan-vpls/service-management/service-definitions/<servicedefinitionId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 117
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/1998848"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1998848"
key="1998848">
<Common>
<Name>TESTELANVPLS</Name>
<Identity>1998848</Identity>
<State>Unpublished</State>
<CreatedDate>2012-09-20T14:14:20.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-20T14:14:20.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(LDP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSServiceEndpointGroupParameterDefType">
<AutoDiscovery>false</AutoDiscovery>
<VPLSId>Auto pick</VPLSId>
<MACLearning editable="false">Enabled</MACLearning>
<MACInterfaceLimit editable="false">1024</MACInterfaceLimit>
<MACStatistics editable="false">Not enabled</MACStatistics>
<MACTableSize editable="false">5120</MACTableSize>
<VlanNormalization>Normalize to Dot1q</VlanNormalization>
<AllowMH>Not enabled</AllowMH>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Select manually"
editable="false" />
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192" />
<EnableRateLimiting>Enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="true" min="1"
max="100" unit="Mbps">1</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">64
</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">1
</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">64
</Increment>
<OuterTagProtocolId editable="false">0x88a8
</OuterTagProtocolId>
<InnerTagProtocolId editable="false" />
</ServiceEndPointConfigurationDefinition>
<AdvancedSettings>
<DisableTunnelService>true</DisableTunnelService>
<DisableLocalSwitch>true</DisableLocalSwitch>
<FastReroutePriority>low</FastReroutePriority>
<LabelBlockSize>8</LabelBlockSize>
<ConnetivityType>irb</ConnetivityType>
</AdvancedSettings>
</ServiceDefinition>
</ServiceResource>
</Data
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 118
8.1.4 Create Service Definition
The VPLS Service definition creation operation is yet to be supported
URL:
METHOD: POST
ETHERNET
Request
not yet supported
8.1.5 Publish/UnPublish Service Definition
URL: api/space/nsas/elan-vpls/service-management/service-definitions/<servicedefinitionId>
METHOD: POST
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Content-Type: application/vnd.net.juniper.space.service-management.service-definition-status+xml
UnPublish
Request
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
<Action>UnPublish</Action>
</CustomAction>
</Data>
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition UnPublished Successfully</Message>
</Status>
</Data>
Publish
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 119
Request
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
<Action>Publish</Action>
</CustomAction>
</Data>
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Published Successfully</Message>
</Status>
</Data>
8.1.6 Delete Service Definition
URL: api/space/nsas/elan-vpls/service-management/service-definitions/<servicedefinitionId>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Deleted Successfully</Message>
</Status>
</Data>
8.2 Service-Order Management API
8.2.1 Get All Service Orders
URL: api/space/nsas/elan-vpls/service-management/service-orders
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 120
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="4">
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/3440666"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3440666"
key="3440666">
<Common>
<Name>VPLS_decommission_2012-09-22 13:21:08.712</Name>
<Identity>3440666</Identity>
<State>Completed</State>
<Comments>Decommission Ser32012-09-22 13:21:08.712</Comments>
<CreatedDate>2012-09-22T13:21:08.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T13:21:26.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Decommission</Action>
<Reference>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Service key="3112986"
href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/3440640"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3440640"
key="3440640">
<Common>
<Name>Ser3_forcedeploy_2012-09-22 13:18:06.342</Name>
<Identity>3440640</Identity>
<State>Completed</State>
<Comments>Ser 3</Comments>
<CreatedDate>2012-09-22T13:18:06.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T13:18:26.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Modification</Action>
<Reference>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 121
<Service key="3112986"
href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/3113001"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3113001"
key="3113001">
<Common>
<Name>Service1</Name>
<Identity>3113001</Identity>
<State>Completed</State>
<Comments>Ser 1</Comments>
<CreatedDate>2012-09-22T12:09:57.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:10:27.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Provisioning</Action>
<Reference>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Service key="3113013"
href="/api/space/nsas/elan-vpls/service-management/services/3113013"
uri="/api/space/nsas/elan-vpls/service-management/services/3113013" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/3112974"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3112974"
key="3112974">
<Common>
<Name>Service3</Name>
<Identity>3112974</Identity>
<State>Completed</State>
<Comments>Ser 3</Comments>
<CreatedDate>2012-09-22T12:06:52.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:07:25.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Provisioning</Action>
<Reference>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Service key="3112986"
href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" />
</Reference>
</ServiceOrder>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 122
</ServiceResource>
</Data>
8.2.2 Get All Service Orders with Pagination
URL1: api/space/nsas/elan-vpls/service-management/service-orders?start=3&limit=2
URL2: api/space/nsas/elan-vpls/service-management/service-orders?paging=(start eq 3, limit eq 2>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
Sample Response:
<Data>
<ServiceResource size="5">
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/2883702"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/2883702"
key="2883702">
<Common>
<Name>testvplsHSMultihomeAssy</Name>
<Identity>2883702</Identity>
<State>Invalid</State>
<Comments> </Comments>
<CreatedDate>2012-10-23T09:23:05.000Z</CreatedDate>
<LastUpdatedDate>2012-10-23T09:23:05.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="2556283"
href="/api/space/nsas/customer-management/customers/2556283"
uri="/api/space/nsas/customer-management/customers/2556283" />
<ServiceDefinition>
<ServiceDefinitionID key="2883670"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/2883670"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2883670"
/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/2425138"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/2425138"
key="2425138">
<Common>
<Name>VPLS_HS_Decommision2012-10-23 06:03:31.223</Name>
<Identity>2425138</Identity>
<State>Completed</State>
<CreatedDate>2012-10-23T06:03:32.000Z</CreatedDate>
<LastUpdatedDate>2012-10-23T06:04:08.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS</ServiceType>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 123
<Action>Decommission</Action>
<Reference>
<Customer key="2556283"
href="/api/space/nsas/customer-management/customers/2556283"
uri="/api/space/nsas/customer-management/customers/2556283" />
<ServiceDefinition>
<ServiceDefinitionID key="2425057"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/2425057"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2425057"
/>
</ServiceDefinition>
<Service key="2425112"
href="/api/space/nsas/elan-vpls/service-management/services/2425112"
uri="/api/space/nsas/elan-vpls/service-management/services/2425112" />
</Reference>
</ServiceOrder>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/2425128"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/2425128"
key="2425128">
<Common>
<Name>VPLS_HS _audit_2012-10-23 05:53:51.588</Name>
<Identity>2425128</Identity>
<State>Completed</State>
<Comments>Audit Vpls-svc1-10-23 05:53:51.588</Comments>
<CreatedDate>2012-10-23T05:53:51.000Z</CreatedDate>
<LastUpdatedDate>2012-10-23T05:53:51.000Z</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS</ServiceType>
<Action>Provisioning</Action>
<Reference>
<Customer key="2556283"
href="/api/space/nsas/customer-management/customers/2556283"
uri="/api/space/nsas/customer-management/customers/2556283" />
<ServiceDefinition>
<ServiceDefinitionID key="2425057"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/2425057"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2425057"
/>
</ServiceDefinition>
<Service key="2425112"
href="/api/space/nsas/elan-vpls/service-management/services/2425112"
uri="/api/space/nsas/elan-vpls/service-management/services/2425112" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
8.2.3 Get All Service Orders – Filtered based on Customer
URL1: api/space/nsas/elan-vpls/service-management/service-orders?customerId=1048781
URL2: api/space/nsas/elan-vpls/service-management/service-orders?customerName=Customer_001
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-orders+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 124
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="1">
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/3440666"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3440666"
key="3440666">
<Common>
<Name>Ser3_decommission_2012-09-22 13:21:08.712</Name>
<Identity>3440666</Identity>
<State>Completed</State>
<Comments>Decommission Ser32012-09-22 13:21:08.712</Comments>
<CreatedDate>2012-09-22T13:21:08.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T13:21:26.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Decommission</Action>
<Reference>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Service key="3112986"
href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
8.2.4 Get Service Order
URL: api/space/nsas/elan-vpls/service-management/service-orders/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/3113001"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3113001"
key="3113001">
<Common>
<Name>Ser1</Name>
<Identity>3113001</Identity>
<State>Completed</State>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 125
<Comments>Ser 1</Comments>
<CreatedDate>2012-09-22T12:09:57.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:10:27.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3244038" uri="/api/space/nsas/device-
roles/pe-devices/3244038"
key="3244038">
<DeviceName>kochin</DeviceName>
<DeviceID>3244038</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription></UNIDescription>
<VlanId>241</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<MACStatistics>false</MACStatistics>
<Bandwidth unit="Mbps">10</Bandwidth>
<CustomerVlanIdStart>0</CustomerVlanIdStart>
<CustomerVlanIdEnd>0</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
<Description></Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3244094" uri="/api/space/nsas/device-
roles/pe-devices/3244094"
key="3244094">
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>3244094</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription></UNIDescription>
<VlanId>241</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<MACStatistics>false</MACStatistics>
<Bandwidth unit="Mbps">10</Bandwidth>
<CustomerVlanIdStart>0</CustomerVlanIdStart>
<CustomerVlanIdEnd>0</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
<Description></Description>
</ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 126
</ServiceEndPointGroup>
<Reference>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/service-management/service-definitions/262144"
uri="/api/space/nsas/service-management/service-definitions/262144" />
</ServiceDefinition>
<Service key="3113013"
href="/api/space/nsas/elan-vpls/service-management/services/3113013"
uri="/api/space/nsas/elan-vpls/service-management/services/3113013" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
8.2.5 Create Service Order
URL: http://10.212.96.45:8080/api/space/eline-p2p/order-management/service-orderapi/space/nsas/elan-
vpls/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
ELAN-BGP-QinQ-AllVLAN
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test_VPLS_QinQ_AV_NNorm_006</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>852026</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<AutoPickVlanId>false</AutoPickVlanId>
<VlanId>231</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 127
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description></Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>851971</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<AutoPickVlanId>true</AutoPickVlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description></Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="425985" />
<ServiceDefinition>
<ServiceDefinitionID key="262144" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
ELAN-HubSpoke-BGP-QinQ-AllVLAN
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test_VPLS_HS_QinQ_AV_004</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>1802245</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/2</InterfaceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 128
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<AutoPickVlanId>true</AutoPickVlanId>
<Hub>false</Hub>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACTableSize>5124</MACTableSize>
<Bandwidth unit="Mbps">12</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>851971</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<AutoPickVlanId>true</AutoPickVlanId>
<Hub>true</Hub>
<MTU>1524</MTU>
<MACLearning>false</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>true</MACStatistics>
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="425985" />
<ServiceDefinition>
<ServiceDefinitionID key="262309" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>2752560</Value>
</Identity>
<Job>
<ID>950303</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 129
<Message>Service Order Created Successfully and Deployment is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
For the various options in creating ServiceOrder the options must be specified in the ‘Action’ Element inside
OperationSpecificData.
The values available are
i. Save – (Create and only Save a SO)
j. SaveAndValidate – (Create, Save and Validate a SO) – Default value when no Custom action is specified.
k. SaveAndDeployNow – (Create, Save and Deploy a SO)
l. SaveAndDeployLater – (Create, Save and Deploy Later a SO)
8.2.6 Deploy/Validate/PartialDelete an already created SO
URL: api/space/nsas/elan-vpls/service-management/service-orders/<serviceorder-id>
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>DeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553600</Value>
</Identity>
<Job>
<ID>1998905</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Deployment is in Progress. Please check the
status using the JOB ID.</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 130
The options must be specified in the ‘Action’ Element inside OperationSpecificData.
The various options are as follows:
a. DeployNow – (Deploy an already created SO)
b. DeployLater – (Deploy Later an already created SO)
c. ValidateNow – (Validate now an already created SO)
d. ValidateLater – (Validate later an already created SO)
e. PartialDeleteNow – (Delete the partially created configuration now)
f. PartialDeleteLater – (Delete the partially created configuration Later)
8.2.7 Delete Service Order
URL: api/space/nsas/elan-vpls/service-management/service-orders/<serviceorder-id>
METHOD: DELETE
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553600</Value>
</Identity>
<Code>200</Code>
<Message>Service order Deleted Successfully.</Message>
</Status>
</Data>
8.2.8 View Pending Order Configuration
URL: api/space/nsas/elan-vpls/service-management/service-orders/view-pendingorder-configuration/<serviceorder-
id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.pendingorder-config+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<PendingOrderConfiguration>
<PendingOrderConfigDeviceEnd>
<DeviceName>junos-mx240-space</DeviceName>
<Configuration><configuration><routing-
instances><instance><name>Vpls_service</name><instance-type>vpls</instance-type><route-
distinguisher><rd-type>69:160563205</rd-type></route-distinguisher><vrf-
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 131
target><community>target:69:67174405</community></vrf-target><interface><name>ge-
0/2/6.2</name></interface><protocols><vpls><no-tunnel-services/><mac-table-
size><limit>5120</limit></mac-table-size><interface-mac-limit><limit>1024</limit></interface-mac-
limit><no-mac-learning
operation="delete"/><mac-statistics
operation="delete"/><site><name>Site_1</name><site-
identifier>1</site-identifier><site-preference>65535</site-preference><interface><name>ge-
0/2/6.2</name></interface></site></vpls></protocols></instance></routing-
instances><firewall><policer><name>policer_in_ge-0/2/6_2</name><if-exceeding><bandwidth-
limit>10000000</bandwidth-limit><burst-size-limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><vpls><filter><name>filter_in_ge-
0/2/6_2</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
0/2/6_2</policer><accept/></then></term></filter></vpls></family></firewall><interfaces>
;<interface><name>ge-0/2/6</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>2</name><encapsulation>vlan-
vpls</encapsulation><family><vpls><filter><input>filter_in_ge-
0/2/6_2</input></filter></vpls></family><vlan-tags><outer>2</outer></vlan-
tags></unit></interface></interfaces></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
<PendingOrderConfigDeviceEnd>
<DeviceName>junos-mx480-space</DeviceName>
<Configuration><configuration><routing-
instances><instance><name>Vpls_service</name><instance-type>vpls</instance-type><route-
distinguisher><rd-type>69:160563207</rd-type></route-distinguisher><vrf-
target><community>target:69:67174405</community></vrf-target><interface><name>ge-
5/0/1.8</name></interface><protocols><vpls><no-tunnel-services/><mac-table-
size><limit>5120</limit></mac-table-size><interface-mac-limit><limit>1024</limit></interface-mac-
limit><no-mac-learning
operation="delete"/><mac-statistics
operation="delete"/><site><name>Site_2</name><site-
identifier>2</site-identifier><site-preference>65535</site-preference><interface><name>ge-
5/0/1.8</name></interface></site></vpls></protocols></instance></routing-
instances><firewall><policer><name>policer_in_ge-5/0/1_8</name><if-exceeding><bandwidth-
limit>10000000</bandwidth-limit><burst-size-limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><vpls><filter><name>filter_in_ge-
5/0/1_8</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
5/0/1_8</policer><accept/></then></term></filter></vpls></family></firewall><interfaces>
;<interface><name>ge-5/0/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>8</name><encapsulation>vlan-
vpls</encapsulation><family><vpls><filter><input>filter_in_ge-
5/0/1_8</input></filter></vpls></family><vlan-tags><outer>8</outer></vlan-
tags></unit></interface></interfaces></configuration>
</Configuration>
</PendingOrderConfigDeviceEnd>
</PendingOrderConfiguration>
</Data>
8.3 Service Management API
8.3.1 Get All Services
URL: api/space/nsas/elan-vpls/service-management/services
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 132
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="2">
<Service href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" key="3112986">
<Common>
<Name>Ser3</Name>
<Identity>3112986</Identity>
<State>Deployed</State>
<Comments>Ser3</Comments>
<CreatedDate>2012-09-22T12:07:23.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:07:23.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="3112974"
href="/api/space/nsas/elan-vpls/service-management/service-orders/3112974"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3112974" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
</Reference>
</Service>
<Service href="/api/space/nsas/elan-vpls/service-management/services/3113013"
uri="/api/space/nsas/elan-vpls/service-management/services/3113013" key="3113013">
<Common>
<Name>Ser1</Name>
<Identity>3113013</Identity>
<State>Deployed</State>
<Comments>Ser1</Comments>
<CreatedDate>2012-09-22T12:10:26.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:10:26.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="3113001"
href="/api/space/nsas/elan-vpls/service-management/service-orders/3113001"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3113001" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 133
</Reference>
</Service>
</ServiceResource>
</Data>
8.3.2 Get All Services – Filtered Based on Customer
URL1: api/space/nsas/elan-vpls/service-management/services?customerId=1048781
URL2: api/space/nsas/elan-vpls/service-management/services?customerName=Customer_001
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="2">
<Service href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" key="3112986">
<Common>
<Name>Ser3</Name>
<Identity>3112986</Identity>
<State>Deployed</State>
<Comments>Ser3</Comments>
<CreatedDate>2012-09-22T12:07:23.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:07:23.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="3112974"
href="/api/space/nsas/elan-vpls/service-management/service-orders/3112974"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3112974" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
</Reference>
</Service>
<Service href="/api/space/nsas/elan-vpls/service-management/services/3113013"
uri="/api/space/nsas/elan-vpls/service-management/services/3113013" key="3113013">
<Common>
<Name>Ser1</Name>
<Identity>3113013</Identity>
<State>Deployed</State>
<Comments>Ser1</Comments>
<CreatedDate>2012-09-22T12:10:26.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:10:26.000+05:30</LastUpdatedDate>
</Common>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 134
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="3113001"
href="/api/space/nsas/elan-vpls/service-management/service-orders/3113001"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3113001" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Customer key="1048781"
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
</Reference>
</Service>
</ServiceResource>
</Data>
8.3.3 Get Service
URL: api/space/nsas/elan-vpls/service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/elan-vpls/service-management/services/3112986"
uri="/api/space/nsas/elan-vpls/service-management/services/3112986" key="3112986">
<Common>
<Name>Ser3</Name>
<Identity>3112986</Identity>
<State>Deployed</State>
<Comments>Ser 3</Comments>
<CreatedDate>2012-09-22T12:07:23.000+05:30</CreatedDate>
<LastUpdatedDate>2012-09-22T12:07:23.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3244094" uri="/api/space/nsas/device-
roles/pe-devices/3244094"
key="3244094">
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>3244094</DeviceID>
</NA>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 135
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/8</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription></UNIDescription>
<VlanId>256</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<MACStatistics>false</MACStatistics>
<Bandwidth unit="Mbps">10</Bandwidth>
<CustomerVlanIdStart>0</CustomerVlanIdStart>
<CustomerVlanIdEnd>0</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSServiceEndpointGroupParameterServiceType" />
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3244038" uri="/api/space/nsas/device-
roles/pe-devices/3244038"
key="3244038">
<DeviceName>kochin</DeviceName>
<DeviceID>3244038</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription></UNIDescription>
<VlanId>256</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<MACStatistics>false</MACStatistics>
<Bandwidth unit="Mbps">10</Bandwidth>
<CustomerVlanIdStart>0</CustomerVlanIdStart>
<CustomerVlanIdEnd>0</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSServiceEndpointGroupParameterServiceType" />
</ServiceEndPointGroup>
<Reference>
<ServiceOrder key="3112974"
href="/api/space/nsas/elan-vpls/service-management/service-orders/3112974"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/3112974" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262144"
/>
</ServiceDefinition>
<Customer key="1048781"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 136
href="/api/space/nsas/customer-management/customers/1048781"
uri="/api/space/nsas/customer-management/customers/1048781" />
</Reference>
</Service>
</ServiceResource>
</Data>
8.3.4 Modify Service
8.3.4.1 Add-Site (To add a New site)
URL: api/space/nsas/elan-vpls/service-management/services/<serviceid> /add-sites
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>524404</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterServiceType">
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
<CustomAction xsi:type="ServiceCustomActionType">
<Action>SaveAndValidate</Action>
</CustomAction>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 137
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>1900686</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>3899507</Value>
</Identity>
<Job>
<ID>1310944</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Modified Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
8.3.4.2 Delete-Site(To delete site)
URL: api/space/nsas/elan-vpls/service-management/services/<serviceid> /delete-sites
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>524349</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/3</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
<CustomAction xsi:type="ServiceCustomActionType">
<Action>SaveAndValidate</Action>
</CustomAction>
</Data>
Sample Response:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 138
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>262489</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>786451</Value>
</Identity>
<Job>
<ID>262186</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Modified Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
8.3.4.3 Modify Site (To modify parameters of already existing endpoint information)
URL: api/space/nsas/elan-vpls/service-management/services/<serviceid>
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<ServiceType>VPLS</ServiceType>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>524404</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterServiceType">
<MTU>1524</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 139
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>1900686</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>3899520</Value>
</Identity>
<Job>
<ID>1311009</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Modified Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
8.3.5 Force Deploy Service
URL: api/space/nsas/elan-vpls/service-management/services/{serviceId}
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CustomAction xsi:type="ServiceCustomActionType">
<Action>DeployNow</Action>
</CustomAction>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>3112986</Value>
</Identity>
<Job>
<ID>1245202</ID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 140
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Force Deploy was Successfully triggered. Please check
the status using the JOB ID.</Message>
</Status>
</Data>
The various Options like DeployNow and DeployLater can be given in the Action element with in the
OperationSpecificData tag.
8.3.6 Decommissioning of Service
URL: api/space/nsas/elan-vpls/service-management/services/{serviceId}
METHOD: DELETE
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CustomAction xsi:type="ServiceCustomActionType">
<Action>DecommissionNow</Action>
</CustomAction>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>3112986</Value>
</Identity>
<Job>
<ID>1245209</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Decommission was Successfully triggered. Please check
the status using the JOB ID.</Message>
</Status>
</Data>
The various Options like DecommissionNow and DecommissionLater can be given in the Action element with in the
OperationSpecificData tag.
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 141
8.4 Auditing API
8.4.1 Perform Configuration Audit
URL: api/space/nsas/elan-vpls/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ConfigAuditCustomActionType">
<Action>AuditNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>262378</Value>
</Identity>
<Job>
<ID>1998913</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Configurational Audit was Successfully triggered.Please
check the status using the JOB ID.</Message>
</Status>
</Data>
The options for AuditNow and AuditLater can be given in the ‘Action’ element .
8.4.2 Perform Functional Audit
URL: api/space/nsas/elan-vpls/service-management/services/<service-id>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 142
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="FunctionalAuditCustomActionType">
<Action>AuditNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>262378</Value>
</Identity>
<Job>
<ID>1998913</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Functional Audit was Successfully triggered.Please
check the status using the JOB ID.</Message>
</Status>
</Data>
The options for AuditNow and AuditLater can be given in the ‘Action’ element.
8.4.3 View Configuration Audit Results
URL: api/space/nsas/elan-vpls/service-management/services/view-configuration-audit/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.config-audit+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<ConfigurationAuditResult>
<ConfigDeviceEnd>
<DeviceName>kochin</DeviceName>
<DeviceStatus>Down</DeviceStatus>
<Details>Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/interfaces/interface[name="ge-
0/0/4"]/unit[name="6"]
] Current null
Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/policy-options/policy-
statement[name="TESTL3VPN_2_spoke_bgp2ospf_pol"]
] Current null
Mismatch [
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 143
attributePath=/deviceobj/junos_11.4R2.14/configuration/policy-options/policy-
statement[name="TESTL3VPN_2_spoke_hs1_export_pol"]
] Current null
Mismatch [
attributePath=/deviceobj/junos_11.4R2.14/configuration/policy-options/policy-
statement[name="TESTL3VPN_2_spoke_hs1_import_pol"]
] Current null
Mismatch [ attributePath=/deviceobj/junos</Details>
</ConfigDeviceEnd>
<ConfigDeviceEnd>
<DeviceName>jaipur</DeviceName>
<DeviceStatus>Up</DeviceStatus>
<Details>Successfully Config Audited
</Details>
</ConfigDeviceEnd>
</ConfigurationAuditResult>
</AuditResults>
</Data>
8.4.4 View Functional Audit Results
URL: api/space/nsas/elan-vpls/service-management/services/view-functional-audit/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.functional-audit+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<FunctionalAuditResult>
<Common>
<Name>TESTVPLS_1</Name>
<Identity>2162763</Identity>
<State>Deployed</State>
</Common>
<ServiceType>VPLS</ServiceType>
<OperationState>Down</OperationState>
<ServiceDefinitionName> ELAN_BGP_QINQ_ALLVLAN </ServiceDefinitionName>
<NoOfUNIs>2</NoOfUNIs>
<UpUNIs>0</UpUNIs>
<DownUNIs>2</DownUNIs>
<DeviceEnd>
<DeviceName>ge-0/0/4.6 kochin</DeviceName>
<Topology> ELAN_VPLS </Topology>
<OperationState>Down</OperationState>
<NoOfRemoteUNIs>1</NoOfRemoteUNIs>
<UpRemoteUNIs>0</UpRemoteUNIs>
<DownRemoteUNIs>1</DownRemoteUNIs>
<RemoteEnd>
<ControlPlaneParams>
<Command>get-route-information</Command>
<RemoteEndpoint>ge-0/0/3.7 jaipur</RemoteEndpoint>
<Result>Status: probably configuration missing on device
</Result>
</ControlPlaneParams>
<DataPlaneParams>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 144
<Command>ping routing-instance remotehost</Command>
<Result>Status: probably configuration missing on device
</Result>
</DataPlaneParams>
</RemoteEnd>
</DeviceEnd>
<DeviceEnd>
<DeviceName>ge-0/0/3.7 jaipur</DeviceName>
<Topology> ELAN_VPLS </Topology>
<OperationState>Down</OperationState>
<NoOfRemoteUNIs>1</NoOfRemoteUNIs>
<UpRemoteUNIs>0</UpRemoteUNIs>
<DownRemoteUNIs>1</DownRemoteUNIs>
<RemoteEnd>
<ControlPlaneParams>
<Command>get-route-information</Command>
<RemoteEndpoint>ge-0/0/4.6 kochin</RemoteEndpoint>
<Result>Status: probably configuration missing on device
</Result>
</ControlPlaneParams>
<DataPlaneParams>
<Command>ping routing-instance remotehost</Command>
<PacketsTransmitted>5</PacketsTransmitted>
<PacketsReceived>0</PacketsReceived>
<PacketsLostPercentage>100</PacketsLostPercentage>
</DataPlaneParams>
</RemoteEnd>
</DeviceEnd>
</FunctionalAuditResult>
</AuditResults>
</Data>
8.4.5 View Service Configuration Change Result
URL: api/space/nsas/elan-vpls/service-management/services/view-serviceconfiguration-change/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.config-change+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<ServiceConfigurationChangeResult>
<ServiceConfigDeviceEnd>
<DeviceName>embassy</DeviceName>
<Configuration><configuration><firewall><policer><name>policer_in_ge-
1/0/1_784</name><if-exceeding><bandwidth-limit>10000000</bandwidth-limit><burst-size-
limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><ccc><filter><name>filter_in_ge-
1/0/1_784</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
1/0/1_784</policer><accept/></then></term></filter></ccc></family></firewall><interfaces&
gt;<interface><name>ge-1/0/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>784</name><description>No
description available for selected UNI
interface.</description><encapsulation>vlan-
ccc</encapsulation><family><ccc><filter><input>filter_in_ge-
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 145
1/0/1_784</input></filter></ccc></family><vlan-tags><outer>784</outer></vlan-
tags></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name&
gt;<interface><name>ge-1/0/1.784</name><virtual-circuit-id>1456783</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration></Config
uration>
</ServiceConfigDeviceEnd>
<ServiceConfigDeviceEnd>
<DeviceName>exora</DeviceName>
<Configuration><configuration><firewall><policer><name>policer_in_ge-
0/1/1_784</name><if-exceeding><bandwidth-limit>10000000</bandwidth-limit><burst-size-
limit>15220</burst-size-limit></if-
exceeding><then><discard/></then></policer><family><ccc><filter><name>filter_in_ge-
0/1/1_784</name><interface-specific/><term><name>1</name><then><policer>policer_in_ge-
0/1/1_784</policer><accept/></then></term></filter></ccc></family></firewall><interfaces&
gt;<interface><name>ge-0/1/1</name><flexible-vlan-
tagging/><mtu>1522</mtu><encapsulation>flexible-ethernet-
services</encapsulation><unit><name>784</name><description>No
description available for selected UNI
interface.</description><encapsulation>vlan-
ccc</encapsulation><family><ccc><filter><input>filter_in_ge-
0/1/1_784</input></filter></ccc></family><vlan-tags><outer>784</outer></vlan-
tags></unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.4</name&
gt;<interface><name>ge-0/1/1.784</name><virtual-circuit-id>1456783</virtual-circuit-id><no-control-
word/><mtu>1522</mtu></interface></neighbor></l2circuit></protocols><policy-
options/></configuration></Configuration>
</ServiceConfigDeviceEnd>
</ServiceConfigurationChangeResult>
</AuditResults>
</Data>
8.4.6 View Monitoring/Troubleshoot Results
URL: api/space/nsas/elan-vpls/service-management/services/view-troubleshoot-results/<service-id>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.troubleshoot-results+xml
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<AuditResults>
<TroubleshootResult>
<DeviceEnd>
<DeviceName>kochin</DeviceName>
<CommandResult>
<Protocol>
<ROUTE>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 146
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_kochin_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table bgp.l3vpn.0</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value></Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 147
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ospf neighbor</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.1.2</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>32</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>21</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 148
</Results>
</CommandDetails>
</ROUTE>
<UNI>
<CommandDetails>
<Command>show interface ge-0/0/4 terse </Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/4
</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>
up
</Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value>
up
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/0/4 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/4.1
</Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value>
0
</Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value>
0
</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/4.2
</Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value>
0
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 149
</Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value>
0
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_kochin_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 150
<Command>show mpls static-lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>jaipur</DeviceName>
<CommandResult>
<Protocol>
<ROUTE>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>RSVP1_to_50_1_2_1</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 151
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table bgp.l3vpn.0</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ospf neighbor</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 152
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>37</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>27</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
<UNI>
<CommandDetails>
<Command>show interface ge-0/0/3 terse </Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/3
</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>
up
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 153
</Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value>
up
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/0/3 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>
ge-0/0/3.1
</Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value>
0
</Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value>
0
</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>RSVP1_to_50_1_2_1</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
</Results>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 154
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>to_jaipur_ldp</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls static-lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value></Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value></Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
</Protocol>
</CommandResult>
</DeviceEnd>
</TroubleshootResult>
</AuditResults>
</Data>
9 VPLS (with LDP )
9.1 Get Service Definition
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 155
URL: api/space/nsas/elan-vpls/service-management/service-definitions/<servicedefinitionId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/1376256" uri="/api/space/nsas/elan-
vpls/service-management/service-definitions/1376256" key="1376256">
<Common>
<Name>VPLSLDP</Name>
<Identity>1376256</Identity>
<State>Published</State>
<CreatedDate>2012-12-14T18:06:06.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-14T18:06:06.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(LDP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
<EnableL3Access>true</EnableL3Access>
<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSServiceEndpointGroupParameterDefType">
<AutoDiscovery>false</AutoDiscovery>
<VPLSId>Auto pick</VPLSId>
<MACLearning editable="false">Enabled</MACLearning>
<MACInterfaceLimit editable="false">1024</MACInterfaceLimit>
<MACStatistics editable="false">Not enabled</MACStatistics>
<MACTableSize editable="false">5120</MACTableSize>
<VlanNormalization>Normalize to QinQ</VlanNormalization>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSEndPointParameterDefType">
<EthernetOption>qinq</EthernetOption>
<VlanIdSelection selection="Select manually" editable="false"/>
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0"/>
<VlanIdManual default="0" min="0" max="0"/>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192"/>
<EnableRateLimiting>Not enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="false" min="1" max="100" unit="Mbps">N/A</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">0</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">0</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">0</Increment>
<OuterTagProtocolId editable="false"/>
<InnerTagProtocolId editable="false"/>
</ServiceEndPointConfigurationDefinition>
<AdvancedSettings/>
</ServiceDefinition>
</ServiceResource>
</Data>
9.2 Create Service Order
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 156
URL: api/space/nsas/elan-vpls/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>VPLSLDPSO3</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>720976</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/8</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>721020</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
</ServiceOrderParameter>
<Reference>
<Customer key="720896"/>
<ServiceDefinition>
<ServiceDefinitionID key="1376402"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 157
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1376427</Value>
</Identity>
<Job>
<ID>426219</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
9.3 Get Service Order
URL: api/space/nsas/elan-vpls/service-management/service-orders/<serviceorderId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder href="/api/space/nsas/elan-vpls/service-management/service-orders/1376378" uri="/api/space/nsas/elan-vpls/service-
management/service-orders/1376378" key="1376378">
<Common>
<Name>VPLS_FM_LDP</Name>
<Identity>1376378</Identity>
<State>Validated</State>
<Comments>
</Comments>
<CreatedDate>2012-12-14T23:01:33.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-14T23:01:33.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721020" uri="/api/space/nsas/device-roles/pe-devices/721020" key="721020">
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>721020</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/9</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 158
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/720976" uri="/api/space/nsas/device-roles/pe-devices/720976" key="720976">
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>720976</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/1</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<RouteTarget>69:1444102145</RouteTarget>
<VLANNormalization>Normalize All</VLANNormalization>
<VPNId>12:2</VPNId>
</ServiceOrderParameter>
<Reference>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
<ServiceDefinition>
<ServiceDefinitionID key="1376314" href="/api/space/nsas/service-management/service-definitions/1376314"
uri="/api/space/nsas/service-management/service-definitions/1376314"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
9.4 Get Service
URL: api/space/nsas/elan-vpls/service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 159
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/elan-vpls/service-management/services/1376442" uri="/api/space/nsas/elan-vpls/service-
management/services/1376442" key="1376442">
<Common>
<Name>VPLSLDPSO3</Name>
<Identity>1376442</Identity>
<State>Deployed</State>
<Comments>
</Comments>
<CreatedDate>2012-12-15T00:34:15.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-15T00:34:15.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/720976" uri="/api/space/nsas/device-roles/pe-devices/720976" key="720976">
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>720976</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/8</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>4</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721020" uri="/api/space/nsas/device-roles/pe-devices/721020" key="721020">
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>721020</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>3</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
</ServiceEndpointConfiguration>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 160
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSConfigParameterServiceType">
<RouteTarget>69:1444102146</RouteTarget>
<VLANNormalization>Normalize All</VLANNormalization>
</ServiceParameters>
<Reference>
<ServiceOrder key="1376427" href="/api/space/nsas/elan-vpls/service-management/service-orders/1376427" uri="/api/space/nsas/elan-
vpls/service-management/service-orders/1376427"/>
<ServiceDefinition>
<ServiceDefinitionID key="1376402" href="/api/space/nsas/elan-vpls/service-management/service-definitions/1376402"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1376402"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
10 MultiHomed Groups
10.1 Get All Multihomed Groups
URL: api/space/nsas/prestage-devices/mhg-management/multihome-groups
METHOD: GET
Sample Response:
?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<MultihomedGroups size="1">
<MultihomedGroup>
<AccessSwitchIP></AccessSwitchIP>
<Description>eng</Description>
<Name>juniper</Name>
<Id>3145730</Id>
</MultihomedGroup>
</MultihomedGroups>
</Data>
10.2 Get Multihomed Group
URL: api/space/nsas/prestage-devices/mhg-management/multihome-groups/<mhgId>
METHOD: GET
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 161
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<MultihomedGroups>
<MultihomedGroup>
<AccessSwitchIP></AccessSwitchIP>
<Description>eng</Description>
<Name>juniper</Name>
<Id>3145742</Id>
<MultihomedEndPoint>
<AccessSwitchInterface></AccessSwitchInterface>
<PEHostName>kochin</PEHostName>
<PEInterface>ge-0/0/5</PEInterface>
</MultihomedEndPoint>
<MultihomedEndPoint>
<AccessSwitchInterface></AccessSwitchInterface>
<PEHostName>jaipur</PEHostName>
<PEInterface>ge-0/0/2</PEInterface>
</MultihomedEndPoint>
</MultihomedGroup>
</MultihomedGroups>
</Data>
10.3 Create Multihomed Group
URL: api/space/nsas/prestage-devices/mhg-management/multihome-groups
METHOD: POST
Content-Type: application/vnd.net.juniper.space.mhg-management.multihomed-groups+xml
Accept : application/vnd.net.juniper.space.mhg-management.multihomed-groups-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<MultihomedGroups>
<MultihomedGroup>
<AccessSwitchIP>12.12.12.1</AccessSwitchIP>
<Description>eng</Description>
<Name>juniper</Name>
<MultihomedEndPoint>
<AccessSwitchInterface>ge-1/2/3</AccessSwitchInterface>
<PEHostName>kochin</PEHostName>
<PEInterface>ge-0/0/5</PEInterface>
</MultihomedEndPoint>
<MultihomedEndPoint>
<AccessSwitchInterface> ge-1/2/3</AccessSwitchInterface>
<PEHostName>jaipur</PEHostName>
<PEInterface>ge-0/0/2</PEInterface>
</MultihomedEndPoint>
</MultihomedGroup>
</MultihomedGroups>
</Data>
Sample respone:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 162
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>MultiHomedGroup</Type>
<Value></Value>
</Identity>
<Job>
<ID>885371</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>MultiHomed Group creation was Successfully triggered. Please
check the status using the JOB ID.
</Message>
</Status>
</Data>
10.4 Delete Multihomed Group
URL: api/space/nsas/prestage-devices/mhg-management/multihome-groups/<mhgId>
METHOD: DELETE
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>MultiHomedGroup</Type>
<Value></Value>
</Identity>
<Job>
<ID>885371</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>MultiHomed Group creation was Successfully triggered. Please
check the status using the JOB ID.
</Message>
</Status>
</Data>
10.5 Delete Multihomed Groups
URL: api/space/nsas/prestage-devices/mhg-management/multihome-groups/
METHOD: DELETE
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>MultiHomedGroup</Type>
<Value>3145742</Value>
</Identity>
<Identity>
<Type>MultiHomedGroup</Type>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 163
<Value>3145743</Value>
</Identity>
</Data>
Sample response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>MultiHomedGroup</Type>
<Value>3145742</Value>
</Identity>
<Code>200</Code>
<Message>MultiHomed Group Deleted Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>MultiHomedGroup</Type>
<Value>3145743</Value>
</Identity>
<Code>200</Code>
<Message>MultiHomed Group Deleted Successfully.</Message>
</Status>
</Data>
11 Service Template
11.1 GetAllServiceTemplate
GET api/space/nsas/eline-ptp/service-management/service-templates
Accept : 1) application/vnd.net.juniper.space.service-management.service-templates+xml
2) application/vnd.net.juniper.space.service-management.service-templates+json
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 164
<ServiceResource>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-templates/32826">
<Common>
<Name>TEMP001</Name>
<Identity>32826</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-06T11:26:09.964+05:30</CreatedDate>
<LastUpdatedDate>2012-12-06T11:26:09.964+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
</ServiceTemplate>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-templates/2457649">
<Common>
<Name>TEMP003</Name>
<Identity>2457649</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-12T14:48:06.855+05:30</CreatedDate>
<LastUpdatedDate>2012-12-12T14:48:06.855+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
</ServiceTemplate>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-templates/32826">
<Common>
<Name>TEMP001</Name>
<Identity>32826</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-06T11:26:09.964+05:30</CreatedDate>
<LastUpdatedDate>2012-12-06T11:26:09.964+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
</ServiceTemplate>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-templates/2457649">
<Common>
<Name>TEMP003</Name>
<Identity>2457649</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-12T14:48:06.855+05:30</CreatedDate>
<LastUpdatedDate>2012-12-12T14:48:06.855+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
</ServiceTemplate>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 165
11.2 GetServiceTemplate
GET api/space/nsas/eline-ptp/service-management/service-templates/<templateID>
Accept : 1) application/vnd.net.juniper.space.service-management.service-template+xml
2) application/vnd.net.juniper.space.service-management.service-Template+json
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-templates/2457649">
<Common>
<Name>TEMP003</Name>
<Identity>2457649</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-12T14:48:06.855+05:30</CreatedDate>
<LastUpdatedDate>2012-12-12T14:48:06.855+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceResource>
</Data>
11.3 GetServiceTemplateBySD
GET api/space/nsas/eline-ptp/service-management/service-definitions/295160/serviceTemplates
Accept: 1) application/vnd.net.juniper.space.service-management.service-template+xml
2) application/vnd.net.juniper.space.service-management.service-template+json
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceTemplate
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 166
key="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-templates/32826">
<Common>
<Name>TEMP001</Name>
<Identity>32826</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-06T11:26:09.964+05:30</CreatedDate>
<LastUpdatedDate>2012-12-06T11:26:09.964+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-templates/2457649">
<Common>
<Name>TEMP003</Name>
<Identity>2457649</Identity>
<State>Published</State>
<Comments></Comments>
<CreatedDate>2012-12-12T14:48:06.855+05:30</CreatedDate>
<LastUpdatedDate>2012-12-12T14:48:06.855+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceResource>
</Data>
11.4 GetServiceDefinition
GET api/space/nsas/eline-ptp/service-management/service-definitions/<SDID>
Accept: 1) application/vnd.net.juniper.space.service-management.service-definition+xml
2) application/vnd.net.juniper.space.service-management.service-definition+json
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 167
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition
href="/api/space/nsas/eline-ptp/service-management/service-definitions/295160"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/295160"
key="295160">
<Common>
<Name>P2P001</Name>
<Identity>295160</Identity>
<State>Published</State>
<CreatedDate>2012-12-06T11:57:22.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-06T11:57:22.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<EnableL3Access>false</EnableL3Access>
<ServiceTemplates>
<ServiceTemplate
key="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
uri="/api/space/nsas/eline-ptp/service-management/service-templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-templates/32826">
<ID>32826</ID>
<Name>TEMP001</Name>
</ServiceTemplate>
</ServiceTemplates>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<VCID default="1" selection="Auto pick" editable="false" min="1"
max="4294967296" />
<MTU default="1522" editable="false" min="1522" max="9192" />
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>qinq</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false" />
<TrafficType>Transport all traffic</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192" />
<EnableRateLimiting>Enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="false" min="1"
max="100" unit="Mbps">10</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">0
</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">0
</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">0
</Increment>
<OuterTagProtocolId editable="false" />
<InnerTagProtocolId editable="false" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 168
11.5 Get Service Order
P2P-LDP
GET api/space/nsas/eline-ptp/service-management/service-orders/SOId
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/4784170"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/4784170"
key="4784170">
<Common>
<Name>Test003</Name>
<Identity>4784170</Identity>
<State>Invalid</State>
<Comments></Comments>
<CreatedDate>2012-12-19T15:54:11.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-19T15:54:11.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4423740" uri="/api/space/nsas/device-
roles/pe-devices/4423740"
key="4423740">
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 169
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4423781" uri="/api/space/nsas/device-
roles/pe-devices/4423781"
key="4423781">
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description BB</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 170
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC CC 555</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>0</MTU>
<VCID>44</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="426088"
href="/api/space/nsas/customer-management/customers/426088"
uri="/api/space/nsas/customer-management/customers/426088" />
<ServiceDefinition>
<ServiceDefinitionID key="2490368"
href="/api/space/nsas/service-management/service-definitions/2490368"
uri="/api/space/nsas/service-management/service-definitions/2490368" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
P2P—BGP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/10158096"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/10158096"
key="10158096">
<Common>
<Name>P2P_BGP_SO_TEMP</Name>
<Identity>10158096</Identity>
<State>Invalid</State>
<CreatedDate>2013-01-10T12:52:31.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-10T12:52:31.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/10256467" uri="/api/space/nsas/device-
roles/pe-devices/10256467"
key="10256467">
<DeviceName>vjx-junos-mx240-space</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 171
<DeviceID>10256467</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport single vlan</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<InnerTPID>None</InnerTPID>
<VlanId>2200</VlanId>
<CustomerVlanId>2440</CustomerVlanId>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="9797632"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/9797632"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/9797632">
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/10256459" uri="/api/space/nsas/device-
roles/pe-devices/10256459"
key="10256459">
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>10256459</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport single vlan</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<InnerTPID>None</InnerTPID>
<VlanId>2200</VlanId>
<CustomerVlanId>2440</CustomerVlanId>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 172
<ServiceTemplate key="9797632"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/9797632"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/9797632">
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>36000:1</RouteTarget>
<RouteDistinguisher>36000:1</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
<ServiceDefinitionID key="10158080"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/10158080"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/10158080" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
VPLS
VPLS-BGP
GET api/space/nsas/elan-vpls/service-management/service-orders/SOId
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/4882459"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/4882459"
key="4882459">
<Common>
<Name>VPLS_SO_ST</Name>
<Identity>4882459</Identity>
<State>Invalid</State>
<Comments></Comments>
<CreatedDate>2012-12-19T18:11:35.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-19T18:11:32.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 173
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4423781" uri="/api/space/nsas/device-
roles/pe-devices/4423781"
key="4423781">
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<MTU>1522</MTU>
<CustomerVlanIdStart>2000</CustomerVlanIdStart>
<CustomerVlanIdEnd>3000</CustomerVlanIdEnd>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/elan-vpls/service-management/service-
templates/32826"
href="/api/space/nsas/elan-vpls/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/elan-vpls/service-management/service-
templates/2457649"
href="/api/space/nsas/elan-vpls/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 174
<NA href="/api/space/nsas/device-roles/pe-devices/4423740" uri="/api/space/nsas/device-
roles/pe-devices/4423740"
key="4423740">
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<MTU>1522</MTU>
<CustomerVlanIdStart>2000</CustomerVlanIdStart>
<CustomerVlanIdEnd>3000</CustomerVlanIdEnd>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/elan-vpls/service-management/service-
templates/32826"
href="/api/space/nsas/elan-vpls/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/elan-vpls/service-management/service-
templates/2457649"
href="/api/space/nsas/elan-vpls/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport vlan range</TrafficType>
<RouteTarget>100:6</RouteTarget>
<VLANNormalization>Normalize All</VLANNormalization>
</ServiceOrderParameter>
<Reference>
<Customer key="426088"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 175
href="/api/space/nsas/customer-management/customers/426088"
uri="/api/space/nsas/customer-management/customers/426088" />
<ServiceDefinition>
<ServiceDefinitionID key="4882432"
href="/api/space/nsas/service-management/service-definitions/4882432"
uri="/api/space/nsas/service-management/service-definitions/4882432" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
VPLS-LDP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/10289179"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/10289179"
key="10289179">
<Common>
<Name>VPLS_LDP_TEMP_SO</Name>
<Identity>10289179</Identity>
<State>Invalid</State>
<CreatedDate>2013-01-10T13:08:43.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-10T13:08:42.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/10256459" uri="/api/space/nsas/device-
roles/pe-devices/10256459"
key="10256459">
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>10256459</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1600</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2100</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
<InnerTPID>None</InnerTPID>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="9797632"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 176
uri="/api/space/nsas/elan-vpls/service-management/service-
templates/9797632"
href="/api/space/nsas/elan-vpls/service-management/service-
templates/9797632">
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/10256467" uri="/api/space/nsas/device-
roles/pe-devices/10256467"
key="10256467">
<DeviceName>vjx-junos-mx240-space</DeviceName>
<DeviceID>10256467</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1600</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2100</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
<InnerTPID>None</InnerTPID>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="9797632"
uri="/api/space/nsas/elan-vpls/service-management/service-
templates/9797632"
href="/api/space/nsas/elan-vpls/service-management/service-
templates/9797632">
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<VLANNormalization>Normalize All</VLANNormalization>
<VPLSId>2147467291</VPLSId>
<AutoDiscovery>false</AutoDiscovery>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 177
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
<ServiceDefinitionID key="10289152"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/10289152"
uri="/api/space/nsas/elan-vpls/service-management/service-
definitions/10289152" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
L3VPN
GET api/space/nsas/l3vpn/service-management/service-orders/SOId
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/l3vpn/service-management/service-orders/4915219"
uri="/api/space/nsas/l3vpn/service-management/service-orders/4915219"
key="4915219">
<Common>
<Name>L3VPN_SO_ST001</Name>
<Identity>4915219</Identity>
<State>Invalid</State>
<Comments></Comments>
<CreatedDate>2012-12-19T18:16:28.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-19T18:16:28.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>l3vpn</ServiceType>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4423740" uri="/api/space/nsas/device-
roles/pe-devices/4423740"
key="4423740">
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>1</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.99.1</InterfaceIP>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 178
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/l3vpn/service-management/service-
templates/32826"
href="/api/space/nsas/l3vpn/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/l3vpn/service-management/service-
templates/2457649"
href="/api/space/nsas/l3vpn/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4423781" uri="/api/space/nsas/device-
roles/pe-devices/4423781"
key="4423781">
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>1</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.88.1</InterfaceIP>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/l3vpn/service-management/service-
templates/32826"
href="/api/space/nsas/l3vpn/service-management/service-
templates/32826">
<ID>32826</ID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 179
<ConfigParams>
<Name>Description</Name>
<Value>Testing description</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/l3vpn/service-management/service-
templates/2457649"
href="/api/space/nsas/l3vpn/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<RouteTarget>100:7</RouteTarget>
<RouteDistinguisher>100:24</RouteDistinguisher>
<VRFTabelLabel>Enabled</VRFTabelLabel>
<OSPFDomainID>22.44.33.22</OSPFDomainID>
</ServiceOrderParameter>
<Reference>
<Customer key="426088"
href="/api/space/nsas/customer-management/customers/426088"
uri="/api/space/nsas/customer-management/customers/426088" />
<ServiceDefinition>
<ServiceDefinitionID key="4915200"
href="/api/space/nsas/l3vpn/service-management/service-definitions/4915200"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/4915200" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
11.6 Create Service Order
PTP-LDP
URL: api/space/nsas/eline-ptp/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 180
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<? xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test003</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<UNIDescription>N/A</UNIDescription>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<Name>TEMP001</Name>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<Name>TEMP003</Name>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AA</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<UNIDescription>N/A</UNIDescription>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 181
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<Name>TEMP001</Name>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description BB</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<Name>TEMP003</Name>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC CC 555</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
</ServiceOrderParameter>
<Reference>
<Customer key="426088"
href="/api/space/nsas/customer-management/customers/426088"
uri="/api/space/nsas/customer-management/customers/426088" />
<ServiceDefinition>
<ServiceDefinitionID key="2490368"
href="/api/space/nsas/service-management/service-definitions/2490368"
uri="/api/space/nsas/service-management/service-definitions/2490368" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
PTP-BGP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>P2P_BGP_SO_TEMP_001</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>vjx-junos-mx240-space</DeviceName>
<DeviceID>10256467</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 182
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<VlanId>2200</VlanId>
<CustomerVlanId>2440</CustomerVlanId>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description-A</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>10256459</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<VlanId>2200</VlanId>
<CustomerVlanId>2440</CustomerVlanId>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description-Z</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
</ServiceOrderParameter>
<Reference>
<Customer key="884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="10158080"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 183
<Identity>
<Type>ServiceOrder</Type>
<Value>1376427</Value>
</Identity>
<Job>
<ID>426219</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
VPLS
URL: api/space/nsas/elan-vpls/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
VPLS M2M - BGP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>VPLS_ST_M2M_001</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<CustomerVlanIdStart>1000</CustomerVlanIdStart>
<CustomerVlanIdEnd>2000</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 184
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AAA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<CustomerVlanIdStart>1000</CustomerVlanIdStart>
<CustomerVlanIdEnd>2000</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC ZZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="426088" />
<ServiceDefinition>
<ServiceDefinitionID key="4882432" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 185
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
VPLS HS - BGP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>VPLS_ST_HS_001</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<Hub>false</Hub>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AAA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 186
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<Hub>true</Hub>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND Endpoint Z</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="426088" />
<ServiceDefinition>
<ServiceDefinitionID key="5210192"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
VPLS-LDP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>VPLS_LDP_TEMP_SO_001</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>10256459</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 187
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<VlanId>1602</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2102</CustomerVlanId>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description-A</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>vjx-junos-mx240-space</DeviceName>
<DeviceID>10256467</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<VlanId>1602</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2102</CustomerVlanId>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>9797632</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Template Description-Z</Value>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
</ServiceOrderParameter>
<Reference>
<Customer key="884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="10289152"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
L3VPN
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 188
URL: api/space/nsas/l3vpn/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
L3VPN FULLMESH - OSPF
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPN_SO_ST001</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 189
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<IPAddressPool>10.0.99.0/24</IPAddressPool>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="426088"/>
<ServiceDefinition>
<ServiceDefinitionID key="4915200"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
L3VPN FULLMESH - BGP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 190
<Name>L3VPNFMBGPService</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>true</Hub>
<IPAddressPool>10.0.77.0/24</IPAddressPool>
<PeerAS>23</PeerAS>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AAA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>false</Hub>
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<PeerAS>24</PeerAS>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 191
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC ZZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="426088" />
<ServiceDefinition>
<ServiceDefinitionID key="5111981"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
L3VPN Hub and Spoke - OSPF
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNHSOSPFService</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>true</Hub>
<IPAddressPool>10.0.77.0/24</IPAddressPool>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 192
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AAA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>false</Hub>
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<OSPFAreaId>1.1.1.1</OSPFAreaId>
<OSPFVersion>Ver 3</OSPFVersion>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName> </ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC ZZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 193
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="426088" />
<ServiceDefinition>
<ServiceDefinitionID key="5111889" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
L3VPN Hub and Spoke - BGP
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNHSBGPService</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>4423740</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>true</Hub>
<IPAddressPool>10.0.77.0/24</IPAddressPool>
<PeerAS>23</PeerAS>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 194
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AAA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>4423781</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<Hub>false</Hub>
<IPAddressPool>10.0.88.0/24</IPAddressPool>
<PeerAS>24</PeerAS>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC ZZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="426088" />
<ServiceDefinition>
<ServiceDefinitionID key="5111962"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 195
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
11.7 Get Service
P2P
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service
href="/api/space/nsas/eline-ptp/service-management/services/5603722"
uri="/api/space/nsas/eline-ptp/service-management/services/5603722"
key="5603722">
<Common>
<Name>P2P001</Name>
<Identity>5603722</Identity>
<State>Deployed</State>
<Comments></Comments>
<CreatedDate>2012-12-21T14:34:17.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-21T14:34:17.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5537806" uri="/api/space/nsas/device-
roles/pe-devices/5537806"
key="5537806">
<DeviceName>exora</DeviceName>
<DeviceID>5537806</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1.1500</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1500</VlanId>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 196
<MTU>1522</MTU>
<Bandwidth unit="Mbps">0</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description AA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC AAA</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.3</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.2</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5537816" uri="/api/space/nsas/device-
roles/pe-devices/5537816"
key="5537816">
<DeviceName>jaipur</DeviceName>
<DeviceID>5537816</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1.1500</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1500</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">0</Bandwidth>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 197
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate key="32826"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/32826"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/32826">
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description ZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate key="2457649"
uri="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649"
href="/api/space/nsas/eline-ptp/service-management/service-
templates/2457649">
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC ZZZ</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.2</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.3</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterServiceType">
<MTU>1522</MTU>
<VCID>122</VCID>
</ServiceParameters>
<Reference>
<ServiceOrder key="5603701"
href="/api/space/nsas/eline-ptp/service-management/service-orders/5603701"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/5603701" />
<ServiceDefinition>
<ServiceDefinitionID key="5603687"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/5603687"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/5603687"
/>
</ServiceDefinition>
<Customer key="426088"
href="/api/space/nsas/customer-management/customers/426088"
uri="/api/space/nsas/customer-management/customers/426088" />
</Reference>
</Service>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 198
VPLS
L3VPN
11.8 Modify Service
P2P
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>P2P001_MODIFY</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>5537806</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 199
<MTU>1527</MTU>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description Modify</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC Modify</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>5537816</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<MTU>1526</MTU>
</ServiceEndpointConfiguration>
<ServiceTemplates>
<ServiceTemplate>
<ID>32826</ID>
<ConfigParams>
<Name>Description</Name>
<Value>Testing description Modify1</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
<ServiceTemplate>
<ID>2457649</ID>
<ConfigParams>
<Name>Description</Name>
<Value>TESTING 2ND DESC Modify2</Value>
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
<ConfigPageName>cp1</ConfigPageName>
</ConfigParams>
</ServiceTemplate>
</ServiceTemplates>
</ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 200
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
</Data>
11.9 Create Service Definition
P2P-Ethernet
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>P2P_DEF_TEMP_001</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<EnableL3Access>false</EnableL3Access>
<ServiceTemplates>
<ServiceTemplate>
<ID>2654218</ID>
</ServiceTemplate>
</ServiceTemplates>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<VCID default="1" selection="Auto pick" editable="false" min="1"
max="4294967296" />
<MTU default="1522" editable="true" min="1522" max="9192" />
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>qinq</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false" />
<TrafficType>Transport all traffic</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="true" min="1522" max="9192" />
<EnableRateLimiting>Enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="true" min="1"
max="100" unit="Mbps">10</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">1000
</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">100
</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">1000
</Increment>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 201
P2P-TDM
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>StaticTDMpseudowire001</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
<InterfaceType>TDM</InterfaceType>
<StaticpseudoWire>true</StaticpseudoWire>
<ServiceTemplates>
<ServiceTemplate>
<ID>2654218</ID>
</ServiceTemplate>
</ServiceTemplates>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
<VCID default="1" selection="Auto pick" editable="true" min="1"
max="4294967296" />
<MTU default="1522" editable="true" min="1522" max="1900" />
<OutGoingLabel selection="Select manually"/>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointParameterDefType">
<PhysicalEncapsulation>satop</PhysicalEncapsulation>
<JitterBuffer editable="true">5</JitterBuffer>
<IdlePattern editable="true" min="0" max="255">255
</IdlePattern>
<ExcessPacketLossRate editable="true" min="0"
max="100">20</ExcessPacketLossRate>
<PayloadSize editable="true">192</PayloadSize>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
L3VPN-FULLMESH
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>L3VPN-BGP-Static_001</Name>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
<ServiceTemplates>
<ServiceTemplate>
<ID>2654218</ID>
</ServiceTemplate>
</ServiceTemplates>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 202
<RouteTarget selection="Auto pick" editable="false" />
<RouteDistinguisher selection="Auto pick"
editable="false" />
<VRFTabelLabel editable="false">true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>BGP/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="true" />
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="true">30</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" editable="true" />
<VlanIdAuto min="0" max="0" />
<VlanIdManual min="0" max="0" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
L3VPN-HUB AND SPOKE ONE INTERFACE
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>L3VPNOSPFStaticHubSpoke001</Name>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
<ServiceTemplates>
<ServiceTemplate>
<ID>2654218</ID>
</ServiceTemplate>
</ServiceTemplates>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Auto pick" editable="false" />
<RouteDistinguisher selection="Auto pick"
editable="false" />
<VRFTabelLabel editable="false">true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="true" />
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="true">30</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" editable="true" />
<VlanIdAuto min="0" max="0" />
<VlanIdManual min="0" max="0" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 203
Note:
1) The following values are not correct and it is hardcoded as false.
<Decommission>false</Decommission>
<SvcSpecificValue>false</SvcSpecificValue>
2) The Xpath which is used in this format now:
<ConfigPageName>cp1</ConfigPageName>
Here, cp1 would represent configuration page in template. If there are more than 1 config.pages we would
get cp1, cp2 etc. correspondingly.
12 List Services which are down
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 204
12.1 Get Services – Filtered Based on Fault Status for Eline-P2P
URL: api/space/nsas/eline-ptp/service-management/services?faultStatus=Down
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="1">
<Service href="/api/space/nsas/eline-ptp/service-management/services/1048583" uri="/api/space/nsas/eline-ptp/service-
management/services/1048583" key="1048583">
<Common>
<Name>PTP</Name>
<Identity>1048583</Identity>
<State>Deployed</State>
<Comments>PTP</Comments>
<CreatedDate>2012-12-14T02:01:18.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-14T02:01:18.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>Down</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="1048576" href="/api/space/nsas/eline-ptp/service-management/service-orders/1048576" uri="/api/space/nsas/eline-
ptp/service-management/service-orders/1048576"/>
<ServiceDefinition>
<ServiceDefinitionID key="294912" href="/api/space/nsas/eline-ptp/service-management/service-definitions/294912"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/294912"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
12.2 Get Services – Filtered Based on Fault Status for Elan-VPLS
URL: api/space/nsas/elan-vpls/service-management/services?faultStatus=Down
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 205
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="1">
<Service href="/api/space/nsas/elan-vpls/service-management/services/1081439" uri="/api/space/nsas/elan-vpls/service-
management/services/1081439" key="1081439">
<Common>
<Name>ELAN_VPLS</Name>
<Identity>1081439</Identity>
<State>Deployed</State>
<Comments> </Comments>
<CreatedDate>2012-12-14T02:13:19.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-14T02:13:19.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>Down</FaultStatus>
</AuditFlag>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSConfigParameterServiceType"/>
<Reference>
<ServiceOrder key="1081426" href="/api/space/nsas/elan-vpls/service-management/service-orders/1081426" uri="/api/space/nsas/elan-
vpls/service-management/service-orders/1081426"/>
<ServiceDefinition>
<ServiceDefinitionID key="262225" href="/api/space/nsas/elan-vpls/service-management/service-definitions/262225"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/262225"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
12.3 Get Services – Filtered Based on Fault Status for L3VPN
URL: api/space/nsas/l3vpn/service-management/services?faultStatus=Down
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="1">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 206
<Service href="/api/space/nsas/l3vpn/service-management/services/819207" uri="/api/space/nsas/l3vpn/service-
management/services/819207" key="819207">
<Common>
<Name>L3vpnTest</Name>
<Identity>819207</Identity>
<State>Deployed</State>
<Comments>L3vpnTest</Comments>
<CreatedDate>2012-12-14T01:36:50.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-14T01:36:50.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>Down</FaultStatus>
</AuditFlag>
<Reference>
<ServiceOrder key="819200" href="/api/space/nsas/l3vpn/service-management/service-orders/819200"
uri="/api/space/nsas/l3vpn/service-management/service-orders/819200"/>
<ServiceDefinition>
<ServiceDefinitionID key="327680" href="/api/space/nsas/l3vpn/service-management/service-definitions/327680"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/327680"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
Note:
We can also get Services with FaultStatus Up/None by giving faultStatus info as :
(faultStatus=Up/None) in the URL.
13 Service Level CFM through NA
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 207
13.1 GET All CFM Profiles
URL: api/space/nsas/cfm-profiles/service-management/service-definitions
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.cfm-profiles+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource size="5">
<OAMProfiles>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/163857"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/163857"
key="163857">
<Common>
<Name>dgsfdg</Name>
<Identity>163857</Identity>
<State>Published</State>
<CreatedDate>2013-01-10T00:05:39.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-10T00:05:39.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<CFMDomain>
<DomainName>fsg</DomainName>
<DomainLevel>1</DomainLevel>
<RemoteMEP>false</RemoteMEP>
<DefinitionType>MEP</DefinitionType>
</CFMDomain>
</CFMProfile>
</OAMProfiles>
<OAMProfiles>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/131072"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/131072"
key="131072">
<Common>
<Name>erfe</Name>
<Identity>131072</Identity>
<State>Published</State>
<CreatedDate>2013-01-09T00:53:33.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-09T00:53:33.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<CFMDomain>
<DomainName>er</DomainName>
<DomainLevel>1</DomainLevel>
<RemoteMEP>false</RemoteMEP>
<DefinitionType>MEP</DefinitionType>
</CFMDomain>
</CFMProfile>
</OAMProfiles>
<OAMProfiles>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/163840"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/163840"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 208
key="163840">
<Common>
<Name>fg</Name>
<Identity>163840</Identity>
<State>Published</State>
<CreatedDate>2013-01-09T19:48:10.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-09T19:48:10.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<CFMDomain>
<DomainName>sgf</DomainName>
<DomainLevel>1</DomainLevel>
<RemoteMEP>false</RemoteMEP>
<DefinitionType>MEP</DefinitionType>
</CFMDomain>
</CFMProfile>
</OAMProfiles>
<OAMProfiles>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/1"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/1"
key="1">
<Common>
<Name>StdDef-CFMPort</Name>
<Identity>1</Identity>
<State>Published</State>
<Comments>Predefined definition for CFM session on physical
interfaces</Comments>
<CreatedDate>2013-01-08T00:18:12.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-08T00:18:12.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<CFMDomain>
<DomainName>Default-Domain</DomainName>
<DomainLevel>7</DomainLevel>
<RemoteMEP>false</RemoteMEP>
<DefinitionType>MEP</DefinitionType>
</CFMDomain>
</CFMProfile>
</OAMProfiles>
<OAMProfiles>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/17"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/17"
key="17">
<Common>
<Name>StdDef-CFMService</Name>
<Identity>17</Identity>
<State>Published</State>
<Comments>Predefined definition for CFM session on Ethernet
services</Comments>
<CreatedDate>2013-01-08T00:18:12.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-08T00:18:12.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<CFMDomain>
<DomainName>Default-Domain</DomainName>
<DomainLevel>1</DomainLevel>
<RemoteMEP>false</RemoteMEP>
<DefinitionType>MEP</DefinitionType>
</CFMDomain>
</CFMProfile>
</OAMProfiles>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 209
</ServiceResource>
</Data>
13.2 GET CFM Profile
URL: api/space/nsas/cfm-profiles/service-management/service-definitions/ {cfm-profile-id}
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.cfm-profile+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<OAMProfiles>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/17"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/17"
key="17">
<Common>
<Name>StdDef-CFMService</Name>
<Identity>17</Identity>
<State>Published</State>
<Comments>Predefined definition for CFM session on Ethernet
services</Comments>
<CreatedDate>2013-01-08T00:18:12.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-08T00:18:12.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<CFMDomain>
<DomainName>Default-Domain</DomainName>
<DomainLevel>1</DomainLevel>
<RemoteMEP>false</RemoteMEP>
<DefinitionType>MEP</DefinitionType>
</CFMDomain>
<CCSettings>
<HoldInterval Editable="true">10</HoldInterval>
<LossThreshold Editable="true">3</LossThreshold>
<MessageInterval Editable="true">1s</MessageInterval>
<InterfaceStatus Editable="true">false</InterfaceStatus>
<PortStatusTLV Editable="true">false</PortStatusTLV>
<ProtectionOviTLV Editable="true">false
</ProtectionOviTLV>
</CCSettings>
<MEPSettings>
<MEPId>Auto pick</MEPId>
<Direction Editable="true">up</Direction>
<Priority Editable="true">0</Priority>
<AcceptCCMesgFromRemoteMEP>true</AcceptCCMesgFromRemoteMEP>
</MEPSettings>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 210
</CFMProfile>
</OAMProfiles>
</ServiceResource>
</Data>
13.3 GET Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders/{serviceOrder-id}
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/1967021"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1967021"
key="1967021">
<Common>
<Name>afa</Name>
<Identity>1967021</Identity>
<State>Validated</State>
<CreatedDate>2013-01-11T17:52:09.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-11T17:52:07.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/163840"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/163840"
key="163840" />
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/589839" uri="/api/space/nsas/device-
roles/pe-devices/589839"
key="589839">
<DeviceName>kochin</DeviceName>
<DeviceID>589839</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>lt-0/2/10</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>Transport using port</TrafficType>
<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>0</VlanId>
<Bandwidth unit="Mbps">10</Bandwidth>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 211
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/589904" uri="/api/space/nsas/device-
roles/pe-devices/589904"
key="589904">
<DeviceName>embassy</DeviceName>
<DeviceID>589904</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>Transport using port</TrafficType>
<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>0</VlanId>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>100:114716</RouteTarget>
<RouteDistinguisher>100:114742</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="590022"
href="/api/space/nsas/customer-management/customers/590022"
uri="/api/space/nsas/customer-management/customers/590022" />
<ServiceDefinition>
<ServiceDefinitionID key="360481"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/360481"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/360481"
/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
13.4 GET Service
URL: api/space/nsas/ eline-ptp /service-management/services/{service-id}
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 212
<ServiceResource>
<Service
href="/api/space/nsas/eline-ptp/service-management/services/1640245"
uri="/api/space/nsas/eline-ptp/service-management/services/1640245"
key="1640245">
<Common>
<Name>4tew</Name>
<Identity>1640245</Identity>
<State>Deployed</State>
<CreatedDate>2013-01-11T01:09:07.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-11T04:01:14.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<CFMProfile
href="/api/space/nsas/cfm-profiles/service-management/service-definitions/163840"
uri="/api/space/nsas/cfm-profiles/service-management/service-definitions/163840"
key="163840" />
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/589839" uri="/api/space/nsas/device-
roles/pe-devices/589839"
key="589839">
<DeviceName>kochin</DeviceName>
<DeviceID>589839</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/9.9</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<VlanId>9</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">100</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.1</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>127.0.0.1/32</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/589904" uri="/api/space/nsas/device-
roles/pe-devices/589904"
key="589904">
<DeviceName>embassy</DeviceName>
<DeviceID>589904</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 213
<InterfaceName>xe-0/0/1.1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<VlanId>1</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">100</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>127.0.0.1/32</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.1</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterServiceType" />
<Reference>
<ServiceOrder key="1640238"
href="/api/space/nsas/eline-ptp/service-management/service-orders/1640238"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/1640238" />
<ServiceDefinition>
<ServiceDefinitionID key="295140"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/295140"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/295140"
/>
</ServiceDefinition>
<Customer key="590022"
href="/api/space/nsas/customer-management/customers/590022"
uri="/api/space/nsas/customer-management/customers/590022" />
</Reference>
</Service>
</ServiceResource>
</Data>
13.5 Create Service Order (P2P)
URL: api/space/nsas/ eline-ptp /service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Input:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 214
<Common>
<Name>P2P-BGP1</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<CFMProfile key="163840" />
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>589839</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/3/7</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>589904</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="590022"/>
<ServiceDefinition>
<ServiceDefinitionID key="360481"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
13.6 Create Service Order (VPLS)
URL: api/space/nsas/ elan-vpls /service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 215
Sample Input:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>sgs</Name>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<CFMProfile key="163840" />
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>589839</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/9</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>jaipur</DeviceName>
<DeviceID>589893</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/3</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="590022"/>
<ServiceDefinition>
<ServiceDefinitionID key="262225"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
13.7 Modify Service – VPLS (Adding CFM Profile)
URL: api/space/nsas/ elan-vpls /service-management/services/{service-id}
METHOD: POST
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 216
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Input:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>sgs3fdas</Name>
</Common>
<ServiceType>VPLS</ServiceType>
<CFMProfile key="163840" />
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>589839</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/9</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>589893</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/3</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
</Data>
13.8 Modify Service – VPLS (Disable CFM)
URL: api/space/nsas/ elan-vpls /service-management/services/{service-id}
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 217
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>sgs3fdas</Name>
</Common>
<ServiceType>VPLS</ServiceType>
<CFMProfile key="163840" >
<DisableDefinition>true</DisableDefinition>
</CFMProfile>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>589839</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/9</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>589893</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/3</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
</Data>
13.9 Modify Service – P2P (Adding CFM Profile)
URL: api/space/nsas/ eline-ptp /service-management/services/{service-id}
METHOD: POST
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 218
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>p2ptest1modify</Name>
</Common>
<CFMProfile key="163840" />
<AuditFlag>
<FunctionalAudit>Down</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>vjx-junos-mx240-space</DeviceName>
<DeviceID>1212780</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7.2</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>1212787</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6.2</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 219
13.10 Modify Service – P2P (Disable CFM)
URL: api/space/nsas/ eline-ptp /service-management/services/{service-id}
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.modify-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>p2ptest1modify</Name>
</Common>
<CFMProfile key="163840" >
<DisableDefinition>true</DisableDefinition>
</CFMProfile>
<AuditFlag>
<FunctionalAudit>Down</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>vjx-junos-mx240-space</DeviceName>
<DeviceID>1212780</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7.2</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>1212787</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6.2</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
</ServiceOrder>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 220
</Data>
13.11 View FA results – P2P (with CFM)
URL: api/space/nsas/ eline-ptp /service-management/view-functional-audit/{service-id}
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.functional-audit+xml
Sample Response:
<Data>
<AuditResults>
<FunctionalAuditResult>
<Common>
<Name>P2P-No-CFM</Name>
<Identity>1311423</Identity>
<State>Deployed</State>
</Common>
<ServiceType>ELINEMartini</ServiceType>
<OperationState>Down</OperationState>
<ServiceDefinitionName>ELine-QinQ-AllVLAN</ServiceDefinitionName>
<DeviceEnd>
<DeviceName>ge-0/0/7 vjx-junos-mx240-space</DeviceName>
<Topology>P2P</Topology>
<OperationState>Down</OperationState>
<RemoteEnd>
<ControlPlaneParams>
<ControlPanelCommand>
<Command>get-l2ckt-connection-information</Command>
<RemoteEndpoint>ge-0/0/5 vjx-junos-mx80-1-space</RemoteEndpoint>
<Result>Status: probably configuration missing on device </Result>
</ControlPanelCommand>
</ControlPlaneParams>
<DataPlaneParams>
<Command>request-ping-l2circuit-virtual-circuit</Command>
<Result>Status: probably configuration missing on device </Result>
</DataPlaneParams>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 221
<ServiceStatistics>
<Command>show interfaces ge-0/0/7.3 statistics</Command>
<RemoteLoopbackIP>40.1.255.1</RemoteLoopbackIP>
<VCID>2147467278</VCID>
</ServiceStatistics>
</RemoteEnd>
</DeviceEnd>
<DeviceEnd>
<DeviceName>ge-0/0/5 vjx-junos-mx80-1-space</DeviceName>
<Topology>P2P</Topology>
<OperationState>Down</OperationState>
<RemoteEnd>
<ControlPlaneParams>
<ControlPanelCommand>
<Command>get-l2ckt-connection-information</Command>
<RemoteEndpoint>ge-0/0/7 vjx-junos-mx240-space</RemoteEndpoint>
<Result>Status: probably configuration missing on device </Result>
</ControlPanelCommand>
</ControlPlaneParams>
<DataPlaneParams>
<Command>request-ping-l2circuit-virtual-circuit</Command>
<Result>Status: probably configuration missing on device </Result>
</DataPlaneParams>
<ServiceStatistics>
<Command>show interfaces ge-0/0/5.1 statistics</Command>
<RemoteLoopbackIP>40.1.255.8</RemoteLoopbackIP>
<VCID>2147467278</VCID>
</ServiceStatistics>
</RemoteEnd>
</DeviceEnd>
<TroubleshootResult
href="/api/space/nsas/eline-ptp/service-management/services/view-troubleshoot-results/1311423"
uri="/api/space/nsas/eline-ptp/service-management/services/view-troubleshoot-results/1311423" />
</FunctionalAuditResult>
</AuditResults>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 222
13.12 View FA results – VPLS (with CFM)
URL: api/space/nsas/ eline-ptp /service-management/ view-functional-audit/{service-id}
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.functional-audit+xml
Sample Response:
<Data>
<AuditResults>
<FunctionalAuditResult>
<Common>
<Name>estg</Name>
<Identity>786667</Identity>
<State>Deployed</State>
</Common>
<ServiceType>VPLS</ServiceType>
<OperationState>Down</OperationState>
<ServiceDefinitionName>ELAN-Hub-Spoke-QinQ-AllVLAN
</ServiceDefinitionName>
<NoOfUNIs>2</NoOfUNIs>
<UpUNIs>0</UpUNIs>
<DownUNIs>2</DownUNIs>
<DeviceEnd>
<DeviceName>xe-0/0/2.1 embassy</DeviceName>
<Topology>HUB</Topology>
<OperationState>Down</OperationState>
<NoOfRemoteUNIs>1</NoOfRemoteUNIs>
<UpRemoteUNIs>0</UpRemoteUNIs>
<DownRemoteUNIs>1</DownRemoteUNIs>
<RemoteEnd>
<ControlPlaneParams>
<ControlPanelCommand>
<Command>get-vpls-connection-information</Command>
<RemoteEndpoint>ge-0/0/3.6 jaipur</RemoteEndpoint>
<Result>Remote Site not found, connection is not running </Result>
</ControlPanelCommand>
<ControlPanelCommand>
<Command>get-cfm-mep-database</Command>
<RemoteEndpoint>ge-0/0/3.6 jaipur</RemoteEndpoint>
<Result>Status: probably configuration missing on device </Result>
</ControlPanelCommand>
</ControlPlaneParams>
<DataPlaneParams>
<Command>request-ping-vpls-instance</Command>
<Result>
Command cannot be instrumented due to platform
limitations.
</Result>
</DataPlaneParams>
</RemoteEnd>
<CFMServiceExtension>
<ServiceExtensionType>CFM</ServiceExtensionType>
<ServiceDefinition>StdDef-CFMService</ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 223
<OperationState>Down</OperationState>
</CFMServiceExtension>
</DeviceEnd>
<DeviceEnd>
<DeviceName>ge-0/0/3.6 jaipur</DeviceName>
<Topology>SPOKE</Topology>
<OperationState>Down</OperationState>
<NoOfRemoteUNIs>1</NoOfRemoteUNIs>
<UpRemoteUNIs>0</UpRemoteUNIs>
<DownRemoteUNIs>1</DownRemoteUNIs>
<RemoteEnd>
<ControlPlaneParams>
<ControlPanelCommand>
<Command>get-vpls-connection-information</Command>
<RemoteEndpoint>xe-0/0/2.1 embassy</RemoteEndpoint>
<Result>Remote Site not found, connection is not running </Result>
</ControlPanelCommand>
<ControlPanelCommand>
<Command>get-cfm-mep-database</Command>
<RemoteEndpoint>xe-0/0/2.1 embassy</RemoteEndpoint>
</ControlPanelCommand>
</ControlPlaneParams>
<DataPlaneParams>
<Command>request-ping-vpls-instance</Command>
</DataPlaneParams>
</RemoteEnd>
<CFMServiceExtension>
<ServiceExtensionType>CFM</ServiceExtensionType>
<ServiceDefinition>StdDef-CFMService</ServiceDefinition>
<OperationState>Down</OperationState>
</CFMServiceExtension>
</DeviceEnd>
<TroubleshootResult
href="/api/space/nsas/elan-vpls/service-management/services/view-troubleshoot-results/786667"
uri="/api/space/nsas/elan-vpls/service-management/services/view-troubleshoot-results/786667" />
</FunctionalAuditResult>
</AuditResults>
</Data>
13.13 View TroubleShooting results – P2P (with CFM/OAM)
URL: api/space/nsas/ eline-ptp /service-management/ view-troubleshooting-results/{service-id}
METHOD: GET
Sample Response:
<Data>
<AuditResults>
<TroubleshootResult>
<DeviceEnd>
<DeviceName>kochin</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 224
<CommandResult>
<Protocol>
<UNI>
<CommandDetails> <Command>show l2vpn connections instance P2P-
BGP1</Command>
<Results>
<Message>Probably configuration missing on
device.</Message>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/3/7.0 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value> ge-0/3/7.0 </Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value> down </Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value> up </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/3/7.0 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value />
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 225
<Name>Input packets</Name>
<Value />
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/3/7.0 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value> ge-0/3/7.0 </Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value> down </Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value> up </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 226
<Command>show bgp summary instance P2P-BGP1</Command>
<Results>
<Message>Probably configuration missing on device.</Message>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-exora</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 227
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-embassy</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.4</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 228
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 229
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>exora-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
<ROUTE>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 230
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>22</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>10.216.114.109</Value>
</Parameter>
<Parameter>
<Name>Connection State</Name>
<Value>Open</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>29</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 231
<Name>Address</Name>
<Value>10.216.114.112</Value>
</Parameter>
<Parameter>
<Name>Connection State</Name>
<Value>Open</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>28</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>Connection State</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 232
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-exora</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 233
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-embassy</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 234
<Value>50.1.2.4</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 235
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 236
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>exora-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 237
<Value>50.1.2.3</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>embassy</DeviceName>
<CommandResult>
<Protocol>
<UNI>
<CommandDetails>
<Command>show l2vpn connections instance P2P-BGP1</Command>
<Results>
<Message>Probably configuration missing on device.</Message>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-1/0/6.0 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value />
</Parameter>
<Parameter>
<Name>Link</Name>
<Value />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 238
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-1/0/6.0 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value />
</Parameter>
<Parameter>
<Name>Link</Name>
<Value />
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-1/0/6.0 statistics</Command>
<Results>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 239
<Name>Interface</Name>
<Value />
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value />
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show bgp summary instance P2P-BGP1</Command>
<Results>
<Message>Probably configuration missing on device.</Message>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-kochin</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 240
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>fdgfdgfdgfd</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 241
<Parameter>
<Name>LSP Name</Name>
<Value>klg</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 242
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>BFD_Push1</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>cvxvx</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 243
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>Twatt</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-exora</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 244
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>sadsad</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 245
<Parameter>
<Name>LSP Name</Name>
<Value>ABCTesting</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>TestLSP</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 246
<Value>50.1.2.4</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>State</Name>
<Value />
</Parameter>
<Parameter>
<Name>To</Name>
<Value />
</Parameter>
<Parameter>
<Name>From</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
</MPLS>
<ROUTE>
<CommandDetails>
<Command>show rsvp session egress</Command>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 247
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>State</Name>
<Value />
</Parameter>
<Parameter>
<Name>To</Name>
<Value />
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value />
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value />
</Parameter>
<Parameter>
<Name>From</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 248
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>23</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Connection State</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 249
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 250
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-exora</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 251
<Name>Lableout</Name>
<Value>300288</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
</Protocol>
</CommandResult>
</DeviceEnd>
</TroubleshootResult>
<TroubleShootOAMResult>
<DeviceEnd>
<DeviceName>kochin</DeviceName>
<CommandResult>
<Protocol>
<OAM />
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>embassy</DeviceName>
<CommandResult>
<Protocol>
<OAM />
</Protocol>
</CommandResult>
</DeviceEnd>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 252
</TroubleShootOAMResult>
</AuditResults>
</Data>
13.14 View TroubleShooting results – VPLS (with CFM/OAM)
URL: api/space/nsas/ eline-ptp /service-management/ view-troubleshooting-results /{service-id}
METHOD: GET
Sample Response:
<Data>
<AuditResults>
<TroubleshootResult>
<DeviceEnd>
<DeviceName>jaipur</DeviceName>
<CommandResult>
<Protocol>
<UNI>
<CommandDetails>
<Command>show interfaces ge-0/1/3.1 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Logical Interface</Name>
<Value> ge-0/1/3.1 </Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value> 0 </Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value> 0 </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interface ge-0/1/3.1 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value> ge-0/1/3.1 </Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value> up </Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 253
<Name>Admin</Name>
<Value> up </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/1/3.1 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value> ge-0/1/3.1 </Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value> up </Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value> up </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 254
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-exora</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-embassy</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 255
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.4</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>State</Name>
<Value />
</Parameter>
<Parameter>
<Name>To</Name>
<Value />
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 256
<Parameter>
<Name>From</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls static-lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>State</Name>
<Value />
</Parameter>
<Parameter>
<Name>To</Name>
<Value />
</Parameter>
<Parameter>
<Name>From</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 257
<Command>show route table inet.3 protocol ldp terse</Command>
<Results>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.1/32</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.3/32</Value>
</Parameter>
</Row>
</Results>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 258
</CommandDetails>
</MPLS>
<ROUTE>
<CommandDetails>
<Command>show vpls connection instance sgs</Command>
<Results>
<Row>
<Parameter>
<Name>Connection-site</Name>
<Value />
</Parameter>
<Parameter>
<Name>Status</Name>
<Value />
</Parameter>
<Parameter>
<Name>Type</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 259
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-exora</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 260
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>300352</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-embassy</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.4</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 261
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>State</Name>
<Value />
</Parameter>
<Parameter>
<Name>To</Name>
<Value />
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value />
</Parameter>
<Parameter>
<Name>Lableout</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 262
<Value />
</Parameter>
<Parameter>
<Name>From</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table inet.3</Command>
<Results>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>RSVP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.1/32</Value>
</Parameter>
</Row>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 263
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>-</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>MPLS</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.3/32</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 264
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>RSVP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>-</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/1.0</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 265
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>-</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route protocol bgp table sgs.l2vpn.0</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value />
</Parameter>
<Parameter>
<Name>NextHop</Name>
<Value />
</Parameter>
<Parameter>
<Name>Protocol-name</Name>
<Value />
</Parameter>
<Parameter>
<Name>Learned-from</Name>
<Value />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 266
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ospf neighbor</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.1.1</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>35</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 267
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>26</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>kochin</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 268
<CommandResult>
<Protocol>
<UNI>
<CommandDetails>
<Command>show interfaces ge-0/0/9.4 statistics</Command>
<Results>
<Row>
<Parameter>
<Name>Logical Interface</Name>
<Value> ge-0/0/9.4 </Value>
</Parameter>
<Parameter>
<Name>Input packets</Name>
<Value> 0 </Value>
</Parameter>
<Parameter>
<Name>Output packets</Name>
<Value> 0 </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interface ge-0/0/9.4 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value> ge-0/0/9.4 </Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 269
<Name>Link</Name>
<Value> up </Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value> up </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show interfaces ge-0/0/9.4 terse</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value> ge-0/0/9.4 </Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value> up </Value>
</Parameter>
<Parameter>
<Name>Admin</Name>
<Value> up </Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</UNI>
<MPLS>
<CommandDetails>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 270
<Command>show mpls lsp ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-jaipur</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-exora</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 271
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-embassy</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.4</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls static-lsp ingress</Command>
<Results>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 272
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>State</Name>
<Value />
</Parameter>
<Parameter>
<Name>To</Name>
<Value />
</Parameter>
<Parameter>
<Name>From</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table inet.3 protocol ldp terse</Command>
<Results>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.2.2</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 273
<Name>Destination</Name>
<Value>50.1.2.3/32</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show mpls lsp egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-kochin</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 274
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>exora-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
</Parameter>
</Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 275
</Results>
</CommandDetails>
</MPLS>
<ROUTE>
<CommandDetails>
<Command>show vpls connection instance sgs</Command>
<Results>
<Row>
<Parameter>
<Name>Connection-site</Name>
<Value />
</Parameter>
<Parameter>
<Name>Status</Name>
<Value />
</Parameter>
<Parameter>
<Name>Type</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session ingress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-jaipur</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 276
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.2</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-exora</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.3</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 277
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>kochin-to-embassy</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Dn</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.4</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>-</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 278
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route table inet.3</Command>
<Results>
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>RSVP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.2.2</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/2.0</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>50.1.2.3/32</Value>
</Parameter>
</Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 279
<Row>
<Parameter>
<Name>Protocol Name</Name>
<Value>LDP</Value>
</Parameter>
<Parameter>
<Name>Next Hop</Name>
<Value>40.1.2.2</Value>
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value>ge-0/0/2.0</Value>
</Parameter>
<Parameter>
<Name>Destination</Name>
<Value>-</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show route protocol bgp table sgs.l2vpn.0</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value />
</Parameter>
<Parameter>
<Name>NH Interface</Name>
<Value />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 280
</Parameter>
<Parameter>
<Name>NextHop</Name>
<Value />
</Parameter>
<Parameter>
<Name>Protocol-name</Name>
<Value />
</Parameter>
<Parameter>
<Name>Learned-from</Name>
<Value />
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show rsvp session egress</Command>
<Results>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>embassy-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 281
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.4</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>jaipur-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 282
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.2</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>LSP Name</Name>
<Value>exora-to-kochin</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>To</Name>
<Value>50.1.2.1</Value>
</Parameter>
<Parameter>
<Name>Lablein</Name>
<Value>3</Value>
</Parameter>
<Parameter>
<Name>Lableout</Name>
<Value>-</Value>
</Parameter>
<Parameter>
<Name>From</Name>
<Value>50.1.2.3</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 283
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ospf neighbor</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/1.0</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.1.2</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>10.216.114.112</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>33</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 284
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/2.0</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.2.2</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>38</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/3.0</Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 285
<Parameter>
<Name>State</Name>
<Value>Full</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>40.1.3.2</Value>
</Parameter>
<Parameter>
<Name>ID</Name>
<Value>10.216.114.109</Value>
</Parameter>
<Parameter>
<Name>Dead</Name>
<Value>35</Value>
</Parameter>
<Parameter>
<Name>Priority</Name>
<Value>128</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>show ldp session</Command>
<Results>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>20</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 286
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>10.216.114.109</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Hold Time</Name>
<Value>28</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>10.216.114.112</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 287
<Name>Hold Time</Name>
<Value>26</Value>
</Parameter>
<Parameter>
<Name>State</Name>
<Value>Operational</Value>
</Parameter>
<Parameter>
<Name>Address</Name>
<Value>50.1.2.3</Value>
</Parameter>
<Parameter>
<Name>Connection</Name>
<Value>Open</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</ROUTE>
</Protocol>
</CommandResult>
</DeviceEnd>
</TroubleshootResult>
<TroubleShootOAMResult>
<DeviceEnd>
<DeviceName>jaipur</DeviceName>
<CommandResult>
<Protocol>
<OAM>
<CommandDetails>
<Command>
show oam ethernet connectivity-fault-management
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 288
interfaces
ge-0/1/3.1 detail
</Command>
<Results>
<Row>
<Parameter>
<Name>MEP status</Name>
<Value>Platform Unsupported</Value>
</Parameter>
<Parameter>
<Name>Maintenance Association</Name>
<Value>VPLS_sgs</Value>
</Parameter>
<Parameter>
<Name>MAC address</Name>
<Value>00:00:00:00:00:00</Value>
</Parameter>
<Parameter>
<Name>Maintenance Domain</Name>
<Value>sgf</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>
show oam ethernet connectivity-fault-management
interfaces
ge-0/1/3.1
</Command>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 289
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/1/3.1 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>Neighbours</Name>
<Value>0</Value>
</Parameter>
<Parameter>
<Name>Level</Name>
<Value>1</Value>
</Parameter>
<Parameter>
<Name>MEP Id</Name>
<Value>1</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>
show oam ethernet connectivity-fault-management
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 290
interfaces level 1
</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/3.1 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/3.4 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
<Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 291
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/3.6 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/1/3.1 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/1/3.3 </Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 292
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</OAM>
</Protocol>
</CommandResult>
</DeviceEnd>
<DeviceEnd>
<DeviceName>kochin</DeviceName>
<CommandResult>
<Protocol>
<OAM>
<CommandDetails>
<Command>
show oam ethernet connectivity-fault-management
interfaces
ge-0/0/9.4
</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/9.4 </Value>
</Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 293
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
<Parameter>
<Name>Neighbours</Name>
<Value>0</Value>
</Parameter>
<Parameter>
<Name>Level</Name>
<Value>1</Value>
</Parameter>
<Parameter>
<Name>MEP Id</Name>
<Value>2</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>
show oam ethernet connectivity-fault-management
interfaces
ge-0/0/9.4 detail
</Command>
<Results>
<Row>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 294
<Name>MEP status</Name>
<Value>running</Value>
</Parameter>
<Parameter>
<Name>Maintenance Association</Name>
<Value>VPLS_sgs</Value>
</Parameter>
<Parameter>
<Name>MAC address</Name>
<Value>80:71:1f:16:38:09</Value>
</Parameter>
<Parameter>
<Name>Maintenance Domain</Name>
<Value>sgf</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
<CommandDetails>
<Command>
show oam ethernet connectivity-fault-management
interfaces level 1
</Command>
<Results>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/6.743 </Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 295
<Name>Status</Name>
<Value>Inactive</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Down</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/7.3 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Inactive</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Down</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/7.5 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Inactive</Value>
</Parameter>
<Parameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 296
<Name>Link</Name>
<Value>Down</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/9.4 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/0/9.8 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Up</Value>
</Parameter>
</Row>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 297
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/1/5.732 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Down</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/2/1.821 </Value>
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Down</Value>
</Parameter>
</Row>
<Row>
<Parameter>
<Name>Interface</Name>
<Value>ge-0/3/7.0 </Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 298
</Parameter>
<Parameter>
<Name>Status</Name>
<Value>Active</Value>
</Parameter>
<Parameter>
<Name>Link</Name>
<Value>Down</Value>
</Parameter>
</Row>
</Results>
</CommandDetails>
</OAM>
</Protocol>
</CommandResult>
</DeviceEnd>
</TroubleShootOAMResult>
</AuditResults>
</Data>
13.15 View Service Configuration Change – P2P (with CFM/OAM)
URL: api/space/nsas/ eline-ptp /service-management/ view- serviceconfiguration -change /{service-id}
METHOD: GET
Sample Response:
<Data>
<AuditResults>
<ServiceConfigurationChangeResult>
<ServiceConfigDeviceEnd>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 299
<DeviceName>kochin</DeviceName>
<Configuration>
<configuration>
<firewall>
<policer>
<name>policer_in_ge-0/3/7</name>
<if-exceeding>
<bandwidth-limit>10000</bandwidth-limit>
<burst-size-limit>15220</burst-size-limit>
</if-exceeding>
<then>
<discard />
</then>
</policer>
<family>
<ccc>
<filter>
<name>filter_in_ge-0/3/7</name>
<interface-specific />
<term>
<name>1</name>
<then>
<policer>policer_in_ge-0/3/7</policer>
<accept />
</then>
</term>
</filter>
</ccc>
</family>
</firewall>
<interfaces>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 300
<interface>
<name>ge-0/3/7</name>
<encapsulation>ethernet-ccc</encapsulation>
<unit>
<name>0</name>
<family>
<ccc>
<filter>
<input>filter_in_ge-0/3/7</input>
</filter>
</ccc>
</family>
</unit>
</interface>
</interfaces>
<routing-instances>
<instance>
<name>P2P-BGP1</name>
<instance-type>l2vpn</instance-type>
<interface>
<name>ge-0/3/7</name>
</interface>
<route-distinguisher>
<rd-type>100:114715</rd-type>
</route-distinguisher>
<vrf-target>
<community>target:100:114702</community>
</vrf-target>
<protocols>
<l2vpn>
<encapsulation-type>ethernet</encapsulation-type>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 301
<site>
<name>L2VPN_Site_1</name>
<site-identifier>1</site-identifier>
<interface>
<name>ge-0/3/7</name>
<remote-site-id>2</remote-site-id>
</interface>
</site>
</l2vpn>
</protocols>
</instance>
</routing-instances>
</configuration>
</Configuration>
<TempConfiguration>
<configuration>
<protocols>
<oam>
<ethernet>
<connectivity-fault-management>
<maintenance-domain>
<name>sgf</name>
<maintenance-association>
<name>PW_100:114715</name>
<continuity-check>
<hold-interval>1</hold-interval>
<interval>1s</interval>
<loss-threshold>3</loss-threshold>
</continuity-check>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 302
<mep>
<name>1</name>
<auto-discovery />
<direction>up</direction>
<interface>
<interface-name>ge-0/3/7.0</interface-name>
</interface>
<lowest-priority-defect>all-defects
</lowest-priority-defect>
</mep>
</maintenance-association>
<level>1</level>
</maintenance-domain>
</connectivity-fault-management>
</ethernet>
</oam>
</protocols>
</configuration>
</TempConfiguration>
</ServiceConfigDeviceEnd>
<ServiceConfigDeviceEnd>
<DeviceName>embassy</DeviceName>
<Configuration>
<configuration>
<firewall>
<policer>
<name>policer_in_ge-1/0/6</name>
<if-exceeding>
<bandwidth-limit>10000</bandwidth-limit>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 303
<burst-size-limit>15220</burst-size-limit>
</if-exceeding>
<then>
<discard />
</then>
</policer>
<family>
<ccc>
<filter>
<name>filter_in_ge-1/0/6</name>
<interface-specific />
<term>
<name>1</name>
<then>
<policer>policer_in_ge-1/0/6</policer>
<accept />
</then>
</term>
</filter>
</ccc>
</family>
</firewall>
<interfaces>
<interface>
<name>ge-1/0/6</name>
<encapsulation>ethernet-ccc</encapsulation>
<unit>
<name>0</name>
<family>
<ccc>
<filter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 304
<input>filter_in_ge-1/0/6</input>
</filter>
</ccc>
</family>
</unit>
</interface>
</interfaces>
<routing-instances>
<instance>
<name>P2P-BGP1</name>
<instance-type>l2vpn</instance-type>
<interface>
<name>ge-1/0/6</name>
</interface>
<route-distinguisher>
<rd-type>100:114715</rd-type>
</route-distinguisher>
<vrf-target>
<community>target:100:114702</community>
</vrf-target>
<protocols>
<l2vpn>
<encapsulation-type>ethernet</encapsulation-type>
<site>
<name>L2VPN_Site_2</name>
<site-identifier>2</site-identifier>
<interface>
<name>ge-1/0/6</name>
<remote-site-id>1</remote-site-id>
</interface>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 305
</site>
</l2vpn>
</protocols>
</instance>
</routing-instances>
</configuration>
</Configuration>
<TempConfiguration>
<configuration>
<protocols>
<oam>
<ethernet>
<connectivity-fault-management>
<maintenance-domain>
<name>sgf</name>
<maintenance-association>
<name>PW_100:114715</name>
<continuity-check>
<hold-interval>1</hold-interval>
<interval>1s</interval>
<loss-threshold>3</loss-threshold>
</continuity-check>
<mep>
<name>2</name>
<auto-discovery />
<direction>up</direction>
<interface>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 306
<interface-name>ge-1/0/6.0</interface-name>
</interface>
<lowest-priority-defect>all-defects
</lowest-priority-defect>
</mep>
</maintenance-association>
<level>1</level>
</maintenance-domain>
</connectivity-fault-management>
</ethernet>
</oam>
</protocols>
</configuration>
</TempConfiguration>
</ServiceConfigDeviceEnd>
</ServiceConfigurationChangeResult>
</AuditResults>
</Data>
13.16 View Service Configuration Change – VPLS (with CFM/OAM)
URL: api/space/nsas/ eline-ptp /service-management/ view-serviceconfiguration -change/{service-id}
METHOD: GET
Sample Response:
service config change - vpls:
<Data>
<AuditResults>
<ServiceConfigurationChangeResult>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 307
<ServiceConfigDeviceEnd>
<DeviceName>kochin</DeviceName>
<Configuration>
<configuration>
<firewall>
<policer>
<name>policer_in_ge-0/0/9_4</name>
<if-exceeding>
<burst-size-limit>15220</burst-size-limit>
<bandwidth-limit>10000000</bandwidth-limit>
</if-exceeding>
<then>
<discard />
</then>
</policer>
<family>
<vpls>
<filter>
<name>filter_in_ge-0/0/9_4</name>
<term>
<name>1</name>
<then>
<accept />
<policer>policer_in_ge-0/0/9_4</policer>
</then>
</term>
<interface-specific />
</filter>
</vpls>
</family>
</firewall>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 308
<interfaces>
<interface>
<name>ge-0/0/9</name>
<unit>
<name>4</name>
<encapsulation>vlan-vpls</encapsulation>
<family>
<vpls>
<filter>
<input>filter_in_ge-0/0/9_4</input>
</filter>
</vpls>
</family>
<vlan-tags>
<outer>4</outer>
</vlan-tags>
</unit>
<encapsulation>flexible-ethernet-services</encapsulation>
<mtu>1522</mtu>
<flexible-vlan-tagging />
</interface>
</interfaces>
<protocols>
<oam>
<ethernet>
<connectivity-fault-management>
<maintenance-domain>
<name>sgf</name>
<maintenance-association>
<name>VPLS_sgs</name>
<continuity-check>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 309
<hold-interval>1</hold-interval>
<interval>1s</interval>
<loss-threshold>3</loss-threshold>
</continuity-check>
<mep>
<name>2</name>
<auto-discovery />
<direction>up</direction>
<interface>
<interface-name>ge-0/0/9.4</interface-name>
</interface>
<lowest-priority-defect>all-defects
</lowest-priority-defect>
</mep>
</maintenance-association>
<level>1</level>
</maintenance-domain>
</connectivity-fault-management>
</ethernet>
</oam>
</protocols>
<routing-instances>
<instance>
<name>sgs</name>
<interface>
<name>ge-0/0/9.4</name>
</interface>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 310
<instance-type>vpls</instance-type>
<protocols>
<vpls>
<site>
<name>Site_2</name>
<interface>
<name>ge-0/0/9.4</name>
</interface>
<site-preference>65535</site-preference>
<site-identifier>2</site-identifier>
</site>
<interface-mac-limit>
<limit>1024</limit>
</interface-mac-limit>
<mac-statistics operation="delete" />
<mac-table-size>
<limit>5120</limit>
</mac-table-size>
<no-mac-learning operation="delete" />
<no-tunnel-services />
</vpls>
</protocols>
<route-distinguisher>
<rd-type>100:114706</rd-type>
</route-distinguisher>
<vlan-id>all</vlan-id>
<vrf-target>
<community>target:100:114698</community>
</vrf-target>
</instance>
</routing-instances>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 311
</configuration>
</Configuration>
<TempConfiguration>
<configuration>
<protocols>
<oam>
<ethernet>
<connectivity-fault-management>
<maintenance-domain>
<name>sgf</name>
<maintenance-association>
<name>VPLS_sgs</name>
<continuity-check>
<hold-interval>1</hold-interval>
<interval>1s</interval>
<loss-threshold>3</loss-threshold>
</continuity-check>
<mep>
<name>2</name>
<auto-discovery />
<direction>up</direction>
<interface>
<interface-name>ge-0/0/9.4</interface-name>
</interface>
<lowest-priority-defect>all-defects
</lowest-priority-defect>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 312
</mep>
</maintenance-association>
<level>1</level>
</maintenance-domain>
</connectivity-fault-management>
</ethernet>
</oam>
</protocols>
</configuration>
</TempConfiguration>
</ServiceConfigDeviceEnd>
<ServiceConfigDeviceEnd>
<DeviceName>jaipur</DeviceName>
<Configuration>
<configuration>
<firewall>
<policer>
<name>policer_in_ge-0/1/3_1</name>
<if-exceeding>
<burst-size-limit>15220</burst-size-limit>
<bandwidth-limit>10000000</bandwidth-limit>
</if-exceeding>
<then>
<discard />
</then>
</policer>
<family>
<vpls>
<filter>
<name>filter_in_ge-0/1/3_1</name>
<term>
<name>1</name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 313
<then>
<accept />
<policer>policer_in_ge-0/1/3_1</policer>
</then>
</term>
<interface-specific />
</filter>
</vpls>
</family>
</firewall>
<interfaces>
<interface>
<name>ge-0/1/3</name>
<unit>
<name>1</name>
<encapsulation>vlan-vpls</encapsulation>
<family>
<vpls>
<filter>
<input>filter_in_ge-0/1/3_1</input>
</filter>
</vpls>
</family>
<input-vlan-map>
<pop />
</input-vlan-map>
<output-vlan-map>
<push />
</output-vlan-map>
<vlan-tags>
<outer>1</outer>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 314
</vlan-tags>
</unit>
<encapsulation>flexible-ethernet-services</encapsulation>
<mtu>1522</mtu>
<flexible-vlan-tagging />
</interface>
</interfaces>
<protocols>
<oam>
<ethernet>
<connectivity-fault-management>
<maintenance-domain>
<name>sgf</name>
<maintenance-association>
<name>VPLS_sgs</name>
<continuity-check>
<hold-interval>1</hold-interval>
<interval>1s</interval>
<loss-threshold>3</loss-threshold>
</continuity-check>
<mep>
<name>1</name>
<auto-discovery />
<direction>up</direction>
<interface>
<interface-name>ge-0/1/3.1</interface-name>
</interface>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 315
<lowest-priority-defect>all-defects
</lowest-priority-defect>
</mep>
</maintenance-association>
<level>1</level>
</maintenance-domain>
</connectivity-fault-management>
</ethernet>
</oam>
</protocols>
<routing-instances>
<instance>
<name>sgs</name>
<interface>
<name>ge-0/1/3.1</name>
</interface>
<instance-type>vpls</instance-type>
<protocols>
<vpls>
<site>
<name>Site_1</name>
<interface>
<name>ge-0/1/3.1</name>
</interface>
<site-preference>65535</site-preference>
<site-identifier>1</site-identifier>
</site>
<interface-mac-limit>
<limit>1024</limit>
</interface-mac-limit>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 316
<mac-statistics operation="delete" />
<mac-table-size>
<limit>5120</limit>
</mac-table-size>
<no-mac-learning operation="delete" />
<no-tunnel-services />
</vpls>
</protocols>
<route-distinguisher>
<rd-type>100:114705</rd-type>
</route-distinguisher>
<vrf-target>
<community>target:100:114698</community>
</vrf-target>
</instance>
</routing-instances>
</configuration>
</Configuration>
<TempConfiguration>
<configuration>
<protocols>
<oam>
<ethernet>
<connectivity-fault-management>
<maintenance-domain>
<name>sgf</name>
<maintenance-association>
<name>VPLS_sgs</name>
<continuity-check>
<hold-interval>1</hold-interval>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 317
<interval>1s</interval>
<loss-threshold>3</loss-threshold>
</continuity-check>
<mep>
<name>1</name>
<auto-discovery />
<direction>up</direction>
<interface>
<interface-name>ge-0/1/3.1</interface-name>
</interface>
<lowest-priority-defect>all-defects
</lowest-priority-defect>
</mep>
</maintenance-association>
<level>1</level>
</maintenance-domain>
</connectivity-fault-management>
</ethernet>
</oam>
</protocols>
</configuration>
</TempConfiguration>
</ServiceConfigDeviceEnd>
</ServiceConfigurationChangeResult>
</AuditResults>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 318
14 PW Redundancy
14.1 Create Service Order (P2P-LDP)
URL: api/space/nsas/eline-ptp/service-management/service-orders/redundancy
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Input:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>PTP_LDP_REDUNDANCY_API</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>5341207</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>5</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 319
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA>
<DeviceName>junos-mx480-space</DeviceName>
<DeviceID>5341242</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-5/0/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<RevertTime>55</RevertTime>
<SwitchOverDelay>11</SwitchOverDelay>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx240-space</DeviceName>
<DeviceID>5341288</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/2/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>5</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>9191</MTU>
<VCID>2147467369</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 320
<ServiceDefinition>
<ServiceDefinitionID key="4882432"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/4882432"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/4882432" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>9371658</Value>
</Identity>
<Job>
<ID>3047524</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
14.2 Create Service Order (P2P-LDP-TDM)
URL: api/space/nsas/eline-ptp/service-management/service-orders/redundancy
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Input:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test_p2p_ldp_TDM_redundancy_API</Name>
</Common>
<ServiceEndPointGroup>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 321
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>5341207</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-space1</DeviceName>
<DeviceID>4980738</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA>
<DeviceName>junos-mx240-space</DeviceName>
<DeviceID>5341288</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/2/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<RevertTime>14</RevertTime>
<SwitchOverDelay>27</SwitchOverDelay>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 322
xsi:type="PTPTDMConfigParameterOrderType">
<VCID>2147407969</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="5210135"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/5210135"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/5210135" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>9371758</Value>
</Identity>
<Job>
<ID>3047654</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
14.3 Get Service (P2P-LDP)
URL: api/space/nsas/eline-ptp/service-management/services/9895949
METHOD: GET
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 323
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service
href="/api/space/nsas/eline-ptp/service-management/services/9895949"
uri="/api/space/nsas/eline-ptp/service-management/services/9895949"
key="9895949">
<Common>
<Name>REDUN_P2P_LDP_SO</Name>
<Identity>9895949</Identity>
<State>Deployed</State>
<CreatedDate>2013-01-18T12:38:37.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-18T12:38:37.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>LDP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/9863222"
uri="/api/space/nsas/device-roles/pe-devices/9863222"
key="9863222">
<DeviceName>exora</DeviceName>
<DeviceID>9863222</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/3.1350</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<VlanId>1350</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.3</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>10.10.10.10</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 324
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/9863258"
uri="/api/space/nsas/device-roles/pe-devices/9863258"
key="9863258">
<DeviceName>embassy</DeviceName>
<DeviceID>9863258</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<RevertTime>5</RevertTime>
<SwitchOverDelay>0</SwitchOverDelay>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/9863247"
uri="/api/space/nsas/device-roles/pe-devices/9863247"
key="9863247">
<DeviceName>jaipur</DeviceName>
<DeviceID>9863247</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2.1350</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<VlanId>1350</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 325
<ServiceEndPointGroupParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>10.10.10.10</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.3</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/9863258"
uri="/api/space/nsas/device-roles/pe-devices/9863258"
key="9863258">
<DeviceName>embassy</DeviceName>
<DeviceID>9863258</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<RevertTime>5</RevertTime>
<SwitchOverDelay>0</SwitchOverDelay>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterServiceType">
<MTU>1522</MTU>
<VCID>1220</VCID>
</ServiceParameters>
<Reference>
<ServiceOrder key="9895936"
href="/api/space/nsas/eline-ptp/service-management/service-
orders/9895936"
uri="/api/space/nsas/eline-ptp/service-management/service-
orders/9895936" />
<ServiceDefinition>
<ServiceDefinitionID key="9371780"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/9371780"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/9371780" />
</ServiceDefinition>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 326
</Reference>
</Service>
</ServiceResource>
</Data>
14.4 Modify Service (P2P-LDP)
URL: api/space/nsas/eline-ptp/service-management/services/9895949
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Input:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>REDUN_P2P_LDP_SO_MOdify</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>9863222</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 327
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>9863258</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<RevertTime>55</RevertTime>
<SwitchOverDelay>99</SwitchOverDelay>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>9863247</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
<VCID>1229</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263" uri="/api/space/nsas/customer-
management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="9371780"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/9371780"
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 328
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/9371780" />
</ServiceDefinition>
<Service key="9895949"
href="/api/space/nsas/eline-ptp/service-management/services/9895949"
uri="/api/space/nsas/eline-ptp/service-management/services/9895949" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>9895949</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>10846226</Value>
</Identity>
<Job>
<ID>3604500</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Modified Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
14.5 Get Service Order (P2P-LDP)
URL: api/space/nsas/eline-ptp/service-management/service-orders/9371658
METHOD: GET
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 329
href="/api/space/nsas/eline-ptp/service-management/service-orders/9371658"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/9371658"
key="9371658">
<Common>
<Name>PTP_LDP_REDUNDANCY_API</Name>
<Identity>9371658</Identity>
<State>Invalid</State>
<CreatedDate>2013-01-17T12:15:13.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-17T12:15:13.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341207"
uri="/api/space/nsas/device-roles/pe-devices/5341207"
key="5341207">
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>5341207</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>Transport using port</TrafficType>
<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>0</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341242"
uri="/api/space/nsas/device-roles/pe-devices/5341242"
key="5341242">
<DeviceName>junos-mx480-space</DeviceName>
<DeviceID>5341242</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-5/0/3</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 330
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<RevertTime>55</RevertTime>
<SwitchOverDelay>11</SwitchOverDelay>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341288"
uri="/api/space/nsas/device-roles/pe-devices/5341288"
key="5341288">
<DeviceName>junos-mx240-space</DeviceName>
<DeviceID>5341288</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/2/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>Transport using port</TrafficType>
<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>0</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>9191</MTU>
<VCID>2147467369</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="4882432"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/4882432"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/4882432" />
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 331
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
14.6 Create Service Order (P2P-BGP)
URL: api/space/nsas/eline-ptp/service-management/service-orders/redundancy
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample input:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>p2p_bgp_redundancy_so_API</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>5341324</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>221</VlanId>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 332
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>9076741</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<MTU>1529</MTU>
<Bandwidth unit="Mbps">44</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>5341207</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>lt-1/0/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>513</VlanId>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>100:114679</RouteTarget>
<RouteDistinguisher>100:114679</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="9469999"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/9469999"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/9469999" />
</ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 333
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>9470033</Value>
</Identity>
<Job>
<ID>3047763</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
14.7 Get Service Order (P2P-BGP)
URL: api/space/nsas/eline-ptp/service-management/service-orders/9470033
METHOD: GET
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/9470033"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/9470033"
key="9470033">
<Common>
<Name>p2p_bgp_redundancy_so_API</Name>
<Identity>9470033</Identity>
<State>Invalid</State>
<CreatedDate>2013-01-17T16:16:21.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-17T16:16:20.000+05:30</LastUpdatedDate>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 334
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341324"
uri="/api/space/nsas/device-roles/pe-devices/5341324"
key="5341324">
<DeviceName>jaipur</DeviceName>
<DeviceID>5341324</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>DOT1Q Transport single vlan</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<VlanId>221</VlanId>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/9076741"
uri="/api/space/nsas/device-roles/pe-devices/9076741"
key="9076741">
<DeviceName>embassy</DeviceName>
<DeviceID>9076741</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1529</MTU>
<Bandwidth unit="Mbps">44</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 335
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341207"
uri="/api/space/nsas/device-roles/pe-devices/5341207"
key="5341207">
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>5341207</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>lt-1/0/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>DOT1Q Transport single vlan</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>None</OuterTPID>
<VlanId>513</VlanId>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>100:114679</RouteTarget>
<RouteDistinguisher>100:114679</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="9469999"
href="/api/space/nsas/eline-ptp/service-management/service-
definitions/9469999"
uri="/api/space/nsas/eline-ptp/service-management/service-
definitions/9469999" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 336
14.8 Modify Service (P2P-BGP)
URL: api/space/nsas/eline-ptp/service-management/services/9895949
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Input:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>REDUN_P2P_BGP_SO_Modify</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>9863222</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<BackUpSettings>
<Enable>true</Enable>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>9863258</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 337
<InterfaceName>ge-1/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</BackUpSettings>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>9863247</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
<VCID>1229</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263" uri="/api/space/nsas/customer-
management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="9371781"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/9371781"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/9371781" />
</ServiceDefinition>
<Service key="9895979"
href="/api/space/nsas/eline-ptp/service-management/services/9895979"
uri="/api/space/nsas/eline-ptp/service-management/services/9895979" />
</Reference>
</ServiceOrder>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 338
</Data>
SampleResponse:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>9895979</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>10846227</Value>
</Identity>
<Job>
<ID>3604509</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Modified Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
14.9 Create Service Order (VPLS–LDP)
URL: api/space/nsas/elan-vpls/service-management/service-orders
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Input:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>API_VPLS_LDP_REDUNDANCY</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 339
<NA href="/api/space/nsas/device-roles/pe-devices/5341335"
uri="/api/space/nsas/device-roles/pe-devices/5341335"
key="5341335">
<DeviceName>junos-space2</DeviceName>
<DeviceID>5341335</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<VlanId>172</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341351"
uri="/api/space/nsas/device-roles/pe-devices/5341351"
key="5341351">
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>5341351</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<VlanId>172</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<Hub>false</Hub>
<NeighbourHub>junos-space1</NeighbourHub>
<BackupNeighbourHub>junos-space2</BackupNeighbourHub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4980738"
uri="/api/space/nsas/device-roles/pe-devices/4980738"
key="4980738">
<DeviceName>junos-space1</DeviceName>
<DeviceID>4980738</DeviceID>
</NA>
</DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 340
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<VlanId>172</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<RevertTime>55</RevertTime>
<SwitchOverDelay>55</SwitchOverDelay>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="7143508"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/7143508"
uri="/api/space/nsas/elan-vpls/service-management/service-
definitions/7143508" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>9240597</Value>
</Identity>
<Job>
<ID>3047764</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 341
14.10 Get Service Order (VPLS- LDP)
URL: api/space/nsas/elan-vpls/service-management/service-orders/9240597
METHOD: GET
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/9240597"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/9240597"
key="9240597">
<Common>
<Name>API_VPLS_LDP_REDUNDANCY</Name>
<Identity>9240597</Identity>
<State>Invalid</State>
<CreatedDate>2013-01-17T16:34:20.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-17T16:34:19.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341335"
uri="/api/space/nsas/device-roles/pe-devices/5341335"
key="5341335">
<DeviceName>junos-space2</DeviceName>
<DeviceID>5341335</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2</VlanId>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 342
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x8100</OuterTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341351"
uri="/api/space/nsas/device-roles/pe-devices/5341351"
key="5341351">
<DeviceName>vjx-junos-mx80-1-space</DeviceName>
<DeviceID>5341351</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>3</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x8100</OuterTPID>
<Hub>false</Hub>
<NeighbourHub>junos-space1</NeighbourHub>
<BackupNeighbourHub>junos-space2</BackupNeighbourHub>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/4980738"
uri="/api/space/nsas/device-roles/pe-devices/4980738"
key="4980738">
<DeviceName>junos-space1</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 343
<DeviceID>4980738</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x8100</OuterTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport all traffic</TrafficType>
<VLANNormalization>Not Normalized</VLANNormalization>
<VPLSId>2147467365</VPLSId>
<AutoDiscovery>false</AutoDiscovery>
<RevertTime>55</RevertTime>
<SwitchOverDelay>55</SwitchOverDelay>
</ServiceOrderParameter>
<Reference>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
<ServiceDefinition>
<ServiceDefinitionID key="7143508"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/7143508"
uri="/api/space/nsas/elan-vpls/service-management/service-
definitions/7143508" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 344
14.11 Get Service (VPLS-LDP)
URL: api/space/nsas/elan-vpls/service-management/services/5636189
METHOD: GET
Content-type: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service
href="/api/space/nsas/elan-vpls/service-management/services/5636189"
uri="/api/space/nsas/elan-vpls/service-management/services/5636189"
key="5636189">
<Common>
<Name>VPLS_LDP_Redundency</Name>
<Identity>5636189</Identity>
<State>Deployed</State>
<Comments> </Comments>
<CreatedDate>2013-01-10T15:15:32.000+05:30</CreatedDate>
<LastUpdatedDate>2013-01-10T15:15:32.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341207"
uri="/api/space/nsas/device-roles/pe-devices/5341207"
key="5341207">
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>5341207</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>789</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 345
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
<Hub>false</Hub>
<NeighbourHub>junos-mx240-space</NeighbourHub>
<BackupNeighbourHub>junos-mx480-
space</BackupNeighbourHub>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341288"
uri="/api/space/nsas/device-roles/pe-devices/5341288"
key="5341288">
<DeviceName>junos-mx240-space</DeviceName>
<DeviceID>5341288</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/2/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>789</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/5341242"
uri="/api/space/nsas/device-roles/pe-devices/5341242"
key="5341242">
<DeviceName>junos-mx480-space</DeviceName>
<DeviceID>5341242</DeviceID>
</NA>
</DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 346
<ServiceEndPoint>
<InterfaceName>ge-5/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>789</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterServiceType">
<VLANNormalization>Normalize All</VLANNormalization>
<VPLSId>2147467307</VPLSId>
<AutoDiscovery>false</AutoDiscovery>
<RevertTime>5</RevertTime>
<SwitchOverDelay>0</SwitchOverDelay>
</ServiceParameters>
<Reference>
<ServiceOrder key="5636168"
href="/api/space/nsas/elan-vpls/service-management/service-
orders/5636168"
uri="/api/space/nsas/elan-vpls/service-management/service-
orders/5636168" />
<ServiceDefinition>
<ServiceDefinitionID key="5636142"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/5636142"
uri="/api/space/nsas/elan-vpls/service-management/service-
definitions/5636142" />
</ServiceDefinition>
<Customer key="819263"
href="/api/space/nsas/customer-management/customers/819263"
uri="/api/space/nsas/customer-management/customers/819263" />
</Reference>
</Service>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 347
15 PM Stats
15.1 Start PM Collection
URL 1: api/space/nsas/eline-ptp/service-management/ services/{service-id}/performanceMonitoring/twoway-delay/operation
URL 2: api/space/nsas/eline-ptp/service-management/ services/{service-id}/performanceMonitoring/oneway-delay/operation
URL 3: api/space/nsas/eline-ptp/service-management/ services/{service-id}/performanceMonitoring/loss/operation
URL 4: api/space/nsas/elan-vpls/service-management/ services/{service-id}/performanceMonitoring/twoway-delay/operation
URL 5: api/space/nsas/elan-vpls/service-management/ services/{service-id}/performanceMonitoring/oneway-delay/operation
URL 6: api/space/nsas/elan-vpls/service-management/ services/{service-id}/performanceMonitoring/loss/operation
METHOD: POST
ACCEPT: application/xml
Content-type: application/xml
Sample XML Input:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource >
<PerformanceMonitoring>
<Operation>start</Operation>
<AEnd>
<DeviceName>penelope</DeviceName>
<DeviceID>589940</DeviceID>
</AEnd>
<ZEnd>
<DeviceName>froh</DeviceName>
<DeviceID>1114174</DeviceID>
</ZEnd>
<IntervalDuration>10</IntervalDuration>
<MeasurementAttribute>
<Count>10</Count>
<Wait>1</Wait>
<Dot1p>2</Dot1p>
</MeasurementAttribute>
</PerformanceMonitoring>
</ServiceResource>
</Data>
Sample XML Output:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Code>200</Code>
<Message>Operation Successful</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 348
15.2 Stop PM Collection
URL 1: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-delay/operation
URL 2: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-delay/operation
URL 3: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/loss/operation
URL 4: api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/twoway-delay/operation
URL 5: api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/oneway-delay/operation
URL 6: api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/loss/operation
Method POST
Content-type: application/xml
Accept: application/xml
Sample XML Input:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource >
<PerformanceMonitoring>
<Operation>stop</Operation>
</PerformanceMonitoring>
</ServiceResource>
</Data>
Sample XML Output:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Code>200</Code>
<Message>Operation Successful</Message>
</Status>
</Data>
15.3 Get PM Stats
URL 1: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-delay/stats
URL 2: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-delay/stats
URL 3: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/loss/stats
URL 4: api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/twoway-delay/stats
URL 5: api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/oneway-delay/stats
URL 6: api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/loss/stats
Method GET
Content-type: application/xml
Accept: application/xml
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 349
Sample XML Output:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<PerformanceMonitoring>
<AEnd>
<DeviceID>1114174</DeviceID>
</AEnd>
<ZEnd>
<DeviceID>3203939</DeviceID>
</ZEnd>
<TwoWayDelayStatsCollection>
<DelayStats>
<TimeStamp>1356638570414</TimeStamp>
<Unit>microsecond</Unit>
<Min>158</Min>
<Max>201</Max>
<Average>180</Average>
<Variation>13</Variation>
</DelayStats>
<DelayStats>
<TimeStamp>1356638582812</TimeStamp>
<Unit>microsecond</Unit>
<Min>176</Min>
<Max>215</Max>
<Average>192</Average>
<Variation>10</Variation>
</DelayStats>
<DelayStats>
<TimeStamp>1356638595231</TimeStamp>
<Unit>microsecond</Unit>
<Min>171</Min>
<Max>221</Max>
<Average>195</Average>
<Variation>15</Variation>
</DelayStats>
<DelayStats>
<TimeStamp>1356658454661</TimeStamp>
<Unit>microsecond</Unit>
<Min>0</Min>
<Max>0</Max>
<Average>0</Average>
<Variation>0</Variation>
</DelayStats>
</TwoWayDelayStatsCollection>
</PerformanceMonitoring>
</ServiceResource>
<Status>
<Code>200</Code>
<Message>Operation Successful</Message>
</Status>
</Data>
15.4 Get PM Status
URL 1: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-delay/status
URL 2: api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-delay/status
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 350
URL 3: api/space/nsas/eline-ptp/service-management/ services/{service-id}/performanceMonitoring/loss/status
URL 4: api/space/nsas/elan-vpls/service-management/ services/{service-id}/performanceMonitoring/twoway-delay/status
URL 5: api/space/nsas/elan-vpls/service-management/ services/{service-id}/performanceMonitoring/oneway-delay/status
URL 6: api/space/nsas/elan-vpls/service-management/ services/{service-id}/performanceMonitoring/loss/status
Method GET
Content-type: application/xml
Accept: application/xml
Sample XML Output:
<?xml version="1.0" encoding="UTF-8"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Code>200</Code>
<Message>Two Way Delay On</Message>
</Status>
</Data>
15.5 Get Service Path
URL 1:api/space/nsas/eline-ptp/service-management/ services/{service-id}/servicepath?deviceA=819572&deviceZ=819961
URL 2: api/space/nsas/elan-vpls/service-management/ services/{service-id}/ servicepath?deviceA=819572&deviceZ=819961
Method GET
Content-type: application/xml
Accept: application/xml
Sample XML Output: (with LDP LSP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServicePath>
<To>10.1.1.13</To>
<Via>ge-1/0/1.0</Via>
<MPLSLabel>Push 300016, Push 300000(top)</MPLSLabel>
<Selected>true</Selected>
<LSPPath>
<LSPNode>
<Depth>1</Depth>
<Parent>(null)</Parent>
<Address>10.1.1.13</Address>
<LabelValue>300000</LabelValue>
<Status>Success</Status>
<Device>
<DeviceName>wotan</DeviceName>
<DeviceID>721023</DeviceID>
</Device>
</LSPNode>
<LSPNode>
<Depth>2</Depth>
<Parent>10.1.1.13</Parent>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 351
<Address>10.1.1.9</Address>
<LabelValue>3</LabelValue>
<Interface>ge-1/0/1.0</Interface>
<Status>Egress</Status>
<Device>
<DeviceName>acx2k</DeviceName>
<DeviceID>721043</DeviceID>
</Device>
</LSPNode>
</LSPPath>
</ServicePath>
</ServiceResource>
<Status>
<Code>200</Code>
<Message>Operation Successful</Message>
</Status>
</Data>
Sample XML Output: (with RSVP LSP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServicePath>
<To>10.1.1.13</To>
<Via>ge-1/0/1.0</Via>
<MPLSLabel>Push 300016, Push 300000(top)</MPLSLabel>
<Selected>true</Selected>
<LSPPath>
<RSVPLSPName>penelope-acx2k</RSVPLSPName>
<LSPNode>
<Depth>1</Depth>
<Parent>(null)</Parent>
<Address>10.1.1.13</Address>
<LabelValue>300000</LabelValue>
<Status>Success</Status>
<Device>
<DeviceName>wotan</DeviceName>
<DeviceID>721023</DeviceID>
</Device>
</LSPNode>
<LSPNode>
<Depth>2</Depth>
<Parent>10.1.1.13</Parent>
<Address>10.1.1.9</Address>
<LabelValue>3</LabelValue>
<Interface>ge-1/0/1.0</Interface>
<Status>Egress</Status>
<Device>
<DeviceName>acx2k</DeviceName>
<DeviceID>721043</DeviceID>
</Device>
</LSPNode>
</LSPPath>
</ServicePath>
</ServiceResource>
<Status>
<Code>200</Code>
<Message>Operation Successful</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 352
16 VRF Table Label (L3VPN)
16.1 Create Service Definition
URL: api/space/nsas/l3vpn/service-management/service-definitions
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
key="1441792">
<Common>
<Name>VRFTABLEAPI</Name>
<Identity>1441792</Identity>
<State>Published</State>
<CreatedDate>2012-12-15T00:39:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-15T00:39:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Auto pick" editable="false" />
<RouteDistinguisher selection="Auto pick"
editable="false" />
<VRFTabelLabel editable="true">true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="false" />
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="false">30</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" editable="false" />
<VlanIdAuto min="0" max="0" />
<VlanIdManual min="0" max="0" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 353
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>1441809</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Created Successfully</Message>
</Status>
</Data>
16.2 Get Service Definition
URL: api/space/nsas/ l3vpn /service-management/service-definitions/<servicedefinitionId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition href="/api/space/nsas/l3vpn/service-management/service-definitions/1441792" uri="/api/space/nsas/l3vpn/service-
management/service-definitions/1441792" key="1441792">
<Common>
<Name>VRFTAB</Name>
<Identity>1441792</Identity>
<State>Published</State>
<CreatedDate>2012-12-15T00:39:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-15T00:39:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Auto pick" editable="false"/>
<RouteDistinguisher selection="Auto pick" editable="false"/>
<VRFTabelLabel editable="true">true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="false"/>
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="false">30</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" editable="false"/>
<VlanIdAuto min="0" max="0"/>
<VlanIdManual min="0" max="0"/>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 354
16.3 Create Service Order
URL: api/space/nsas/ l3vpn /service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNFMOSPFService_API6</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>393340</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<IPPool>Global</IPPool>
<IPAddressPool>10.0.99.0/24</IPAddressPool>
<AutoPickVlanId>true</AutoPickVlanId>
<UnitID>12</UnitID>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<RouteTarget>10:4465465</RouteTarget>
<RouteDistinguisher>10:4465</RouteDistinguisher>
<VRFTabelLabel>Enable</VRFTabelLabel>
</ServiceOrderParameter>
<Reference>
<Customer key="393216" />
<ServiceDefinition>
<ServiceDefinitionID key="1638400" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 355
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1638453</Value>
</Identity>
<Job>
<ID>524317</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
16.4 Get Service Order
URL: api/space/nsas/ l3vpn /service-management/service-orders/<serviceorderId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNAPI</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>721075</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/9</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<UnitID>0</UnitID>
<InterfaceIP>10.0.77.1</InterfaceIP>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<RouteTarget>100:7</RouteTarget>
<RouteDistinguisher>100:34</RouteDistinguisher>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 356
<VRFTabelLabel>Enable</VRFTabelLabel>
</ServiceOrderParameter>
<Reference>
<Customer key="720896"/>
<ServiceDefinition>
<ServiceDefinitionID key="1441826"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
16.5 Get Service
URL: api/space/nsas/ l3vpn /service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.services+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>L3VPNAPI</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>721075</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/9</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<UnitID>0</UnitID>
<InterfaceIP>10.0.77.1</InterfaceIP>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<RouteTarget>100:7</RouteTarget>
<RouteDistinguisher>100:34</RouteDistinguisher>
<VRFTabelLabel>Enable</VRFTabelLabel>
</ServiceOrderParameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 357
<Reference>
<Customer key="720896"/>
<ServiceDefinition>
<ServiceDefinitionID key="1441826"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
17 Manual RT Support (VPLS)
17.1 Get Service Definition
URL: api/space/nsas/elan-vpls/service-management/service-definitions/<servicedefinitionId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 358
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition
href="/api/space/nsas/elan-vpls/service-management/service-definitions/1540096"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1540096"
key="1540096">
<Common>
<Name>ManualRT</Name>
<Identity>1540096</Identity>
<State>Published</State>
<CreatedDate>2013-02-25T17:34:06.000+05:30</CreatedDate>
<LastUpdatedDate>2013-02-25T17:34:06.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>VPLS(BGP)</ServiceType>
<InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType>
<EnableL3Access>false</EnableL3Access>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSServiceEndpointGroupParameterDefType">
<RouteTarget selection="Select manually" editable="true" />
<RouteDistinguisher selection="Auto pick" />
<MACLearning editable="false">Enabled</MACLearning>
<MACInterfaceLimit editable="false">1024</MACInterfaceLimit>
<MACStatistics editable="false">Not enabled</MACStatistics>
<MACTableSize editable="false">5120</MACTableSize>
<VlanNormalization>Normalize to Dot1q</VlanNormalization>
<AllowMH>Not enabled</AllowMH>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false" />
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192" />
<EnableRateLimiting>Not enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="false" min="1"
max="100" unit="Mbps">N/A</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">0</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">0</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">0</Increment>
</ServiceEndPointConfigurationDefinition>
<AdvancedSettings />
</ServiceDefinition>
</ServiceResource>
</Data>
17.2 Create Service Order
URL: api/space/nsas/elan-vpls/service-management/service-orders
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 359
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>ManualRT-SO-API</Name>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>1474653</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>xe-0/0/2</InterfaceName>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>1474642</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/3</InterfaceName>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<RouteTarget>12:5665</RouteTarget>
<Dot1QVLANTag>12</Dot1QVLANTag>
</ServiceOrderParameter>
<Reference>
<Customer key="1081493"/>
<ServiceDefinition>
<ServiceDefinitionID key="1540096"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 360
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553609</Value>
</Identity>
<Job>
<ID>1998898</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Order Created Successfully and Deployment is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
17.3 Get Service Order
URL: api/space/nsas/elan-vpls/service-management/service-orders/<serviceorderId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/1540121"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/1540121"
key="1540121">
<Common>
<Name>ManualRT-SO</Name>
<Identity>1540121</Identity>
<State>Invalid</State>
<CreatedDate>2013-02-25T17:36:31.000+05:30</CreatedDate>
<LastUpdatedDate>2013-02-25T17:36:31.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/1474653" uri="/api/space/nsas/device-
roles/pe-devices/1474653"
key="1474653">
<DeviceName>embassy</DeviceName>
<DeviceID>1474653</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 361
<InterfaceName>xe-0/0/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>5</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/1474642" uri="/api/space/nsas/device-
roles/pe-devices/1474642"
key="1474642">
<DeviceName>jaipur</DeviceName>
<DeviceID>1474642</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/3</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<RouteTarget>12:5665</RouteTarget>
<VLANNormalization>Normalize to Dot1q</VLANNormalization>
<Dot1QVLANTag>12</Dot1QVLANTag>
</ServiceOrderParameter>
<Reference>
<Customer key="1081493"
href="/api/space/nsas/customer-management/customers/1081493"
uri="/api/space/nsas/customer-management/customers/1081493" />
<ServiceDefinition>
<ServiceDefinitionID key="1540096"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/1540096"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1540096"
/>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 362
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
17.4 Get Service
URL: api/space/nsas/elan-vpls/service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service
href="/api/space/nsas/elan-vpls/service-management/services/1540164"
uri="/api/space/nsas/elan-vpls/service-management/services/1540164"
key="1540164">
<Common>
<Name>Test-Vpls-Service</Name>
<Identity>1540164</Identity>
<State>Deployed</State>
<CreatedDate>2013-02-25T17:39:49.000+05:30</CreatedDate>
<LastUpdatedDate>2013-02-25T17:39:49.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>VPLS</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/1474568" uri="/api/space/nsas/device-
roles/pe-devices/1474568"
key="1474568">
<DeviceName>kochin</DeviceName>
<DeviceID>1474568</DeviceID>
<CMPDeviceID>1376280</CMPDeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/2/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 363
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/1474653" uri="/api/space/nsas/device-
roles/pe-devices/1474653"
key="1474653">
<DeviceName>embassy</DeviceName>
<DeviceID>1474653</DeviceID>
<CMPDeviceID>1376300</CMPDeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterServiceType">
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>None</OuterTPID>
</ServiceEndpointConfiguration>
<ServiceTemplates />
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterServiceType">
<RouteTarget>12:46565465</RouteTarget>
<VLANNormalization>Normalize to Dot1q</VLANNormalization>
<Dot1QVLANTag>12</Dot1QVLANTag>
<AutoDiscovery>false</AutoDiscovery>
</ServiceParameters>
<Reference>
<ServiceOrder key="1540151"
href="/api/space/nsas/elan-vpls/service-management/service-orders/1540151"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/1540151" />
<ServiceDefinition>
<ServiceDefinitionID key="1540096"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/1540096"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1540096"
/>
</ServiceDefinition>
<Customer key="1081493"
href="/api/space/nsas/customer-management/customers/1081493"
uri="/api/space/nsas/customer-management/customers/1081493" />
</Reference>
</Service>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 364
18 Manual RT/RD Support (P2P)
18.1 Create Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition>
<Common>
<Name>BGP_Ether1</Name>
</Common>
<ServiceType>Point-to-Point Pseudowire(BGP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<MTU default="1522" editable="false" />
<RD selection="Select manually" editable="true" />
<RT selection="Select manually" editable="true" />
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false" />
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0" />
<VlanIdManual default="0" min="0" max="0" />
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" />
<EnableRateLimiting>Not enabled</EnableRateLimiting>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 365
<Type>ServiceDefinition</Type>
<Value>7012365</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition created successfully</Message>
</Status>
</Data>
18.2 Get Service Definition
URL: api/space/nsas/eline-ptp/service-management/service-definitions/<servicedefinitionId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition href="/api/space/nsas/eline-ptp/service-management/service-definitions/1703977" uri="/api/space/nsas/eline-
ptp/service-management/service-definitions/1703977" key="1703977">
<Common>
<Name>PTPBGPRTRDManual</Name>
<Identity>1703977</Identity>
<State>Published</State>
<CreatedDate>2012-12-16T20:42:08.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-16T20:42:08.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire(BGP)</ServiceType>
<InterfaceType>Ethernet</InterfaceType>
<EnableL3Access>false</EnableL3Access>
<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterDefType">
<MTU default="1522" editable="false" min="1522" max="9192"/>
<RD selection="Select manually" editable="true"/>
<RT selection="Select manually" editable="true"/>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPEndPointParameterDefType">
<EthernetOption>dot1q</EthernetOption>
<VlanIdSelection selection="Auto pick" editable="false"/>
<TrafficType>Transport single vlan</TrafficType>
<VlanIdAuto default="0" min="0" max="0"/>
<VlanIdManual default="0" min="0" max="0"/>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<MTU default="1522" editable="false" min="1522" max="9192"/>
<EnableRateLimiting>Not enabled</EnableRateLimiting>
<DefaultBandwidth default="1" editable="false" min="1" max="100" unit="Mbps">N/A</DefaultBandwidth>
<MinBandwidth min="64" max="100000" unit="Kbps">0</MinBandwidth>
<MaxBandwidth min="1" max="100000" unit="Mbps">0</MaxBandwidth>
<Increment default="64" min="64" max="100000" unit="Kbps">0</Increment>
<OuterTagProtocolId editable="false"/>
<InnerTagProtocolId editable="false"/>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 366
</Data>
18.3 Create Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>BGP_ATM_API1</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>393269</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<UNIDescription>N/A</UNIDescription>
<VPI>2</VPI>
<VCI>3</VCI>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA >
<DeviceName>Unmanaged device</DeviceName>
<DeviceID>0</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>fdb</InterfaceName>
<LoopbackIP>30.1.2.4</LoopbackIP>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<RouteTarget>10:131</RouteTarget>
<RouteDistinguisher>10:761</RouteDistinguisher>
</ServiceOrderParameter>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 367
<Reference>
<Customer key="393216"/>
<ServiceDefinition>
<ServiceDefinitionID key="1441819"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>2588678</Value>
</Identity>
<Job>
<ID>786440</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
18.4 Get Service Order
URL: api/space/nsas/eline-ptp/service-management/service-orders/<serviceorderId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder href="/api/space/nsas/eline-ptp/service-management/service-orders/1998872" uri="/api/space/nsas/eline-ptp/service-
management/service-orders/1998872" key="1998872">
<Common>
<Name>Dot1Q_BGP </Name>
<Identity>1998872</Identity>
<State>Invalid</State>
<Comments>
</Comments>
<CreatedDate>2012-12-17T00:27:48.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-17T00:27:48.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 368
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/720968" uri="/api/space/nsas/device-roles/pe-devices/720968" key="720968">
<DeviceName>jaipur</DeviceName>
<DeviceID>720968</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>lt-0/1/0</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>DOT1Q Transport single vlan</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>513</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721104" uri="/api/space/nsas/device-roles/pe-devices/721104" key="721104">
<DeviceName>junos-space1</DeviceName>
<DeviceID>721104</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/5</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>DOT1Q Transport single vlan</TrafficType>
<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>512</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType">
<RouteTarget>10:89</RouteTarget>
<RouteDistinguisher>10:77</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
<ServiceDefinition>
<ServiceDefinitionID key="1703977" href="/api/space/nsas/service-management/service-definitions/1703977"
uri="/api/space/nsas/service-management/service-definitions/1703977"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 369
18.5 Get Service
URL: api/space/nsas/eline-ptp/service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/eline-ptp/service-management/services/2261005" uri="/api/space/nsas/eline-ptp/service-
management/services/2261005" key="2261005">
<Common>
<Name>BGP_PTP</Name>
<Identity>2261005</Identity>
<State>Deployed</State>
<Comments>
</Comments>
<CreatedDate>2012-12-17T01:32:09.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-17T01:32:09.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>BGP</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721065" uri="/api/space/nsas/device-roles/pe-devices/721065" key="721065">
<DeviceName>exora</DeviceName>
<DeviceID>721065</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/1.656</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>656</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.3</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.4</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721075" uri="/api/space/nsas/device-roles/pe-devices/721075" key="721075">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 370
<DeviceName>embassy</DeviceName>
<DeviceID>721075</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>xe-0/0/2.99</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterServiceType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>99</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
<ServiceEndPointGroupParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPServiceEndpointGroupParameterServiceType">
<PEDevice_LoopBackIP>50.1.2.4</PEDevice_LoopBackIP>
<PEDevice_NeighborIP>50.1.2.3</PEDevice_NeighborIP>
</ServiceEndPointGroupParameter>
</ServiceEndPointGroup>
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterServiceType">
<RouteTarget>100:10</RouteTarget>
<RouteDistinguisher>100:36</RouteDistinguisher>
</ServiceParameters>
<Reference>
<ServiceOrder key="2260992" href="/api/space/nsas/eline-ptp/service-management/service-orders/2260992" uri="/api/space/nsas/eline-
ptp/service-management/service-orders/2260992"/>
<ServiceDefinition>
<ServiceDefinitionID key="360448" href="/api/space/nsas/eline-ptp/service-management/service-definitions/360448"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/360448"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
19 Manual RT/RD Support (L3VPN)
19.1 Create Service Definition
URL: api/space/nsas/l3vpn/service-management/service-definitions
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-definition+xml
Accept: application/vnd.net.juniper.space.service-management.service-definition-status+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 371
<ServiceResource>
<ServiceDefinition
href="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
key="1441792">
<Common>
<Name>VRFTABLEAPI</Name>
<Identity>1441792</Identity>
<State>Published</State>
<CreatedDate>2012-12-15T00:39:46.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-15T00:39:46.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
<ServiceElementConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Select manually" editable="true" />
<RouteDistinguisher selection="Select manually"
editable="true" />
<VRFTabelLabel editable="true">true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="false" />
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="false">30</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" editable="false" />
<VlanIdAuto min="0" max="0" />
<VlanIdManual min="0" max="0" />
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceDefinition</Type>
<Value>1638400</Value>
</Identity>
<Code>200</Code>
<Message>ServiceDefinition Created Successfully</Message>
</Status>
</Data>
19.2 Get Service Definition
URL: api/space/nsas/ l3vpn /service-management/service-definitions/<servicedefinitionId>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 372
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-definition+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceDefinition href="/api/space/nsas/l3vpn/service-management/service-definitions/1605665" uri="/api/space/nsas/l3vpn/service-
management/service-definitions/1605665" key="1605665">
<Common>
<Name>L3VPNRDRTManual</Name>
<Identity>1605665</Identity>
<State>Published</State>
<CreatedDate>2012-12-16T19:45:55.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-16T19:45:55.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>L3VPN</ServiceType>
<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNServiceEndpointGroupParameterDefType">
<RouteTarget selection="Select manually" editable="false"/>
<RouteDistinguisher selection="Select manually" editable="false"/>
<VRFTabelLabel editable="false">true</VRFTabelLabel>
<ExportDirectRoutes>true</ExportDirectRoutes>
<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
<PEInterfaceIP selection="Auto pick" editable="false"/>
<IPPoolType editable="false">Global</IPPoolType>
<AddressBlockSize editable="false">30</AddressBlockSize>
</ServiceElementConfigurationDefinition>
<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNEndPointParameterDefType">
<VlanIdSelection selection="Auto pick" editable="false"/>
<VlanIdAuto min="0" max="0"/>
<VlanIdManual min="0" max="0"/>
</ServiceEndPointConfigurationDefinition>
</ServiceDefinition>
</ServiceResource>
</Data>
19.3 Create Service Order
URL: api/space/nsas/ l3vpn /service-management/service-orders
METHOD: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 373
<Name>L3VPNFMOSPFService_API6</Name>
<Comments></Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>393340</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/1/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<EthernetOption>VLAN</EthernetOption>
<IPPool>Global</IPPool>
<IPAddressPool>10.0.99.0/24</IPAddressPool>
<AutoPickVlanId>true</AutoPickVlanId>
<UnitID>12</UnitID>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNConfigParameterOrderType">
<RouteTarget>10:4465465</RouteTarget>
<RouteDistinguisher>10:4465</RouteDistinguisher>
<VRFTabelLabel>Enable</VRFTabelLabel>
</ServiceOrderParameter>
<Reference>
<Customer key="393216" />
<ServiceDefinition>
<ServiceDefinitionID key="1638400" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1638453</Value>
</Identity>
<Job>
<ID>524317</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 374
19.4 Get Service Order
URL: api/space/nsas/ l3vpn /service-management/service-orders/<serviceorderId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service-order+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/1605699" uri="/api/space/nsas/l3vpn/service-
management/service-orders/1605699" key="1605699">
<Common>
<Name>RDRTManual</Name>
<Identity>1605699</Identity>
<State>Completed</State>
<Comments>
</Comments>
<CreatedDate>2012-12-16T19:56:30.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-16T19:56:54.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>l3vpn</ServiceType>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721075" uri="/api/space/nsas/device-roles/pe-devices/721075" key="721075">
<DeviceName>embassy</DeviceName>
<DeviceID>721075</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/9</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>3</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.77.5</InterfaceIP>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType">
<RouteTarget>10:2</RouteTarget>
<RouteDistinguisher>10:2</RouteDistinguisher>
<VRFTabelLabel>Enabled</VRFTabelLabel>
</ServiceOrderParameter>
<Reference>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
<ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 375
<ServiceDefinitionID key="1605682" href="/api/space/nsas/l3vpn/service-management/service-definitions/1605682"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/1605682"/>
</ServiceDefinition>
<Service key="1605706" href="/api/space/nsas/l3vpn/service-management/services/1605706" uri="/api/space/nsas/l3vpn/service-
management/services/1605706"/>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
19.5 Get Service
URL: api/space/nsas/ l3vpn /service-management/services/<serviceId>
METHOD: GET
Accept: application/vnd.net.juniper.space.service-management.service+xml
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<Service href="/api/space/nsas/l3vpn/service-management/services/1605706" uri="/api/space/nsas/l3vpn/service-
management/services/1605706" key="1605706">
<Common>
<Name>RDRTManual</Name>
<Identity>1605706</Identity>
<State>Deployed</State>
<Comments>
</Comments>
<CreatedDate>2012-12-16T19:56:53.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-16T19:56:53.000+05:30</LastUpdatedDate>
</Common>
<ServiceType>L3VPN</ServiceType>
<AuditFlag>
<FunctionalAudit>Pending</FunctionalAudit>
<FaultStatus>None</FaultStatus>
</AuditFlag>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/721075" uri="/api/space/nsas/device-roles/pe-devices/721075" key="721075">
<DeviceName>embassy</DeviceName>
<DeviceID>721075</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/9</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="L3VPNFMOSPFEndPointConfigParameterServiceType">
<RoutingProtocol>OSPF</RoutingProtocol>
<EthernetOption>Vlan</EthernetOption>
<VlanId>3</VlanId>
<UnitID>0</UnitID>
<InterfaceIP>10.0.77.5</InterfaceIP>
<OSPFAreaId>0.0.0.0</OSPFAreaId>
<OSPFVersion>Ver 2</OSPFVersion>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 376
<ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterServiceType">
<RouteTarget>10:2</RouteTarget>
<RouteDistinguisher>10:2</RouteDistinguisher>
<VRFTabelLabel>Enabled</VRFTabelLabel>
</ServiceParameters>
<Reference>
<ServiceOrder key="1605699" href="/api/space/nsas/l3vpn/service-management/service-orders/1605699"
uri="/api/space/nsas/l3vpn/service-management/service-orders/1605699"/>
<ServiceDefinition>
<ServiceDefinitionID key="1605682" href="/api/space/nsas/l3vpn/service-management/service-definitions/1605682"
uri="/api/space/nsas/l3vpn/service-management/service-definitions/1605682"/>
</ServiceDefinition>
<Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-
management/customers/720896"/>
</Reference>
</Service>
</ServiceResource>
</Data>
20 TPID Parameter for Service Order/Service
20.1 Get Service Order (P2P-LDP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/7372820"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/7372820"
key="7372820">
<Common>
<Name>TPID_P2P_LDP_SO</Name>
<Identity>7372820</Identity>
<State>Failed_Deployed</State>
<CreatedDate>2012-12-26T12:12:33.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-26T12:12:55.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997766" uri="/api/space/nsas/device-
roles/pe-devices/3997766" key="3997766">
<DeviceName>embassy</DeviceName>
<DeviceID>3997766</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport single vlan</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 377
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<VlanId>1500</VlanId>
<CustomerVlanId>1900</CustomerVlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997755" uri="/api/space/nsas/device-
roles/pe-devices/3997755"
key="3997755">
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport single vlan</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<VlanId>1500</VlanId>
<CustomerVlanId>1900</CustomerVlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
<VCID>1640</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
<ServiceDefinitionID key="7372800"
href="/api/space/nsas/service-management/service-definitions/7372800"
uri="/api/space/nsas/service-management/service-definitions/7372800" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.2 Get Service Order(P2P-BGP)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 378
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder href="/api/space/nsas/eline-ptp/service-management/service-orders/7405602"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/7405602" key="7405602">
<Common>
<Name>TPID_P2P_BGP_SO</Name>
<Identity>7405602</Identity>
<State>Invalid</State>
<CreatedDate>2012-12-26T12:40:52.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-26T12:40:52.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Point Pseudowire</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997755" uri="/api/space/nsas/device-
roles/pe-devices/3997755"
key="3997755">
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport single vlan</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x9100</InnerTPID>
<VlanId>1600</VlanId>
<CustomerVlanId>2000</CustomerVlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997704" uri="/api/space/nsas/device-
roles/pe-devices/3997704"
key="3997704">
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport single vlan</TrafficType>
<PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
<LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 379
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x9100</InnerTPID>
<VlanId>1600</VlanId>
<CustomerVlanId>2000</CustomerVlanId>
<MTU>1522</MTU>
<Bandwidth unit="Kbps">0</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>100:6</RouteTarget>
<RouteDistinguisher>100:8</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
<ServiceDefinitionID key="7405568"
href="/api/space/nsas/service-management/service-definitions/7405568"
uri="/api/space/nsas/service-management/service-definitions/7405568" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.3 Get Service Order (VPLS-MTM-LDP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/7471262"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/7471262"
key="7471262">
<Common>
<Name>VPLS_MTM_LDP_SO</Name>
<Identity>7471262</Identity>
<State>Failed_Deployed</State>
<CreatedDate>2012-12-26T14:38:30.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-26T14:38:43.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997755" uri="/api/space/nsas/device-
roles/pe-devices/3997755"
key="3997755">
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 380
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1550</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997704" uri="/api/space/nsas/device-
roles/pe-devices/3997704"
key="3997704">
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1550</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<VLANNormalization>Normalize All</VLANNormalization>
<VPLSId>2147467273</VPLSId>
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
<ServiceDefinitionID key="7471104"
href="/api/space/nsas/service-management/service-definitions/7471104"
uri="/api/space/nsas/service-management/service-definitions/7471104" />
</ServiceDefinition>
</Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 381
</ServiceOrder>
</ServiceResource>
</Data>
20.4 Get Service Order (VPLS-PTM-LDP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder href="/api/space/nsas/elan-vpls/service-management/service-orders/7471275" uri="/api/space/nsas/elan-vpls/service-
management/service-orders/7471275" key="7471275">
<Common>
<Name>TPID_VPLS_PTM_LDP_SO</Name>
<Identity>7471275</Identity>
<State>Invalid</State>
<CreatedDate>2012-12-26T15:12:34.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-26T15:12:34.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>LDP</Signaling>
<Action>Provisioning</Action> <ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997704" uri="/api/space/nsas/device-roles/pe-devices/3997704" key="3997704">
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1660</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>false</Hub>
<NeighbourHub>jaipur</NeighbourHub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997755" uri="/api/space/nsas/device-roles/pe-devices/3997755" key="3997755">
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 382
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>1660</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<VLANNormalization>Normalize All</VLANNormalization>
<VPLSId>2147467275</VPLSId>
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834" href="/api/space/nsas/customer-management/customers/884834" uri="/api/space/nsas/customer-
management/customers/884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="7471136" href="/api/space/nsas/service-management/service-definitions/7471136"
uri="/api/space/nsas/service-management/service-definitions/7471136"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.5 Get Service Order (VPLS-MTM-BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/7667712"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/7667712"
key="7667712">
<Common>
<Name>TPID_VPLS_MTM_BGP_SO</Name>
<Identity>7667712</Identity>
<State>Invalid</State>
<CreatedDate>2012-12-26T17:36:30.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-26T17:36:30.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Multipoint-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997704" uri="/api/space/nsas/device-
roles/pe-devices/3997704"
key="3997704">
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 383
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2300</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997755" uri="/api/space/nsas/device-
roles/pe-devices/3997755"
key="3997755">
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2300</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<RouteTarget>100:8</RouteTarget>
<VLANNormalization>Normalize All</VLANNormalization>
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 384
<ServiceDefinitionID key="7471231"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/7471231"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/7471231"
/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.6 Get Service Order (VPLS-PTM-BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder
href="/api/space/nsas/elan-vpls/service-management/service-orders/7667727"
uri="/api/space/nsas/elan-vpls/service-management/service-orders/7667727"
key="7667727">
<Common>
<Name>TPID_VPLS_PTM_BGP_SO</Name>
<Identity>7667727</Identity>
<State>Invalid</State>
<CreatedDate>2012-12-26T17:38:12.000+05:30</CreatedDate>
<LastUpdatedDate>2012-12-26T17:38:12.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<ServiceType>Point-to-Multipoint Ethernet (VPLS)</ServiceType>
<Signaling>BGP</Signaling>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997766" uri="/api/space/nsas/device-
roles/pe-devices/3997766"
key="3997766">
<DeviceName>embassy</DeviceName>
<DeviceID>3997766</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2400</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 385
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/3997704" uri="/api/space/nsas/device-
roles/pe-devices/3997704"
key="3997704">
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<PhysicalEncapsulation>flexible-ethernet-services
</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-vpls</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<VlanId>2400</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>false</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<TrafficType>Transport single vlan</TrafficType>
<VLANNormalization>Normalize All</VLANNormalization>
<HubRouteTarget>100:9</HubRouteTarget>
<SpokeRouteTarget>100:11</SpokeRouteTarget>
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"
href="/api/space/nsas/customer-management/customers/884834"
uri="/api/space/nsas/customer-management/customers/884834" />
<ServiceDefinition>
<ServiceDefinitionID key="7471200"
href="/api/space/nsas/elan-vpls/service-management/service-
definitions/7471200"
uri="/api/space/nsas/elan-vpls/service-management/service-definitions/7471200"
/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.7 Create Service Order (P2P-LDP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name> TPID_P2P_LDP_SO </Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 386
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>5996551</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x9100</InnerTPID>
<VlanId>1500</VlanId>
<CustomerVlanIdStart>1500</CustomerVlanIdStart>
<CustomerVlanIdEnd>1800</CustomerVlanIdEnd>
<MTU>1522</MTU>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>5996561</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
<VlanId>1500</VlanId>
<CustomerVlanIdStart>1500</CustomerVlanIdStart>
<CustomerVlanIdEnd>1800</CustomerVlanIdEnd>
<MTU>1522</MTU>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
<VCID>1250</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="426088"/>
<ServiceDefinition>
<ServiceDefinitionID key="6095018"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.8 Create Service Order (P2P-BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 387
<Common>
<Name>TPID_P2P_BGP_SO</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x9100</InnerTPID>
<VlanId>1600</VlanId>
<CustomerVlanId>2000</CustomerVlanId>
<MTU>1522</MTU>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/7</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x9100</InnerTPID>
<VlanId>1600</VlanId>
<CustomerVlanId>2000</CustomerVlanId>
<MTU>1522</MTU>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<RouteTarget>100:6</RouteTarget>
<RouteDistinguisher>100:8</RouteDistinguisher>
</ServiceOrderParameter>
<Reference>
<Customer key="884834" />
<ServiceDefinition>
<ServiceDefinitionID key="7405568" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.9 Create Service Order (VPLS-MTM-LDP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 388
<Common>
<Name>VPLS_MTM_LDP_SO</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<VlanId>1550</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSLDPEndPointConfigParameterOrderType">
<VlanId>1550</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<OuterTPID>0x8100</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="7471104"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
20.10 Create Service Order (VPLS-PTM-LDP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 389
<ServiceOrder>
<Common>
<Name>TPID_VPLS_PTM_LDP_SO</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<VlanId>1660</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>false</Hub>
<NeighbourHub>jaipur</NeighbourHub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSLDPEndPointConfigParameterOrderType">
<VlanId>1660</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="7471136"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 390
20.11 Create Service Order (VPLS-MTM-BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>TPID_VPLS_MTM_BGP_SO</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<VlanId>2300</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>3997755</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<VlanId>2300</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2400</CustomerVlanId>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x88a8</InnerTPID>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<RouteTarget Autopick="true"/>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="7471231"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 391
</Data>
20.12 Create Service Order (VPLS-PTM-BGP)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>TPID_VPLS_PTM_BGP_SO</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>3997766</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/5</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<VlanId>2400</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>true</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>3997704</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<VlanId>2400</VlanId>
<MTU>1522</MTU>
<CustomerVlanId>2500</CustomerVlanId>
<OuterTPID>0x88a8</OuterTPID>
<InnerTPID>0x8100</InnerTPID>
<Hub>false</Hub>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<AutoDiscovery>false</AutoDiscovery>
</ServiceOrderParameter>
<Reference>
<Customer key="884834"/>
<ServiceDefinition>
<ServiceDefinitionID key="7471200"/>
</ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 392
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
21 Clone Service
21.1 Clone (P2P-LDP)
URL: api/space/nsas/eline-ptp/service-management/services/clone/<serviceId>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.clone-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_Test_505_Clone_1</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<VlanId>238</VlanId>
<Bandwidth unit="Mbps">20</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<VlanId>238</VlanId>
<Bandwidth unit="Mbps">20</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 393
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<VCID>238</VCID>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceCustomActionType">
<Action>Save</Action>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3964937</Value>
</Identity>
<Job>
<ID>1474600</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Created Successfully.</Message>
</Status>
</Data>
21.2 Clone (P2P-BGP)
URL: api/space/nsas/eline-ptp/service-management/services/clone/<serviceId>
METHOD: POST
Content-type: application/vnd.net.juniper.space.service-management.clone-service+xml
Accept: application/vnd.net.juniper.space.service-management.service-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_Test_505_Clone_1</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 394
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<VlanId>238</VlanId>
<Bandwidth unit="Mbps">20</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<VlanId>238</VlanId>
<Bandwidth unit="Mbps">20</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<VCID>238</VCID>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceCustomActionType">
<Action>Save</Action>
</CustomAction>
</Data>
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3964937</Value>
</Identity>
<Job>
<ID>1474600</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>The Service Created Successfully.</Message>
</Status>
</Data>
22 Bulk Operations
22.1 Bulk - Add Customers
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 395
URL: api/space/nsas/customer-management/customers
Content-Type: application/vnd.net.juniper.space.customer-management.customers+xml
Accept: application/vnd.net.juniper.space.customer-management.customers-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers>
<Customer>
<Common>
<Name>Customer1</Name>
</Common>
<AccountNo>40000001</AccountNo>
<ContactName>Customer1</ContactName>
<ContactEmail>Customer1@juniper.net</ContactEmail>
</Customer>
<Customer>
<Common>
<Name>Customer2</Name>
</Common>
<AccountNo>40000002</AccountNo>
<ContactName>Customer2</ContactName>
<ContactEmail>Customer2@juniper.net</ContactEmail>
</Customer>
<Customer>
<Common>
<Name>Customer3</Name>
</Common>
<AccountNo>40000003</AccountNo>
<ContactName>Customer3</ContactName>
<ContactEmail>Customer3@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959528</Value>
</Identity>
<Code>200</Code>
<Message>Customer Created Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959529</Value>
</Identity>
<Code>200</Code>
<Message>Customer Created Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959530</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 396
</Identity>
<Code>200</Code>
<Message>Customer Created Successfully.</Message>
</Status>
</Data>
22.2 Bulk – Modify Customers
URL: api/space/nsas/customer-management/customers
Content-Type: application/vnd.net.juniper.space.customer-management.customers+xml
Accept: application/vnd.net.juniper.space.customer-management.customers-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers>
<Customer>
<Common>
<Name>Customer1</Name>
<Identity>959528</Identity>
</Common>
<AccountNo>40000001</AccountNo>
<ContactName>Customer1_mod</ContactName>
<ContactEmail>Customer1_mod@juniper.net</ContactEmail>
</Customer>
<Customer>
<Common>
<Name>Customer2</Name>
<Identity>959529</Identity>
</Common>
<AccountNo>40000002</AccountNo>
<ContactName>Customer2_mod</ContactName>
<ContactEmail>Customer2_mod@juniper.net</ContactEmail>
</Customer>
<Customer>
<Common>
<Name>Customer3</Name>
<Identity>959530</Identity>
</Common>
<AccountNo>40000003</AccountNo>
<ContactName>Customer3_mod</ContactName>
<ContactEmail>Customer3_mod@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959528</Value>
</Identity>
<Code>200</Code>
<Message>Customer Modified Successfully.</Message>
</Status>
<Status>
<Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 397
<Type>Customer</Type>
<Value>959529</Value>
</Identity>
<Code>200</Code>
<Message>Customer Modified Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959530</Value>
</Identity>
<Code>200</Code>
<Message>Customer Modified Successfully.</Message>
</Status>
</Data>
22.3 Bulk – Delete Customers
URL: api/space/nsas/customer-management/customers
Method: DELETE
Content-Type: application/vnd.net.juniper.space.customer-management.customers+xml
Accept: application/vnd.net.juniper.space.customer-management.customers-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>Customer</Type>
<Value>959528</Value>
</Identity>
<Identity>
<Type>Customer</Type>
<Value>959529</Value>
</Identity>
<Identity>
<Type>Customer</Type>
<Value>959530</Value>
</Identity>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959528</Value>
</Identity>
<Code>200</Code>
<Message>Customer Deleted Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959529</Value>
</Identity>
<Code>200</Code>
<Message>Customer Deleted Successfully.</Message>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 398
</Status>
<Status>
<Identity>
<Type>Customer</Type>
<Value>959530</Value>
</Identity>
<Code>200</Code>
<Message>Customer Deleted Successfully.</Message>
</Status>
</Data>
22.4 Bulk – Create ServiceOrders
URL: api/space/nsas/eline-ptp/service-management/service-orders
Method: POST
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_TDM_008</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 399
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_TDM_009</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 400
<Customer key="1015809"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_Test_007</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>436</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>436</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>436</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 401
<Name>Eline_Test_008</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>437</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>437</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>437</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_ATM_008</Name>
<Comments>ATM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 402
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
<VPI>107</VPI>
<VCI>107</VCI>
</ServiceOrderParameter>
<Reference>
<Customer key="1015809"/>
<ServiceDefinition>
<ServiceDefinitionID key="262307"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
The above sample contains the request for creating a Eline_QINQ_AllVLAN, ATM and TDM serviceorders in one
single Bulk request.
Sample Response:
<Data>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571763</Value>
</Identity>
<Code>200</Code>
<Message>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 403
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571770</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571777</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Job>
<ID>1179845</ID>
<Status>INPROGRESS</Status>
</Job>
</Status>
</Data>
22.5 Bulk – Create ServiceOrders (P2P-LDP)
URL: api/space/nsas/eline-ptp/service-management/service-orders
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_TDM_008</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 404
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_TDM_009</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 405
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015809"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_Test_007</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>436</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 406
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>436</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>436</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_Test_008</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>437</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>437</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 407
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>437</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_ATM_008</Name>
<Comments>ATM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
<VPI>107</VPI>
<VCI>107</VCI>
</ServiceOrderParameter>
<Reference>
<Customer key="1015809"/>
<ServiceDefinition>
<ServiceDefinitionID key="262307"/>
</ServiceDefinition>
</Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 408
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
The above sample contains the request for creating a Eline_QINQ_AllVLAN, ATM and TDM serviceorders in one
single Bulk request.
Sample Response:
<Data>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571763</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571770</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571777</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Job>
<ID>1179845</ID>
<Status>INPROGRESS</Status>
</Job>
</Status>
</Data>
22.6 Bulk – Create ServiceOrders (P2P-BGP)
URL: api/space/nsas/eline-ptp/service-management/service-orders
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 409
Content-Type: application/vnd.net.juniper.space.service-management.service-order+xml
Accept: application/vnd.net.juniper.space.service-management.service-order-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_TDM_008</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 410
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_TDM_009</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015809"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_Test_007</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 411
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>436</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>436</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>436</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_Test_008</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>360554</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 412
<EndPointCategory>PTP</EndPointCategory>
<VlanId>437</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>360498</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineBGPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>437</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>437</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1015808"/>
<ServiceDefinition>
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
<ServiceOrder>
<Common>
<Name>Eline_ATM_008</Name>
<Comments>ATM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>360508</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 413
<DeviceID>360532</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
<VPI>107</VPI>
<VCI>107</VCI>
</ServiceOrderParameter>
<Reference>
<Customer key="1015809"/>
<ServiceDefinition>
<ServiceDefinitionID key="262307"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
The above sample contains the request for creating a Eline_QINQ_AllVLAN, ATM and TDM serviceorders in one
single Bulk request.
Sample Response:
<Data>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571763</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571770</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 414
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571777</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Job>
<ID>1179845</ID>
<Status>INPROGRESS</Status>
</Job>
</Status>
</Data>
22.7 Bulk – Deploy/Validate/PartialDelete Created ServiceOrders
URL: api/space/nsas/eline-ptp/service-management/service-orders
Method: PUT
Content-Type: application/vnd.net.juniper.space.service-management.service-orders+xml
Accept: application/vnd.net.juniper.space.service-management.service-orders-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>ServiceOrder</Type>
<Value>1085688</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085713</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085724</Value>
</Identity>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>DeployLater</Action>
<ScheduledDateTime>2012-10-16T11:50:18.000</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571763</Value>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 415
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571770</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571777</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Job>
<ID>1179845</ID>
<Status>INPROGRESS</Status>
</Job>
</Status>
</Data>
22.8 Bulk – Delete ServiceOrders
URL: api/space/nsas/eline-ptp/service-management/service-orders
METHOD: DELETE
Content-Type: application/vnd.net.juniper.space.service-management.service-orders+xml
Accept: application/vnd.net.juniper.space.service-management.service-orders-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>ServiceOrder</Type>
<Value>1085976</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085921</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085914</Value>
</Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 416
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085976</Value>
</Identity>
<Code>200</Code>
<Message>Service order Deleted Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085921</Value>
</Identity>
<Code>200</Code>
<Message>Service order Deleted Successfully.</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085914</Value>
</Identity>
<Code>200</Code>
<Message>Service order Deleted Successfully.</Message>
</Status>
</Data>
22.9 Bulk – Modify Services
URL: api/space/nsas/eline-ptp/service-management/services
Content-Type: application/vnd.net.juniper.space.service-management.modify-services+xml
Accept: application/vnd.net.juniper.space.service-management.services-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Identity>1085688</Identity>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>1179752</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<CustomerVlanIdStart>500</CustomerVlanIdStart>
<CustomerVlanIdEnd>505</CustomerVlanIdEnd>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 417
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>1194778</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<CustomerVlanIdStart>500</CustomerVlanIdStart>
<CustomerVlanIdEnd>505</CustomerVlanIdEnd>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
</ServiceOrderParameter>
</ServiceOrder>
<ServiceOrder>
<Common>
<Identity>1085713</Identity>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-1-space</DeviceName>
<DeviceID>1179752</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/6</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<CustomerVlanIdStart>505</CustomerVlanIdStart>
<CustomerVlanIdEnd>510</CustomerVlanIdEnd>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>1194778</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/3/6</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 418
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<CustomerVlanIdStart>505</CustomerVlanIdStart>
<CustomerVlanIdEnd>510</CustomerVlanIdEnd>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
Sample Response:
<Data>
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085735</Value>
</Identity>
<Code>200</Code>
<Message>
The Service Order Modified Successfully and Deployment is in Progress.
Please check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Identity>
<Type>ServiceOrder</Type>
<Value>1085742</Value>
</Identity>
<Code>200</Code>
<Message>
The Service Order Modified Successfully and Deployment is in Progress.
Please check the status using the JOB ID.
</Message>
</Status>
<Status>
<Job>
<ID>202324</ID>
<Status>INPROGRESS</Status>
</Job>
</Status>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 419
22.10 Bulk – ForceDeploy Services
URL: api/space/nsas/eline-ptp/service-management/services
Content-Type: application/vnd.net.juniper.space.service-management.services+xml
Accept: application/vnd.net.juniper.space.service-management.services-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceCustomActionType">
<Action>DeployLater</Action>
<ScheduledDateTime>2012-10-16T11:50:18.000</ScheduledDateTime>
</CustomAction>
</Data>
Sample Response:
<Data>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Job>
<ID>202513</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
Service Force Deploy was Successfully triggered. Please check the status
using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Job>
<ID>202514</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
Service Force Deploy was Successfully triggered. Please check the status
using the JOB ID.
</Message>
</Status>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 420
<Status>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<Job>
<ID>202515</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
Service Force Deploy was Successfully triggered. Please check the status
using the JOB ID.
</Message>
</Status>
</Data>
22.11 Bulk – Decomissioning Services
URL: api/space/nsas/eline-ptp/service-management/services
Content-Type: application/vnd.net.juniper.space.service-management.services+xml
Accept: application/vnd.net.juniper.space.service-management.services-status+xml
Sample Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceCustomActionType">
<Action>DecommissionLater</Action>
<ScheduledDateTime>2012-10-16T12:15:18.000</ScheduledDateTime>
</CustomAction>
</Data
Sample Response:
<Data>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Job>
<ID>202655</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
Service Decommission was Successfully triggered. Please check the status
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 421
using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Job>
<ID>202656</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
Service Decommission was Successfully triggered. Please check the status
using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<Job>
<ID>202657</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
Service Decommission was Successfully triggered. Please check the status
using the JOB ID.
</Message>
</Status>
</Data>
22.12 Bulk – Perform Functional/Configurational Audit on Services
URL: api/space/nsas/service-management/services
Content-Type: application/vnd.net.juniper.space.service-management.services+xml
Accept: application/vnd.net.juniper.space.service-management.services-status+xml
Sample Config Audit Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ConfigAuditCustomActionType">
<Action>AuditLater</Action>
<ScheduledDateTime>2012-10-16T11:58:18.000</ScheduledDateTime>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 422
</CustomAction>
</Data
Sample Config Audit Response:
<Data>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Job>
<ID>202576</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
The Configurational Audit was Successfully triggered.Please check the
status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Job>
<ID>202577</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
The Configurational Audit was Successfully triggered.Please check the
status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<Job>
<ID>202578</ID>
<Status>SCHEDULED</Status>
</Job>
<Code>200</Code>
<Message>
The Configurational Audit was Successfully triggered.Please check the
status using the JOB ID.
</Message>
</Status>
</Data>
Sample Functional Audit Request:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 423
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="FunctionalAuditCustomActionType">
<Action>AuditLater</Action>
<ScheduledDateTime>2012-10-16T12:03:18.000</ScheduledDateTime>
</CustomAction>
</Data>
Sample Functional Audit Response:
<Data>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085688</Value>
</Identity>
<Job>
<ID>202604</ID>
<Status>SCHEDULED</Status>
<AssociatedJob>
<ID>202605</ID>
<Status>SCHEDULED</Status>
<Code>200</Code>
<Message>
The Monitoring Audit was Successfully triggered. Please check the status using the JOB ID.
</Message>
</AssociatedJob>
</Job>
<Code>200</Code>
<Message>
The Functional Audit was Successfully triggered. Please check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085713</Value>
</Identity>
<Job>
<ID>202606</ID>
<Status>SCHEDULED</Status>
<AssociatedJob>
<ID>202607</ID>
<Status>SCHEDULED</Status>
<Code>200</Code>
<Message>
The Monitoring Audit was Successfully triggered. Please check the status using the JOB ID.
</Message>
</AssociatedJob>
</Job>
<Code>200</Code>
<Message>
The Functional Audit was Successfully triggered. Please check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>Service</Type>
<Value>1085724</Value>
</Identity>
<Job>
<ID>202609</ID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 424
<Status>SCHEDULED</Status>
<AssociatedJob>
<ID>202612</ID>
<Status>SCHEDULED</Status>
<Code>200</Code>
<Message>
The Monitoring Audit was Successfully triggered. Please check the status using the JOB ID.
</Message>
</AssociatedJob>
</Job>
<Code>200</Code>
<Message>
The Functional Audit was Successfully triggered. Please check the status using the JOB ID.
</Message>
</Status>
</Data>
23 JSON Conversion from XML
For the ease of the users, an additional API has been provided for converting the XML inputs to JSON format.
If the XML inputs pertaining to the NetworkAppsAPI are given as input then the corresponding JSON format output
can be got from this API.
Note: This only for the internal use.
URL: api/space/nsas/xml-json/convert
METHOD: POST
Content-Type: application/xml
Accept: application/json
Sample Request: Converting the AddCustomer XML-Input to JSON-Input:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Customers>
<Customer>
<Common>
<Name>Customer_005</Name>
</Common>
<AccountNo>40132324005</AccountNo>
<ContactName>customer005</ContactName>
<ContactEmail>customer005@juniper.net</ContactEmail>
</Customer>
</Customers>
</Data>
Sample Response: JSON format of the above XML
{"Data":{"Customers":{"Customer":{"Common":{"Name":"Customer_005"},"AccountNo":40132324005,"ContactName":"customer005","Conta
ctEmail":"customer005@juniper.net"}}}}
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 425
24 APPENDIX I – Sample Input XMLs
24.1 Create ServiceOrder: P2P – with LSPTunnelName input
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_LSP_005</Name>
<Comments>P2P service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>327742</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>766</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<LSPTunnelName>to_exora_ldp</LSPTunnelName>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>exora</DeviceName>
<DeviceID>327689</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<VlanId>766</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<LSPTunnelName>to_jaipur_ldp</LSPTunnelName>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>766</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="327680"/>
<ServiceDefinition>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 426
<ServiceDefinitionID key="262144"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
24.2 Create ServiceOrder: P2P – SingleEnded provisioning input
Sample XML request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>SingleEndedAPI1</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>1310744</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/8</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>UnmanagedDevice</DeviceName>
<DeviceID>0</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<LoopbackIP>50.1.2.2</LoopbackIP>
< InterfaceName >ge-0/0/3</ InterfaceName e>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>75</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1310846"/>
<ServiceDefinition>
<ServiceDefinitionID key="1212416"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 427
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
24.3 Create ServiceOrder: P2P – QINQ Vlan Range
<RESTOperation xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="services.schema.networkapi.jmp.juniper.net REST_Data_Model.xsd">
<Request>
<Data>
<ProvisioningData>
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_QINQRange_005</Name>
<Comments>test</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceName>embassy</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineEndPointConfigParameterOrderType">
<CustomerVlanIdStart>300</CustomerVlanIdStart>
<CustomerVlanIdEnd>400</CustomerVlanIdEnd>
<AutoPickVlanId>false</AutoPickVlanId>
<VlanId>5</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceName >exora</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineEndPointConfigParameterOrderType">
<CustomerVlanIdStart>300</CustomerVlanIdStart>
<CustomerVlanIdEnd>400</CustomerVlanIdEnd>
<AutoPickVlanId>false</AutoPickVlanId>
<VlanId>1</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="458795" />
<ServiceDefinition>
<ServiceDefinitionID key=”262144”></ServiceDefinitionID>
</ServiceDefinition>
</Reference>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 428
<MTU>1522</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
</ProvisioningData>
<OperationSpecificData>
<CustomAction xsi:type="ServiceOrderCustomActionType">
<Action>Save</Action>
<ScheduledDateTime>2012-05-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</OperationSpecificData>
</Data>
</Request>
</RESTOperation>
24.4 Create ServiceOrder: P2P – PORT-PORT
<RESTOperation xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="services.schema.networkapi.jmp.juniper.net REST_Data_Model.xsd">
<Request>
<Data>
<ProvisioningData>
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_PortBased_001</Name>
<Comments>test</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceName>embassy</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceName>exora</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="458795" />
<ServiceDefinition>
<ServiceDefinitionID key=”262144”></ServiceDefinitionID>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 429
</ServiceDefinition>
</Reference>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1522</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
</ProvisioningData>
<OperationSpecificData>
<CustomAction xsi:type="ServiceOrderCustomActionType">
<Action>Save</Action>
<ScheduledDateTime>2012-05-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</OperationSpecificData>
</Data>
</Request>
</RESTOperation>
24.5 Create ServiceOrder: P2P - ATM
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_ATM_001</Name>
<Comments>ATM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>786504</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>786556</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>10</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 430
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
<VPI>91</VPI>
<VCI>91</VCI>
</ServiceOrderParameter>
<Reference>
<Customer key="786636"/>
<ServiceDefinition>
<ServiceDefinitionID key="262307"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
24.6 Create ServiceOrder: P2P - TDM
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_TDM_001</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>786504</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-2-space</DeviceName>
<DeviceID>786556</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 431
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="786636"/>
<ServiceDefinition>
<ServiceDefinitionID key="262279"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
24.7 Create ServiceOrder: VPLS- MultiHomeGroup
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>ELANBGPDot1QBased_Service_Order1</Name>
</Common>
<ServiceEndPointGroup>
<MhgID>2329835</MhgID>
<!-- To change the primary interface
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>1933421</DeviceID>
</NA>
</DeviceInfo>
-->
<ServiceEndPoint>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<AutoPickVlanId>false</AutoPickVlanId>
<VlanId>149</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description></Description>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 432
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<MhgID>1942447</MhgID>
<ServiceEndPoint>
<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<AutoPickVlanId>false</AutoPickVlanId>
<VlanId>149</VlanId>
<MTU>1522</MTU>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description></Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="1933312" />
<ServiceDefinition>
<ServiceDefinitionID key="1802260" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndValidate</Action>
</CustomAction>
</Data>
24.8 Create ServiceOrder: VPLS - with Advanced settings made Editable in SD
Incase, the Advance setting options are made editable in the SD, the input for them must be given as follows:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test_VPLS_ADV_008</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>458823</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<DisableTunnelServices>true</DisableTunnelServices>
<DisableLocalSwitching>true</DisableLocalSwitching>
<FastReroutePriority>low</FastReroutePriority>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 433
<LabelBlockSize>8</LabelBlockSize>
<ConnectivityType>ce</ConnectivityType>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>458760</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/8</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<DisableTunnelServices>true</DisableTunnelServices>
<DisableLocalSwitching>true</DisableLocalSwitching>
<FastReroutePriority>low</FastReroutePriority>
<LabelBlockSize>8</LabelBlockSize>
<ConnectivityType>ce</ConnectivityType>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="458752" />
<ServiceDefinition>
<ServiceDefinitionID key="4391094" />
</ServiceDefinition>
<Service key="5144776" />
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
24.9 Create ServiceOrder: VPLS - with Normalized to Dot1QTag/QinQTag option
Incase, the normalization is set to ‘Normalized to Dot1q tag’ or ‘Normalized to QinQ tag’, extra parameters
Dot1QVLANTag and QinQVLANInnerTag and QinQVLANOuterTag has to be given in input correspondingly.
Given below is a sample on how to provide the Normalization tag inputs
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>VPS_QinQ_Single_QinQ_001</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>458823</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 434
<InterfaceName>ge-1/0/4</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<CustomerVlanId>2</CustomerVlanId>
</ServiceEndpointConfiguration>
<Description>
</Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>jaipur</DeviceName>
<DeviceID>458812</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<CustomerVlanId>2</CustomerVlanId>
</ServiceEndpointConfiguration>
<Description>
</Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<!—In case of Normalized to QinQ Tag is selected in SD -->
<QinQVLANOuterTag>2</QinQVLANOuterTag>
<QinQVLANInnerTag>3</QinQVLANInnerTag>
<!-- In case of Normalized to DOT1Q Tag is selected in SD -->
<Dot1QVLANTag>34</Dot1QVLANTag>
</ServiceOrderParameter>
<Reference>
<Customer key="458753" />
<ServiceDefinition>
<ServiceDefinitionID key="4391009" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
24.10 Create ServiceOrder: VPLS - with Asymmetric Tag EthernetOption
In case, the Ethernet Option in SD is set to ‘asymmetric tag depth’, the user must give the Ethernet option manually
while creating a ServiceOrder. This EthernetOption can differ for each UNI.
Below given is a sample for creating a ServiceOrder with asymmetric tag depth selected SD.
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test_VPLS_Asym_Range_304</Name>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 435
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>458823</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/0/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<EthernetOption>dot1q</EthernetOption>
<CustomerVlanIdStart>38</CustomerVlanIdStart>
<CustomerVlanIdEnd>39</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>kochin</DeviceName>
<DeviceID>458760</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/0/8</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSBGPEndPointConfigParameterOrderType">
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
<EthernetOption>qinq</EthernetOption>
<CustomerVlanIdStart>38</CustomerVlanIdStart>
<CustomerVlanIdEnd>39</CustomerVlanIdEnd>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="458752" />
<ServiceDefinition>
<ServiceDefinitionID key="5931221" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
24.11 Create ServiceOrder:HS VPLS - with multihome,advanced setting, Normalized to QinQ vlan
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Test_VPLS_ADV_HS_011</Name>
</Common>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 436
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>5865560</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/3/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<Hub>true</Hub>
<CustomerVlanId>2</CustomerVlanId>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<DisableTunnelServices>true</DisableTunnelServices>
<DisableLocalSwitching>true</DisableLocalSwitching>
<FastReroutePriority>high</FastReroutePriority>
<LabelBlockSize>8</LabelBlockSize>
<ConnectivityType>irb</ConnectivityType>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<MhgID>5873178</MhgID>
<ServiceEndPoint>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSHSBGPEndPointConfigParameterOrderType">
<CustomerVlanId>2</CustomerVlanId>
<Hub>false</Hub>
<MACLearning>true</MACLearning>
<InterfaceMACLimit>1024</InterfaceMACLimit>
<MACStatistics>false</MACStatistics>
<MACTableSize>5120</MACTableSize>
<DisableTunnelServices>true</DisableTunnelServices> <DisableLocalSwitching>true</DisableLocalSwitching>
<FastReroutePriority>medium</FastReroutePriority>
<LabelBlockSize>8</LabelBlockSize>
<ConnectivityType>irb</ConnectivityType>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="VPLSConfigParameterOrderType">
<QinQVLANOuterTag>200</QinQVLANOuterTag>
<QinQVLANInnerTag>300</QinQVLANInnerTag>
</ServiceOrderParameter>
<Reference>
<Customer key="5865512" />
<ServiceDefinition>
<ServiceDefinitionID key="6193195" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 437
24.12 Modify Service: P2P – ATM
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>ATM_009_Modify_003</Name>
<Comments>Comments ATM</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceName>junos-m10-1-space</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>15</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceName>junos-m10-2-space</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>at-1/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMEndPointConfigParameterOrderType">
<CellBundleSize>15</CellBundleSize>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="458856" />
<ServiceDefinition>
<ServiceDefinitionID key="262307" />
</ServiceDefinition>
<Service key="1277966"/>
</Reference>
<ServiceOrderParameter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPATMConfigParameterOrderType">
<MTU>1505</MTU>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
</ProvisioningData>
<OperationSpecificData>
<CustomAction xsi:type="ServiceCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-05-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</OperationSpecificData>
</Data>
24.13 Modify Service: P2P – TDM
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 438
<ServiceOrder>
<Common>
<Name>TDM_01_Modify_001</Name>
<Comments>TDM test thru Modify Service</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceName>junos-m10-1-space</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458898</DeviceID></PEDevice>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<JitterBuffer>6</JitterBuffer>
<IdlePattern>254</IdlePattern>
<ExcessPacketLossRate>10</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceName>junos-m10-2-space</DeviceName>
<ServiceEndPoint>
<DeviceID>458780</DeviceID>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<JitterBuffer>6</JitterBuffer>
<IdlePattern>254</IdlePattern>
<ExcessPacketLossRate>10</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<Reference>
<Customer key="458856" />
<ServiceDefinition>
<ServiceDefinitionID key="262279" />
</ServiceDefinition>
<Service key="1671314" />
</Reference>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1505</MTU>
</ServiceOrderParameter>
</ServiceOrder>
</ServiceResource>
</ProvisioningData>
<OperationSpecificData>
<CustomAction xsi:type="ServiceCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-05-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</OperationSpecificData>
</Data>
24.14 View ServiceOrder:P2P - Created with LSPTunnelName:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 439
<ServiceOrder
href="/api/space/nsas/eline-ptp/service-management/service-orders/262371"
uri="/api/space/nsas/eline-ptp/service-management/service-orders/262371"
key="262371">
<Common>
<Name>Eline_LSP_001 LDP</Name>
<Identity>262371</Identity>
<State>Requested</State>
<Comments>P2P service order</Comments>
<CreatedDate>2012-08-08T17:25:23.000+05:30</CreatedDate>
<LastUpdatedDate>2012-08-08T17:25:22.000+05:30</LastUpdatedDate>
<CreatedBy>super</CreatedBy>
</Common>
<Action>Provisioning</Action>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/491654" uri="/api/space/nsas/device-roles/pe-
devices/491654"
key="491654">
<DeviceName>jaipur</DeviceName>
<DeviceID>491654</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/0</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<LSPTunnelName>to_exora_ldp</LSPTunnelName>
<CommunityName>to_exora_ldp</CommunityName>
<CommunityMember>25769:57280</CommunityMember>
<VlanId>771</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description>N/A</Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA href="/api/space/nsas/device-roles/pe-devices/491570" uri="/api/space/nsas/device-roles/pe-
devices/491570"
key="491570">
<DeviceName>exora</DeviceName>
<DeviceID>491570</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-0/1/1</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
<EndPointCategory>PTP</EndPointCategory>
<TrafficType>QINQ Transport all traffic</TrafficType>
<PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation>
<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
<UNIDescription>N/A</UNIDescription>
<LSPTunnelName>to_jaipur_ldp</LSPTunnelName>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 440
<CommunityName>to_jaipur_ldp</CommunityName>
<CommunityMember>29493:32840</CommunityMember>
<VlanId>771</VlanId>
<MTU>1522</MTU>
<Bandwidth unit="Mbps">10</Bandwidth>
</ServiceEndpointConfiguration>
<Description>N/A</Description>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
<MTU>1577</MTU>
<VCID>771</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="491664"
href="/api/space/nsas/customer-management/customers/491664" \
uri="/api/space/nsas/customer-management/customers/491664" />
<ServiceDefinition>
<ServiceDefinitionID key="262144"
href="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262144" />
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
</Data>
24.15 Single Ended TDM
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>Eline_TDM234_001</Name>
<Comments>TDM service order</Comments>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-m10-1-space</DeviceName>
<DeviceID>884913</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>t1-0/2/2</InterfaceName>
<ServiceEndpointConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMEndPointConfigParameterOrderType">
<JitterBuffer>5</JitterBuffer>
<IdlePattern>255</IdlePattern>
<ExcessPacketLossRate>20</ExcessPacketLossRate>
</ServiceEndpointConfiguration>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>UnmanagedDevice</DeviceName>
<DeviceID>0</DeviceID>
</NA>
</DeviceInfo>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 441
<ServiceEndPoint>
<LoopbackIP>50.1.2.7</LoopbackIP>
< InterfaceName >t1-0/2/1</ InterfaceName >
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPTDMConfigParameterOrderType">
<MTU>1523</MTU>
<AutoPickVCID>true</AutoPickVCID>
</ServiceOrderParameter>
<Reference>
<Customer key="884736"/>
<ServiceDefinition>
<ServiceDefinitionID key="786567"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</Data>
Note:
You can replace the Service definition ID, customer ID, Device ID, Interface details where
ever necessary
25 APPENDIX II – Transition Guide for API 12.1 to 12.3 releases
25.1 Introduction
There were some major changes in terms of the API Signature and Structure for payload and response,
between 12.1 and 12.3 releases. These were necessitated through the feedback points from the Customers.
These changes are specified in detail in this document.
Also, in 12.3 the API signature went through a minor change – in that we have adopted the API Webcontext /
grouping signature of /api/space/nsas/ - instead of /api/space.
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 442
25.2 Root Level hierarchy
Root Elements for Request and response XML / structure in 12.1 and 12.3
In release 12.1 - The Data Type had – Provisioning Data, Identity, Job, and OperationSpecificData – present for
both request and Response Top level Tags/resource structures.
This was optimized in 12.3 – by Taking out The Response XML specific entities/tags – and having them separately
under Data type’s “Status” Tag for Responses. Please refer to the attached XSD file for 12.3 XML schemas.
(REST_Data_Model.xsd)
Further changes to the Top level organization of the Tags/ resource structures were implemented in 12.3 API.
The RPC kind of Payload / XML hierarchy Tags are eliminated / optimized from release 12.1 - to present a more
REST standards - adhering Tag structure for Request and Response In release 12.3 of API
25.2.1 API 12.1
<RESTOperation xmlns="services.schema.networkapi.jmp.juniper.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="services.schema.networkapi.jmp.juniper.net REST_Data_Model.xsd">
<Request>
<Data>
<ProvisioningData>
<ServiceResource>
<ServiceOrder>
25.2.2 API 12.3
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
25.3 Service EndPoint Group
The Device Name and ID are brought into the ServiceEndPointGroup Tag / resource.
25.3.1 API 12.1
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 443
<ServiceEndPointGroup>
<DeviceName>embassy</DeviceName>
<ServiceEndPoint>
<PEDevice ><DeviceID>458830</DeviceID></PEDevice>
25.3.2 API 12.3
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>embassy</DeviceName>
<DeviceID>327752</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
25.4 Custom action / Operation Specific Data
Custom Action like Save, SaveandValidate, DeployNow,DeployLater – were given under operation specific Data in
12.1. This was optimized and was given under CustomAction Tag directly under Data type in 12.3 API’s schema.
25.4.1 API 12.1
<OperationSpecificData>
<CustomAction xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployLater</Action>
<ScheduledDateTime>2012-05-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
</OperationSpecificData>
25.4.2 API 12.3
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
</CustomAction>
25.5 Service End Point Configuration Parameter Types
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 444
The Configuration Parameter types (Dynamic types given during the Payload) undergo a small change in that a
more specific signaling type is defined.
That is, Instead of giving – PTPElineEndPointConfigParameterOrderType in 12.1, a more specific
PTPElineLDPEndPointConfigParameterOrderType is given in 12.3 payloads.
25.5.1 API 12.1
• PTPElineEndPointConfigParameterOrderType
• PTPTDMEndPointConfigParameterOrderType
• PTPATMEndPointConfigParameterOrderType
• PTPElineEndPointConfigParameterServiceType
• PTPTDMEndPointConfigParameterServiceType
• PTPATMEndPointConfigParameterServiceType
25.5.2 API 12.3
• PTPElineLDPEndPointConfigParameterOrderType
• PTPElineBGPEndPointConfigParameterOrderType
• PTPTDMEndPointConfigParameterOrderType
• PTPElineLDPEndPointConfigParameterServiceType
• PTPElineBGPEndPointConfigParameterServiceType
• PTPTDMEndPointConfigParameterServiceType
25.6 Differences in Response Structure:
25.6.1 API 12.1
Sample Response:
<RESTOperation xmlns="services.schema.networkapi.jmp.juniper.net">
<Response>
<Job>
<ID>3801096</ID>
<Status>INPROGRESS</Status>
</Job>
<Identity>
<Type>ServiceOrder</Type>
<Value>10518585</Value>
</Identity>
<Data>
<OperationSpecificData>
<ResponseMessage>
<HTTPResponseCode>201</HTTPResponseCode>
<ResponseMessage>Service Order Created Successfully and Deployment
is in Progress. Please check the status using the JOB ID.
</ResponseMessage>
</ResponseMessage>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 445
</OperationSpecificData>
</Data>
</Response>
</RESTOperation>
25.6.2 API 12.3
Sample Response:
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>6553609</Value>
</Identity>
<Job>
<ID>1998898</ID>
<Status>INPROGRESS</Status>
</Job>
<Code>200</Code>
<Message>Service Order Created Successfully and Deployment is in
Progress. Please check the status using the JOB ID.</Message>
</Status>
</Data>
25.7 Enhancement features available in 12.3 over 12.1
These features were newly added for 12.3 and were not available in 12.1. Detailed information on
these can be had from the NetworkAppsAPI 12.3 testing Guide document.
25.7.1 Modified/Optimized the Request/Response structure
� We had changed the Request / response structure in lieu with comments/feedback for API 12.1
� in Previous sections we have indicated all the changes for the Payload Request / Response
structures / XML schema
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 446
25.7.2 Added the support for Service Types – L3VPN , VPLS and ELine-BGP
� Previously in API 12.1 only E-line (P2P) with LDP signaling services were supported
� From 12.3, L3VPN services, VPLS with BGP/LDP signaling are also supported.
� E-Line P2P with LDP signaling was available from 12.1 release onwards. In 12.3 we have
added support for E-Line P2P with BGP signaling.
25.7.3 API 12.3 provides support for Service Definition creation
� This is supported for P2P, L3VPN – VPLS SD creation is not supported
25.7.4 Support for Resource utilization API
While creating service order, there is a possibility that we may give already allocated VLAN ID/VC
ID/RD/RT. To find out whether a particular resource is already allocated or not, Resource Pool API has
been designed. Supported resources are:
� Vlan ID
� VC ID
� RD (Route Distinguisher)
� RT (Route Target)
� IPv4 Address profile supported for Create/Delete /GET/ GET All operations
25.7.5 Multi-homed Groups API
� Create/Get/Get All operations for Multi-homed group – support for VPLS
25.7.6 Media types / Content types similar to Space API
� Content-Type: This is required to be given for all POST/PUT operations. For example.
application/vnd.net.juniper.space.service-management.service-order+xml
� Accept: This is required to be given for Get operations. For example,
application/vnd.net.juniper.space.service-management.service-order-status+xml
� Note: versioning is not supported
25.7.7 JSON support for creation operations using JSON Payload
� From 12.3 We can give JSON Payloads for all supported APIs (POST/PUT operations)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 447
25.7.8 Support for filters to view the list of services associated with a customer
� URL1 – Get All services for a customer based on customer ID:
api/space/nsas/elan-vpls/service-management/services?customerId=1048781
� URL2 – Get All services for a customer based on customer Name:
api/space/nsas/elan-vpls/serviceanagement/services?customerName=Customer_001
25.7.9 Clone Service API
� Clone is supported for P2P
25.7.10 View Service Configuration change
� This is supported for Auditing and would return the Device configurations for both the
devices used in a service.
25.7.11 Perform FA
� The modified response now includes - associated monitoring/ troubleshoot Job ID in the response –
when FA is triggered.
Sample Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<Status>
<Identity>
<Type>Service</Type>
<Value>754022</Value>
</Identity>
<Job>
<ID>231082</ID>
<Status>INPROGRESS</Status>
<AssociatedJob>
<ID>231083</ID>
<Status>INPROGRESS</Status>
<Code>200</Code>
<Message>The Monitoring Audit was Successfully triggered. Please
check the status using the JOB ID.</Message>
</AssociatedJob>
</Job>
<Code>200</Code>
<Message>The Functional Audit was Successfully triggered. Please check
the status using the JOB ID.</Message>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 448
</Status>
</Data>
25.7.12 View Monitoring/troubleshoot results
� This API would return the troubleshoot results
25.7.13 Single Ended Service (support for unmanaged service at one end)
� We can now create ServiceOrder for P2P – wit h SingleEnded provisioning input, giving one Device
as unmanaged Device
Sample XML request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Data xmlns="services.schema.networkapi.jmp.juniper.net">
<ServiceResource>
<ServiceOrder>
<Common>
<Name>SingleEndedAPI1</Name>
</Common>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>junos-mx80-2-space</DeviceName>
<DeviceID>1310744</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<InterfaceName>ge-1/2/8</InterfaceName>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceEndPointGroup>
<DeviceInfo>
<NA>
<DeviceName>UnmanagedDevice</DeviceName>
<DeviceID>0</DeviceID>
</NA>
</DeviceInfo>
<ServiceEndPoint>
<LoopbackIP>50.1.2.2</LoopbackIP>
< InterfaceName >ge-0/0/3</ InterfaceName e>
</ServiceEndPoint>
</ServiceEndPointGroup>
<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="PTPConfigParameterOrderType">
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 449
<MTU>1577</MTU>
<VCID>75</VCID>
</ServiceOrderParameter>
<Reference>
<Customer key="1310846"/>
<ServiceDefinition>
<ServiceDefinitionID key="1212416"/>
</ServiceDefinition>
</Reference>
</ServiceOrder>
</ServiceResource>
<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
<Action>SaveAndDeployNow</Action>
</CustomAction>
</Data>
25.7.14 View pending order configuration
� Support for viewing Pending Order config is added.
25.7.15 Single Job id for Bulk operations
� Previously in 12.1 we did not have a Single Job ID for Bulk operations, and in 12.3 this support is
added.
Sample Response:
<Data>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571763</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
<Type>ServiceOrder</Type>
<Value>3571770</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Identity>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 450
<Type>ServiceOrder</Type>
<Value>3571777</Value>
</Identity>
<Code>200</Code>
<Message>
Service Order Created Successfully and Deployment is in Progress. Please
check the status using the JOB ID.
</Message>
</Status>
<Status>
<Job>
<ID>1179845</ID>
<Status>INPROGRESS</Status>
</Job>
</Status>
</Data>
25.7.16 PE Device Details
� In GET All PE Device details response, we will not show interface details in 12.3 (in 12.1 we
had showed)
� In GET PE device response, all Interface details/info are included and also the LSP tunnel
name is included there.
25.7.17 Support for local switching of P2P/ATM/TDM Services
� A-End and Z-End interfaces can be configured from the same device for a single service.
Supported for P2P/ATM/TDM
25.7.18 API URL grouping changed
� Instead of Web-context / URL Grouping of /api/space/nsas/ - in 12.1 , we now have
/api/space/nsas/nsas in 12.3R1 release.
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 451
25.7.19 Service Template support
� Service Template can be queried and viewed
� Service Template can be attached with a Service Definition
� Service Definition attached with Service Template can be added to a Service Order
� Service Template creation support yet to be added
25.7.20 List Services which are down (P2P/VPLS/L3VPN)
� Get Services – Filtered Based on Fault Status for Eline-P2P
� Get Services – Filtered Based on Fault Status for Elan-VPLS
� Get Services – Filtered Based on Fault Status for L3VPN
25.7.21 VRF Table parameter (L3VPN)
VRF table parameter value should be provided in Service Definition creation. If the VRF table is not
Editable then in Service Order, VRF table value cannot be altered.
If the VRF table is editable, then during service order creation, we can change value (True/False).
The operations supported for VRF-Table Label are:
� Create Service Definition (METHOD: POST)
api/space/nsas/l3vpn/service-management/service-definitions
� Get Service Definition (METHOD: GET)
api/space/nsas/ l3vpn/service-management/service-definitions/<servicedefinitionId>
� Create Service Order (METHOD: POST)
api/space/nsas/l3vpn /service-management/service-orders
� Get Service Order (METHOD: GET)
api/space/nsas/l3vpn /service-management/service-orders/<serviceorderId>
� Get Service (METHOD: GET)
api/space/nsas/l3vpn/service-management/services/<serviceId>
25.7.22 Manual RT/RD Support
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 452
Manual Route Target (RT) / Route Distinguisher (RD) support should be added while creating
VPLS/L3VPN service definition.
� If RT Autopick is not Editable in Service definition, In Service Order, Route Target value cannot
be altered.
� If RT Autopick is editable in SD, then: We can set auto pick to false and should provide the value
manually.
� RT Manual: Route Target value should be provided manually while creating Service Order.
� RT Manual (Hub Spoke): If definition is hub/spoke then “Hub RT” and “Spoke RT” should be
provided manually.
The operations supported are:
Manual RT (VPLS):
� Get Service Definition (METHOD: GET)
api/space/nsas/elan-vpls/service-management/service-definitions/<servicedefinitionId>
� Create Service Order (METHOD: POST)
api/space/nsas/elan-vpls/service-management/service-orders
� Get Service Order (METHOD: GET)
api/space/nsas/elan-vpls/service-management/service-orders/<serviceorderId>
� Get Service (METHOD: GET)
api/space/nsas/elan-vpls/service-management/services/<serviceId>
Manual RT/RD (P2P):
� Create Service Definition (METHOD : POST)
api/space/nsas/eline-ptp/service-management/service-definitions
� Get Service Definition (METHOD : GET)
api/space/nsas/eline-ptp/service-management/service-definitions/<servicedefinitionId>
� Create Service Order (METHOD : POST)
api/space/nsas/eline-ptp/service-management/service-orders
� Get Service Order (METHOD : GET)
api/space/nsas/eline-ptp/service-management/service-orders/<serviceorderId>
� Get Service (METHOD : GET)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 453
api/space/nsas/eline-ptp/service-management/services/<serviceId>
Manual RT/RD (L3VPN):
� Create Service Definition (METHOD : POST)
api/space/nsas/l3vpn/service-management/service-definitions
� Get Service Definition (METHOD : GET)
api/space/nsas/l3vpn/service-management/service-definitions/<servicedefinitionId>
� Create Service Order (METHOD : POST)
api/space/nsas/l3vpn/service-management/service-orders
� Get Service Order (METHOD : GET)
api/space/nsas/l3vpn/service-management/service-orders/<serviceorderId>
� Get Service (METHOD : GET)
api/space/nsas/l3vpn/service-management/services/<serviceId>
25.7.23 Service Level CFM through NA
The operator can query/view pre-created CFM profiles. The operator can attach pre-created CFM
profiles with Service Orders for P2P and VPLS.
Operations for Service level CFM through NA (applicable for P2P and VPLS services) are:
� GET All CFM Profiles (METHOD: GET)
api/space/nsas/cfm-profiles/service-management/service-definitions
� GET CFM Profile (METHOD: GET)
api/space/nsas/cfm-profiles/service-management/service-definitions/{cfm-profile-id}
� GET Service Order (METHOD: GET)
api/space/nsas/eline-ptp/service-management/service-orders/{serviceOrder-id}
� GET Service (METHOD: GET)
api/space/nsas/eline-ptp /service-management/services/{service-id}
� Create Service Order (P2P) (METHOD: POST)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 454
/ api/space/nsas/ eline-ptp /service-management/service-orders
� Create Service Order (VPLS) (METHOD: POST)
api/space/nsas/ elan-vpls /service-management/service-orders
� Modify Service – P2P (Adding CFM Profile) (METHOD: POST)
api/space/nsas/ eline-ptp /service-management/services/{service-id}
� Modify Service – P2P (Disable CFM) (METHOD: POST)
api/space/nsas/ eline-ptp /service-management/services/{service-id}
� Modify Service – VPLS (Adding CFM Profile) (METHOD: POST)
api/space/nsas/ elan-vpls /service-management/services/{service-id}
� Modify Service – VPLS (Disable CFM) (METHOD: POST)
api/space/nsas/ elan-vpls /service-management/services/{service-id}
� Modify Service – Add-sites (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/{service-id}/add-sites
� Modify Service – Delete-sites (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/{service-id}/delete-sites
� View FA results – P2P (with CFM) (METHOD: GET)
api/space/nsas/ eline-ptp /service-management/view-functional-audit/{service-id}
� View FA results – VPLS (with CFM) (METHOD: GET)
api/space/nsas/ elan-vpls /service-management/ view-functional-audit/{service-id}
� View Troubleshooting results – P2P (with CFM) (METHOD: GET)
api/space/nsas/ eline-ptp /service-management/ view-troubleshooting-results/{service-id}
� View Troubleshooting results – VPLS (with CFM) (METHOD: GET)
api/space/nsas/ elan-vpls /service-management/ view-troubleshooting-results /{service-id}
� View Service Configuration Change – P2P (with CFM) (METHOD: GET)
api/space/nsas/ eline-ptp /service-management/ view- serviceconfiguration -change /{service-id}
� View Service Configuration Change – VPLS (with CFM) (METHOD: GET)
api/space/nsas/ elan-vpls /service-management/ view-serviceconfiguration -change/{service-id}
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 455
25.7.24 TPID Parameter for Service Order/Service
� TPID parameter would be supported in the P2P and VPLS for both LDP and BGP
� Create Service Order (P2P-BGP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/service-orders
� Get Service Order (P2P-BGP/LDP) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/service-orders/< serviceorder-id>
� Modify Service (P2P-BGP/LDP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/services/<service-id>
� GET Service (P2P-BGP/LDP) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/services/< service-id>
� Create Service Order (VPLS–LDP/BGP) (METHOD: POST)
api/space/nsas/elan-vpls/service-management/service-orders
� Get Service Order (VPLS- LDP/BGP) (METHOD: GET)
api/space/nsas/elan-vpls/service-management/service-orders/<serviceorder-id>
� Modify Service (VPLS-BGP/LDP) (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/<service-id>
� Modify Service – Add-sites (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/{service-id}/add-sites
� Modify Service – Delete-sites (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/{service-id}/delete-sites
� Get Service (VPLS-LDP/BGP) (METHOD: GET)
api/space/nsas/elan-vpls/service-management/services/<service-id>
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 456
25.7.25 PW Redundancy
PW redundancy is supported for VPLS-LDP and P2P (both LDP and BGP)
PW Redundancy comes in two ways.
i) Node protection
ii) Interface protection
Currently, NA supports node protection .PW redundancy is supported for both LDP/BGP based point to
point Service.(P2P and VPLS). The operations supported are:
� Create Service Order (P2P-LDP) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/service-orders/redundancy
� Create Service Order (P2P-LDP-TDM) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/service-orders/redundancy
� Get Service (P2P-LDP) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/services/<service-id>
� Modify Service (P2P-LDP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/services/<service-id>
� Get Service Order (P2P-LDP) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/service-orders/<serviceorder-id>
� Create Service Order (P2P-BGP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/service-orders/redundancy
� Get Service Order (P2P-BGP) (METHOD: GET)
api/space/nsas/eline-ptp/service-management/service-orders/< serviceorder-id>
� Modify Service (P2P-BGP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/services/< service-id>
� Create Service Order (VPLS–LDP) (METHOD: POST)
api/space/nsas/elan-vpls/service-management/service-orders
� Get Service Order (VPLS- LDP) (METHOD: GET)
api/space/nsas/elan-vpls/service-management/service-orders/<serviceorder-id>
� Get Service (VPLS-LDP) (METHOD: GET)
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 457
api/space/nsas/elan-vpls/service-management/services/<service-id>
� Modify Service – Add-sites (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/{service-id}/add-sites
� Modify Service – Delete-sites (METHOD: POST)
api/space/nsas/elan-vpls/service-management/services/{service-id}/delete-sites
25.7.26 PM Stats collection
Operations that can be performed as part of PM Stats are:
24.7.26.1 Start PM Collection
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/operation
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/operation
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/loss/operation
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/operation
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/operation
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/loss/operation
24.7.26.2 Stop PM Collection
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/operation
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/operation
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/loss/operation
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 458
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/operation
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/operation
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/loss/operation
24.7.26.3 Get PM Stats
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/stats?maxResult=4 &deviceA=1234&deviceZ=3452
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/stats ?maxResult=4 &deviceA=1234&deviceZ=3452
api/space/nsas/eline-ptp/service-management/services/{service-
id}/performanceMonitoring/loss/stats?maxResult=4 &deviceA=1234&deviceZ=3452
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/stats?maxResult=4 &deviceA=1234&deviceZ=3452
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/stats?maxResult=4 &deviceA=1234&deviceZ=3452
api/space/nsas/elan-vpls/service-management/services/{service-
id}/performanceMonitoring/loss/stats?maxResult=4 &deviceA=1234&deviceZ=3452
The query parameters are optional
24.7.26.4 Get PM Status
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/status?devicA=1234&deviceZ=3452
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/status? deviceA=1234&deviceZ=3452
api/space/nsas/eline-ptp/service-management/services/{service-id}/performanceMonitoring/loss/status?
deviceA=1234&deviceZ=3452
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/twoway-
delay/status? deviceA=1234&deviceZ=3452
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/oneway-
delay/status? deviceA=1234&deviceZ=3452
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 459
api/space/nsas/elan-vpls/service-management/services/{service-id}/performanceMonitoring/loss/status?
deviceA=1234&deviceZ=3452
Note: The query parameters are optional
25.7.27 URL resources similar to JUNOS Space API
� If we try to find/list all the resources under : /api/space/nsas/ - they would be listed as:
<space>
<services>
<service rel="cfm-service-management" href= "/api/space/nsas/cfm-profiles/service-management" />
<service rel="customer-management" href= "/api/space/nsas/customer-management" />
<service rel="pe-devices" href= "/api/space/nsas/device-roles/pe-devices" />
<service rel="vpls-service-management" href= "/api/space/nsas/elan-vpls/service-management" />
<service rel="eline-service-management" href= "/api/space/nsas/eline-ptp/service-management" />
<service rel="l3vpn-service-management" href= "/api/space/nsas/l3vpn/service-management" />
<service rel="mhg-management" href= "/api/space/nsas/prestage-devices/mhg-management" />
<service rel="resource-utilization" href= "/api/space/nsas/resource-utilization" />
</services>
</space>
This behavior is modeled similar to Junos Space API relative resources.
25.7.28 Notification for Add/Modify/Delete operations of Service Order/Service
Now we can receive notifications for API triggered CRUD operations. These notifications may be created
for Service provisioning like Creating/Modifying/Deleting any given resource(s).
The steps for receiving database change notification are already available in JUNOS Space REST API
Documentation.
We only need to use/register the below mentioned topics to receive notifications related to P2P, L3VPN
and VPLS Services.
� "target like 'api/space/nsas/eline-ptp/service-management%'";
� "target like 'api/space/nsas/l3vpn/service-management%'";
API Reference Guide - NetworkAppsAPI release 12.3
© Juniper Networks, Inc. 460
� "target like 'api/space/nsas/elan-vpls/service-management%'";
25.7.29 Clone and Bulk Support in 12.3
Supported operations for Clone Service:
� Clone Service (P2P-LDP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/services/clone/<serviceId>
� Clone Service (P2P-BGP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/services/clone/<serviceId>
BULK operations Supported in 12.3R1
Operations supported for Bulk Service Orders:
� Bulk – Create Service Order (P2P-LDP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/service-orders
� Bulk – Create Service Order (P2P-BGP) (METHOD: POST)
api/space/nsas/eline-ptp/service-management/service-orders
API Reference Guide - NetworkAppsAPI release 12.3