Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    PTP Service Orders Management RESTful Web Services

    The following operations can be performed using the Connectivity Services Director Precision Time Protocol (PTP) Service Orders Management RESTful Web Services.

    Get a PTP Service Order By Service Order ID

    This request is used to retrieve the details of a particular PTP service order, based on the service order ID.

    URI

    /api/space/nsas/timing-ptp/service-management/service-orders/
    <service-order-id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Collects the details of a specific PTP service order.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>PTP01</Name>
    				<Identity>32816</Identity>
    				<State>Completed</State>
    				<CreatedDate>2013-05-21T16:43:50.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-21T16:47:26.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<PTPDomain>1</PTPDomain>
    			<Action>Provisioning</Action>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/7"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/7"
    						key="7">
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>7</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/139"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/139"
    						key="139">
    						<DeviceName>junos-space1</DeviceName>
    						<DeviceID>139</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/2.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/3"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/3"
    						key="3">
    						<DeviceName>access-bt750</DeviceName>
    						<DeviceID>3</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>7</DeviceID>
    								<InterfaceName>eth0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/139"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/139"
    						key="139">
    						<DeviceName>junos-space1</DeviceName>
    						<DeviceID>139</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/3.1</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>7</DeviceID>
    								<InterfaceName>eth0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<TwoStep>true</TwoStep>
    				<SyncRate>64 packets/sec</SyncRate>
    				<AnnounceRate>1 packet/8 sec</AnnounceRate>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<ContinousARP>true</ContinousARP>
    				<SignallingConfiguration>
    					<Signalling>true</Signalling>
    					<DelayRateMin>1 packet/sec</DelayRateMin>
    					<DelayRateMax>64 packets/sec</DelayRateMax>
    					<AnnounceRateMin>1 packet/sec</AnnounceRateMin>
    					<AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
    					<SyncRateMin>1 packet/sec</SyncRateMin>
    					<SyncRateMax>64 packets/sec</SyncRateMax>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<IRIG-B>B000</IRIG-B>
    					<Frequency>5 MHZ</Frequency>
    					<DelayCompensation>0</DelayCompensation>
    					<SyncSource>
    						<Value>PTP</Value>
    						<Value>Internal</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>true</Signalling>
    					<GrantDuration>300</GrantDuration>
    					<AnnounceRate>1 packet/sec</AnnounceRate>
    					<SyncRate>64 packets/sec</SyncRate>
    				</SignallingConfiguration>
    				<PTPESMCMapping>
    					<EnableClockClass>true</EnableClockClass>
    					<NetworkOption>Option-1</NetworkOption>
    					<QualityLevel>PRC</QualityLevel>
    					<ClockClass>80</ClockClass>
    				</PTPESMCMapping>
    				<TimingConfiguration>
    					<PPx>PPS</PPx>
    					<Frequency>5 MHZ</Frequency>
    					<OffsetCompensation>0</OffsetCompensation>
    					<TimeOfDay>
    						<BaudRate>1200</BaudRate>
    						<Format>Calendar</Format>
    					</TimeOfDay>
    					<SyncSource>
    						<Value>PTP </Value>
    						<Value>Internal</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    				<ClockType>Ordinary Clock</ClockType>
    				<UnicastMode>Yes</UnicastMode>
    				<Transport>IPv4</Transport>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceOrderParameter>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="32768"
    						href="/api/space/nsas/timing-ptp/service-management/service-definitions/32768"
    						uri="/api/space/nsas/timing-ptp/service-management/service-definitions/32768" />
    				</ServiceDefinition>
    				<Service key="32825"
    					href="/api/space/nsas/timing-ptp/service-management/services/32825"
    					uri="/api/space/nsas/timing-ptp/service-management/services/32825" />
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
    				

    Get All PTP Service Orders

    This request is used to retrieve all the configured PTP service orders.

    URI

    /api/space/nsas/timing-ptp/service-management/
    service-orders/

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-orders+xml

    Produces

    Collects all the configured PTP service orders.

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder
    			href="/api/space/nsas/sync-e/service-management/service-orders/163841"
    			uri="/api/space/nsas/sync-e/service-management/service-orders/163841"
    			key="163841">
    			<Common>
    				<Name>TestSyncEOS</Name>
    				<Identity>163841</Identity>
    				<State>Completed</State>
    				<Comments>TestSyncEOS</Comments>
    				<CreatedDate>2013-05-15T18:24:43.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-15T18:24:59.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>SyncE</ServiceType>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="32782"
    						href="/api/space/nsas/sync-e/service-management/service-definitions/32782"
    						uri="/api/space/nsas/sync-e/service-management/service-definitions/32782">
    						<ServiceDefinitionName>TestSynce</ServiceDefinitionName>
    					</ServiceDefinitionID>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    		<ServiceOrder
    			href="/api/space/nsas/sync-e/service-management/service-orders/98318"
    			uri="/api/space/nsas/sync-e/service-management/service-orders/98318"
    			key="98318">
    			<Common>
    				<Name>sfddsfa</Name>
    				<Identity>98318</Identity>
    				<State>Completed</State>
    				<Comments>fdsds</Comments>
    				<CreatedDate>2013-05-10T14:31:47.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-10T14:31:53.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>SyncE</ServiceType>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="32782"
    						href="/api/space/nsas/sync-e/service-management/service-definitions/32782"
    						uri="/api/space/nsas/sync-e/service-management/service-definitions/32782">
    						<ServiceDefinitionName>TestSynce</ServiceDefinitionName>
    					</ServiceDefinitionID>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    		<ServiceOrder
    			href="/api/space/nsas/sync-e/service-management/service-orders/98305"
    			uri="/api/space/nsas/sync-e/service-management/service-orders/98305"
    			key="98305">
    			<Common>
    				<Name>SyncESO_modify_1368173940739</Name>
    				<Identity>98305</Identity>
    				<State>Completed</State>
    				<Comments>AThisjjfdsThis is for modification</Comments>
    				<CreatedDate>2013-05-10T13:50:38.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-10T13:50:47.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>SyncE</ServiceType>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="32782"
    						href="/api/space/nsas/sync-e/service-management/service-definitions/32782"
    						uri="/api/space/nsas/sync-e/service-management/service-definitions/32782">
    						<ServiceDefinitionName>TestSynce</ServiceDefinitionName>
    					</ServiceDefinitionID>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    		<ServiceOrder
    			href="/api/space/nsas/sync-e/service-management/service-orders/32797"
    			uri="/api/space/nsas/sync-e/service-management/service-orders/32797"
    			key="32797">
    			<Common>
    				<Name>SyncESO</Name>
    				<Identity>32797</Identity>
    				<State>Completed</State>
    				<Comments>SyncESO</Comments>
    				<CreatedDate>2013-05-07T15:22:38.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-07T15:23:01.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>SyncE</ServiceType>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="32782"
    						href="/api/space/nsas/sync-e/service-management/service-definitions/32782"
    						uri="/api/space/nsas/sync-e/service-management/service-definitions/32782">
    						<ServiceDefinitionName>TestSynce</ServiceDefinitionName>
    					</ServiceDefinitionID>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
    
    				

    Delete PTP Service Order

    This request is used to delete a PTP service order.

    URI

    api/space/nsas/timing-ptp/service-management/
    service-orders/<id>

    HTTP Method

    DELETE

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Deletes a PTP service order.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<Status>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>294923</Value>
    		</Identity>
    		<Code>200</Code>
    		<Message>Service order Deleted Successfully.</Message>
    	</Status>
    </Data>
    

    Create a PTP Service Order

    This request is used to create a PTP service order.

    URI

    /api/space/nsas/timing-ptp/service-management/
    service-orders/

    HTTP Method

    POST

    Content Type

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Creates a PTP service order.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <ServiceResource>
    	<ServiceOrder>
    	<Common>
    		<Name>P2P_SO_302</Name>
    	</Common>
    	<PTPDomain>2</PTPDomain>
    	<ServiceEndPointGroup>
    		<DeviceInfo>
    			<Timing>
    			<DeviceName>access1-hcl-bgm</DeviceName>
    			<DeviceID>16</DeviceID>
    			</Timing>
    		</DeviceInfo>
    		<ServiceEndPoint>
    			<InterfaceName>eth0</InterfaceName>
    			<ServiceEndpointConfiguration
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    			<DeviceType>Master</DeviceType>
    			<Priority1>132</Priority1>
    			<Priority2>132</Priority2>
    			</ServiceEndpointConfiguration>
    		</ServiceEndPoint>
    	</ServiceEndPointGroup>
    	<ServiceEndPointGroup>
    		<DeviceInfo>
    			<Timing>
    			<DeviceName>junos-space5</DeviceName>
    			<DeviceID>25</DeviceID>
    			</Timing>
    		</DeviceInfo>
    		<ServiceEndPoint>
    			<InterfaceName>ge-0/1/2.0</InterfaceName>
    			<ServiceEndpointConfiguration
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    			<DeviceType>Slave</DeviceType>
    			<AcceptableMasters>
    				<DeviceInfo>
    				<DeviceID>16</DeviceID>
    				<InterfaceName>eth0</InterfaceName>
    				</DeviceInfo>
    			</AcceptableMasters>
    			</ServiceEndpointConfiguration>
    		</ServiceEndPoint>
    	</ServiceEndPointGroup>
    	<TimingGrandMasterConfiguration>
    		<Profile>Telecom Profile</Profile>
    		<TwoStep>false</TwoStep>
    		<SyncRate>4 packets/sec</SyncRate>
    		<AnnounceRate>1 packet/2 sec</AnnounceRate>
    		<DelayRequestRate>2 packets/sec</DelayRequestRate>
    		<AnnounceReceiptTimeout>3</AnnounceReceiptTimeout>
    		<ContinousARP>false</ContinousARP>
    		<SignallingConfiguration>
    			<Signalling>true</Signalling>
    			<DelayRateMin>2 packets/sec</DelayRateMin>
    			<AnnounceRateMin>1 packet/2 sec</AnnounceRateMin>
    			<SyncRateMin>2 packets/sec</SyncRateMin>
    			<DelayRateMax>8 packets/sec</DelayRateMax>
    			<AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
    			<SyncRateMax>8 packets/sec</SyncRateMax>
    		</SignallingConfiguration>
    		<TimingConfiguration>
    			<IRIG-B>B001</IRIG-B>
    			<Frequency>5 MHz</Frequency>
    			<DelayCompensation>1</DelayCompensation>
    			<SyncSource>
    				<Value>PTP</Value>
    				<Value>Internal</Value>
    			</SyncSource>
    		</TimingConfiguration>
    	</TimingGrandMasterConfiguration>
    	<TimingGrandSlaveConfiguration>
    		<Profile>Telecom Profile</Profile>
    		<DelayRequestRate>2 packets/sec</DelayRequestRate>
    		<AnnounceReceiptTimeout>3</AnnounceReceiptTimeout>
    		<SignallingConfiguration>
    			<Signalling>true</Signalling>
    			<GrantDuration>400</GrantDuration>
    			<AnnounceRate>1 packet/2 sec</AnnounceRate>
    			<SyncRate>4 packets/sec</SyncRate>
    		</SignallingConfiguration>
    		<TimingConfiguration>
    			<PPx>PPS</PPx>
    			<Frequency>1 MHz</Frequency>
    			<OffsetCompensation>1</OffsetCompensation>
    			<SyncSource>
    				<Value>PTP</Value>
    				<Value>Internal</Value>
    			</SyncSource>
    			<TimeOfDay>
    				<BaudRate>2400</BaudRate>
    				<Format>Calendar</Format>
    			</TimeOfDay>
    		</TimingConfiguration>
    	</TimingGrandSlaveConfiguration>
    
    	<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="TimingPTPConfigParameterOrderType">
    		<ClockType>Ordinary Clock</ClockType>
    		<Transport>IPv4</Transport>
    		<IPV4DSCP>56</IPV4DSCP>
    	</ServiceOrderParameter>
    	<Reference>
    		<ServiceDefinition>
    			<ServiceDefinitionID key="32768" />
    		</ServiceDefinition>
    	</Reference>
    	</ServiceOrder>
    </ServiceResource>
    <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:type="ServiceOrderCustomActionType">
    	<Action>Save</Action>
    	<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
    </CustomAction>
    </Data>
    
    	

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <ServiceResource>
    	<ServiceOrder>
    	<Common>
    		<Name>P2P_SO_305</Name>
    	</Common>
    	<PTPDomain>254</PTPDomain>
    	<ServiceEndPointGroup>
    		<DeviceInfo>
    			<Timing>
    			<DeviceName>access1-hcl-bgm</DeviceName>
    			<DeviceID>16</DeviceID>
    			</Timing>
    		</DeviceInfo>
    		<ServiceEndPoint>
    			<InterfaceName>eth0</InterfaceName>
    			<ServiceEndpointConfiguration
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    			<DeviceType>Master</DeviceType>
    			</ServiceEndpointConfiguration>
    		</ServiceEndPoint>
    	</ServiceEndPointGroup>
    	<ServiceEndPointGroup>
    		<DeviceInfo>
    			<Timing>
    			<DeviceName>junos-space5</DeviceName>
    			<DeviceID>25</DeviceID>
    			</Timing>
    		</DeviceInfo>
    		<ServiceEndPoint>
    			<InterfaceName>ge-0/1/2.0</InterfaceName>
    			<ServiceEndpointConfiguration
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    				<DeviceType>Slave</DeviceType>
    				<AcceptableMasters>
    				<DeviceInfo>
    					<DeviceID>16</DeviceID>
    					<InterfaceName>eth0</InterfaceName>
    				</DeviceInfo>
    				</AcceptableMasters>
    			</ServiceEndpointConfiguration>
    		</ServiceEndPoint>
    	</ServiceEndPointGroup>
    	<Reference>
    		<ServiceDefinition>
    			<ServiceDefinitionID key="32768" />
    		</ServiceDefinition>
    	</Reference>
    	</ServiceOrder>
    </ServiceResource>
    <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:type="ServiceOrderCustomActionType">
    	<Action>Save</Action>
    	<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
    </CustomAction>
    </Data>
    	

    Get a PTP Service Order with Boundary Clock By Service Order ID

    This request is used to retrieve the details of a particular PTP service order, based on the service order ID.

    URI

    /api/space/nsas/timing-ptp/service-management/service-orders/
    <service-order-id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Collects the details of a specific PTP service order.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>TestAPI</Name>
    				<Identity>1034</Identity>
    				<State>Validated</State>
    				<Comments>Test for API</Comments>
    				<CreatedDate>2014-04-15T16:24:50.000+05:30</CreatedDate>
    				<LastUpdatedDate>2014-04-15T16:24:50.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<PTPDomain>1</PTPDomain>
    			<Action>Provisioning</Action>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						key="33422">
    						<DeviceName>junos-space2</DeviceName>
    						<DeviceID>33422</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/2.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Boundary</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    						key="33623">
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>33623</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth1</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						key="33422">
    						<DeviceName>junos-space2</DeviceName>
    						<DeviceID>33422</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/1.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						key="33287">
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>33287</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/0.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<TwoStep>false</TwoStep>
    				<SyncRate>64 packets/sec</SyncRate>
    				<AnnounceRate>1 packet/8 sec</AnnounceRate>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<ContinousARP>false</ContinousARP>
    				<SignallingConfiguration>
    					<Signalling>true</Signalling>
    					<DelayRateMin>1 packet/sec</DelayRateMin>
    					<DelayRateMax>64 packets/sec</DelayRateMax>
    					<AnnounceRateMin>1 packet/sec</AnnounceRateMin>
    					<AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
    					<SyncRateMin>1 packet/sec</SyncRateMin>
    					<SyncRateMax>64 packets/sec</SyncRateMax>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<IRIG-B>B000</IRIG-B>
    					<Frequency>1 MHz</Frequency>
    					<DelayCompensation>0</DelayCompensation>
    					<SyncSource>
    						<Value>GPS</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<GrantDuration>300</GrantDuration>
    					<AnnounceRate>1 packet/sec</AnnounceRate>
    					<SyncRate>64 packets/sec</SyncRate>
    				</SignallingConfiguration>
    				<PTPESMCMapping>
    					<EnableClockClass>true</EnableClockClass>
    					<NetworkOption>Option-1</NetworkOption>
    					<QualityLevel>PRC</QualityLevel>
    					<ClockClass>80</ClockClass>
    				</PTPESMCMapping>
    				<TimingConfiguration>
    					<PPx>PPS</PPx>
    					<Frequency>1 MHz</Frequency>
    					<OffsetCompensation>0</OffsetCompensation>
    					<TimeOfDay>
    						<BaudRate>1200</BaudRate>
    						<Format>Calendar</Format>
    					</TimeOfDay>
    					<SyncSource>
    						<Value>PTP</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    				<Topology>Boundary</Topology>
    				<TransportMode>Unicast</TransportMode>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceOrderParameter>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="1"
    						href="/api/space/nsas/timing-ptp/service-management/service-definitions/1"
    						uri="/api/space/nsas/timing-ptp/service-management/service-definitions/1" />
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
    
    				

    Create a PTP Service Order with Boundary Clock

    This request is used to create a PTP service order.

    URI

    /api/space/nsas/timing-ptp/service-management/service-orders/

    HTTP Method

    POST

    Content Type

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Creates a PTP service order.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>TestAPI</Name>
    				<Comments>Test for API</Comments>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<PTPDomain>1</PTPDomain>
    			<Action>Provisioning</Action>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						key="33422">
    						<DeviceName>junos-space2</DeviceName>
    						<DeviceID>33422</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/2.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Boundary</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    						key="33623">
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>33623</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth1</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33422"
    						key="33422">
    						<DeviceName>junos-space2</DeviceName>
    						<DeviceID>33422</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/1.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						key="33287">
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>33287</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/0.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<TwoStep>false</TwoStep>
    				<SyncRate>64 packets/sec</SyncRate>
    				<AnnounceRate>1 packet/8 sec</AnnounceRate>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<ContinousARP>false</ContinousARP>
    				<SignallingConfiguration>
    					<Signalling>true</Signalling>
    					<DelayRateMin>1 packet/sec</DelayRateMin>
    					<DelayRateMax>64 packets/sec</DelayRateMax>
    					<AnnounceRateMin>1 packet/sec</AnnounceRateMin>
    					<AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
    					<SyncRateMin>1 packet/sec</SyncRateMin>
    					<SyncRateMax>64 packets/sec</SyncRateMax>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<IRIG-B>B000</IRIG-B>
    					<Frequency>1 MHz</Frequency>
    					<DelayCompensation>0</DelayCompensation>
    					<SyncSource>
    						<Value>GPS</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<GrantDuration>300</GrantDuration>
    					<AnnounceRate>1 packet/sec</AnnounceRate>
    					<SyncRate>64 packets/sec</SyncRate>
    				</SignallingConfiguration>
    				<PTPESMCMapping>
    					<EnableClockClass>true</EnableClockClass>
    					<NetworkOption>Option-1</NetworkOption>
    					<QualityLevel>PRC</QualityLevel>
    					<ClockClass>80</ClockClass>
    				</PTPESMCMapping>
    				<TimingConfiguration>
    					<PPx>PPS</PPx>
    					<Frequency>1 MHz</Frequency>
    					<OffsetCompensation>0</OffsetCompensation>
    					<TimeOfDay>
    						<BaudRate>1200</BaudRate>
    						<Format>Calendar</Format>
    					</TimeOfDay>
    					<SyncSource>
    						<Value>PTP</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    				<Topology>Boundary</Topology>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceOrderParameter>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="1"
    						href="/api/space/nsas/timing-ptp/service-management/service-definitions/1"
    						uri="/api/space/nsas/timing-ptp/service-management/service-definitions/1" />
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="ServiceOrderCustomActionType">
    		<Action>SaveAndDeployNow</Action>
    	</CustomAction>
    </Data>
    
    				

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Status>
        <Identity>
        <Type>ServiceOrder</Type>
        <Value>393698</Value>
        </Identity>
        <Job>
        <ID>131165</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>
    
    
    

    Get a PTP Service Order with Hybrid Mode By Service Order ID

    This request is used to retrieve the details of a particular PTP service order, based on the service order ID.

    URI

    /api/space/nsas/timing-ptp/service-management/service-orders/
    <service-order-id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Collects the details of a specific PTP service order.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>Test_Hybrid</Name>
    				<Identity>229427</Identity>
    				<State>Requested</State>
    				<CreatedDate>2014-04-26T14:34:08.000+05:30</CreatedDate>
    				<LastUpdatedDate>2014-04-26T14:34:08.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<PTPDomain>1</PTPDomain>
    			<Action>Provisioning</Action>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						key="33287">
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>33287</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/1.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Boundary</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    						key="33623">
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>33623</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth1</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33472"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33472"
    						key="33472">
    						<DeviceName>embassy</DeviceName>
    						<DeviceID>33472</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-1/0/0.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<Mode>Hybrid</Mode>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33558"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33558"
    						key="33558">
    						<DeviceName>junos-mx480-space</DeviceName>
    						<DeviceID>33558</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-2/0/2.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<Mode>Hybrid</Mode>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    						key="33287">
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>33287</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/3/6.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<Mode>Hybrid</Mode>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<TwoStep>false</TwoStep>
    				<SyncRate>64 packets/sec</SyncRate>
    				<AnnounceRate>1 packet/8 sec</AnnounceRate>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<ContinousARP>false</ContinousARP>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<DelayRateMin>1 packet/sec</DelayRateMin>
    					<DelayRateMax>64 packets/sec</DelayRateMax>
    					<AnnounceRateMin>1 packet/sec</AnnounceRateMin>
    					<AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
    					<SyncRateMin>1 packet/sec</SyncRateMin>
    					<SyncRateMax>64 packets/sec</SyncRateMax>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<IRIG-B>B000</IRIG-B>
    					<Frequency>1 MHz</Frequency>
    					<DelayCompensation>0</DelayCompensation>
    					<SyncSource>
    						<Value>GPS</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<GrantDuration>300</GrantDuration>
    					<AnnounceRate>1 packet/sec</AnnounceRate>
    					<SyncRate>64 packets/sec</SyncRate>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<PPx>PPS</PPx>
    					<Frequency>1 MHz</Frequency>
    					<OffsetCompensation>0</OffsetCompensation>
    					<TimeOfDay>
    						<BaudRate>1200</BaudRate>
    						<Format>Calendar</Format>
    					</TimeOfDay>
    					<SyncSource>
    						<Value>PTP</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    				<Topology>Boundary</Topology>
    				<TransportMode>Unicast</TransportMode>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceOrderParameter>
    			<FrequencySettings>
    				<NetworkOption>Option-1</NetworkOption>
    				<ClockMode>Auto</ClockMode>
    				<EnableQualityMode>true</EnableQualityMode>
    				<SourceSelectionMode>Configured Quality</SourceSelectionMode>
    				<HoldIntervalSettings>
    					<ConfigChange>15</ConfigChange>
    					<Restart>120</Restart>
    					<SwitchOver>30</SwitchOver>
    					<SwitchOverMode>Revertive</SwitchOverMode>
    				</HoldIntervalSettings>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing
    							href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33558"
    							uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33558"
    							key="33558">
    							<DeviceName>junos-mx480-space</DeviceName>
    							<DeviceID>33558</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-2/0/9</InterfaceName>
    						<ESMCTransmit>ge-2/0/2,ge-2/0/3</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<MinimumQualityLevel>PRC</MinimumQualityLevel>
    							<Override>Default</Override>
    							<Priority>1</Priority>
    							<WaitToRestore>5</WaitToRestore>
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing
    										href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    										uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    										key="33623">
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing
    							href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33472"
    							uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33472"
    							key="33472">
    							<DeviceName>embassy</DeviceName>
    							<DeviceID>33472</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-1/0/7</InterfaceName>
    						<ESMCTransmit>ge-1/0/1</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<MinimumQualityLevel>SEC</MinimumQualityLevel>
    							<Override>Force switch</Override>
    							<Priority>1</Priority>
    							<WaitToRestore>5</WaitToRestore>
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing
    										href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    										uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    										key="33623">
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing
    							href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    							uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33287"
    							key="33287">
    							<DeviceName>kochin</DeviceName>
    							<DeviceID>33287</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/0/7</InterfaceName>
    						<ESMCTransmit>ge-0/0/4,ge-0/0/3</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<MinimumQualityLevel>SSU-B</MinimumQualityLevel>
    							<Override>Lockout</Override>
    							<Priority>3</Priority>
    							<WaitToRestore>6</WaitToRestore>
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing
    										href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    										uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33623"
    										key="33623">
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    				<SynceServiceDefinition>
    					<ServiceDefinitionID key="196608"
    						href="/api/space/nsas/sync-e/service-management/service-definitions/196608"
    						uri="/api/space/nsas/sync-e/service-management/service-definitions/196608" />
    				</SynceServiceDefinition>
    			</FrequencySettings>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="163868"
    						href="/api/space/nsas/timing-ptp/service-management/service-definitions/163868"
    						uri="/api/space/nsas/timing-ptp/service-management/service-definitions/163868" />
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
    
    				

    Create a PTP Service Order with Hybrid Mode

    This request is used to create a PTP service order.

    URI

    /api/space/nsas/timing-ptp/service-management/
    service-orders/

    HTTP Method

    POST

    Content Type

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Creates a PTP service order.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>Test_Hybrid</Name>
    			</Common>
    			<PTPDomain>1</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>33287</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/1.0</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Boundary</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>33623</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth1</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>embassy</DeviceName>
    						<DeviceID>33472</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-1/0/0.0</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>junos-mx480-space</DeviceName>
    						<DeviceID>33558</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-2/0/2.0</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>33287</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/3/6.0</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<TwoStep>false</TwoStep>
    				<SyncRate>64 packets/sec</SyncRate>
    				<AnnounceRate>1 packet/8 sec</AnnounceRate>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<ContinousARP>false</ContinousARP>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<DelayRateMin>1 packet/sec</DelayRateMin>
    					<DelayRateMax>64 packets/sec</DelayRateMax>
    					<AnnounceRateMin>1 packet/sec</AnnounceRateMin>
    					<AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
    					<SyncRateMin>1 packet/sec</SyncRateMin>
    					<SyncRateMax>64 packets/sec</SyncRateMax>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<IRIG-B>B000</IRIG-B>
    					<Frequency>1 MHz</Frequency>
    					<DelayCompensation>0</DelayCompensation>
    					<SyncSource>
    						<Value>GPS</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<GrantDuration>300</GrantDuration>
    					<AnnounceRate>1 packet/sec</AnnounceRate>
    					<SyncRate>64 packets/sec</SyncRate>
    				</SignallingConfiguration>
    				<TimingConfiguration>
    					<PPx>PPS</PPx>
    					<Frequency>1 MHz</Frequency>
    					<OffsetCompensation>0</OffsetCompensation>
    					<TimeOfDay>
    						<BaudRate>1200</BaudRate>
    						<Format>Calendar</Format>
    					</TimeOfDay>
    					<SyncSource>
    						<Value>PTP</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPConfigParameterOrderType">
    				<Topology>Boundary</Topology>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceOrderParameter>
    			<FrequencySettings>
    				<NetworkOption>Option-1</NetworkOption>
    				<EnableQualityMode>true</EnableQualityMode>
    				<SourceSelectionMode>Configured Quality</SourceSelectionMode>
    				<HoldIntervalSettings>
    					<ConfigChange>15</ConfigChange>
    					<Restart>120</Restart>
    					<SwitchOver>30</SwitchOver>
    					<SwitchOverMode>Revertive</SwitchOverMode>
    				</HoldIntervalSettings>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>junos-mx480-space</DeviceName>
    							<DeviceID>33558</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-2/0/9</InterfaceName>
    						<ESMCTransmit>ge-2/0/2,ge-2/0/3</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<MinimumQualityLevel>PRC</MinimumQualityLevel>
    							<Override>Default</Override>
    							<Priority>1</Priority>
    							<WaitToRestore>5</WaitToRestore>
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>embassy</DeviceName>
    							<DeviceID>33472</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-1/0/7</InterfaceName>
    						<ESMCTransmit>ge-1/0/1</ESMCTransmit>
    						<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<MinimumQualityLevel>SEC</MinimumQualityLevel>
    							<Override>Force switch</Override>
    							<Priority>1</Priority>
    							<WaitToRestore>5</WaitToRestore>
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>kochin</DeviceName>
    							<DeviceID>33287</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/0/7</InterfaceName>
    						<ESMCTransmit>ge-0/0/4,ge-0/0/3</ESMCTransmit>
    						<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<MinimumQualityLevel>SSU-B</MinimumQualityLevel>
    							<Override>Lockout</Override>
    							<Priority>3</Priority>
    							<WaitToRestore>6</WaitToRestore>
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    				<SynceServiceDefinition>
    					<ServiceDefinitionID key="196608"/>
    				</SynceServiceDefinition>
    			</FrequencySettings>
    			<Reference>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="163868"/>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="ServiceOrderCustomActionType">
    		<Action>SaveAndDeployNow</Action>
    	</CustomAction>
    </Data>
    
    
    				

    Output

    Sample XML Output

    <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 Recreated Successfully and Deployment is in
    			Progress. Please check the status using the JOB ID.</Message>
    	</Status>
    </Data>
    
    

    Get a PTP over Ethernet Service Order By Service Order ID

    This request is used to retrieve the details of a particular PTPoE service order, based on the service order ID.

    URI

    /api/space/nsas/timing-ptp/service-management/service-orders/
    <service-order-id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Collects the details of a specific PTPoE service order.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
      <ServiceResource>
        <ServiceOrder>
          <Common>
            <Name>Scenario6SothroughAPI</Name>
            <Identity>98838</Identity>
            <State>Invalid</State>
            <CreatedDate>2014-07-08T19:55:30.000+05:30</CreatedDate>
            <LastUpdatedDate>2014-07-08T19:55:30.000+05:30</LastUpdatedDate>
            <CreatedBy>super</CreatedBy>
          </Common>
          <ServiceType>PTP</ServiceType>
          <PTPDomain>1</PTPDomain>
          <Action>Provisioning</Action>
          <ServiceEndPointGroup>
            <DeviceInfo>
              <Timing key="153" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/153" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/153">
                <DeviceName>fortius-f2100-a</DeviceName>
                <DeviceID>153</DeviceID>
              </Timing>
            </DeviceInfo>
            <ServiceEndPoint>
              <InterfaceName>ge-1/0/2.0</InterfaceName>
              <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
                <DeviceType>Boundary</DeviceType>
                <Priority1>128</Priority1>
                <Priority2>128</Priority2>
              </ServiceEndpointConfiguration>
            </ServiceEndPoint>
          </ServiceEndPointGroup>
          <ServiceEndPointGroup>
            <DeviceInfo>
              <Timing key="153" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/153" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/153">
                <DeviceName>fortius-f2100-a</DeviceName>
                <DeviceID>153</DeviceID>
              </Timing>
            </DeviceInfo>
            <ServiceEndPoint>
              <InterfaceName>ge-1/2/0.0</InterfaceName>
              <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
                <DeviceType>Slave</DeviceType>
                <Mode>Hybrid</Mode>
              </ServiceEndpointConfiguration>
            </ServiceEndPoint>
          </ServiceEndPointGroup>
          <TimingGrandMasterConfiguration>
            <Profile>Default</Profile>
            <TwoStep>false</TwoStep>
            <SyncRate>64 packets/sec</SyncRate>
            <AnnounceRate>1 packet/8 sec</AnnounceRate>
            <DelayRequestRate>64 packets/sec</DelayRequestRate>
            <AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
            <ContinousARP>false</ContinousARP>
            <SignallingConfiguration>
              <Signalling>false</Signalling>
              <DelayRateMin>1 packet/sec</DelayRateMin>
              <DelayRateMax>64 packets/sec</DelayRateMax>
              <AnnounceRateMin>1 packet/sec</AnnounceRateMin>
              <AnnounceRateMax>1 packet/8 sec</AnnounceRateMax>
              <SyncRateMin>1 packet/sec</SyncRateMin>
              <SyncRateMax>64 packets/sec</SyncRateMax>
            </SignallingConfiguration>
            <TimingConfiguration>
              <IRIG-B>B000</IRIG-B>
              <Frequency>1 MHz</Frequency>
              <DelayCompensation>0</DelayCompensation>
              <SyncSource>
                <Value>GPS</Value>
              </SyncSource>
            </TimingConfiguration>
          </TimingGrandMasterConfiguration>
          <TimingGrandSlaveConfiguration>
            <Profile>Default</Profile>
            <DelayRequestRate>64 packets/sec</DelayRequestRate>
            <AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
            <SignallingConfiguration>
              <Signalling>false</Signalling>
              <GrantDuration>300</GrantDuration>
              <AnnounceRate>1 packet/sec</AnnounceRate>
              <SyncRate>64 packets/sec</SyncRate>
            </SignallingConfiguration>
            <PTPESMCMapping>
              <EnableClockClass>false</EnableClockClass>
              <NetworkOption>Option-1</NetworkOption>
              <QualityLevel>PRC</QualityLevel>
              <ClockClass>0</ClockClass>
            </PTPESMCMapping>
            <TimingConfiguration>
              <PPx>PPS</PPx>
              <Frequency>1 MHz</Frequency>
              <OffsetCompensation>0</OffsetCompensation>
              <TimeOfDay>
                <BaudRate>1200</BaudRate>
                <Format>Calendar</Format>
              </TimeOfDay>
              <SyncSource>
                <Value>PTP</Value>
              </SyncSource>
            </TimingConfiguration>
          </TimingGrandSlaveConfiguration>
          <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPConfigParameterOrderType">
            <Topology>Boundary</Topology>
            <TransportMode>Multicast</TransportMode>
            <TransportEncapsulation>IEEE-802.3-Link Local</TransportEncapsulation>
            <IPV4DSCP>56</IPV4DSCP>
            <EnablePTPResiliency>false</EnablePTPResiliency>
          </ServiceOrderParameter>
          <FrequencySettings>
            <NetworkOption>Option-1</NetworkOption>
            <ClockMode>Auto</ClockMode>
            <EnableQualityMode>false</EnableQualityMode>
            <SourceSelectionMode>Configured Quality</SourceSelectionMode>
            <HoldIntervalSettings>
              <ConfigChange>15</ConfigChange>
              <Restart>120</Restart>
              <SwitchOver>30</SwitchOver>
              <SwitchOverMode>Revertive</SwitchOverMode>
            </HoldIntervalSettings>
            <ServiceEndPointGroup>
              <DeviceInfo>
                <Timing key="153" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/153" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/153">
                  <DeviceName>fortius-f2100-a</DeviceName>
                  <DeviceID>153</DeviceID>
                </Timing>
              </DeviceInfo>
              <ServiceEndPoint>
                <InterfaceName>ge-1/0/2</InterfaceName>
                <ESMCTransmit>ge-1/0/1</ESMCTransmit>
                <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
                  <MinimumQualityLevel>PRC</MinimumQualityLevel>
                  <Override>Default</Override>
                  <Priority>1</Priority>
                  <WaitToRestore>5</WaitToRestore>
                </ServiceEndpointConfiguration>
              </ServiceEndPoint>
            </ServiceEndPointGroup>
            <SynceServiceDefinition>
              <ServiceDefinitionID uri="/api/space/nsas/sync-e/service-management/service-definitions/163840" href="/api/space/nsas/sync-e/service-management/service-definitions/163840" key="163840"/>
            </SynceServiceDefinition>
          </FrequencySettings>
          <Reference>
            <ServiceDefinition>
              <ServiceDefinitionID uri="/api/space/nsas/timing-ptp/service-management/service-definitions/98774" href="/api/space/nsas/timing-ptp/service-management/service-definitions/98774" key="98774"/>
            </ServiceDefinition>
          </Reference>
        </ServiceOrder>
      </ServiceResource>
    </Data>
    
    
    				

    Create a PTP over Ethernet Service Order

    This request is used to create a PTPoE service order.

    URI

    /api/space/nsas/timing-ptp/service-management/
    service-orders/

    HTTP Method

    POST

    Content Type

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Produces

    Creates a PTPoE service order.

    Input With Hybrid enabled

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceOrder>
        <Common>
        <Name>Scenario6SothroughAPI</Name>
        </Common>
        <ServiceType>PTP</ServiceType>
        <PTPDomain>1</PTPDomain>
        <Action>Provisioning</Action>
        <ServiceEndPointGroup>
        <DeviceInfo>
        <Timing key="153" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/153" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/153">
        <DeviceName>fortius-f2100-a</DeviceName>
        <DeviceID>153</DeviceID>
        </Timing>
        </DeviceInfo>
        <ServiceEndPoint>
        <InterfaceName>ge-1/0/2.0</InterfaceName>
        <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
        <DeviceType>Boundary</DeviceType>
        
        </ServiceEndpointConfiguration>
        </ServiceEndPoint>
        </ServiceEndPointGroup>
        <ServiceEndPointGroup>
        <DeviceInfo>
        <Timing key="153" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/153" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/153">
        <DeviceName>fortius-f2100-a</DeviceName>
        <DeviceID>153</DeviceID>
        </Timing>
        </DeviceInfo>
        <ServiceEndPoint>
        <InterfaceName>ge-1/2/0.0</InterfaceName>
        <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
        <DeviceType>Slave</DeviceType>
        <Mode>Hybrid</Mode>
        </ServiceEndpointConfiguration>
        </ServiceEndPoint>
        </ServiceEndPointGroup>
        <TimingGrandMasterConfiguration>
       
        <SignallingConfiguration>
       
        </SignallingConfiguration>
        <TimingConfiguration>
       
        <SyncSource>
        <Value>GPS</Value>
        </SyncSource>
        </TimingConfiguration>
        </TimingGrandMasterConfiguration>
        <TimingGrandSlaveConfiguration>
        
        <SignallingConfiguration>
       
        
        </SignallingConfiguration>
        <PTPESMCMapping>
        
        </PTPESMCMapping>
        <TimingConfiguration>
       
        <TimeOfDay>
        
        </TimeOfDay>
        <SyncSource>
        <Value>PTP</Value>
        </SyncSource>
        </TimingConfiguration>
        </TimingGrandSlaveConfiguration>
        <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPConfigParameterOrderType">
      
        </ServiceOrderParameter>
        <FrequencySettings>
        <NetworkOption>Option-1</NetworkOption>
       
    
        <ServiceEndPointGroup>
        <DeviceInfo>
        <Timing key="153" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/153" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/153">
        <DeviceName>fortius-f2100-a</DeviceName>
        <DeviceID>153</DeviceID>
        </Timing>
        </DeviceInfo>
        <ServiceEndPoint>
        <InterfaceName>ge-1/0/2</InterfaceName>
        <ESMCTransmit>ge-1/0/1</ESMCTransmit>
        <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
      
        </ServiceEndpointConfiguration>
        </ServiceEndPoint>
        </ServiceEndPointGroup>
        <SynceServiceDefinition>
        <ServiceDefinitionID uri="/api/space/nsas/sync-e/service-management/service-definitions/163840" href="/api/space/nsas/sync-e/service-management/service-definitions/163840" key="163840"/>
        </SynceServiceDefinition>
        </FrequencySettings>
        <Reference>
        <ServiceDefinition>
        <ServiceDefinitionID uri="/api/space/nsas/timing-ptp/service-management/service-definitions/98774" href="/api/space/nsas/timing-ptp/service-management/service-definitions/98774" key="98774"/>
        </ServiceDefinition>
        </Reference>
        </ServiceOrder>
        </ServiceResource>
        </Data>
    
    
    				

    Input With (Topology: Boundary and Transport Mode :Multicast)

    Sample XML Input

    				<Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <ServiceResource>
    <ServiceOrder>
    <Common>
    <Name>SampleTest</Name>
    </Common>
    <ServiceType>PTP</ServiceType>
    <PTPDomain>1</PTPDomain>
    <Action>Provisioning</Action>
    <ServiceEndPointGroup>
    <DeviceInfo>
    <Timing key="187" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/187" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/187">
    <DeviceName>junos-space5</DeviceName>
    <DeviceID>187</DeviceID>
    </Timing>
    </DeviceInfo>
    <ServiceEndPoint>
    <InterfaceName>ge-0/1/1.0</InterfaceName>
    <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    <DeviceType>Boundary</DeviceType>
    
    </ServiceEndpointConfiguration>
    </ServiceEndPoint>
    </ServiceEndPointGroup>
    <ServiceEndPointGroup>
    <DeviceInfo>
    <Timing key="187" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/187" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/187">
    <DeviceName>junos-space5</DeviceName>
    <DeviceID>187</DeviceID>
    </Timing>
    </DeviceInfo>
    <ServiceEndPoint>
    <InterfaceName>ge-0/1/6.2</InterfaceName>
    <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    <DeviceType>Slave</DeviceType>
    </ServiceEndpointConfiguration>
    </ServiceEndPoint>
    </ServiceEndPointGroup>
    <TimingGrandMasterConfiguration>
    
    <SignallingConfiguration>
    
    </SignallingConfiguration>
    <TimingConfiguration>
    
    
    <SyncSource>
    <Value>GPS</Value>
    </SyncSource>
    </TimingConfiguration>
    </TimingGrandMasterConfiguration>
    <TimingGrandSlaveConfiguration>
    
    <SignallingConfiguration>
    
    </SignallingConfiguration>
    <PTPESMCMapping>
    
    </PTPESMCMapping>
    <TimingConfiguration>
    
    <TimeOfDay>
    
    </TimeOfDay>
    <SyncSource>
    <Value>PTP</Value>
    </SyncSource>
    </TimingConfiguration>
    </TimingGrandSlaveConfiguration>
    <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPConfigParameterOrderType">
    
    </ServiceOrderParameter>
    <Reference>
    <ServiceDefinition>
    <ServiceDefinitionID uri="/api/space/nsas/timing-ptp/service-management/service-definitions/98554" href="/api/space/nsas/timing-ptp/service-management/service-definitions/98554" key="98554"/>
    </ServiceDefinition>
    </Reference>
    </ServiceOrder>
    </ServiceResource>
    </Data>
    
    				

    Input With (Topology: Ordinary and Transport Mode :Multicast)

    Sample XML Input

    				    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceOrder>
        <Common>
        <Name>scenaruio4</Name>
        <Identity>98759</Identity>
        <State>Invalid</State>
        <CreatedDate>2014-07-08T19:33:57.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-07-08T19:33:57.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>PTP</ServiceType>
        <PTPDomain>1</PTPDomain>
        <Action>Provisioning</Action>
        <ServiceEndPointGroup>
        <DeviceInfo>
        <Timing key="119" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/119" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/119">
        <DeviceName>fortius-f2100-b</DeviceName>
        <DeviceID>119</DeviceID>
        </Timing>
        </DeviceInfo>
        <ServiceEndPoint>
        <InterfaceName>ge-1/0/0.0</InterfaceName>
        <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
        <DeviceType>Slave</DeviceType>
        </ServiceEndpointConfiguration>
        </ServiceEndPoint>
        </ServiceEndPointGroup>
        <TimingGrandMasterConfiguration>
        
        <SignallingConfiguration>
      
        </SignallingConfiguration>
        <TimingConfiguration>
        
        <SyncSource>
        <Value>PTP</Value>
        </SyncSource>
        </TimingConfiguration>
        </TimingGrandMasterConfiguration>
        <TimingGrandSlaveConfiguration>
     
        <SignallingConfiguration>
    
        </SignallingConfiguration>
        <PTPESMCMapping>
        
        </PTPESMCMapping>
        <TimingConfiguration>
      
        <TimeOfDay>
    
        </TimeOfDay>
        <SyncSource>
        <Value>PTP</Value>
        </SyncSource>
        </TimingConfiguration>
        </TimingGrandSlaveConfiguration>
        <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPConfigParameterOrderType">
       
        </ServiceOrderParameter>
        <Reference>
        <ServiceDefinition>
        <ServiceDefinitionID uri="/api/space/nsas/timing-ptp/service-management/service-definitions/98707" href="/api/space/nsas/timing-ptp/service-management/service-definitions/98707" key="98707"/>
        </ServiceDefinition>
        </Reference>
        </ServiceOrder>
        </ServiceResource>
        </Data>
    
    				

    Output

    Sample XML Output

    				
        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Status>
        <Identity>
        <Type>ServiceOrder</Type>
        <Value>1015920</Value>
        </Identity>
        <Job>
        <ID>295138</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>
    
    
    

    Validate a PTP Service Order

    This request is used to validate a previously created PTP service order.

    URI

    api/space/nsas/timing-ptp/service-management/service-orders/

    HTTP Method

    POST

    Content-Type

    application/vnd.net.juniper.space.service-management.
    service-order+xml

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order-status+xml

    The options must be specified in the Action Element inside OperationSpecificData. The various options are as follows:

    • DeployNow (Deploy an already created SO)

    • DeployLater (Deploy Later an already created SO)

    • ValidateNow (Validate now an already created SO)

    • ValidateLater (Validate later an already created SO)

    • PartialDeleteNow (Delete the partially created configuration now)

    • PartialDeleteLater (Delete the partially created configuration Later

    Produces

    Validates a previously created PTP service order.

    Input

    Sample XML Input

    <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>2013-05-30T19:07:18.000+05:30</ScheduledDateTime>
    	</CustomAction>
    </Data>
    
    

    View the Pending Configuration of a PTP Service Order

    This request is used to view the details of a PTP service order that are pending to be applied to a device.

    URI

    api/space/nsas/timing-ptp/service-management/service-orders/
    view-pendingorderconfiguration/<serviceOrder-id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    pendingorder-config+xml

    Produces

    Displays the configuration details of a service order pending to be applied to a device.

    Output

    Sample XML Output

    <Data
        xmlns="services.schema.networkapi.jmp.juniper.net">
        <PendingOrderConfiguration>
            <PendingOrderConfigDeviceEnd>
                <DeviceName>access-hcl-bgm</DeviceName>
                <Configuration>
                    <configuration
                        xmlns:a="http://xml.juniper.net/tcaos/3.0.0">
                        <ptp-protocol>
                            <ptp-common>
                                <domain>1</domain>
                                <priority1>128</priority1>
                                <priority2>128</priority2>
                                <iPv4DSCP>57</iPv4DSCP>
                                <unicastContinous>0</unicastContinous>
                                <profile>2</profile>
                                <logSyncInterval>6</logSyncInterval>
                                <announceInterval>3</announceInterval>
                                <logDelayReqInterval>6</logDelayReqInterval>
                                <announceReceiptTimeout>2</announceReceiptTimeout>
                            </ptp-common>
                            <ptp-gm>
                                <twoStep>0</twoStep>
                                <interfaceName>eth0</interfaceName>
                                <continousARP>1</continousARP>
                                <announceIntervalRangeMin>0</announceIntervalRangeMin>
                                <announceIntervalRangeMax>3</announceIntervalRangeMax>
                                <syncIntervalRangeMin>0</syncIntervalRangeMin>
                                <syncIntervalRangeMax>6</syncIntervalRangeMax>
                                <delayIntervalRangeMin>0</delayIntervalRangeMin>
                                <delayIntervalRangeMax>6</delayIntervalRangeMax>
                                <addSlaves>
                                    <ip>20.1.46.2</ip>
                                </addSlaves>
                                <deleteGMCluster>
                                    <ip>10.216.114.206</ip>
                                </deleteGMCluster>
                            </ptp-gm>
                        </ptp-protocol>
                        <timing>
                            <gmtiming>
                                <irigb-output>0</irigb-output>
                            </gmtiming>
                            <frequency>1</frequency>
                            <compensation>0</compensation>
                            <sync-src-priority>PTP
    				Internal</sync-src-priority>
                        </timing>
                    </configuration>
                </Configuration>
            </PendingOrderConfigDeviceEnd>
            <PendingOrderConfigDeviceEnd>
                <DeviceName>access-bt750</DeviceName>
                <Configuration>
                    <configuration
                        xmlns:a="http://xml.juniper.net/tcaos/3.0.0">
                        <ptp-protocol>
                            <ptp-common>
                                <domain>1</domain>
                                <iPv4DSCP>57</iPv4DSCP>
                                <unicastContinous>0</unicastContinous>
                                <profile>2</profile>
                                <logSyncInterval>6</logSyncInterval>
                                <announceInterval>0</announceInterval>
                                <logDelayReqInterval>6</logDelayReqInterval>
                                <announceReceiptTimeout>2</announceReceiptTimeout>
                                <signalling>1</signalling>
                            </ptp-common>
                            <ptp-slave>
                                <grantDuration>300</grantDuration>
                                <addMaster>
                                    <ip>10.216.114.206</ip>
                                </addMaster>
                            </ptp-slave>
                        </ptp-protocol>
                        <timing>
                            <slavetiming>
                                <tod>
                                    <baud-rate>0</baud-rate>
                                    <format>0</format>
                                </tod>
                            </slavetiming>
                            <pps-output>PPS</pps-output>
                            <frequency>1</frequency>
                            <compensation>0</compensation>
                            <sync-src-priority>PTP
    				Internal</sync-src-priority>
                        </timing>
                    </configuration>
                </Configuration>
            </PendingOrderConfigDeviceEnd>
        </PendingOrderConfiguration>
    </Data>
    
    
    

    Modified: 2017-09-13