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 Services Management RESTful Web Services

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

    Get a PTP Service By Service ID

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

    URI

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

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific PTP service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<Service>
    			<Common>
    				<Name>Test</Name>
    				<Identity>163902</Identity>
    				<State>Deployed</State>
    				<CreatedDate>2013-05-31T18:56:59.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-31T18:56:59.000+05:30</LastUpdatedDate>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<PTPDomain>1</PTPDomain>
    			<OrderType>Deployed</OrderType>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/196907"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/196907"
    						key="196907">
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>196907</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    						<Platform>C-2030</Platform>
    						<IPAddress>10.216.114.89</IPAddress>
    						<Status>up</Status>
    						<PTPStatus>
    							<Version>VERSION 2</Version>
    							<PortStatus> PTP MASTER</PortStatus>
    							<Mode>Grandmaster</Mode>
    							<ClockClass> CLASS 6</ClockClass>
    							<ClockAccuracy>100NS</ClockAccuracy>
    							<Priority1>128</Priority1>
    							<Priority2>128</Priority2>
    							<PTPDomain>1</PTPDomain>
    							<ClockVariance>0</ClockVariance>
    							<DelayMechanism>E2E</DelayMechanism>
    							<LI-59>FALSE</LI-59>
    							<LI-61>FALSE</LI-61>
    							<TwoStep>false</TwoStep>
    							<PortNumber>1</PortNumber>
    							<ClockIdentity>00:18:0b:ff:fe:20:01:7a</ClockIdentity>
    							<GMSrcPortId>00:18:0b:ff:fe:20:01:7a
    
    							</GMSrcPortId>
    							<UTCOffset>35</UTCOffset>
    							<FreqTraceable>TRUE</FreqTraceable>
    							<TimeTraceable>TRUE</TimeTraceable>
    							<TimeSource>GPS</TimeSource>
    							<PTPTimeScale>TRUE</PTPTimeScale>
    							<SyncRate>64 packets/sec</SyncRate>
    							<AnnounceRate>1 packet/8sec</AnnounceRate>
    							<DelayRequestRate>64 packet/sec</DelayRequestRate>
    						</PTPStatus>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/196610"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/196610"
    						key="196610">
    						<DeviceName>access-bt750</DeviceName>
    						<DeviceID>196610</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>196907</DeviceID>
    								<InterfaceName>eth0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    						<Platform>B-7510</Platform>
    						<IPAddress>10.216.114.115</IPAddress>
    						<Status>up</Status>
    						<PTPStatus>
    							<PortStatus> PTP LISTENING</PortStatus>
    							<Mode>Slave</Mode>
    							<PTPDomain>1
    
    							</PTPDomain>
    						</PTPStatus>
    					</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>5 MHZ</Frequency>
    					<DelayCompensation>0</DelayCompensation>
    					<SyncSource>
    						<Value>GPS</Value>
    						<Value>PTP</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>false</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>
    			<ServiceParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterServiceType">
    				<ClockType>Ordinary Clock</ClockType>
    				<TransportMode>Unicast</TransportMode>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceParameter>
    			<Reference>
    				<ServiceOrder key="163897"
    					href="/api/space/nsas/timing-ptp/service-management/service-orders/163897"
    					uri="/api/space/nsas/timing-ptp/service-management/service-orders/163897" />
    				<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>
    			</Reference>	
    		</Service>
    	</ServiceResource>
    </Data>
    
    	

    Get All PTP Services

    This request is used to retrieve all the configured PTP services.

    URI

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

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects all the configured PTP services.

    Output

    Sample XML Output

    <?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/timing-ptp/service-management/services/163902"
    			uri="/api/space/nsas/timing-ptp/service-management/services/163902"
    			key="163902">
    			<Common>
    				<Name>Test</Name>
    				<Identity>163902</Identity>
    				<State>Deployed</State>
    				<Comments>Test for PTP Service</Comments>
    				<CreatedDate>2013-05-31T18:56:59.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-31T18:56:59.000+05:30</LastUpdatedDate>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<AuditFlag>
    				<FunctionalAudit>Pending</FunctionalAudit>
    			</AuditFlag>
    			<Reference>
    				<ServiceOrder key="163897"
    					href="/api/space/nsas/timing-ptp/service-management/service-orders/163897"
    					uri="/api/space/nsas/timing-ptp/service-management/service-orders/163897" />
    				<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>
    			</Reference>
    		</Service>
    		<Service
    			href="/api/space/nsas/timing-ptp/service-management/services/163922"
    			uri="/api/space/nsas/timing-ptp/service-management/services/163922"
    			key="163922">
    			<Common>
    				<Name>PTPService</Name>
    				<Identity>163922</Identity>
    				<State>Deployed</State>
    				<Comments>Test</Comments>
    				<CreatedDate>2013-05-31T18:58:45.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-05-31T18:58:45.000+05:30</LastUpdatedDate>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<AuditFlag>
    				<FunctionalAudit>Pending</FunctionalAudit>
    			</AuditFlag>
    			<Reference>
    				<ServiceOrder key="163913"
    					href="/api/space/nsas/timing-ptp/service-management/service-orders/163913"
    					uri="/api/space/nsas/timing-ptp/service-management/service-orders/163913" />
    				<ServiceDefinition>
    					<ServiceDefinitionID key="98358"
    						href="/api/space/nsas/timing-ptp/service-management/service-definitions/98358"
    						uri="/api/space/nsas/timing-ptp/service-management/service-definitions/98358" />
    				</ServiceDefinition>
    			</Reference>
    		</Service>
    	</ServiceResource>
    </Data>
    	

    Modify a PTP Service

    This request is used to modify a PTP service for addition of parameters.

    URI

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

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Modifies a PTP service for addition of parameters.

    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>PTPUI3_Mod_01</Name>
    				<Identity>33021</Identity>
    			</Common>
    			<PTPDomain>1</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>3</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>
    						<DeviceName>access1-bt750</DeviceName>
    						<DeviceID>12</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>3</DeviceID>
    								<InterfaceName>eth0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<SyncRate>32 packets/sec</SyncRate>
    				<TimingConfiguration>
    					<SyncSource>
    						<Value>PTP</Value>
    						<Value>Internal</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<DelayRequestRate>32 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>4</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>true</Signalling>
    					<SyncRate>32 packets/sec</SyncRate>
    				</SignallingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    				<IPV4DSCP>59</IPV4DSCP>
    			</ServiceOrderParameter>
    		</ServiceOrder>
    	</ServiceResource>
    	<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>
    
    	

    Add Devices to a PTP Service

    This request is used to add local devices to a PTP service.

    URI

    api/space/nsas/timing-ptp/service-management/services/
    <serviceId>/add-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Adds local devices to PTP services.

    Input

    Sample XML Input

    				<Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    	<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>access1-hcl-bgm</DeviceName>
    						<DeviceID>17</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>12</Priority1>
    						<Priority2>12</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>junos-space1</DeviceName>
    						<DeviceID>64</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>17</DeviceID>
    								<InterfaceName>eth0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    		</ServiceOrder>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="ServiceCustomActionType">
    		<Action>Save</Action>
    		<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
    	</CustomAction>
    </Data>
    	

    Delete Devices from a PTP Service

    This request is used to delete local devices from a PTP service.

    URI

    api/space/nsas/timing-ptp/service-management/
    services/<serviceId>/delete-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Deletes local devices from PTP services.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    				<Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    	<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>access1-hcl-bgm</DeviceName>
    						<DeviceID>17</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>12</Priority1>
    						<Priority2>12</Priority2>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>junos-space1</DeviceName>
    						<DeviceID>64</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>17</DeviceID>
    								<InterfaceName>eth0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    		</ServiceOrder>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="ServiceCustomActionType">
    		<Action>Save</Action>
    		<ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime>
    	</CustomAction>
    </Data>
    
    	

    Delete Devices in Frequency Settings Only from a PTP Service with Hybrid Mode

    This request is used to delete local devices only in frequency settings from a PTP service.

    URI

    api/space/nsas/timing-ptp/service-
    management/services/{service-id}/
    hybrid-frequency-settings/delete-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Deletes local devices from PTP services.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>Kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/3/5</InterfaceName>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    		</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>Service</Type>
    			<Value>102</Value>
    		</Identity>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>1323</Value>
    		</Identity>
    		<Job>
    			<ID>659612</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>
    
    
    				

    Decommission a PTP Service

    This request is used to decommission a previously created PTP service.

    URI

    api/space/timing-ptp/service-management/
    services/{serviceId}

    HTTP Method

    DELETE

    Content-Type

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

    Produces

    Decommissions a previously created PTP service.

    Output

    Sample XML Output

    <Data>
    	<Status>
    		<Identity>
    			<Type>Service</Type>
    			<Value>163871</Value>
    		</Identity>
    		<Job>
    			<ID>1736704</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>
    	

    Run a Functional Audit of a PTP Service

    This request is run a functional audit of a PTP service.

    URI

    api/space/timing-ptp/service-management/
    services/<service-id>

    HTTP Method

    POST

    Content Type

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

    The options for AuditNow and AuditLater can be provided in the Action element within the ?OperationSpecificData?.

    Consumes

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

    Produces

    Performs a functional audit of a PTP service.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <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>
    
    
    				

    Output

    Sample XML Output

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

    Run a Configuration Audit of a PTP Service

    This request is run a configuration audit of a PTP service.

    URI

    api/space/timing-ptp/service-management/
    services/<service-id>

    HTTP Method

    POST

    Content Type

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

    The options for AuditNow and AuditLater can be provided in the Action element within the ?OperationSpecificData?.

    Consumes

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

    Produces

    Performs a configuration audit of a PTP service.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <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>
    
    	

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <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>
    
    	

    View the Functional Audit Results of a PTP Service

    This request is display the functional audit results of a PTP service.

    URI

    api/space/timing-ptp/service-management/
    services/view-functional-audit/<service-id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Displays the functional audit results of a PTP service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<AuditResults>
    		<FunctionalAuditResult>
    			<Common>
    				<Name>SO1</Name>
    				<Identity>32867</Identity>
    				<State>Deployed</State>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<OperationState>Down</OperationState>
    			<ServiceDefinitionName>Test</ServiceDefinitionName>
    			<NoOfUNIs>2</NoOfUNIs>
    			<UpUNIs>0</UpUNIs>
    			<DownUNIs>2</DownUNIs>
    			<DeviceEnd>
    				<DeviceName>access-hcl-bgm</DeviceName>
    				<Topology>N/A</Topology>
    				<OperationState>Down</OperationState>
    			</DeviceEnd>
    			<DeviceEnd>
    				<DeviceName>access7-bt750</DeviceName>
    				<Topology>N/A</Topology>
    				<OperationState>Down</OperationState>
    			</DeviceEnd>
    		</FunctionalAuditResult>
    	</AuditResults>
    </Data>
    
    

    View the Configuration Audit Results of a PTP Service

    This request is display the configuration audit results of a PTP service.

    URI

    api/space/timing-ptp/service-management/
    services/view-configuration-audit/<service-id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Displays the configuration audit results of a PTP service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<AuditResults>
    		<ConfigurationAuditResult>
    			<ConfigDeviceEnd>
    				<DeviceName>junos-space2</DeviceName>
    				<DeviceStatus>Up</DeviceStatus>
    				<Details>Successfully Config Audited
    				</Details>
    			</ConfigDeviceEnd>
    			<ConfigDeviceEnd>
    				<DeviceName>junos-space2</DeviceName>
    				<DeviceStatus>Up</DeviceStatus>
    				<Details>Successfully Config Audited
    				</Details>
    			</ConfigDeviceEnd>
    		</ConfigurationAuditResult>
    	</AuditResults>
    </Data>	
    
    	

    View the Service Configuration Change Results of a PTP Service

    This request is display the service configuration changes of a PTP service.

    URI

    api/space/timing-ptp/service-management/
    services/view-serviceconfiguration-change/<service-id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Displays the service configuration change results of a PTP service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data
        xmlns="services.schema.networkapi.jmp.juniper.net">
        <AuditResults>
            <ServiceConfigurationChangeResult>
                <ServiceConfigDeviceEnd>
                    <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>56</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>0</continousARP>
                                    <announceIntervalRangeMin>0</announceIntervalRangeMin>
                                    <announceIntervalRangeMax>3</announceIntervalRangeMax>
                                    <syncIntervalRangeMin>0</syncIntervalRangeMin>
                                    <syncIntervalRangeMax>6</syncIntervalRangeMax>
                                    <delayIntervalRangeMin>0</delayIntervalRangeMin>
                                    <delayIntervalRangeMax>6</delayIntervalRangeMax>
                                    <addSlaves>
                                        <ip>10.216.114.208</ip>
                                    </addSlaves>
                                </ptp-gm>
                            </ptp-protocol>
                            <timing>
                                <gmtiming>
                                    <irigb-output>0</irigb-output>
                                </gmtiming>
                                <frequency>1</frequency>
                                <compensation>0</compensation>
                                <sync-src-priority>GPS
    					PTP</sync-src-priority>
                            </timing>
                        </configuration>
                    </Configuration>
                </ServiceConfigDeviceEnd>
                <ServiceConfigDeviceEnd>
                    <DeviceName>access7-bt750</DeviceName>
                    <Configuration>
                        <configuration
                            xmlns:a="http://xml.juniper.net/tcaos/3.0.0">
                            <ptp-protocol>
                                <ptp-common>
                                    <domain>1</domain>
                                    <iPv4DSCP>56</iPv4DSCP>
                                    <unicastContinous>0</unicastContinous>
                                    <profile>2</profile>
                                    <logSyncInterval>6</logSyncInterval>
                                    <announceInterval>0</announceInterval>
                                    <logDelayReqInterval>6</logDelayReqInterval>
                                    <announceReceiptTimeout>2</announceReceiptTimeout>
                                    <signalling>0</signalling>
                                </ptp-common>
                                <ptp-slave>
                                    <grantDuration>300</grantDuration>
                                    <addMaster>
                                        <ip>10.216.114.89</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>
                </ServiceConfigDeviceEnd>
            </ServiceConfigurationChangeResult>
        </AuditResults>
    </Data>	
    	

    Get a PTP Service with Boundary Clock By Service ID

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

    URI

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

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific PTP service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<Service>
    			<Common>
    				<Name>test</Name>
    				<Identity>102</Identity>
    				<State>Deployed</State>
    				<CreatedDate>2014-04-10T14:18:10.000+05:30</CreatedDate>
    				<LastUpdatedDate>2014-04-10T14:18:10.000+05:30</LastUpdatedDate>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<OrderType>Deployed</OrderType>
    			<PTPDomain>1</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33628"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33628"
    						key="33628">
    						<DeviceName>access1-hcl-bgm</DeviceName>
    						<DeviceID>33628</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth1</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    						<Platform>C-2030</Platform>
    						<IPAddress>10.216.114.206</IPAddress>
    						<Status>up</Status>
    						<PTPStatus>
    							<Version>VERSION 2</Version>
    							<PortStatus> PTP MASTER</PortStatus>
    							<Mode>Grandmaster</Mode>
    							<ClockClass> CLASS 6</ClockClass>
    							<ClockAccuracy>100NS</ClockAccuracy>
    							<Priority1>128</Priority1>
    							<Priority2>128</Priority2>
    							<PTPDomain>1</PTPDomain>
    							<ClockVariance>0</ClockVariance>
    							<DelayMechanism>E2E</DelayMechanism>
    							<LI-59>FALSE</LI-59>
    							<LI-61>FALSE</LI-61>
    							<TwoStep>false</TwoStep>
    							<PortNumber>1</PortNumber>
    							<ClockIdentity>00:18:0b:ff:fe:20:01:74</ClockIdentity>
    							<GMSrcPortId>00:18:0b:ff:fe:20:01:74
         
        </GMSrcPortId>
    							<UTCOffset>35</UTCOffset>
    							<FreqTraceable>TRUE</FreqTraceable>
    							<TimeTraceable>TRUE</TimeTraceable>
    							<TimeSource>GPS</TimeSource>
    							<PTPTimeScale>TRUE</PTPTimeScale>
    							<SyncRate>64 packets/sec</SyncRate>
    							<AnnounceRate>1 packet/8sec</AnnounceRate>
    							<DelayRequestRate>64 packet/sec</DelayRequestRate>
    						</PTPStatus>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						key="33359">
    						<DeviceName>junos-mx240-space</DeviceName>
    						<DeviceID>33359</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/2.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Boundary</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    						<Platform>MX240</Platform>
    						<IPAddress>10.216.114.101</IPAddress>
    						<Status>up</Status>
    						<PTPStatus />
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						key="33507">
    						<DeviceName>junos-space3</DeviceName>
    						<DeviceID>33507</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/2.2</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Slave</DeviceType>
    						<Platform>ACX2000</Platform>
    						<IPAddress>10.216.114.121</IPAddress>
    						<Status>down</Status>
    						<PTPStatus />
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						key="33359">
    						<DeviceName>junos-mx240-space</DeviceName>
    						<DeviceID>33359</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/3.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Slave</DeviceType>
    						<Platform>MX240</Platform>
    						<IPAddress>10.216.114.101</IPAddress>
    						<Status>up</Status>
    						<PTPStatus />
    					</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>
    			<ServiceParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterServiceType">
    				<Topology>Boundary</Topology>
    				<TransportMode>Unicast</TransportMode>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceParameter>
    			<Reference>
    				<ServiceOrder key="90"
    					href="/api/space/nsas/timing-ptp/service-management/service-orders/90"
    					uri="/api/space/nsas/timing-ptp/service-management/service-orders/90" />
    				<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>
    		</Service>
    	</ServiceResource>
    </Data>
    
    
    				

    Modify a PTP Service with Boundary Clock

    This request is used to modify a PTP service for addition of parameters.

    URI

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

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Modifies a PTP service for addition of parameters.

    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>Modify</Name>
                  <Comments>Test for modify</Comments>
    			</Common>
    			<PTPDomain>10</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33628"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33628"
    						key="33628">
    						<DeviceName>access1-hcl-bgm</DeviceName>
    						<DeviceID>33628</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>eth1</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Master</DeviceType>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						key="33359">
    						<DeviceName>junos-mx240-space</DeviceName>
    						<DeviceID>33359</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/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
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33359"
    						key="33359">
    						<DeviceName>junos-mx240-space</DeviceName>
    						<DeviceID>33359</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/3.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33628</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						key="33507">
    						<DeviceName>junos-space3</DeviceName>
    						<DeviceID>33507</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/2.2</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33628</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>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<Profile>Telecom Profile</Profile>
    				<DelayRequestRate>64 packets/sec</DelayRequestRate>
    				<AnnounceReceiptTimeout>2</AnnounceReceiptTimeout>
    				<SignallingConfiguration>
    					<Signalling>false</Signalling>
    					<GrantDuration>300</GrantDuration>
    					<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>
    				</TimingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    				<IPV4DSCP>59</IPV4DSCP>
    			</ServiceOrderParameter>
    		</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>Service</Type>
    			<Value>102</Value>
    		</Identity>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>1323</Value>
    		</Identity>
    		<Job>
    			<ID>659612</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>
    
    
    

    Add Devices to a PTP Service with Boundary Clock

    This request is used to add local devices to a PTP service.

    URI

    api/space/nsas/timing-ptp/service-management/
    services/<serviceId>/add-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Adds local devices to PTP services.

    Input

    Sample XML Input

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33628"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33628"
    						key="33628">
    						<DeviceName>access-hcl-bgm</DeviceName>
    						<DeviceID>33623</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
    						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/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>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33628</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    		</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>Service</Type>
    			<Value>102</Value>
    		</Identity>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>1323</Value>
    		</Identity>
    		<Job>
    			<ID>659612</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>
    
    				

    Delete Devices from a PTP Service with Boundary Clock

    This request is used to delete local devices from a PTP service.

    URI

    api/space/nsas/timing-ptp/service-management/
    services/<serviceId>/delete-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Deletes local devices from PTP services.

    Input

    Sample XML Input

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						key="33507">
    						<DeviceName>junos-space3</DeviceName>
    						<DeviceID>33507</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>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
    
    				

    Output

    Sample XML Output

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/33507"
    						key="33507">
    						<DeviceName>junos-space3</DeviceName>
    						<DeviceID>33507</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>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
    
    				

    Get a PTP Service with Hybrid Mode By Service ID

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

    URI

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

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific PTP service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<Service>
    			<Common>
    				<Name>hybridboundaryservice</Name>
    				<Identity>229640</Identity>
    				<State>Deployed</State>
    				<CreatedDate>2014-04-28T15:00:28.000+05:30</CreatedDate>
    				<LastUpdatedDate>2014-04-28T15:00:28.000+05:30</LastUpdatedDate>
    			</Common>
    			<ServiceType>PTP</ServiceType>
    			<OrderType>Deployed</OrderType>
    			<PTPDomain>1</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/262147"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/262147"
    						key="262147">
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>262147</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/0/1.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Boundary</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    						<Platform>MX240</Platform>
    						<IPAddress>10.216.114.110</IPAddress>
    						<Status>down</Status>
    						<PTPStatus />
    					</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="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Master</DeviceType>
    						<Priority1>128</Priority1>
    						<Priority2>128</Priority2>
    						<Platform>C-2030</Platform>
    						<IPAddress>10.216.114.89</IPAddress>
    						<Status>down</Status>
    						<PTPStatus />
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/262318"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/262318"
    						key="262318">
    						<DeviceName>embassy</DeviceName>
    						<DeviceID>262318</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-1/0/1.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    						<Platform>MX80</Platform>
    						<IPAddress>10.216.114.109</IPAddress>
    						<Status>down</Status>
    						<PTPStatus />
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing
    						href="/api/space/nsas/prestage-timing-device/manage-devices/devices/262147"
    						uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/262147"
    						key="262147">
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>262147</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/3/6.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>33623</DeviceID>
    								<InterfaceName>eth1</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    						<Platform>MX240</Platform>
    						<IPAddress>10.216.114.110</IPAddress>
    						<Status>down</Status>
    						<PTPStatus />
    					</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>
    				<PTPESMCMapping>
    					<EnableClockClass>false</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>
    			<ServiceParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterServiceType">
    				<Topology>Boundary</Topology>
    				<TransportMode>Unicast</TransportMode>
    				<TransportEncapsulation>IPv4</TransportEncapsulation>
    				<IPV4DSCP>56</IPV4DSCP>
    			</ServiceParameter>
    			<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/262147"
    							uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/262147"
    							key="262147">
    							<DeviceName>kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/3/5</InterfaceName>
    						<ESMCTransmit>ge-0/3/6</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigServiceType">
    							<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>
    				<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>
    				<ServiceOrder key="229626"
    					href="/api/space/nsas/timing-ptp/service-management/service-orders/229626"
    					uri="/api/space/nsas/timing-ptp/service-management/service-orders/229626" />
    				<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>
    		</Service>
    	</ServiceResource>
    </Data>
    
    				

    Modify a PTP Service with Hybrid Mode

    This request is used to modify a PTP service for addition of parameters.

    URI

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

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Modifies a PTP service for addition of parameters.

    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>hybridboundaryserviceAPI</Name>
    			</Common>
    			<PTPDomain>1</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>262147</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>
    					</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>
    
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>embassy</DeviceName>
    						<DeviceID>262318</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-1/0/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>
    						<DeviceName>kochin</DeviceName>
    						<DeviceID>262147</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>
    			<FrequencySettings>
    				<EnableQualityMode>true</EnableQualityMode>
    				<SourceSelectionMode>Configured Quality</SourceSelectionMode>
    				<HoldIntervalSettings>
    					<ConfigChange>50</ConfigChange>
    					<Restart>150</Restart>
    					<SwitchOver>50</SwitchOver>
    					<SwitchOverMode>Revertive</SwitchOverMode>
    				</HoldIntervalSettings>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/3/5</InterfaceName>
    						<ESMCTransmit>ge-0/3/6</ESMCTransmit>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    			</FrequencySettings>
    		</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>Service</Type>
    			<Value>102</Value>
    		</Identity>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>1323</Value>
    		</Identity>
    		<Job>
    			<ID>659612</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>
    
    				

    Add Devices to a PTP Service with Hybrid Mode

    This request is used to add local devices to a PTP service. This request is used only when adding the Device in Frequency settings along with Master device/Boundary device/Slave device for hybrid mode.

    URI

    api/space/nsas/timing-ptp/service-management/
    services/<serviceId>/add-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Adds local devices to PTP services.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>access1-hcl-bgm</DeviceName>
    						<DeviceID>33628</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>
    			<FrequencySettings>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>embassy</DeviceName>
    							<DeviceID>262318</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-1/0/5</InterfaceName>
    						<ESMCTransmit>ge-1/0/0</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/0/3</InterfaceName>
    						<ESMCTransmit>ge-0/0/1</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>Kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/0/5</InterfaceName>
    						<ESMCTransmit>ge-0/0/2</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    			</FrequencySettings>
    		</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>Service</Type>
    			<Value>102</Value>
    		</Identity>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>1323</Value>
    		</Identity>
    		<Job>
    			<ID>659612</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>
    
    
    				

    Add Devices in Frequency Settings Only to a PTP Service with Hybrid Mode

    This request is used to add local devices in frequency settings only to a PTP service.

    URI

    api/space/nsas/timing-ptp/service-management/services/
    {service-id}/hybrid-frequency-settings/add-devices

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Adds local devices to PTP services.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    				<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>embassy</DeviceName>
    							<DeviceID>262318</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-1/0/5</InterfaceName>
    						<ESMCTransmit>ge-1/0/0</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/0/3</InterfaceName>
    						<ESMCTransmit>ge-0/0/1</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    			<ServiceEndPointGroup>
    					<DeviceInfo>
    						<Timing>
    							<DeviceName>Kochin</DeviceName>
    							<DeviceID>262147</DeviceID>
    						</Timing>
    					</DeviceInfo>
    					<ServiceEndPoint>
    						<InterfaceName>ge-0/0/5</InterfaceName>
    						<ESMCTransmit>ge-0/0/2</ESMCTransmit>
    						<ServiceEndpointConfiguration
    							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointFrequencyConfigOrderType">
    							<PTPMasters>
    								<DeviceInfo>
    									<Timing>
    										<DeviceName>access-hcl-bgm</DeviceName>
    										<DeviceID>33623</DeviceID>
    									</Timing>
    								</DeviceInfo>
    							</PTPMasters>
    						</ServiceEndpointConfiguration>
    					</ServiceEndPoint>
    				</ServiceEndPointGroup>
    		</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>Service</Type>
    			<Value>102</Value>
    		</Identity>
    		<Identity>
    			<Type>ServiceOrder</Type>
    			<Value>1323</Value>
    		</Identity>
    		<Job>
    			<ID>659612</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>
    
    
    
    				

    Get a PTP over Ethernet Service By Service ID

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

    URI

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

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific PTPoE service.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <Service>
        <Common>
        <Name>O_M_IEEE802_SO</Name>
        <Identity>33073</Identity>
        <State>Deployed</State>
        <CreatedDate>2014-07-12T13:07:29.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-07-12T14:59:06.000+05:30</LastUpdatedDate>
        </Common>
        <ServiceType>PTP</ServiceType>
        <OrderType>Deployed</OrderType>
        <PTPDomain>1</PTPDomain>
        <ServiceEndPointGroup>
        <DeviceInfo>
        <Timing key="91" uri="/api/space/nsas/prestage-timing-device/manage-devices/devices/91" href="/api/space/nsas/prestage-timing-device/manage-devices/devices/91">
        <DeviceName>junos-space3</DeviceName>
        <DeviceID>91</DeviceID>
        </Timing>
        </DeviceInfo>
        <ServiceEndPoint>
        <InterfaceName>ge-0/1/4.0</InterfaceName>
        <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigServiceType">
        <DeviceType>Slave</DeviceType>
        <Platform>ACX2000</Platform>
        <IPAddress>10.216.114.121</IPAddress>
        <Status>up</Status>
        <PTPStatus>
        <PortStatus>Listening </PortStatus>
        <Priority1>128</Priority1>
        <Priority2>128</Priority2>
        <PTPDomain>1</PTPDomain>
        <DelayMechanism>End-to-end</DelayMechanism>
        <TwoStep>false</TwoStep>
        <PortNumber>1</PortNumber>
        <ClockIdentity>84:18:88:ff:fe:c0:85:00</ClockIdentity>
        <SyncRate>64 packets per second</SyncRate>
        <AnnounceRate>1 packet every 2 seconds</AnnounceRate>
        <DelayRequestRate>64 packets per second</DelayRequestRate>
        </PTPStatus>
        </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>PTP</Value>
        <Value>Internal</Value>
        </SyncSource>
        </TimingConfiguration>
        </TimingGrandMasterConfiguration>
        <TimingGrandSlaveConfiguration>
        <Profile>Default</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>false</EnableClockClass>
        <NetworkOption>Option-1</NetworkOption>
        <QualityLevel>PRC</QualityLevel>
        <ClockClass>80</ClockClass>
        </PTPESMCMapping>
        <TimingConfiguration>
        <PPx>PPS</PPx>
        <Frequency>0 MHz</Frequency>
        <OffsetCompensation>0</OffsetCompensation>
        <TimeOfDay>
        <BaudRate>1200</BaudRate>
        <Format>Calendar</Format>
        </TimeOfDay>
        <SyncSource>
        <Value>No Priority Configured</Value>
        </SyncSource>
        </TimingConfiguration>
        </TimingGrandSlaveConfiguration>
        <ServiceParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPConfigParameterServiceType">
        <Topology>Ordinary</Topology>
        <TransportMode>Multicast</TransportMode>
        <TransportEncapsulation>IEEE-802.3</TransportEncapsulation>
        <IPV4DSCP>56</IPV4DSCP>
        <EnablePTPResiliency>false</EnablePTPResiliency>
        </ServiceParameter>
        <Reference>
        <ServiceOrder uri="/api/space/nsas/timing-ptp/service-management/service-orders/33098" href="/api/space/nsas/timing-ptp/service-management/service-orders/33098" key="33098"/>
        <ServiceDefinition>
        <ServiceDefinitionID uri="/api/space/nsas/timing-ptp/service-management/service-definitions/33004" href="/api/space/nsas/timing-ptp/service-management/service-definitions/33004" key="33004"/>
        </ServiceDefinition>
        </Reference>
        </Service>
        </ServiceResource>
        </Data>
    
    
    				

    Modify a PTP over Ethernet Service

    This request is used to modify a PTPoE service for addition of parameters.

    URI

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

    HTTP Method

    POST

    Content Type

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

    Consumes

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

    Produces

    Modifies a PTPoE service for addition of parameters.

    Input

    Sample XML Input

     <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>PTP_SO_ModifyIEEE802_03</Name>
    			</Common>
    			<PTPDomain>1</PTPDomain>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<Timing>
    						<DeviceName>junos-space3</DeviceName>
                                                                                                     <DeviceID>91</DeviceID>
    					</Timing>
    				</DeviceInfo>
    				<ServiceEndPoint>
                                         <InterfaceName>ge-0/1/4.0</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TimingPTPEndPointConfigOrderType">
    						<DeviceType>Slave</DeviceType>
    						<AcceptableMasters>
    							<DeviceInfo>
    								<DeviceID>91</DeviceID>
    								<InterfaceName>ge-0/1/4.0</InterfaceName>
    							</DeviceInfo>
    						</AcceptableMasters>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<TimingGrandMasterConfiguration>
    				<TimingConfiguration>
    					<SyncSource>
    						<Value>PTP</Value>
    						<Value>Internal</Value>
    					</SyncSource>
    				</TimingConfiguration>
    			</TimingGrandMasterConfiguration>
    			<TimingGrandSlaveConfiguration>
    				<SignallingConfiguration>
    				</SignallingConfiguration>
    			</TimingGrandSlaveConfiguration>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="TimingPTPConfigParameterOrderType">
    			</ServiceOrderParameter>
    		</ServiceOrder>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="ServiceCustomActionType">
    		<Action>SaveAndDeployNow</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">
        <Status>
        <Identity>
        <Type>Service</Type>
        <Value>33073</Value>
        </Identity>
        <Identity>
        <Type>ServiceOrder</Type>
        <Value>33098</Value>
        </Identity>
        <Job>
        <ID>164123</ID>
        <Status>INPROGRESS</Status>
        </Job>
        <Code>200</Code>
        <Message>The Service Order Modified Successfully and Deployment is in Progress. Please check the status using the JOB ID.</Message>
        </Status>
        </Data>
    
    
    				

    Modified: 2017-09-13