Cisco D9800 Network Transport Receiver Version 2.75 Restful Web Services Api Reference Guide
Cisco D9800 Network Transport Receiver Version 2.75 Restful Web Services Api Reference Guide
75 RESTful Web
Services API Reference Guide
First Published: 2017-10-23
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
     800 553-NETS (6387)
Fax: 408 527-0883
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,
INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH
THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,
CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The following information is for FCC compliance of Class A devices: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15
of the FCC rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment
generates, uses, and can radiate radio-frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications.
Operation of this equipment in a residential area is likely to cause harmful interference, in which case users will be required to correct the interference at their own expense.
The following information is for FCC compliance of Class B devices: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15
of the FCC rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio
frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference
will not occur in a particular installation. If the equipment causes interference to radio or television reception, which can be determined by turning the equipment off and on, users are
encouraged to try to correct the interference by using one or more of the following measures:
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public domain version
of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED "AS IS" WITH ALL FAULTS.
CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT
LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network
topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional
and coincidental.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http://
www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership
relationship between Cisco and any other company. (1110R)
With each AVC/H.264 product, we are obligated to provide the following notice:
THIS PRODUCT IS LICENSED UNDER THE AVC PATENT PORTFOLIO LICENSE FOR THE PERSONAL AND NON-COMMERCIAL USE OF A CONSUMER TO (i) ENCODE
VIDEO IN COMPLIANCE WITH THE AVC STANDARD ("AVC VIDEO") AND/OR (ii) DECODE AVC VIDEO THAT WAS ENCODED BY A CONSUMER ENGAGED IN A
PERSONAL AND NON-COMMERCIAL ACTIVITY AND/OR WAS OBTAINED FROM A VIDEO PROVIDER LICENSED TO PROVIDE AVC VIDEO. NO LICENSE IS GRANTED
OR SHALL BE IMPLIED FOR ANY OTHER USE. ADDITIONAL INFORMATION MAY BE OBTAINED FROM MPEG LA, L.L.C. SEE http://www.mpegla.com.
Accordingly, please be advised that service providers, content providers, and broadcasters are required to obtain a separate use license from MPEG LA prior to any use of AVC/H.264
encoders and/or decoders.
Preface     Preface ix
                 Audience ix
                 Conventions ix
                 Related Documentation x
                 Obtaining Documentation and Submitting a Service Request xi
                            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                           iii
     Contents
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
iv
Contents
                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                  v
     Contents
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
vi
Contents
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                           vii
       Contents
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
viii
           Preface
           This section describes the audience and conventions of the Cisco D9800 Network Transport Receiver API
           Reference Guide. It also references related documentation and describes how to obtain documentation and
           submit a service request.
             • Audience, page ix
             • Conventions, page ix
             • Related Documentation, page x
             • Obtaining Documentation and Submitting a Service Request, page xi
Audience
           The audience of this guide includes developers who will build a client application to interface with the D9800
           Network Transport Receiver.
Conventions
           This guide uses the following conventions.
           Conventions                         Indication
           bold font                           Commands and keywords and user-entered text appear in bold font.
           italic font                         Document titles, new or emphasized terms, and arguments for which you
                                               supply values are in italic font.
                          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                         ix
                                                                                                                                Preface
     Related Documentation
                        Conventions                           Indication
                        string                                A nonquoted set of characters. Do not use quotation marks around the
                                                              string or the string will include the quotation marks.
                        courier font                          Terminal sessions and information the system displays appear in courier
                                                              font.
              Note     Means reader take note. Notes contain helpful suggestions or references to material not covered in the
                       manual.
          Caution     Means reader be careful. In this situation, you might perform an action that could result in equipment
                      damage or loss of data.
Related Documentation
                             • Cisco D9800 Network Transport Receiver Installation and Configuration Guide, available at the following
                               URL: http://www.cisco.com/go/receivers_guides.
                             • Release Notes for Cisco D9800 Network Transport Receiver, available at the following URL: http://
                               www.cisco.com/go/receivers_release_notes.
                             • Open Source Used In Cisco D9800 Network Transport Receiver, available at the following URL: http:/
                               /www.cisco.com/go/receivers_licensing.
                             • Cisco D9800 Network Transport Receiver Data Sheet, available at the following URL: http://
                               www.cisco.com/c/en/us/products/video/digital-receivers-decoders/datasheet-listing.html.
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 x
 Preface
                                                                    Obtaining Documentation and Submitting a Service Request
                          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                               xi
                                                                                                           Preface
      Obtaining Documentation and Submitting a Service Request
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
xii
                                                                    CHAPTER                   1
         Web Services API
         This section describes the web services API used to control the D9800 Network Transport Receiver, including
         HTTP request and response methods, URI arguments, and port information.
                        Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                       1
                                                                                                                                                   Web Services API
     Access Level (Login and Logout)
                        To access a single API, you can use cURL. For more information, see https://curl.haxx.se/. Since SSL
                        certificates on D9800 units are self-signed, you can use "-k DEFAULT" options to bypass the security checks
                        of the cURL command.
                        Example 1:
                        curl -k -i -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/test/show/id-eeprom"
                        Example 2:
                        curl -k "https://192.168.0.1/ws/v2/test/show/id-eeprom&session=$token"
              Note      The DEFAULT –k cipher option might not be available in older versions of the cURL command. An
                        updated version of the tool is required to enable this option. Follow your operating systems instructions
                        to update your cURL. For example, on CEL/Fedora, issue the following command as a root user and then
                        restart:
                        yum update curl
                        The –H "X-SESSION-ID: $token" (or session=$token) part of the cURL syntax is required for each command
                        in order to propagate the HTTP session_id. The $token represents a Linux (or Cygwin if that is the Host
                        environment) environment variable that is based on the value of the XML <SESSION></SESSION> item
                        from the successful Login response.
                        For an example of the login command, and setting the $token environment variable, see Access Level (Login
                        and Logout), on page 2.
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 2
 Web Services API
                                                                                                                              HTTP Request Methods
                    The value of the $token variable needs to be set based on the TokenValue from the XML response to the
                    Login Command. This may be done by using the Linux (or Cyqwin) export command.
                    The example below assumes TokenValue = 869a010f-16e9-4b5a-b302-0097c779850f.
                    …<SESSION_ID>869a010f-16e9-4b5a-b302-0097c779850f </SESSION_ID>…
                    Usage Example (setting $token environment variable):
                    export token=869a010f-16e9-4b5a-b302-0097c779850f
                    An alternative to setting the environment variable is to replace $token with the literal string from the above
                    (XML) output when calling the additional command(s). The following is an example of a logout command.
                    Input:
                    curl -k https://192.168.0.1/ws/v1/table?t=return -X POST -d "<HDR><LOGOUT><ITEM><REASON>User
                     Logout</REASON></ITEM></LOGOUT></HDR>" -H "Content-Type: text/xml; charset=UTF-8" -H
                    "X-SESSION-ID: $token"
                    Expected output:
                    ?xml version="1.0" encoding="ISO-8859-1"?>
                    <HDR><TABLE><ITEM><ID>STATUS</ID><VALUE>Please wait while the default page loads up
                    ....</VALUE></ITEM><LOGIN_INFO><USER_NAME></USER_NAME><USER_ROLE>NotValid</USER_ROLE><SESSION_ID>NONE</SESSION_ID></LOGIN_INFO></TABLE></HDR>
Get
                    GET is used for URI requests that have no payload to transfer in their bodies. GET can be formatted in either
                    XML or JSON.
                    The following is an example of a Request in XML:
                    curl -k -i -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=2"
                    Or:
                    curl -k "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=2&session=$token"
                    The following is an example of a Request in JSON (by specifying js=1):
                    curl -k -i -H "X-SESSION-ID: $token"
                    "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=1&js=1"
                    Or:
                    curl -k       "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=1&js=1&session=$token"
                    The resource URI must be in quotes if you pass in multiple query parameters separated by ‘&’. If you have
                    spaces in the query values, you should encode them. For example, use the + symbol, or the %20 symbol,
                    instead of a space (http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/).
                    A maximum of 26 arguments (after the ? symbol, and not including the session and json arguments) can be
                    queried in a single GET operation from a Web Services API cURL command line request. If a GET request
                    is made that specifies more than this amount, the response behavior is undefined (typically, the extra request
                    parameters will be ignored). We strongly recommend that you use the alternate block read method to retrieve
                    many arguments at once.
                    The following is an example of a Block Data GET request.
                    Passing a block of XML data from a file:
                    curl -k -i -H "X-SESSION-ID: $token" --header "Content-type:application/xml" -d @"input.xml"
                     "https://192.168.0.1/ws/v2/service_cfg/input"
                                        Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                                         3
                                                                                                                    Web Services API
      Post
                         Or
                         curl -k --header "Content-type:application/xml" -d @"input.xml"
                         "https://192.168.0.1/ws/v2/service_cfg/input?session=$token"
Post
                         POST is used when a request body (in XML, JSON, or other formats) is present and is transferred to the unit
                         with the request. The following lists three ways to use cURL to post parameters and arguments.
                         1 Using only arguments on command line separated by "&" (Maximum of 26 arguments, excluding JSON
                           argument and session argument):
                              curl -k -i -H "X-SESSION-ID: $token" -X POST
                              "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=[port#]&dnlkfreq=<Freq>"
                              curl -k -i -H "X-SESSION-ID: $token" -X POST
                              "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=2&dnlkfreq=12.31"
                              Or:
                              curl -k -X POST
                              "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=[port#]&DnlkFreq=<Freq>&session=$token"
                              <?xml version="1.0" encoding="ISO-8859-1"
                              ?><response><code>10</code><result>success</result><message></message></response>
                              The resource URI needs to be quoted if you pass in multiple query parameters separated by ‘&’. If you
                              have spaces in the query values, you should encode them. For example, use the + symbol or %20 instead
                              of a space.
                         2 Using xml data from command line:
                              curl -k -i -H "X-SESSION-ID: $token" -X POST --header "Content-type:application/xml" -d
                               "<Input><RF><Port>1</Port><Act>Yes</Act></RF</Input>"
                              https://192.168.0.1/ws/v2/service_cfg/input?session=$token
                              Or
                              curl -k -i -X POST --header "Content-type:application/xml" -d
                              "<Input><RF><Port>1</Port><Act>Yes</Act></RF</Input>"
                              https://192.168.0.1/ws/v2/service_cfg/input?session=$token
                         3 Using xml data from file:
                              curl -k -i -H "X-SESSION-ID: $token" -X POST --header "Content-type:application/xml" -d
                               @"input.xml" https://192.168.0.1/ws/v2/service_cfg/input
                              Or
                              curl -k -i -X POST --header "Content-type:application/xml" -d @"input.xml"
                              "https://192.168.0.1/ws/v2/service_cfg/input?session=$token"
                         A maximum of 26 arguments (after the ?, and not including the session and json arguments) can be set in a
                         single POST operation from a Web Services API cURL command line request. If a POST request is made
                         that specifies more than the maximum, the response behavior is undefined (typically, the extra request
                         parameters are ignored). We highly recommend that you use the alternate write from file method to set multiple
                         arguments at the same time.
HTTP Responses
                         This section describes the HTTP status codes and content response types.
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
  4
 Web Services API
                                                                                                                     HTTP Status Codes
400_HTTP_BAD_REQUEST
401_HTTP_UNAUTHORIZED
403_HTTP_FORBIDDEN
404_HTTP_NOT_FOUND
500_HTTP_INTERNAL_SERVER_ERROR
501_HTTP_NOT_IMPLEMENTED
502_HTTP_BAD_GATEWAY
503_HTTP_SERVICE_UNAVAILABLE
504_HTTP_GATEWAY_TIMEOUT
505_HTTP_VERSION_NOT_SUPPORTED
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         5
                                                                                                                   Web Services API
     XML or JSON Response Body
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 6
 Web Services API
                                                                                                                               Base URI
              Note   The "code" in the generic "failed or success" response body is not used (most command responses set it
                     to 10). We highly recommend that you do not change the field, unless otherwise indicated in the command
                     descriptions.
Base URI
                     The base URI for an API indicates a specific or a group of functionalities, which is used in conjunction with
                     URI parameters and options.
URI Parameters
                     Each web service API can have one or more URI parameters that can alter the semantics of the API. URI
                     parameters are appended to the base URI. For instance, a request to Show API can change the type of
                     information requested by providing a URI parameter such as "inventory" or "id-eeprom":
                     https://192.168.0.1/ws/v2/test/show/inventory
                     https://192.168.0.1/ws/v2/test/show/id-eeprom
                     URI parameters should be used separately, and are separated from the base URI by "/" character.
URI Arguments
                     Options are additional variables that an API can accept as input. Options are separated from URI parameters
                     or base URI by a "?" character and are separated from each other by the "&" character.
                     Each option has a name and a value. For instance, in the URL
                     "https://192.168.0.1/ws/v2/test/show/id-eeprom?card=NDM", the string "card" indicates an option with its
                     value set to "NDM".
                         • Argument Description
                          A brief description of the argument item.
                         • Argument Type
                          Currently 5 different data types are supported for query options:
                          1 Integer
                          2 String
                          3 Boolean
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          7
                                                                                                                    Web Services API
      Access Type
                              4 IP Address
                              5 Float
                            • Argument Values
                              Values define a specific or a range of acceptable values for the option. The following list shows some
                              examples of how the values or the range of values are identified in this document:
                              1 Integer: [1 ... 40] identifies range of values from 1 to 40.
                              2 String: * is used as wildcard.
                              3 Boolean: 0 is false and 1 is true.
                              4 IP Address: e.g. 192.160.0.1
                              5 Float: 30.5
                            • Argument Applies To
                              Identifies which URI parameters a certain URI argument applies to. For example, the string "Applies:
                              id-eeprom, status-eeprom" for the argument "card"should be interpreted as: "card argument can be
                              used in conjunction only with URI parameters id-eeprom, status-eeprom".
Access Type
                        This field indicates the type and direction of interaction with the web services API. The valid types are:
                            • Read: Reading parameters from the D9800 receiver.
                            • Write: Write parameters to the D9800 receiver.
                            • Read/Write: Read or write parameters from or to the D9800 receiver.
Port Information
                        There are three types of NTC boards:
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
  8
Web Services API
                                                                                                                       Port Information
                    When using "port" as a URI argument for web services API commands, the ports are referred to as port 0,
                    port 1, port 2, and so on.
                    "Management port" is port 0. This can be used on all three types of NTC boards.
                    DATA1 is port 1. This can be used on NTC MOIP and NTC-MS boards.
                    DATA2 is port 2. This can be used on NTC MOIP and NTC-MS boards.
                    DATA3 and DATA4 is port 3 and port 4 respectively. They can only be used on the NTC-MS board.
             Note   When connecting to a unit to run web services API commands, the Management port (port 0) is used to
                    establish and maintain the connection.
                    The ports are labeled on the backplane of an assembled unit. The Management port (port 0) is labeled
                    Management. The DATA ports are labeled DATA1, DATA2, DATA3, and DATA4.
Note The Management port is also referred to as "Control port" in this document.
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          9
                                                                                                           Web Services API
     Port Information
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
10
                                                                        CHAPTER                   2
          API Definitions
          This section describes the API definitions for controling the D9800 Network Transport Receiver.
Legacy API
          The legacy API commands use the ws/v1 (Web Services v1 API) or legacy command syntax (for the cases
          of the /restore_upload.html and /cdt_upload.html usage) and are similar in behavior to those that were
          implemented in previous D98xx products.
Backup Command
          Table 1: Command Details
                            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                           11
                                                                                                                           API Definitions
     Backup Command
Table 2: Options
                       Option                                                         Description
                       STD                                                            Backs up standard data.
                      Example of issuing the backup command (assuming the STD option is specified):
                      Input:
                      curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v1/backup?t=STD"
                      Expected output (may not be exactly as shown):
                      <BKPRST>
                      <FILE_INFO><PLAT_TYPE>D9800</PLAT_TYPE><DESIGNATION>10</DESIGNATION>
                      <VERSION>1.00</VERSION>
                      <DATE_TIME>Date YYYY/DD/MM 2015/07/20 Time HR:MIN:SEC 20:57:33</DATE_TIME>
                      <FILE_NAME>file name</FILE_NAME></FILE_INFO>
                      <SETTINGS>
                      <BKPRST>
                          </SETTINGS>
                              <RECORD>
                                  <OID>1.3.6.1.4.1.1482.20.1.9.1.1.2.1</OID>
                                  <VALUE>6C410A0A</VALUE>
                              </RECORD>
                              …other XML records …
                          </SETTINGS>
                          …other XML data …
                      </BKPRST>
            Note      The XML response is not immediate and may take several seconds to complete. While the Backup command
                      is in progress, the BKPRSTSTAT UIC table should not be queried by other curl clients other than the UI
                      (if at all), in order to reduce the risk of timeout due to inter process call overhead. Prior to the completion
                      of the command, the BKPRSTSTAT UIC table is incremented, with internal state changes and incremental
                      progress percent completions, up to 100%. However, these state changes may occur faster than they are
                      polled. When the command is completed, the BKPRSTSTAT UIC table Operation Status state will set
                      back to Idle, and the Progress percentage will set back to 0%, in preparation for any subsequent Backup
                      or Restore operation. The availability of the new Backup XML data (or file Save As dialog in the case of
                      using the UI Browser) is the valid indicator for the successful completion of this command. If there is an
                      issue with generating the Backup file, then the BKPRSTSTAT UIC table Operation Status will indicate
                      the Fail state, with the Detailed Status field, indicating the reason for the Failure. Check this data only
                      after the command returns. If there is a problem with file transfer, timeout, or invoking the command,
                      then the XML response to this command will indicate a failure response through the legacy command
                      Status form.
          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
12
 API Definitions
                                                                                                                        Restore Command
Restore Command
                      Table 3: Command Details
                      Options: N/A
                      Example of issuing the restore command (assuming the filename is D9800.bkp):
                      Input:
                      curl -k -i –H "X-SESSION-ID: $token" -X POST -F
                      restorefile=@"C:/projects/d9800/D9800.bkp" "https://192.168.0.1/restore_upload.html"
                      Expected output:
                      <html><body></body></html>
               Note   The XML response is almost immediate (a few seconds at most) and does not indicate that the restore
                      command operation is completed.
                      Prior to initial run of this command after startup (prior to any Backup or Diagnostics operation), the
                      BKPRSTSTAT table may indicate that the operationStatus="Pass" while detailedStatus="Idle" and
                      percentCompleted=0".
                      Upon successful completion of the Restore operation, the BKPRSTSTAT table will indicate that the
                      operationStatus="Pass" while detailedStatus="Idle" and percentCompleted=100".
                      In order to successfully start the command from either of these states without receiving a race-logic
                      condition in which false "Pass" will be indicated, any poll loop that runs after starting the /restore command
                      must consider that
                      ALL three items ("Pass" plus "Idle" plus "100") must coincide in order to consider Restore operation to
                      be Successfully completed.
                      The progress and results of the Restore command may be determined by calling the BKPRSTSTAT
                      command every few seconds until it reports that the file restore is completed at 100 percent, or that it was
                      aborted (operationStatus="Fail") due to errors.
                      This operation may take over one minute, depending on the amount of data to validate and restore.
                                      Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          13
                                                                                                                          API Definitions
      Download User Defaults (Customer Presets) Command
                         Command Information                           Download customer presets (user defaults) onto the device. This
                                                                       command is a variation of the Restore command. The XML format
                                                                       of the ud_file_name determines whether to change the user defaults
                                                                       data.
                                                                       To make the user defaults data persistent, this command must be
                                                                       followed by a Factory Reset command (see Reset Device Control
                                                                       Command, on page 272).
                        Options: N/A
                        Example of issuing the restore user defaults command (assuming the filename is UD9800.bkp):
                        Input:
                        curl -k -i –H "X-SESSION-ID: $token" -X POST -F
                        restorefile=@"C:/projects/d9800/UD9800.bkp" "https://192.168.0.1/restore_upload.html"
                        Expected output:
                        <html><body></body></html>
                        The XML response is immediate and does not indicate that the restore command operation is completed.
                        The progress and results of the Restore command may be determined by calling the BKPRSTSTAT command
                        every few seconds until it reports that the file restore is completed at 100 percent, or that it was aborted due
                        to any possible error.
                        This operation may take over one minute, depending on the amount of data to validate and restore.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 14
 API Definitions
                                                                                                            Legacy CDT Upload Command
               Note   See the notes in the backup and restore commands for more information on intended use. See Backup
                      Command, on page 11 and Restore Command, on page 13.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        15
                                                                                                                     API Definitions
     Legacy CDT Upload Command
                      Example of issuing the upload CDT file command (assuming the filename is NTRP.cdt):
                      Input:
                      curl -k -X POST -H "X-SESSION-ID: $token" -F cdtfile=@"C:/myfiles/NTRP.cdt"
                      "https://192.168.0.1/cdt_upload.html?cdtfile=NTRP.cdt"
                      Expected output:
                      <html><body></body></html>
             Important     Due to memory constraints, in Version 2.75 or later, the traditional single command line curl variant of
                           the CDT Upload command may fail with some builds. The following describes the support for "ChunkyDL"
                           which requires the Client software to break up the source file into more manageable chunks, and issue
                           sequential POST commands to achieve the full CDT File Upload without incurring significant memory
                           allocation on the target.
                      Curl command line only supports the –F option to send multi-part HTML form body content. The command
                      line does not have a built-in method of streaming single file content in chunks of data. The –F option puts the
                      entire file into a single buffer, before sending the content out in a single POST operation.
             Note     Unlike bash scripting with the Curl command line, client software that uses libcurl native C library, Java,
                      Python bindings, PHP, or Java Script does not have the limitation or requirement to split the source file
                      up into many chunks. In these cases, the language support allows using byte array buffers and HTML
                      header creation methods to format and send the chunked multi-part HTML form POST commands.
                      In order to overcome the command line limitation, client software which runs from a bash shell may use a
                      bash shell based script to implement the following algorithm:
                          • Source file must be broken up into many files, with a maximum size of 10 MB (10*1024*1024) each.
                            This requirement may be met by pre-processing the source cdt file with the bash shell split command.
                            The "split.exe" command is available and installed on Windows client systems, using the default cygwin64
                            distribution.
                          • Each POST operation maintains the same –F file command line syntax, with the addition of a new header
                            that must be patched by the client script for each POST call. This header has three inputs per chunk (for
                            example, POST command): start offset byte (within the source file), end offset byte (included in the size
                            of the current chunk), and total source file size (in bytes).
          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
16
API Definitions
                                                                                                    Legacy CDT Upload Command
                  • Multi-POST command sequencing uses this new Content-Range header to be added to the command
                    line syntax that indicates to the target that the received "chunk" is one of many. The Content-Range
                    header is added to the command line with the –H option.
                  • Override of the default Content-Length header using –H option may be required to compensate for
                    internal MIME boundary overhead (182 bytes in addition to range size), within the body of each
                    transmitted chunk.
                             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                17
                                                                                                                         API Definitions
     Legacy CDT Upload Command
Command Information Upload a CDT file to the device using Chunky algorithm.
          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
18
API Definitions
                                                                                                        Legacy CDT Upload Command
                  Example of the POST content that needs to be sent for each chunk is as follows:
                  POST / HTTP/1.1..Host: 10.1.1.1\r\n
                    Accept: */*\r\n
                    X-SESSION-ID: 1234567890\r\n // actual value of logon sessionid would be here
                    Content-Range: bytes 0-10485759/12659933\r\n // different for each chunk
                    Content-Length: 10485942\r\n // range end_ size plus fixed 182 byte overhead
                    Content-Type: multipart/form-data;boundary=----------------------------9d4ffbe5a6c7\r\n\r\n
                    ------------------------------9d4ffbe5a6c7\r\n
                    Content-Disposition: form-data; name="cdtfile"\r\n
                    Content-Type: application/octet-stream\r\n\r\n
                    a lot of binary data where ((end_chunk + 1) - start_chunk) is
                    number of bytes size (ie. Content-Range is inclusive)
                    \r\n------------------------------9d4ffbe5a6c7--\r\n
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                    19
                                                                                                                           API Definitions
     Legacy CDT Upload Command
Table 9: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
20
 API Definitions
                                                                                                 Upload Software License File Command
                   Connection: keep-alive
                   Transfer-Encoding: chunked
                   Content-type: application/xml
                   {
                        "devicectl": {
                            "download": {
                                "settings": {
                                    "dlmode": "Always",
                                    "dlhttpchunk": "Enabled"
                                }
                            }
                        }
                   }
                   Logic for interpreting the command response:
                   If the HTTP response is 200 (OK):
                   {
                   the client software must check the dlhttpchunk value.
                       if the dlhttpchunk value is Enabled
                       {
                         the client code may use the Chunky CDT Upload command.
                       }
                       else
                       {
                        the client software must use the Legacy CDT Upload command.
                       }
                   }
                   else
                   {
                       the client software must use the Legacy CDT Upload command.
                   }
                    Command Information                          Software license files can be uploaded to the unit, the same as a
                                                                 CDT file.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        21
                                                                                                                       API Definitions
      Diagnostics Package (Export Debug File) Commands
                        Example of issuing the upload license file command (assuming the filename is D9800_lic.cdt):
                        Input:
                        curl -k -X POST -H "X-SESSION-ID: $token" -F cdtfile=@"C:/myfiles/D9800_lic.cdt"
                        "https://192.168.0.1/cdt_upload.html?cdtfile=D9800_lic.cdt"
                        Expected output:
                        <html><body></body></html>
                        Options: N/A
                        Example of issuing the diagnostics trigger command:
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 22
API Definitions
                                                                                     Diagnostics Package (Export Debug File) Commands
                     Input:
                     curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v1/diagnostics/trigger"
                     Expected output (for success case, which indicates only the specified Diag Package Preparation was started):
                     <?xml version="1.0" encoding="ISO-8859-1"
                     ?><SESSIONINFO><STATUS>Success</STATUS></SESSIONINFO>
                     Expected output (for fail case, which indicates that the Diag Package Preparation was not started):
Note You may request additional failure reason details by using the DIAGSTAT API.
                     Command Information                         Return information about Export Debug File (Diagnostics Package
                                                                 preparation) status.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        23
                                                                                                                                                             API Definitions
     Diagnostics Package (Export Debug File) Commands
                       available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D25CE</ID><VALUE><![CDATA[Done]]>
                       </VALUE><NAME><![CDATA[DETAILEDSTATUS]]></NAME><HELP_STR_1><![CDATA[State of the current
                       Export Debug Support Data operation]]></HELP_STR_1><HELP_STR_2><![CDATA[This item has 6
                       options
                       available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D25CF</ID><VALUE><![CDATA[100]]></VALUE><NAME><![CDATA[PERCENTCOMPLETE]]></NAME><HELP_STR_1><![CDATA[Progress
                         of the current Export Debug Support Data operation as a
                       percent]]></HELP_STR_1><HELP_STR_2><![CDATA[Item attribute: min(0), max(100), step size(1),
                         unit()]]></HELP_STR_2></ITEM></RECORD></TABLE></HDR>
                       Expected output (example of when diagnostics package preparation fails, and detailed reason why it
                       failed):
                       <?xml version="1.0" encoding="ISO-8859-1"
                       ?><HDR><TABLE><RECORD><ITEM><ID>0x002D25CD</ID><VALUE><![CDATA[Fail]]></VALUE><NAME><![CDATA[OPERSTATUS]]></NAME><HELP_STR_1><![CDATA[Indicates
                         whether the most recent operation passed, failed, or is in
                       progress]]></HELP_STR_1><HELP_STR_2><![CDATA[This item has 3 options
                       available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D25CE</ID><VALUE><![CDATA[Lock level too
                       high for Export Debug Support Data
                       operation]]></VALUE><NAME><![CDATA[DETAILEDSTATUS]]></NAME><HELP_STR_1><![CDATA[State of
                       the current Export Debug Support Data operation]]></HELP_STR_1><HELP_STR_2><![CDATA[This
                       item has 6 options
                       available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D25CF</ID><VALUE><![CDATA[20]]></VALUE><NAME><![CDATA[PERCENTCOMPLETE]]></NAME><HELP_STR_1><![CDATA[Progress
                         of the current Export Debug Support Data operation as a
                       percent]]></HELP_STR_1><HELP_STR_2><![CDATA[Item attribute: min(0), max(100), step size(1),
                         unit()]]></HELP_STR_2></ITEM></RECORD></TABLE></HDR>
                       Client software is expected to poll the status by calling this API every 5 seconds, while the Inprogress state
                       is active, and until the OPERSTATUS is Pass and the PERCENTCOMPLETE is 100 or the OPERSTATUS
                       is Fail. The first call should wait a minimum of 10 seconds, after the diagnostics trigger API, to allow the
                       internal states to clear. If, at any time, the OPERSTATUS is Fail, then the client software should abort additional
                       checking and report the last DETAILEDSTATUS.
                       Options: NA
                       Example of issuing the diagnostics package retrieval command:
                       Input:
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v1/diagnostics" -o diagnostics
                       Expected output (example for success case, which indicates that Diag Package Retrieval was completed):
                       % Total            % Received % Xferd                 Average Speed  Time    Time                              Time Current
                                                                               Dload Upload   Total   Spent                             Left Speed
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
24
 API Definitions
                                                                                                                               Status API
                      File name for retrieved file will be as per the –o parameter string (eg. file is
                      called "diagnostics" in this example) in the command invokation.
                      Expected output (example for fail case, which indicates that Diag Package Retrieval could not be
                      completed):
               Note   Additional failure reason details may be determined by calling the DIAGSTAT API.
                      <?xml version="1.0" encoding="ISO-8859-1" ?><SESSIONINFO><STATUS>response failure,
                      rc=192512</STATUS></SESSIONINFO>
Status API
                      This section describes the commands used to obtain input, output, and decode status information on the D9800
                      receiver.
Table 15: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                      Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                            25
                                                                                                                            API Definitions
     RF Input Status Command
                        iq                                              IQ Mode
                                                                        Type: String
                                                                        Values: "Normal" or "Opposite"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
26
API Definitions
                                                                                                            RF Input Status Command
                  lO1                                           LO Select 1
                                                                Type: Float
                                                                Values: 0.0 … 15.0
                  lO2                                           LO Select 2
                                                                Type: Float
                                                                Values: 0.0 … 15.0
                  pol                                           Polarization
                                                                Type: String
                                                                Values: “Horizontal”, “Vertical”, “Auto”
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      27
                                                                                                                        API Definitions
     RF Input Status Command
                        netid                                           Network ID
                                                                        Type: Integer
                                                                        Values: 0…65535
                        transid                                         Transport ID
                                                                        Type: Integer
                                                                        Values: 0…65535
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
28
API Definitions
                                                                                                              RF Input Status Command
                  Input Example:
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/input/rf?js=1"
                  Expected output (values are for example purposes only):
                  {
                      "input": {
                          "rf": [
                              {
                                       "port": "1",
                                       "dnlkfreq": "12.31003",
                                       "symrate": "30.0",
                                       "fec": "9/10",
                                       "mod": "8PSK DVB-S2",
                                       "rolloff": ".35",
                                       "iq": "Normal",
                                       "pwr": "Off",
                                       "sel22khz": "Off",
                                       "lo1": "10.75",
                                       "lo2": "0.0",
                                       "xover": "0.0",
                                       "pol": "Horizontal",
                                       "orbpos": "0.0",
                                       "ewflag": "N/A",
                                       "afcrange": "3.0",
                                       "acqmode": "Basic",
                                       "satlock": "No Lock",
                                       "inputrate": "0.0",
                                       "netname": "",
                                       "netid": "",
                                       "transid": "",
                                       "lsttunerea": "User_Change",
                                       "tunereason": "User",
                                       "freqmode": "NIT",
                                       "svclstmode": "Rigorous",
                                       "baten": "No",
                                       "niten": "Yes",
                                       "sdten": "Yes",
                                       "paten": "Yes"
                                 },
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        29
                                                                                                          API Definitions
     RF Input Status Command
                                       {
                                             "port": "2",
                                             "dnlkfreq": "12.31003",
                                             "symrate": "30.0",
                                             "fec": "9/10",
                                             "mod": "8PSK DVB-S2",
                                             "rolloff": ".35",
                                             "iq": "Normal",
                                             "pwr": "Off",
                                             "sel22khz": "Off",
                                             "lo1": "10.75",
                                             "lo2": "0.0",
                                             "xover": "0.0",
                                             "pol": "Horizontal",
                                             "orbpos": "0.0",
                                             "ewflag": "N/A",
                                             "afcrange": "3.0",
                                             "acqmode": "Basic",
                                             "satlock": "Lock+Sig",
                                             "inputrate": "0.0",
                                             "netname": "Effete",
                                             "netid": "1",
                                             "transid": "201",
                                             "lsttunerea": "User_Change",
                                             "tunereason": "User",
                                             "freqmode": "NIT",
                                             "svclstmode": "Rigorous",
                                             "baten": "No",
                                             "niten": "Yes",
                                             "sdten": "No",
                                             "paten": "No"
                                       },
                                       {
                                             "port": "3",
                                             "dnlkfreq": "12.31003",
                                             "symrate": "30.0",
                                             "fec": "9/10",
                                             "mod": "8PSK DVB-S2",
                                             "rolloff": ".35",
                                             "iq": "Normal",
                                             "pwr": "Off",
                                             "sel22khz": "Off",
                                             "lo1": "5.15",
                                             "lo2": "0.0",
                                             "xover": "0.0",
                                             "pol": "Horizontal",
                                             "orbpos": "0.0",
                                             "ewflag": "N/A",
                                             "afcrange": "3.0",
                                             "acqmode": "Basic",
                                             "satlock": "No Lock",
                                             "inputrate": "0.0",
                                             "netname": "",
                                             "netid": "",
                                             "transid": "",
                                             "lsttunerea": "User_Change",
                                             "tunereason": "User",
                                             "freqmode": "NIT",
                                             "svclstmode": "Rigorous",
                                             "baten": "No",
                                             "niten": "Yes",
                                             "sdten": "Yes",
                                             "paten": "Yes"
                                       },
                                       {
                                             "port": "4",
                                             "dnlkfreq": "12.31003",
                                             "symrate": "30.0",
                                             "fec": "9/10",
                                             "mod": "8PSK DVB-S2",
                                             "rolloff": ".35",
                                             "iq": "Normal",
                                             "pwr": "Off",
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
30
 API Definitions
                                                                                                            ASI Input Status Command
                                      "sel22khz": "Off",
                                      "lo1": "5.15",
                                      "lo2": "0.0",
                                      "xover": "0.0",
                                      "pol": "Horizontal",
                                      "orbpos": "0.0",
                                      "ewflag": "N/A",
                                      "afcrange": "3.0",
                                      "acqmode": "Basic",
                                      "satlock": "No Lock",
                                      "inputrate": "0.0",
                                      "netname": "",
                                      "netid": "",
                                      "transid": "",
                                      "lsttunerea": "User_Change",
                                      "tunereason": "User",
                                      "freqmode": "NIT",
                                      "svclstmode": "Rigorous",
                                      "baten": "No",
                                      "niten": "Yes",
                                      "sdten": "Yes",
                                      "paten": "Yes"
                                  }
                            ]
                       }
                   }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       31
                                                                                                                            API Definitions
     ASI Input Status Command
Table 18: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                        netid                                          Network ID
                                                                       Type: Integer
                                                                       Values: 0…65535
                        transid                                        Transport ID
                                                                       Type: Integer
                                                                       Values: 0…65535
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
32
API Definitions
                                                                                                           ASI Input Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      33
                                                                                                          API Definitions
     ASI Input Status Command
                       Input Example:
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/input/asi?js=1"
                       Expected output (values are for example purposes only):
                       {
                            "input": {
                                "asi": {
                                    "port": "1",
                                    "asilock": "NoLock",
                                    "inputrate": "0.0",
                                    "netname": "",
                                    "netid": "",
                                    "transid": "",
                                    "scrambmode": "Unk",
                                    "transerr": "Error",
                                    "asilinkerr": "Error",
                                    "asipktsize": "N/A",
                                    "lsttunerea": "User_Change",
                                    "tunereason": "User",
                                    "freqmode": "User Cfg",
                                    "svclstmode": "Rigorous",
                                    "baten": "No",
                                    "niten": "No",
                                    "sdten": "Yes",
                                    "paten": "Yes"
                                }
                            }
                       }
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
34
 API Definitions
                                                                                                               IP Input Status Command
Table 21: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         35
                                                                                                                     API Definitions
     IP Input Status Command
                        netid                                      Network ID
                                                                   Type: Integer
                                                                   Values: 0…65535
                        transid                                    Transport ID
                                                                   Type: Integer
                                                                   Values: 0…65535
                        ipsignal                                   IP Signal
                                                                   Type: String
                                                                   Values: "None" or "Active"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
36
API Definitions
                                                                                                            IP Input Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      37
                                                                                                          API Definitions
     IP Input Status Command
                       Input Example:
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/input/moip?js=1"
                       Expected output (values are for example purposes only):
                       {
                               "input": {
                                   "moip": {
                                       "port": "1",
                                       "moiplock": "No Lock",
                                       "inputrate": "0.0",
                                       "netid": "",
                                       "transid": "",
                                       "scrambmode": "Unk",
                                       "transerr": "N/A",
                                       "iplinkstat": "Down",
                                       "ipsignal": "None",
                                       "feclock": "None",
                                       "pcrlock": "No",
                                       "dejitlaten": "110",
                                       "datasrc1": "0.0.0.0",
                                       "datasrc2": "0.0.0.0",
                                       "data1tstyp": "Unk",
                                       "data2tstyp": "Unk",
                                       "lsttunerea": "User_Change",
                                       "tunereason": "User",
                                       "freqmode": "User Cfg",
                                       "svclstmode": "Rigorous",
                                       "baten": "No",
                                       "niten": "No",
                                       "sdten": "Yes",
                                       "paten": "Yes"
                                   }
                               }
                       }
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
38
 API Definitions
                                                                                                             ABR Input Status Command
Table 24: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        39
                                                                                                                    API Definitions
     ABR Input Status Command
                        netid                                      Network ID
                                                                   Type: Integer
                                                                   Values: 0…65535
                        transid                                    Transport ID
                                                                   Type: Integer
                                                                   Values: 0…65535
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
40
API Definitions
                                                                                                          ABR Input Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     41
                                                                                                                        API Definitions
     ABR Input Status Command
                       Input Example:
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/input/abr?js=1"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
42
API Definitions
                                                                                                         ABR Input Status Command
                                Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                    43
                                                                                                                            API Definitions
      Zixi Input Status Command
                                              "dlcurtrglat": "0"
                                        }
                                   ]
                              }
                        }
Table 27: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 44
API Definitions
                                                                                                             Zixi Input Status Command
                   netid                                             Network ID
                                                                     Type: Integer
                                                                     Values: 0…65535
                   transid                                           Transport ID
                                                                     Type: Integer
                                                                     Values: 0…65535
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         45
                                                                                                                    API Definitions
     Zixi Input Status Command
                        inputid                                            Input Id
                                                                           Type: String
                                                                           Values: "ZIXI1", "ZIXI2"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
46
API Definitions
                                                                                                           Zixi Input Status Command
                  Example:
                  Input:
                  curl -k -H "X-SESSION-ID: $token"
                  https://192.168.0.1/ws/v2/status/input/zixi?stream=1&js=1"
                  Expected output (values are for example purposes only):
                  {
                      "input": {
                          "zixi": {
                              "stream": "1",
                              "act": "Yes",
                              "lock": "Lock+Sig",
                              "iplinkstat": "Up",
                              "ipsignal": "Active",
                              "inputrate": "7.17246",
                              "netname": "",
                              "netid": "",
                              "transid": "1",
                              "scrambmode": "Unk",
                              "lsttunerea": "User_Change",
                              "tunereason": "User",
                              "freqmode": "User Cfg",
                              "svclstmode": "Relaxed",
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       47
                                                                                                                            API Definitions
      PE Status Command
                                         "baten": "N/A",
                                         "niten": "N/A",
                                         "sdten": "No",
                                         "paten": "Yes",
                                         "acqstatus": "Partial",
                                         "inputid": "ZIXI1",
                                         "reconn": "0",
                                         "arqrec": "0",
                                         "fecrec": "0",
                                         "notrec": "0",
                                         "rowstatus": "Active",
                                         "cursrc": "zixi://tor02lab-s-002.cisco.com:2077/cisco-BBB"
                                    }
                               }
                          }
PE Status Command
                          Table 29: Command Details
Table 30: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 48
API Definitions
                                                                                                                   PE Status Command
                   caauth                                        CA authorized
                                                                 Type: String
                                                                 Values: "Yes", "No"
                   caencrypt                                     CA Encrypted
                                                                 Type: String
                                                                 Values: "Yes", "No"
                   cascramble                                    CA Scrambled
                                                                 Type: String
                                                                 Values: "Yes", "No"
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       49
                                                                                                                          API Definitions
     PE Status Command
                         srstatus                                      SR Status
                                                                       Type: String
                                                                       Values: "Not Started", "Primary", "Alternate"
                         srtype                                        SR Type
                                                                       Type: String
                                                                       Values: "None", "Scheduled", "CA", "Cue Trigger"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
50
API Definitions
                                                                                                                 PE Status Command
                  peenabled                                    PE enabled
                                                               Type: String
                                                               Values: "Yes", "No"
                  hdlicensed                                   HD Licensed
                                                               Type: String
                                                               Values: "Yes", "No"
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     51
                                                                                                                            API Definitions
      CA PowerVu Status Command
                                       "chsource": "User"
                                  }
                             }
                       }
                        Command Information                           This command returns (or clears counters for) PowerVu Status
                                                                      information.
Table 33: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 52
API Definitions
                                                                                                          CA PowerVu Status Command
                       <iseuseradd>000-529-2431-6<iseuseradd>
                       <encpktpass>10490</encpktpass>
                       <encpktrcv>10490</encpktrcv>
                       <nencpktpass>8390</nencpktpass>
                       <nencpktrcv>8390</nencpktrcv>
                    </pvu>
                   </pvu>
                  Input Example (request JSON format):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/ca/pvu?js=1"
                  Expected output (values are for example purposes only):
                  {
                       "ca": {
                           "pvu": [
                               {
                                   "iseuseradd": "000-529-2431-6",
                                   "encpktpass": "10490",
                                   "encpktrcv": "10490",
                                   "nencpktpass": "8390",
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      53
                                                                                                                            API Definitions
      CI (Common Interface) CAM Status Command
                                              "nencpktrvc": "8390"
                                        },
                                        {
                                              "iseuseradd": "000-529-2432-3",
                                              "encpktpass": "10388",
                                              "encpktrcv": "10388",
                                              "nencpktpass": "8392",
                                              "nencpktrvc": "8392"
                                        }
                                    ]
                                }
                        }
Table 36: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 54
API Definitions
                                                                                           CI (Common Interface) CAM Status Command
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      55
                                                                                                                         API Definitions
      CISYS Status Command
                        Input Example:
                        curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/ca/ci"
                        Expected output (values are for example purposes only):
                        <ca>
                          <ci>
                           <slot>
                            <slotid>TOP</slotId>
                            <camstatus>Ready</camstatus>
                            <sysname>Irdeto Aston 2.1510</sysname>
                            …..
                           </slot>
                           <slot>
                            <slotId>BOTTOM</slotid>
                            <camstatus>Not Ready</camstatus>
                            <sysname> </sysname>
                           </slot>
                          </ci>
                            </ca>
                        Get Status for TOP slot in JSON format:
                        curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/ca/ci?slot=TOP&js=1"
                        Expected output (values are for example purposes only):
                        {
                             "ca": {
                                 "ci": {
                                     "slot": "TOP",
                                     "camstatus": "Ready",
                                     "sysname": "Sony_MSM Professional CAM",
                                     "compname": "SMIT",
                                     "mfgcode": "47806",
                                     "mfgid": "51966",
                                     "serialno": "Unknown",
                                     "hwver": "Unknown",
                                     "appver": "Firmware: 4.1.8 M, App-V12, May 30 2016",
                                     "prodcode": "DVB CA Module"
                                 }
                             }
                        }
                         Command Information                           Return information about Common Interface (CI) CAMs supported
                                                                       System IDs.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 56
API Definitions
                                                                                                                CISYS Status Command
Table 39: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       57
                                                                                                                             API Definitions
      Useraddr Status Command
Table 42: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 58
 API Definitions
                                                                                                                Output Status Command
Command Information This command can be used to get all output status parameters.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        59
                                                                                                                           API Definitions
     Output Status Command
Table 45: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
60
API Definitions
                                                                                                             Output Status Command
                  <scrambled>No</scrambled></pid><pid><peid>1</peid><row>9</row><inpid>2906</inpid><outpid>2906
                  </outpid><inchan>2906</inchan><type>VBI</type><received>No</received><pcr>No</pcr>
                  <scrambled>No</scrambled></pid><pid><peid>1</peid><row>10</row><inpid>1511</inpid><outpid>1511
                  </outpid><inchan>1511</inchan><type>AUD</type><received>Yes</received><pcr>No</pcr>
                  <scrambled>No</scrambled></pid><pid><peid>1</peid><row>11</row><inpid>1501</inpid><outpid>1501
                  </outpid><inchan>1501</inchan><type>AUD</type><received>Yes</received><pcr>No</pcr>
                  <scrambled>No</scrambled></pid><pid><peid>1</peid><row>12</row><inpid>1102</inpid><outpid>1102
                  </outpid><inchan>1102</inchan><type>AUD</type><received>Yes</received><pcr>No</pcr>
                  <scrambled>No</scrambled></pid><pid><peid>1</peid><row>13</row><inpid>1113</inpid><outpid>1113
                  </outpid><inchan>1113</inchan><type>AUD</type><received>Yes</received><pcr>No</pcr>
                  <scrambled>No</scrambled></pid><pid><peid>1</peid><row>14</row><inpid>2750</inpid><outpid>2750
                  </outpid><inchan>2750</inchan><type>SUBT</type><received>Yes</received><pcr>No</pcr>
                  <scrambled>No</scrambled></pid><collision><status>No Record in Dynamic
                  Table</status></collision>
                  </moip></output>
                  Input example (request JSON format):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output?js=1"
                  Expected output (values are for example purposes only):
                  {
                      "output": {
                          "asi": {
                              "rate": "78.535922",
                              "free": "0.0",
                              "pid": [
                                  {
                                      "peid": "1",
                                      "row": "1",
                                      "inpid": "1500",
                                      "outpid": "1500",
                                      "inchan": "1500",
                                      "type": "VID",
                                      "received": "No",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "2",
                                      "inpid": "3349",
                                      "outpid": "3349",
                                      "inchan": "3349",
                                      "type": "LSDT",
                                      "received": "Yes",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "3",
                                      "inpid": "4001",
                                      "outpid": "4001",
                                      "inchan": "4001",
                                      "type": "MPE",
                                      "received": "No",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "4",
                                      "inpid": "4002",
                                      "outpid": "4002",
                                      "inchan": "4002",
                                      "type": "MPE",
                                      "received": "No",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "5",
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     61
                                                                                                          API Definitions
     Output Status Command
                                                   "inpid": "4003",
                                                   "outpid": "4003",
                                                   "inchan": "4003",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "6",
                                                   "inpid": "4004",
                                                   "outpid": "4004",
                                                   "inchan": "4004",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "7",
                                                   "inpid": "4005",
                                                   "outpid": "4005",
                                                   "inchan": "4005",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "8",
                                                   "inpid": "1550",
                                                   "outpid": "1550",
                                                   "inchan": "1550",
                                                   "type": "DPI",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "9",
                                                   "inpid": "2906",
                                                   "outpid": "2906",
                                                   "inchan": "2906",
                                                   "type": "VBI",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "10",
                                                   "inpid": "1511",
                                                   "outpid": "1511",
                                                   "inchan": "1511",
                                                   "type": "AUD",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "11",
                                                   "inpid": "1501",
                                                   "outpid": "1501",
                                                   "inchan": "1501",
                                                   "type": "AUD",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
62
API Definitions
                                                                                                  Output Status Command
                          },
                          {
                               "peid": "1",
                               "row": "12",
                               "inpid": "1102",
                               "outpid": "1102",
                               "inchan": "1102",
                               "type": "AUD",
                               "received": "Yes",
                               "pcr": "No",
                               "scrambled": "No"
                          },
                          {
                               "peid": "1",
                               "row": "13",
                               "inpid": "1113",
                               "outpid": "1113",
                               "inchan": "1113",
                               "type": "AUD",
                               "received": "Yes",
                               "pcr": "No",
                               "scrambled": "No"
                          },
                          {
                               "peid": "1",
                               "row": "14",
                               "inpid": "2750",
                               "outpid": "2750",
                               "inchan": "2750",
                               "type": "SUBT",
                               "received": "Yes",
                               "pcr": "No",
                               "scrambled": "No"
                         }
                     ],
                     "collision": {
                         "status": "No Record in Dynamic Table"
                     }
                  },
                  "moip": {
                      "enginerr": "No",
                      "overflow": "No",
                      "comrate": "68.5",
                      "ts1rate": "0.0",
                      "ts2rate": "0.0",
                      "pid": [
                          {
                              "peid": "1",
                              "row": "1",
                              "inpid": "1500",
                              "outpid": "1500",
                              "inchan": "1500",
                              "type": "VID",
                              "received": "No",
                              "pcr": "No",
                              "scrambled": "No"
                          },
                          {
                              "peid": "1",
                              "row": "2",
                              "inpid": "3349",
                              "outpid": "3349",
                              "inchan": "3349",
                              "type": "LSDT",
                              "received": "Yes",
                              "pcr": "No",
                              "scrambled": "No"
                          },
                          {
                              "peid": "1",
                              "row": "3",
                              "inpid": "4001",
                              "outpid": "4001",
                      Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                          63
                                                                                                          API Definitions
     Output Status Command
                                                   "inchan": "4001",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "4",
                                                   "inpid": "4002",
                                                   "outpid": "4002",
                                                   "inchan": "4002",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "5",
                                                   "inpid": "4003",
                                                   "outpid": "4003",
                                                   "inchan": "4003",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "6",
                                                   "inpid": "4004",
                                                   "outpid": "4004",
                                                   "inchan": "4004",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "7",
                                                   "inpid": "4005",
                                                   "outpid": "4005",
                                                   "inchan": "4005",
                                                   "type": "MPE",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "8",
                                                   "inpid": "1550",
                                                   "outpid": "1550",
                                                   "inchan": "1550",
                                                   "type": "DPI",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "9",
                                                   "inpid": "2906",
                                                   "outpid": "2906",
                                                   "inchan": "2906",
                                                   "type": "VBI",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
64
API Definitions
                                                                                                          Output Status Command
                                       "peid": "1",
                                       "row": "10",
                                       "inpid": "1511",
                                       "outpid": "1511",
                                       "inchan": "1511",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "11",
                                       "inpid": "1501",
                                       "outpid": "1501",
                                       "inchan": "1501",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "12",
                                       "inpid": "1102",
                                       "outpid": "1102",
                                       "inchan": "1102",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "13",
                                       "inpid": "1113",
                                       "outpid": "1113",
                                       "inchan": "1113",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "14",
                                       "inpid": "2750",
                                       "outpid": "2750",
                                       "inchan": "2750",
                                       "type": "SUBT",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  }
                              ],
                              "collision": {
                                  "status": "No Record in Dynamic Table"
                              }
                          }
                      }
                  }
                              Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                  65
                                                                                                                            API Definitions
     Output Status Command
Table 48: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
66
API Definitions
                                                                                                               Output Status Command
                  Example on NTC single-stream unit, where no ASI output configured (request XML format):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/asi"
                  Expected output (values are for example purposes only):
                  <?xml version="1.0" encoding="ISO-8859-1" ?>
                  <output>
                      <asi>
                      <rate>0.0</rate>
                      <free>0.0</free>
                          <pid>
                          <status>No Record in Dynamic Table</status>
                          </pid>
                          <collision>
                          <status>No Record in Dynamic Table</status>
                      </collision>
                  </asi>
                  </output>
                  Example on NTC MS unit in JSON format:
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/asi2?js=1"
                  Expected output (values are for example purposes only):
                  {
                          "output": {
                              "asi2": {
                                  "rate": "78.535695",
                                  "free": "0.0",
                                  "pid": [
                                      {
                                          "peid": "1",
                                          "row": "1",
                                          "inpid": "1500",
                                          "outpid": "1500",
                                          "inchan": "1500",
                                          "type": "VID",
                                          "received": "No",
                                          "pcr": "No",
                                          "scrambled": "No"
                                      },
                                      {
                                          "peid": "1",
                                          "row": "2",
                                          "inpid": "3349",
                                          "outpid": "3349",
                                          "inchan": "3349",
                                          "type": "LSDT",
                                          "received": "Yes",
                                          "pcr": "No",
                                          "scrambled": "No"
                                      },
                                      {
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       67
                                                                                                          API Definitions
     Output Status Command
                                                   "peid": "1",
                                                   "row": "3",
                                                   "inpid": "4001",
                                                   "outpid": "4001",
                                                   "inchan": "4001",
                                                   "type": "MPE",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "4",
                                                   "inpid": "4002",
                                                   "outpid": "4002",
                                                   "inchan": "4002",
                                                   "type": "MPE",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "5",
                                                   "inpid": "4003",
                                                   "outpid": "4003",
                                                   "inchan": "4003",
                                                   "type": "MPE",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "6",
                                                   "inpid": "4004",
                                                   "outpid": "4004",
                                                   "inchan": "4004",
                                                   "type": "MPE",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "7",
                                                   "inpid": "4005",
                                                   "outpid": "4005",
                                                   "inchan": "4005",
                                                   "type": "MPE",
                                                   "received": "Yes",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "8",
                                                   "inpid": "1550",
                                                   "outpid": "1550",
                                                   "inchan": "1550",
                                                   "type": "DPI",
                                                   "received": "No",
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             },
                                             {
                                                   "peid": "1",
                                                   "row": "9",
                                                   "inpid": "2906",
                                                   "outpid": "2906",
                                                   "inchan": "2906",
                                                   "type": "VBI",
                                                   "received": "No",
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
68
API Definitions
                                                                                                          Output Status Command
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "10",
                                       "inpid": "1511",
                                       "outpid": "1511",
                                       "inchan": "1511",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "11",
                                       "inpid": "1501",
                                       "outpid": "1501",
                                       "inchan": "1501",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "12",
                                       "inpid": "1102",
                                       "outpid": "1102",
                                       "inchan": "1102",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "13",
                                       "inpid": "1113",
                                       "outpid": "1113",
                                       "inchan": "1113",
                                       "type": "AUD",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  },
                                  {
                                       "peid": "1",
                                       "row": "14",
                                       "inpid": "2750",
                                       "outpid": "2750",
                                       "inchan": "2750",
                                       "type": "SUBT",
                                       "received": "Yes",
                                       "pcr": "No",
                                       "scrambled": "No"
                                  }
                              ],
                              "collision": {
                                  "status": "No Record in Dynamic Table"
                              }
                          }
                      }
                  }
                              Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                  69
                                                                                                                          API Definitions
     Output Status Command
Table 52: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
70
API Definitions
                                                                                                               Output Status Command
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       71
                                                                                                                           API Definitions
     Output Status Command
                                   <received>Yes</received>
                                   <pcr>No</pcr>
                                   <scrambled>No</scrambled>
                               </pid>
                               <collision>
                                   <status>No Record in Dynamic Table</status>
                               </collision>
                           </moip>
                       </output>
                       Example on NTC multi-stream unit:
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/moip1"
                       Expected output (values are for example purposes only):
                       <?xml version="1.0" encoding="ISO-8859-1" ?>
                       <output>
                       <moip1>
                           <enginerr>No</enginerr>
                           <overflow>No</overflow>
                           <comrate>68.5</comrate>
                           <ts1rate>0.0</ts1rate>
                           <ts2rate>0.0</ts2rate>
                           <pid>
                               <peid>1</peid>
                               <row>1</row>
                               <inpid>2100</inpid>
                               <outpid>2100</outpid>
                               <inchan>2100</inchan>
                               <type>VID</type>
                               <received>Yes</received>
                               <pcr>Yes</pcr>
                               <scrambled>No</scrambled>
                           </pid>
                           <pid>
                               <peid>1</peid>
                               <row>2</row>
                               <inpid>2110</inpid>
                               <outpid>2110</outpid>
                               <inchan>2110</inchan>
                               <type>AUD</type>
                               <received>Yes</received>
                               <pcr>No</pcr>
                               <scrambled>Yes</scrambled>
                           </pid>
                           <collision>
                               <status>No Record in Dynamic Table</status>
                           </collision>
                           </moip1>
                       </output>
                        Command Information                           This command can be used to read all ASI/MOIP DPM PMT PID
                                                                      Output Status parameters.
                                                                      Note      Partial response is not supported. This command returns
                                                                                the status of all active peid and row key combinations for
                                                                                all output fields for the specified MOIP or ASI.
                        HTTP Method                                   GET
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
72
API Definitions
                                                                                                              Output Status Command
Table 55: URI <level_1> URI Parameters (extension to the Command URL separated by /)
Table 56: URI <level_2> URI Parameters (extension to the Command URL separated by /)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      73
                                                                                                                           API Definitions
     Output Status Command
Table 57: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                        pcr                                               PCR
                                                                          Type: Boolean
                                                                          Values: "Yes", "No"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
74
API Definitions
                                                                                                             Output Status Command
                  ASI Example on NTC single-stream unit (for which ASI output was not configured):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/asi/pid&js=1"
                  Expected output (values are for example purposes only):
                  {
                      "output": {
                          "asi": {
                              "pid": {
                                  "status": "No Record in Dynamic Table"
                              }
                          }
                      }
                  }
                  ASI Example on NTC single-stream unit (for which ASI output was configured):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/asi/pid&js=1"
                  Expected output (values are for example purposes only):
                  {
                      "output": {
                          "asi": {
                              "pid": [
                                  {
                                      "peid": "1",
                                      "row": "1",
                                      "inpid": "2200",
                                      "outpid": "2200",
                                      "type": "VID",
                                      "received": "Yes",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "2",
                                      "inpid": "2210",
                                      "outpid": "2210",
                                      "type": "AUD",
                                      "received": "Yes",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "3",
                                      "inpid": "18",
                                      "outpid": "18",
                                      "type": "UNKN",
                                      "received": "No",
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     75
                                                                                                          API Definitions
     Output Status Command
                                                   "pcr": "No",
                                                   "scrambled": "No"
                                             }
                                       ]
                                  }
                             }
                       }
                       MOIP example on NTC single-stream unit (for which MOIP output was configured):
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/moip/pid&js=1"
                       Expected output (values are for example purposes only):
                       {
                             "output": {
                                 "moip": {
                                     "pid": [
                                         {
                                             "peid": "1",
                                             "row": "1",
                                             "inpid": "2200",
                                             "outpid": "2200",
                                             "type": "VID",
                                             "received": "Yes",
                                             "pcr": "Yes",
                                             "scrambled": "No"
                                         },
                                         {
                                             "peid": "1",
                                             "row": "2",
                                             "inpid": "2210",
                                             "outpid": "2210",
                                             "type": "AUD",
                                             "received": "Yes",
                                             "pcr": "No",
                                             "scrambled": "No"
                                         },
                                         {
                                             "peid": "1",
                                             "row": "3",
                                             "inpid": "18",
                                             "outpid": "18",
                                             "type": "UNKN",
                                             "received": "No",
                                             "pcr": "No",
                                             "scrambled": "No"
                                         }
                                     ]
                                 }
                             }
                       }
                       ASI Example on NTC multi-stream unit (for which ASI2 output was configured):
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/asi2/pid&js=1"
                       Expected output (values are for example purposes only):
                       {
                             "output": {
                                 "asi2": {
                                     "pid": [
                                         {
                                             "peid": "1",
                                             "row": "1",
                                             "inpid": "2200",
                                             "outpid": "2200",
                                             "type": "VID",
                                             "received": "No",
                                             "pcr": "No",
                                             "scrambled": ""
                                         },
                                         {
                                             "peid": "1",
                                             "row": "2",
                                             "inpid": "2210",
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
76
API Definitions
                                                                                                             Output Status Command
                                          "outpid": "2210",
                                          "type": "AUD",
                                          "received": "No",
                                          "pcr": "No",
                                          "scrambled": ""
                                     },
                                     {
                                          "peid": "1",
                                          "row": "3",
                                          "inpid": "18",
                                          "outpid": "18",
                                          "type": "UNKN",
                                          "received": "No",
                                          "pcr": "No",
                                          "scrambled": ""
                                     }
                                ]
                  MOIP Example on NTC multi-stream unit (for which MOIP1 output was configured):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/moip1/pid&js=1"
                  Expected output (values are for example purposes only):
                  {
                      "output": {
                          "moip1": {
                              "pid": [
                                  {
                                      "peid": "1",
                                      "row": "1",
                                      "inpid": "2200",
                                      "outpid": "2200",
                                      "type": "VID",
                                      "received": "Yes",
                                      "pcr": "Yes",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "2",
                                      "inpid": "2210",
                                      "outpid": "2210",
                                      "type": "AUD",
                                      "received": "Yes",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  },
                                  {
                                      "peid": "1",
                                      "row": "3",
                                      "inpid": "18",
                                      "outpid": "18",
                                      "type": "UNKN",
                                      "received": "No",
                                      "pcr": "No",
                                      "scrambled": "No"
                                  }
                              ]
                          }
                      }
                  }
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     77
                                                                                                                           API Definitions
     Output Status Command
Table 60: URI <level_1> URI Parameters (extension to the Command URL separated by /)
Table 61: URI <level_2> URI Parameters (extension to the Command URL separated by /)
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
78
API Definitions
                                                                                                               Output Status Command
Table 62: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                   peidx1                                                       PE index-1
                                                                                Type: Integer
                                                                                Values: 1..32
                   peidx2                                                       PE index-2
                                                                                Type: Integer
                                                                                Values: 1..32
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       79
                                                                                                                               API Definitions
     Output Status Command
                       ASI example on single-stream unit (for which ASI output was configured):
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/output/asi/collision&js=1"
                       Expected output (values are for example purposes only):
                       {
                             "output": {
                                 "asi": {
                                     "collision": {
                                         "status": "No Record in Dynamic Table"
                                     }
                                 }
                             }
                       }
                       MOIP example on single-stream unit (for which MOIP output was configured):
                       curl -k -H "X-SESSION-ID: $token"
                       "https://192.168.0.1/ws/v2/status/output/moip/collision&js=1"
                       Expected output (values are for example purposes only):
                       {
                             "output": {
                                 "moip": {
                                     "collision": {
                                         "status": "No Record in Dynamic Table"
                                     }
                                 }
                             }
                       }
                       ASI Example on NTC multi-stream unit (for which ASI1 output was configured):
                       curl -k -H "X-SESSION-ID: $token"
                       "https://192.168.0.1/ws/v2/status/output/asi1/collision&js=1"
                       Expected output (values are for example purposes only):
                       {
                             "output": {
                                 "asi1": {
                                     "collision": {
                                         "status": "No Record in Dynamic Table"
                                     }
                                 }
                             }
                       }
                       MOIP Example on NTC multi-stream unit (for which MOIP2 output was configured):
                       curl -k -H "X-SESSION-ID: $token"
                       "https://192.168.0.1/ws/v2/status/output/moip2/collision&js=1"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
80
 API Definitions
                                                                                                        Video Decode Status Command
                   Command Information                          This command can be used to read all video decode status.
                                                                Note    Partial response is not supported. This command returns
                                                                        the status of all video decode output fields.
                   HTTP Method                                  GET
Table 65: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      81
                                                                                                                  API Definitions
     Video Decode Status Command
                       Example:
                       curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/decode/video"
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
82
 API Definitions
                                                                                                         Audio Decode Status Command
                    Command Information                          This command is used to read all the audio decode statuses.
                                                                 Note      Partial response is not supported. This command returns
                                                                           the status of all audio decode output fields.
                    HTTP Method                                  GET
Table 68: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       83
                                                                                                                       API Definitions
     Audio Decode Status Command
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
84
 API Definitions
                                                                                                  Audio STC302 Decode Status Command
                       <pid>
                       </pid>
                       <lang></lang>
                       <ddpmode>OFF</ddpmode>
                       <dualmono>OFF</dualmono>
                   </audio>
                   </decode>
                   Get Audio Device 1 status in JSON format:
                   curl -k -H "X-SESSION-ID: $token"
                   "https://192.168.0.1/ws/v2/status/decode/audio?device=1&js=1"
                   Expected output (values are for example purposes only):
                   {
                        "decode": {
                            "audio": {
                                "device": "1",
                                "mode": "None",
                                "bitrate": "0",
                                "bufferlvl": "0",
                                "sfr": "0.0",
                                "pid": "",
                                "lang": "",
                                "ddpmode": "OFF",
                                "dualmono": "OFF"
                            }
                        }
                   }
Command Information This command can be used to read all ST302 audio decode status.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       85
                                                                                                                          API Definitions
      Closed Caption (CC) Decode Status Command
                        {
                             "decode": {
                                 "aud_st302": {
                                     "device": "1",
                                     "streamformat": "Unknown",
                                     "numstreams": "0",
                                     "packetsize": "Unknown",
                                     "dolbyconfig": "Unknown"
                                 }
                             }
                        }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 86
API Definitions
                                                                                           Closed Caption (CC) Decode Status Command
Table 73: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       87
                                                                                                                            API Definitions
      VBI Decode Status Command
                         Command Information                           This command is used to read all VBI decode statuses.
                                                                       Note        Partial response is not supported. This command returns
                                                                                   the status of all closed caption decode output fields.
                         HTTP Method                                   GET
Table 76: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 88
 API Definitions
                                                                                                           SDI Decode Status Command
                    Command Information                          This command is used to read all SDI global or SDI services decode
                                                                 status.
                                                                 Note      Partial response is not supported. This command returns
                                                                           the status of all decode output fields for the specified
                                                                           level_1_parm SDI type.
                    HTTP Method                                  GET
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       89
                                                                                                                          API Definitions
     SDI Decode Status Command
Table 79: URI Parameters (extension to the Command URL separated by /):
Table 80: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
90
API Definitions
                                                                                                         SDI Decode Status Command
Table 82: Output Field Descriptions when requesting SDI Services Status (sdisvc)
                  topline                                         Line number where VANC service is located (in top field or
                                                                  frame)
                                                                  Type: Integer
                                                                  Values: 0 ... 4294967295
                  bottomline                                      Line number where VANC service is located (in bottom field)
                                                                  Type: Integer
                                                                  Values: 0 ... 4294967295
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     91
                                                                                                                       API Definitions
     SDI Decode Status Command
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
92
 API Definitions
                                                                                                       HDMI Decode Status Command
                                      "avgdroppkt": "0"
                                 },
                                 {
                                      "serviceid": "DPI",
                                      "active": "No",
                                      "adjline": "3",
                                      "topline": "0",
                                      "bottomline": "0",
                                      "maxlines": "0",
                                      "avgdata": "0",
                                      "avgtranpkt": "0",
                                      "avgdroppkt": "0"
                                 },
                                 {
                                      "serviceid": "SMPTE-2031",
                                      "active": "No",
                                      "adjline": "4",
                                      "topline": "0",
                                      "bottomline": "0",
                                      "maxlines": "0",
                                      "avgdata": "0",
                                      "avgtranpkt": "0",
                                      "avgdroppkt": "0"
                                 },
                                 {
                                      "serviceid": "SDP-OP47",
                                      "active": "No",
                                      "adjline": "5",
                                      "topline": "0",
                                      "bottomline": "0",
                                      "maxlines": "0",
                                      "avgdata": "0",
                                      "avgtranpkt": "0",
                                      "avgdroppkt": "0"
                                 },
                                 {
                                      "serviceid": "MULTI-OP47",
                                      "active": "No",
                                      "adjline": "6",
                                      "topline": "0",
                                      "bottomline": "0",
                                      "maxlines": "0",
                                      "avgdata": "0",
                                      "avgtranpkt": "0",
                                      "avgdroppkt": "0"
                                 }
                            ]
                       }
                   }
                   Command Information                         This command is used to read all or single device HDMI decode
                                                               status.
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                    93
                                                                                                                         API Definitions
     HDMI Decode Status Command
Table 84: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
          Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
94
API Definitions
                                                                                                      HDMI Decode Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                   95
                                                                                                                              API Definitions
      Identity Status Command
                         }
                        }
                        Input example (request JSON format):
                        curl -k -H "X-SESSION-ID: $token"
                        "https://192.168.0.1/ws/v2/status/decode/hdmi?hdmiindex=1&js=1"
                        Expected output (values are for example purposes only):
                        {
                                "decode": {
                                    "hdmi": {
                                        "hdmiindex": "1",
                                        "connected": "No",
                                        "powered": "No",
                                        "monitorname": "Unknown",
                                        "colorspace": "Unknown",
                                        "colordepth": "Unknown",
                                        "colorrange": "Unknown",
                                        "matrixcoeff": "Unknown",
                                        "eotf": "Unknown"
                                    }
                                }
                        }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 96
API Definitions
                                                                                                              Identity Status Command
Table 87: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
                   trackingid                                   Tracking ID
                                                                Type: String
                                                                Value: Maximum of 13 characters
hwoptions
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        97
                                                                                                                           API Definitions
     Identity Status Command
           Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
98
API Definitions
                                                                                                            Identity Status Command
                  licensefile
                  These elements are the same data as "licenses" above but only show what is in the original license file(s).
                  For example, default licenses have not been added. Also, the element tag is as it appears in the license file.
                  Note     The field returned is maximum of 8 characters, regardless of whether or not it represents a numeric
                           value
                  HD_Transcode                                Number of HD transcode licenses
                                                              Type: String
                                                              Value: 1..N (if 0 then element will not be output)
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      99
                                                                                                                             API Definitions
      Identity Status Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
100
API Definitions
                                                                                                            Identity Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      101
                                                                                                                               API Definitions
       Device Status Command
                          Command Information                      This command is used to read either all or a specific category of device
                                                                   details. It may also be used to clear.
Table 90: URI <level_1_extension> Parameters (extension to the Command URL separated by /)
ecc Reads and returns current value of ECC specific device items.
eth Reads and returns current value of ethernet specific device items.
                          power                                              Reads and returns current value of power status device items
                                                                             for all populated card slots.
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 102
API Definitions
                                                                                                              Device Status Command
Table 91: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
See descriptions and other arguments for each variant of this command in the following sections.
                  Command Information                    This command reads and returns uncategorized device items or zeros
                                                         out the liferstclr counter.
                  clear                                          Clears the life reset counter (liferstclr) in the relevant device/about
                                                                 output field.
                                                                 Requires the POST HTTP Method and only valid when specified
                                                                 after …/ws/v2/status/device/about.
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      103
                                                                                                                               API Definitions
      Device Status Command
Table 94: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         boardid                                   Board ID
                                                                   Type: String
                                                                   Value: Maximum of 50 characters
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
104
API Definitions
                                                                                                             Device Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     105
                                                                                                                   API Definitions
      Device Status Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
106
API Definitions
                                                                                                             Device Status Command
Command Information Return status of ecc (environmental characteristics and control) items.
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     107
                                                                                                                             API Definitions
      Device Status Command
Table 97: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         row (Mandatory when slot is specified) This is a key field for filtering output fields to a specified row.
                                                                         See description under slot.
                                                                         Type: Integer
                                                                         Values: 0 ...
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
108
API Definitions
                                                                                                             Device Status Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     109
                                                                                                                                API Definitions
      Device Status Command
                        <cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>8</row>
                        <card>NTC</card><displayBoardName>Controller</displayBoardName><location>FPGA +1.8V</location>
                        <displayItemName>FPGA +1.8V</displayItemName><type>Voltage</type><value>+1.81
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>9</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>FPGA
                        temp</location><displayItemName>FPGA temp</displayItemName>
                        <type>Temperature</type><value>+71.9
                        C</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc>
                        <ecc><slot>0</slot><row>10</row><card>NTC</card><displayBoardName>Controller</displayBoardName><location>+12.0V</location>
                        <displayItemName>+12.0V</displayItemName><type>Voltage</type><value>+11.99
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>11</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>+3.3V</location><displayItemName>+3.3V</displayItemName>
                        <type>Voltage</type><value>+3.32
                        V</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc><ecc>
                        <slot>0</slot><row>12</row><card>NTC</card><displayBoardName>Controller</displayBoardName><location>+2.5V</location>
                        <displayItemName>+2.5V</displayItemName><type>Voltage</type><value>+2.50
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>13</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>+1.05V</location><displayItemName>+1.05V</displayItemName>
                        <type>Voltage</type><value>+1.05
                        V</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot>
                        <row>14</row><card>NTC</card><displayBoardName>Controller</displayBoardName><location>+1.5V</location>
                        <displayItemName>+1.5V</displayItemName><type>Voltage</type><value>+1.51
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>15</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>+0.9V</location><displayItemName>+0.9V</displayItemName>
                        <type>Voltage</type><value>+0.90
                        V</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc>
                        <ecc><slot>0</slot><row>16</row><card>NTC</card><displayBoardName>Controller</displayBoardName>
                        <location>+3.3V LDO</location><displayItemName>+3.3V
                        LDO</displayItemName><type>Voltage</type><value>+3.31 V</value>
                        <cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>17</row>
                        <card>NTC</card><displayBoardName>Controller</displayBoardName><location>+1.0V</location>
                        <displayItemName>+1.0V</displayItemName><type>Voltage</type><value>+0.98
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>18</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>+5.0V</location><displayItemName>+5.0V</displayItemName>
                        <type>Voltage</type><value>+5.07
                        V</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc>
                        <ecc><slot>0</slot><row>19</row><card>NTC</card><displayBoardName>Controller</displayBoardName><location>+0.75V</location>
                        <displayItemName>+0.75V</displayItemName><type>Voltage</type><value>+0.76
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>20</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>+1.8V</location><displayItemName>+1.8V</displayItemName>
                        <type>Voltage</type><value>+1.81
                        V</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc>
                        <ecc><slot>0</slot><row>21</row><card>NTC</card><displayBoardName>Controller</displayBoardName><location>+1.2V</location>
                        <displayItemName>+1.2V</displayItemName><type>Voltage</type><value>+1.16
                        V</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>22</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>exhaust temp</location>
                        <displayItemName>Rear Temp</displayItemName><type>Temperature</type><value>+41.2 C</value>
                        <cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>23</row>
                        <card>NTC</card><displayBoardName>Controller</displayBoardName><location>intake
                        temp</location>
                        <displayItemName>Front Temp</displayItemName><type>Temperature</type><value>+26.6
                        C</value><cardslot>NTC0</cardslot>
                        <displayOrderFlag>1</displayOrderFlag></ecc><ecc><slot>0</slot><row>24</row><card>NTC</card>
                        <displayBoardName>Controller</displayBoardName><location>CPU
                        temp</location><displayItemName>CPU temp</displayItemName>
                        <type>Temperature</type><value>+42.2
                        C</value><cardslot>NTC0</cardslot><displayOrderFlag>1</displayOrderFlag></ecc>
                        <ecc><slot>1</slot><row>0</row><card>NFE</card><displayBoardName>Tuner</displayBoardName><location>FPGA
                         +1.0V</location>
                        <displayItemName>FPGA +1.0V</displayItemName><type>Voltage</type><value>+0.99
                        V</value><cardslot>NFE1</cardslot>
                        <displayOrderFlag>2</displayOrderFlag></ecc><ecc><slot>1</slot><row>1</row><card>NFE</card>
                        <displayBoardName>Tuner</displayBoardName><location>FPGA +1.8V</location><displayItemName>FPGA
                         +1.8V</displayItemName>
                        <type>Voltage</type><value>+1.79
                        V</value><cardslot>NFE1</cardslot><displayOrderFlag>2</displayOrderFlag></ecc>
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
110
API Definitions
                                                                                                              Device Status Command
                  <ecc><slot>1</slot><row>2</row><card>NFE</card><displayBoardName>Tuner</displayBoardName><location>FPGA
                   temp</location>
                  <displayItemName>FPGA temp</displayItemName><type>Temperature</type><value>+47.2
                  C</value><cardslot>NFE1</cardslot>
                  <displayOrderFlag>2</displayOrderFlag></ecc><ecc><slot>2</slot><row>0</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>FPGA
                  +1.0V</location><displayItemName>FPGA +1.0V</displayItemName>
                  <type>Voltage</type><value>+0.99
                  V</value><cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc><ecc>
                  <slot>2</slot><row>1</row><card>NDM</card><displayBoardName>Decoder</displayBoardName><location>FPGA
                   +1.8V</location>
                  <displayItemName>FPGA +1.8V</displayItemName><type>Voltage</type><value>+1.79
                  V</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>2</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>FPGA temp</location>
                  <displayItemName>FPGA temp</displayItemName><type>Temperature</type><value>+46.8
                  C</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>3</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>+1.0V
                  CPU</location><displayItemName>+1.0V CPU</displayItemName>
                  <type>Voltage</type><value>+0.94
                  V</value><cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc>
                  <ecc><slot>2</slot><row>4</row><card>NDM</card><displayBoardName>Decoder</displayBoardName><location>+3.3V</location>
                  <displayItemName>+3.3V</displayItemName><type>Voltage</type><value>+3.32
                  V</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>5</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>+2.5V</location>
                  <displayItemName>+2.5V</displayItemName><type>Voltage</type><value>+2.51
                  V</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>6</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>+1.8V</location><displayItemName>+1.8V</displayItemName>
                  <type>Voltage</type><value>+1.81
                  V</value><cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc>
                  <ecc><slot>2</slot><row>7</row><card>NDM</card><displayBoardName>Decoder</displayBoardName><location>+1.5V</location>
                  <displayItemName>+1.5V</displayItemName><type>Voltage</type><value>+1.50
                  V</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>8</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>+5.0V</location><displayItemName>+5.0V</displayItemName>
                  <type>Voltage</type><value>+4.98
                  V</value><cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc>
                  <ecc><slot>2</slot><row>9</row><card>NDM</card><displayBoardName>Decoder</displayBoardName>
                  <location>+3.3V LDO</location><displayItemName>+3.3V
                  LDO</displayItemName><type>Voltage</type><value>+3.32 V</value>
                  <cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>10</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>+1.0V</location>
                  <displayItemName>+1.0V</displayItemName><type>Voltage</type><value>+0.99
                  V</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>11</row><card>NDM</card>
                  <displayBoardName>Decoder</displayBoardName><location>+0.75V</location><displayItemName>+0.75V</displayItemName>
                  <type>Voltage</type><value>+0.77
                  V</value><cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc>
                  <ecc><slot>2</slot><row>12</row><card>NDM</card><displayBoardName>Decoder</displayBoardName>
                  <location>+12.0V</location><displayItemName>+12.0V</displayItemName><type>Voltage</type><value>+11.84
                   V</value>
                  <cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot><row>13</row>
                  <card>NDM</card><displayBoardName>Decoder</displayBoardName><location>intake temp</location>
                  <displayItemName>Front Temp</displayItemName><type>Temperature</type><value>+28.1 C</value>
                  <cardslot>NDM2</cardslot><displayOrderFlag>3</displayOrderFlag></ecc><ecc><slot>2</slot>
                  <row>14</row><card>NDM</card><displayBoardName>Decoder</displayBoardName><location>CPU
                  temp</location>
                  <displayItemName>CPU temp</displayItemName><type>Temperature</type><value>+43.3
                  C</value><cardslot>NDM2</cardslot>
                  <displayOrderFlag>3</displayOrderFlag></ecc></device>
                  Input example (request JSON format, all ECC data):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/device/ecc?js=1"
                  Input example (request JSON format, ECC data only for slot 0, row 12):
                  curl -k -H "X-SESSION-ID: $token"
                  "https://192.168.0.1/ws/v2/status/device/ecc?slot=0&row=12&js=1"
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      111
                                                                                                                               API Definitions
      Device Status Command
Table 100: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
112
API Definitions
                                                                                                               Device Status Command
                  Input example (request XML output format for data for all Ethernet ports):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/device/eth"
                  Expected output (values are for example purposes only):
                  <?xml version="1.0" encoding="ISO-8859-1" ?>
                  <device><eth><port>1</port><link>Link Up</link><speed>1
                  Gbps</speed><duplex>Full</duplex><xover>N/A</xover></eth><eth><port>2</port><link>Link
                  Down</link><speed>N/A</speed><duplex>N/A</duplex><xover>N/A</xover></eth><eth><port>3</port><link>Link
                   Down</link><speed>N/A</speed><duplex>N/A</duplex><xover>N/A</xover></eth></device>
                  Input example (get status of Ethernet port 1 in JSON format):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/device/eth?port=1&js=1"
                  Expected output (values are for example purposes only):
                  {
                          "device": {
                              "eth": {
                                  "port": "1",
                                  "link": "Link Up",
                                  "speed": "1 Gbps",
                                  "duplex": "Full",
                                  "xover": "N/A"
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       113
                                                                                                                            API Definitions
      Device Status Command
                                    }
                                }
                        }
Command Information Return power status of all or individual slot(s) within the chassis.
Table 103: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
114
API Definitions
                                                                                                               Device Status Command
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       115
                                                                                                                    API Definitions
       Alarms and Warnings
                                         {
                                               "slot": "4",
                                               "good": "Yes",
                                               "displayBoardName": "Transcoder2",
                                               "status": "Ok"
                                         },
                                         {
                                               "slot": "5",
                                               "good": "Yes",
                                               "displayBoardName": "HEVC Proc2",
                                               "status": "Ok"
                                         },
                                         {
                                               "slot": "6",
                                               "good": "Yes",
                                               "displayBoardName": "CI option",
                                               "status": "Ok"
                                         }
                                    ]
                              }
                         }
                         Input example (Get status of slot power for slot 1 in JSON format):
                         curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/device/power?slot=1&j
                         Expected output (values are for example purposes only):
                         {
                              "device": {
                                  "power": {
                                      "slot": "1",
                                      "good": "Yes",
                                      "displayBoardName": "Tuner",
                                      "status": "Ok"
                                  }
                              }
                         }
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 116
API Definitions
                                                                                                                Alarms and Warnings
Table 106: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      117
                                                                                                                              API Definitions
      Alarms and Warnings
                                              "state": "Set"
                                         },
                                    ]
                             }
Table 108: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
118
API Definitions
                                                                                                               Alarms and Warnings
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     119
                                                                                                                           API Definitions
      Alarms and Warnings
Table 111: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                        Input example (read back all faults summary in default XML format):
                        curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/summary"
                        Expected output (values are for example purposes only):
                        <?xml version="1.0" encoding="ISO-8859-1" ?>
                        <faults>
                        <summary>
                          <actalarms>1</actalarms>
                          <actwarns>3</actwarns>
                          <clrfaults>144 </clrfaults>
                        </summary>
                        </faults>
                        Input example (read back all faults summary in JSON format):
                        curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/summary?js=1"
                        Expected output (values are for example purposes only):
                        {
                             "faults": {
                                 "summary": {
                                     "actalarms": "1",
                                     "actwarns": "3",
                                     "clrfaults": "144"
                                 }
                             }
                        }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
120
API Definitions
                                                                                                                 Alarms and Warnings
Table 114: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       121
                                                                                                             API Definitions
      Alarms and Warnings
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
122
API Definitions
                                                                                                                Alarms and Warnings
                                  {
                                       "type": "Warning",
                                       "name": "NIT warning            ",
                                       "details": "RF1 NIT is lost",
                                       "setsince": "2017/03/21 22:25:36"
                                  },
                                  {
                                       "type": "Warning",
                                       "name": "CAT warning            ",
                                       "details": "RF1 CAT is lost",
                                       "setsince": "2017/03/21 22:25:36"
                                  }
                            ]
                       }
                  }
Table 117: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      123
                                                                                                                   API Definitions
      Alarms and Warnings
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
124
 API Definitions
                                                                                              Disaster Recovery (D/R) Status Command
                   Command Information                   This command can be used to read either all or a specific category of
                                                         D/R details.
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       125
                                                                                                                              API Definitions
      Disaster Recovery (D/R) Status Command
Table 120: URI <level_1_extension> Parameters (extension to the Command URL separated by /)
Table 121: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
126
API Definitions
                                                                                              Disaster Recovery (D/R) Status Command
See descriptions and other Arguments for each variant of this command in the sections below.
Table 123: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       127
                                                                                                                        API Definitions
      Disaster Recovery (D/R) Status Command
                        GET Examples
                        Example 1: Retrieve the full D/R global status
                        The following example assumes that the user has successfully logged on to the unit, received the session ID,
                        and set the unit to a variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. Change
                        the IP address to the specific unit IP in use.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/status/dr/global"
                        If successful, the return body will look:
                         "dr": {
                                "global": {
                                    "status": "No Disaster - D/R Ready",
                                    "siglost": "120",
                                    "siglock": "40",
                                    "verify": "60",
                                    "cfgsource": "User","
                                }
                            }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
128
API Definitions
                                                                                              Disaster Recovery (D/R) Status Command
Table 125: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       129
                                                                                                                             API Definitions
      Disaster Recovery (D/R) Status Command
                        GET Examples
                        Example 1: Retrieve D/R backup 1 tuning status
                        The following example assumes that the user has successfully logged on to the unit, received the session ID,
                        and set it to a variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. Change the IP
                        address to the specific unit IP in use.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/status/dr/tuning?csirec=1"
                        If successful, the return body will look:
                               "dr": {
                                   "tuning": {
                                       "csirec": "1",
                                       "fec": "AUTO",
                                       "ewflag": "N/A",
                                       "dnlkfreq": "3.53",
                                       "input": "RF2",
                                       "mod": "QPSK DVB-S",
                                       "netid": "1",
                                       "orbpos": "0.0",
                                       "pol": "Horiz",
                                       "symrate": "30.0",
                                       "rolloff": ".35",
                                       "source": "User",
                                       "rowstatus": "Yes"
                                   }
                               }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
130
API Definitions
                                                                                              Disaster Recovery (D/R) Status Command
Table 127: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       131
                                                                                                                            API Definitions
      Disaster Recovery (D/R) Status Command
                        GET Examples
                        Example 1: Retrieve the PE1 channel and rowstatus of D/R backup 1
                        The following example assumes that the user has successfully logged on to the unit, received the session ID,
                        and set it to a variable token. In addition, it is assumed that the IP address of the unit is 192.168.0.1. You must
                        change the IP address to the specific unit IP in use.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/status/dr/channels?peid=PE1&csirec=1&bkpchan&rowstatus"
                        If successful, the return body will look:
                        "dr": {
                                   "channels": {
                                       "peid": "PE1",
                                       "csirec": "1",
                                       "bkpchan": "201",
                                       "rowstatus": "Yes"
                                   }
                              }
Table 129: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
132
API Definitions
                                                                                             Disaster Recovery (D/R) Status Command
                  GET Examples
                  Example 1: Retrieve D/R Orign tuning
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      133
                                                                                                                            API Definitions
      Disaster Recovery (D/R) Status Command
                        The following example assumes that the user has successfully logged on to the unit, received the session ID,
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/status/dr/origtuning"
                        If successful, the return body will be:
                        "dr": {
                                   "origtuning": {
                                       "fec": "AUTO",
                                       "ewflag": "East",
                                       "dnlkfreq": "12.03",
                                       "input": "RF1",
                                       "mod": "8PSK DVB-S2",
                                       "netid": "1",
                                       "orbpos": "120.0",
                                       "pol": "Horiz",
                                       "symrate": "30.0",
                                       "rolloff": ".35"
                                   }
                              }
Table 131: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
134
 API Definitions
                                                                                                                     Configuration API
                   GET Examples
                   Example 1: Retrieve origin channel of PE1
                   The following example assumes that the user has successfully logged onto the unit, received the session ID,
                   and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                   change the IP to the specific unit IP in use.
                   curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                   "https://192.168.0.1/ws/v2/status/dr/origchans?peid=PE1&origchan"
                   If successful, the return body will be:
                        "dr": {
                            "origchans": {
                                "peid": "PE1",
                                "origchan": "101"
                            }
                        }
Configuration API
                   This section lists all the configuration commands.
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         135
                                                                                                                                      API Definitions
      Input Configuration Command
                        URI Query/Set Arguments (possible fields and values preceded by ? and separated by &): N/A
                        Input XML Field Descriptions:
                        The XML parameters are as described in each of the following input configuration API sections Arguments
                        options
                        Output Fields:
                        Output fields returned in GET results are the same names used for the possible Arguments when appending
                        each possible URI Parameter to this command.
                        POST (Settings Write) Examples:
                        Input with invalid setting (Setting Parameters using XML body data from command line):
                        curl -k -X POST -H "X-SESSION-ID: $token" --header "Content-type:application/xml" -d
                        "<input><rf><port>1</port><act>Yes</act><dnlkfreq>3.40></dnlkfreq></rf><rf><port>2</port><dnlkfreq>3.40</dnlkfreq></rf></input>"
                         "https://192.168.0.1/ws/v2/service_cfg/input"
                        Expected output (values are for example purposes only) when validation of input parameter(s) fail:
                        <?xml version="1.0" encoding="ISO-8859-1" ?>
                        <response><code>10</code><result>failure</result><message>the downlink frequency band did
                        not match the LO frequency band</message></response>
                        Input with valid setting (Setting Parameters using XML body data from command line):
                        curl -k -X POST -H "X-SESSION-ID: $token" --header "Content-type:application/xml" -d
                        "<input><rf><port>1</port><act>Yes</act><dnlkfreq>12.31></dnlkfreq></rf><rf><port>2</port><dnlkfreq>3.40</dnlkfreq></rf></input>"
                           "https://192.168.0.1/ws/v2/service_cfg/input"
                        Expected output (values are for example purposes only) when validation of input parameter(s) pass:
                        <?xml version="1.0" encoding="ISO-8859-1" ?>
                        <response><code>10</code><result>success</result><message></message></response>
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
136
API Definitions
                                                                                                        Input Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      137
                                                                                                                                 API Definitions
      Input Configuration Command
               Note     The parameter list for the configuration APIs in this and following sections are compliant with the UIC
                        tables in the D9800 software application, which may use some special characters that are non-compliant
                        with the allowed URL character set.
                        When using curl, URL strings that include arguments (the options after the ?) must be in quotes, as
                        discussed in HTTP Request Methods, on page 3. In this case, the conversion of special characters is
                        implicit.
                        However, when using a web browser, argument strings must be first converted to substitute URL safe
                        "escape" replacements for special, reserved characters (as discussed in rfc2396).
                        For example, in URL safe format, spaces that are embedded in the URL string would typically need to be
                        replaced by %20 (percent sign followed by the asci hex value equivalent of a space).
                        Since some parameters may have spaces or forward slashes or other reserved URL characters in them.
                        We recommend that the D9800 web GUI, and other similar implementations, pass the full URL string
                        through a safe-url character converter before issuing the command.
                        For more information about safe URL encoding, see http://www.ietf.org/rfc/rfc2396.txt, or http://
                        www.skorks.com/2010/05/what-every-developer-should-know-about-urls/.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
138
API Definitions
                                                                                                            Input Configuration Command
Note Setting Parameters using command line arguments are limited to maximum of 26 arguments after the ?.
              Note   All of the URI Arguments below apply to both GET and POST. For GET, the URI arguments do not need
                     any values, except the port which must be specified. For POST the port must be specified followed by
                     any of the below URI arguments and the associated value the user would like to set. In-depth CURL
                     examples can be seen below following the table.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          139
                                                                                                                   API Definitions
      Input Configuration Command
                         Iq                                   IQ Mode
                                                              Type: String
                                                              Values: "Opposite", "Normal", "Auto"
                         lo1                                  LO Select 1
                                                              Type: Float
                                                              Values: 0.0 … 15.0
                         lo2                                  LO Select 2
                                                              Type: Float
                                                              Values: 0.0 … 15.0
                         pol                                  Polarization
                                                              Type: String
                                                              Values: "Horizontal", "Vertical", "Auto"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
140
API Definitions
                                                                                                        Input Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      141
                                                                                                                           API Definitions
      Input Configuration Command
                        Output Fields:
                        Output fields returned in GET results are the same names used for the possible Arguments for this command.
                        POST Examples
                        Example 1: Changing one RF Tuning Parameter
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. Please change
                        the IP to the specific unit IP in use. This example changes the iq mode of RF 3 to Normal.
                        curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/input/rf?port=3&verbose=1&iq=Normal"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
142
API Definitions
                                                                                                         Input Configuration Command
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       143
                                                                                                                         API Definitions
      Input Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
144
API Definitions
                                                                                                        Input Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      145
                                                                                                                              API Definitions
      Input Configuration Command
                        Note        All of the URI Arguments below apply to both GET and POST. For GET, the URI arguments do not
                                    need any values, except the port which must be specified. For POST the port must be specified
                                    followed by any of the below URI arguments and the associated value the user would like to set.
                                    In-depth CURL examples can be seen below following the table.
Table 137: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
146
API Definitions
                                                                                                         Input Configuration Command
                  Output Fields:
                  Output fields returned in GET results are the same names used for the possible arguments for this command.
                  POST Examples:
                  Example 1: Changing one ASI Tuning Parameter
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example changes the acqmode of ASI port 1 to Auto.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/asi?port=1&acqmode=Auto"
                  If successful, the return body will be:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  Example 2: Changing multiple ASI Tuning Parameters
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       147
                                                                                                                       API Definitions
      Input Configuration Command
                        change the IP to the specific unit IP in use. This example changes several ASI port 1 tuning parameters. It
                        will set the acqmode to Auto, sdten to Yes, paten to Yes and niten to No.
                        curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/input/asi?port=1&sdten=Yes&acqmode=Auto&paten=Yes&niten=No"
                        If successful, the return body will be:
                        "response": {
                                "code": "10",
                                "result": "success",
                                "message": ""
                            }
                        GET Examples:
                        Example 3: GET the full ASI tuning values for a specific ASI port
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example retrieves all of the ASI tuning settings for ASI port
                        1.
Note The user must always specify the port number in the URI.
               Note     The user must always specify the port number in the URI followed by the URI argument the user wishes
                        to retrieve. This example retrieves the acqmode from ASI Port 1.
               Note     In GET URIs only, the port argument must contain a value for the port, all other arguments do not contain
                        values.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
148
API Definitions
                                                                                                            Input Configuration Command
              Note   The user must always specify the port number in the URI followed by the URI arguments the user wishes
                     to retrieve. This example retrieves the acqmode, sdten, niten and paten values from ASI Port 1.
              Note   In GET URIs, only the port argument must contain a value for the port, all other arguments DO NOT
                     contain values.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          149
                                                                                                                           API Definitions
      Input Configuration Command
Table 139: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
150
API Definitions
                                                                                                        Input Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      151
                                                                                                                           API Definitions
      Input Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
152
API Definitions
                                                                                                        Input Configuration Command
                  Output Fields:
                  Output fields returned in GET results are the same names used for the possible arguments for this command.
                  POST Examples:
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      153
                                                                                                                      API Definitions
      Input Configuration Command
Note The user must always specify the stream number in the URI.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
154
API Definitions
                                                                                                            Input Configuration Command
                                    "paten": "Yes"
                               }
                          }
                     Example 4: GET a specific MOIP tuning value for a specific MOIP stream
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. This example retrieves one specific parameter value from the
                     MOIP tuning settings for MOIP stream 1.
              Note   The user must always specify the stream number in the URI followed by the URI argument the user wishes
                     to retrieve.
                     This example retrieves the freqmode from MOIP stream 1. In GET URIs only the stream argument must
                     contain a value for the stream, all other arguments do not contain values.
                     curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/input/moip?stream=1&freqmode"
                     If successful, the return body will be:
                     "input": {
                             "moip": {
                                 "stream": "1",
                                 "freqmode": "NIT"
                             }
                         }
                     Example 5: GET multiple MOIP tuning value for a specific MOIP stream
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. This example retrieves multiple parameter value from the MOIP
                     tuning settings for MOIP stream 1.
              Note   The user must always specify the stream number in the URI followed by the URI arguments the user
                     wishes to retrieve.
                     This example retrieves the freqmode, sdten, niten and paten values from MOIP stream 1. In GET URIs only
                     the stream argument must contain a value for the stream, all other arguments do not contain values.
                     curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/input/moip?stream=1&paten&sdten&freqmode&niten"
                     If successful, the return body will be:
                     "input": {
                             "moip": {
                                 "stream": "1",
                                 "freqmode": "NIT",
                                 "niten": "Yes",
                                 "paten": "Yes",
                                 "sdten": "Yes"
                             }
                         }
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          155
                                                                                                                           API Definitions
      Input Configuration Command
Table 141: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         ip                                                IP Address
                                                                           Type : String
                                                                           Values : IP address in the dot format, for example, 192.168.0.1
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
156
API Definitions
                                                                                                         Input Configuration Command
                  POST Examples:
                  Example 1: Changing both MOIP Source Filter Parameter
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example changes both the ip address of filter slot 1 and its
                  filter index operation (oper).
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/moip/srcfilter?idx=1&ip=10.10.10.10&oper=Add"
                  If successful, the return body will be:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Get full table of MOIP Source Filters
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example returns the full MOIP source filters for every index.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/moip/srcfilter"
                  If successful, the return body will be:
                  HTTP/1.1 200 OK
                  Date: Fri, 29 Jul 2016 02:43:54 GMT
                  Server: Hiawatha v9.14
                  Connection: keep-alive
                  Transfer-Encoding: chunked
                  Status: 200
                  Content-type: application/json
                  {
                      "srcfilter": {
                          "record": [
                              {
                                  "idx": "1",
                                  "ip": "0.0.0.0",
                                  "oper": "Inactive"
                              },
                              {
                                  "idx": "2",
                                  "ip": "0.0.0.0",
                                  "oper": "Inactive"
                              },
                              {
                                  "idx": "3",
                                  "ip": "0.0.0.0",
                                  "oper": "Inactive"
                              },
                              {
                                  "idx": "4",
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       157
                                                                                                                         API Definitions
      Input Configuration Command
                                              "ip": "0.0.0.0",
                                              "oper": "Inactive"
                                        },
                                        {
                                              "idx": "5",
                                              "ip": "0.0.0.0",
                                              "oper": "Inactive"
                                        },
                                        {
                                              "idx": "6",
                                              "ip": "0.0.0.0",
                                              "oper": "Inactive"
                                        },
                                        {
                                              "idx": "7",
                                              "ip": "0.0.0.0",
                                              "oper": "Inactive"
                                        },
                                        {
                                              "idx": "8",
                                              "ip": "0.0.0.0",
                                              "oper": "Inactive"
                                        }
                                    ]
                             }
                        }
                        To retrieve the table for a specific idx the CURL would look like:
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/input/moip/srcfilter?idx=1"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
158
API Definitions
                                                                                                         Input Configuration Command
Table 143: URI Query Arguments (possible fields and values preceded by ? and separated by &)
                  ip                                        IP Address
                                                            Type: String
                                                            Values: IP address in the dot format, e.g. 192.168.0.1
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       159
                                                                                                                           API Definitions
      Input Configuration Command
Table 144: URI Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
160
API Definitions
                                                                                                         Input Configuration Command
                  POST Examples:
                  Example 1: Changing MOIP Data Source IP Addresses
                  This example changes the IP address to lock from DATA1 to 10.10.10.10 and the IP address to lock from
                  DATA2 to 10.10.10.11.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/moip/srcselect?stream=1&dat1srcaddr=10.10.
                  10.10&dat2srcaddr=10.10.10.11"
                  If successful, the return body will be:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Get the MOIP Source Select Configuration
                  This example returns the MOIP source select configuration for stream 1, index 1.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/moip/srcselect?streamid=1&idx=1"
                  If successful, the return body will be:
                  {
                       "srcselect": {
                           "record": {
                               "streamid": "1",
                               "idx": "1",
                               "ip": "0.0.0.0",
                               "data1sel": "No",
                               "data1avail": "No",
                               "data1Enabled": "No",
                               "data2sel": "No",
                               "data2avail": "No",
                               "data2Enabled": "No",
                               "data3sel": "No",
                               "data3avail": "No",
                               "data3Enabled": "No",
                               "data4sel": "No",
                               "data4avail": "No",
                               "data4Enabled": "No"
                           }
                       }
                  }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       161
                                                                                                                             API Definitions
       ABR Input Configuration Command
Table 146: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 162
API Definitions
                                                                                                   ABR Input Configuration Command
                  acqmode                                       Select which tables are required for service list creation.
                                                                Type: String
                                                                Values: "Basic", "Auto", "Custom","FixPID"
                  camode                                        Select how programs that are marked as encrypted --and can not
                                                                be decrypted-- are handled.
                                                                Type: String
                                                                Values: "Std", "Open"
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     163
                                                                                                                         API Definitions
      ABR Input Configuration Command
                        Output Fields:
                        Output fields returned in GET results are the same names used for the possible Arguments for this command.
                        POST Examples:
                        Example 1: Changing one ABR Parameter
                        The following example assumes that the user has successfully logged onto the unit, received the session id,
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
164
API Definitions
                                                                                                    ABR Input Configuration Command
                  change the IP to the specific unit IP in use. The following example changes the name of an existing ABR
                  entry to "Prog5".
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/abr?stream=2&name=Prog5
                  If successful, the return body will be:
                       "response": {
                           "code": "10",
                           "result": "success",
                           "message": ""
                       }
                  Example 2: Changing multiple ABR Parameters
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example changes several ABR parameters for an
                  existing entry. It will set the netid to 12345, sdten to Yes, paten to Yes and niten to Yes.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/abr?stream=2&netid=12345&sdten=Yes&paten=Yes&niten=Yes"
                  If successful, the return body will be:
                       "response": {
                           "code": "10",
                           "result": "success",
                           "message": ""
                       }
                  GET Examples:
                  Example 3: GET the full ABR tuning values for a specific ABR entry
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example retrieves all of the ABR settings for stream
                  2.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/abr?stream=2"
                  If successful, the return body will be:
                  "input": {
                          "abr": {
                              "stream": "2",
                              "act": "No",
                              "netid": "1",
                              "camode": "Std",
                              "inputsel": "UserCfg",
                              "freqmode": "User Cfg",
                              "svclstmode": "Rigorous",
                              "baten": "No",
                              "niten": "No",
                              "sdten": "Yes",
                              "paten": "Yes",
                              "name": "ABR2",
                              "url": "",
                              "latency": "0",
                              "phyport": "Mngmt",
                              "cmdrow": "Inactive",
                              "minlatency": "0"
                      }
                  }
                  Example 4: GET a specific ABR value for a specific ABR entry
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example retrieves one specific parameter value,
                  camode, from the ABR settings for ABR stream 2.
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      165
                                                                                                                          API Definitions
       Zixi Input Configuration Command
                Note      In GET URIs only, the entry selection argument (stream) must contain a value, all other arguments DO
                          NOT contain values.
                Note      In GET URI’s only the entry selection argument (stream) must contain a value, all other arguments DO
                          NOT contain values.
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 166
API Definitions
                                                                                                     Zixi Input Configuration Command
Table 148: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                  acqmode                                          Select which tables are required for service list creation.
                                                                   Type: String
                                                                   Values: "Basic", "Auto", "Custom","FixPID"
                  camode                                           Select how programs that are marked as encrypted (and can not
                                                                   be decrypted) are handled.
                                                                   Type: String
                                                                   Values: "Std", "Open"
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        167
                                                                                                                           API Definitions
      Zixi Input Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
168
API Definitions
                                                                                                    Zixi Input Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       169
                                                                                                                       API Definitions
      Zixi Input Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
170
API Definitions
                                                                                                     Zixi Input Configuration Command
                  Output Fields:
                  Output fields returned in GET results are the same names used for the possible Arguments for this command.
                  POST Examples:
                  The following examples assume that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use
                  Example 1: Changing one ZIXI Parameter
                  The following example changes the type of an existing ZIXI entry to Pull mode".
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/zixi?stream=2&type=Pull"
                  If successful, the return body will be:
                   "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  Example 2: Changing multiple ZIXI Parameters
                  This example changes several ZIXI parameters for an existing entry. It will set the netid to 12345, sdten to
                  Yes, paten to Yes and niten to Yes.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/zixi?stream=2&netid=12345&sdten=Yes&paten
                  =Yes&niten=Yes"
                  If successful, the return body will be:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 3: GET the full ZIXI tuning values for a specific ZIXI entry
                  This example retrieves all of the ZIXI settings for stream 2.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/input/zixi?stream=2"
                  If successful, the return body will be:
                  "input": {
                          "zixi": {
                              "stream": "2",
                              "act": "Yes",
                              "netid": "1",
                              "acqmode": "Auto",
                              "camode": "Std",
                              "inputsel": "UserCfg",
                              "freqmode": "User Cfg",
                              "svclstmode": "Rigorous",
                              "baten": "No",
                              "niten": "No",
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        171
                                                                                                                   API Definitions
      Zixi Input Configuration Command
                                         "sdten": "Yes",
                                         "paten": "Yes",
                                         "name": "ZIXI1",
                                         "type": "Pull",
                                         "source": "zixi://tor02lab-s-002.cisco.com",
                                         "sid": "cisco-CAN",
                                         "protport": "2077",
                                         "interface": "Mngmt",
                                         "rowstatus": "Active",
                                         "latency": "5000",
                                         "decrkey": "",
                                         "redmode": "No",
                                         "redsource": "",
                                         "redsid": "",
                                         "reddecrkey": "",
                                         "fecmode": "On",
                                         "fecovhd": "30",
                                         "fecblkms": "50",
                                         "fecconawar": "No",
                                         "fecmaxjitr": "0",
                                         "fecstufnul": "No",
                                         "latmode": "Static",
                                         "adaptmode": "None"
                                   }
                              }
                        Example 4: GET a specific ZIXI value for a specific ZIXI entry
                        This example retrieves one specific parameter value, camode, from the ZIXI settings for ZIXI stream 1.
               Note      In GET URIs, only the entry selection argument (stream) must contain a value, all other arguments DO
                         NOT contain values.
               Note      In GET URIs, only the entry selection argument (stream) must contain a value, all other arguments DO
                         NOT contain values.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
172
 API Definitions
                                                                                                            PE Configuration Command
PE Configuration Command
                   Table 149: Command Details
Table 150: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       173
                                                                                                                           API Definitions
      PE Configuration Command
                         js                                      Format output using JSON standard (applies to command line input only)
                                                                 Type: exist
                                                                 Values: any value or empty (ie any of js=1 or js or js=0 or js=9999 are
                                                                 valid)
                                                                 Omitting this argument formats the output by default in XML
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
174
API Definitions
                                                                                                          PE Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     175
                                                                                                                  API Definitions
      PE Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
176
 API Definitions
                                                                                                         Output Configuration Command
Table 154: ASI, ASI1, or ASI2 Next level names (after Port Name)
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        177
                                                                                                                               API Definitions
      Output Configuration Command
                                                                   action                           PE Action
                                                                                                    Type: String
                                                                                                    Values: "Drop", "Pass", "Map", "XCode"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
178
API Definitions
                                                                                                       Output Configuration Command
Table 155: MOIP, MOIP1, or MOIP2 Next level names (after Port Name)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      179
                                                                                                                              API Definitions
      Output Configuration Command
                                                                   action                        PE Action
                                                                                                 Type: String
                                                                                                 Values: "Drop", "Pass", "Map", "XCode"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
180
API Definitions
                                                                                                     Output Configuration Command
                               Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                    181
                                                                                                                               API Definitions
      Output Configuration Command
                                                                   fec_mode                      EC Mode
                                                                                                 Type: String
                                                                                                 Values: "None", "1D","2D"
                                                                   fec_col                       Fec Columns Depth
                                                                                                 Type: Integer
                                                                                                 Values: 1..20
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
182
API Definitions
                                                                                                       Output Configuration Command
Table 156: Additional arguments (preceded by ? and separated by & on command line)
                  Argument                                    Description
                  resync                                      Resynchronize ALL PE Output (applies to POST syntax only)
                                                              Type: Integer
                                                              Value: 1..4
                                                              1: Resynchronize Program, PMT PID, ES list & ES PIDs
                                                              2: Resynchronize ES list
                                                              3: Resynchronize ES PIDs
                                                              4: Resynchronize Template ES List & PIDs
                                                              Note       Currently, only value 1 is supported. All the other inputs
                                                                         (2, 3, and 4) are handled as 1.
                  js                                          Format output using JSON standard (applies to command line input
                                                              only).
                                                              Type: exist
                                                              Values: any value or empty (any of js=1, js, js=0, or js=9999 are
                                                              valid)
                                                              Omitting this argument formats the output by default in XML.
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      183
                                                                                                                          API Definitions
      Output Configuration Command
                        </pe><pe><peid>PE8</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE9</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE10</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE11</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE12</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE13</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE14</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE15</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe><pe><peid>PE16</peid><action>Pass</action><pmtpid>8191</pmtpid><outchan>0</outchan>
                        </pe></moip></output>
                        Example Write (POST) commands:
                        Setting parameters using XML body data from command line (for single-stream unit shown):
                        curl -k -X POST -H "X-SESSION-ID: $token" --header "Content-type:application/xml" -d
                        "<output><asi><port>1</port><mode>Pass</mode></asi><moip><mode>No
                        Output</mode></moip></output>" "https://192.168.0.1/ws/v2/service_cfg/output"
                        Expected output (values are for example purposes only):
                        <?xml version="1.0" encoding="ISO-8859-1"
                        ?><response><code>10</code><result>success</result><message></message></response>
                        Setting Parameters using body data from XML File (for single-stream unit shown):
                        curl -k -X POST -H "X-SESSION-ID: $token" --header "Content-type:application/xml" -d
                        @"C:\projects\output.xml" "https://192.168.0.1/ws/v2/service_cfg/output"
                        Output File "output.xml" contains data as shown below.
                        <output>
                            <asi>
                                 <mode>Pass</mode>
                         <dscrmode>Scramble</dscrmode>
                            </asi>
                            <moip>
                                 <mode>No Output</mode>
                         <dscrmode>Descramble</dscrmode>
                            </moip>
                        </output>
                        Expected output (values are for example purposes only):
                        <?xml version="1.0" encoding="ISO-8859-1"
                        ?><response><code>10</code><result>success</result><message></message></response>
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
184
API Definitions
                                                                                                       Output Configuration Command
Table 158: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      185
                                                                                                                          API Definitions
      Output Configuration Command
Table 159: Additional arguments (preceded by ? and separated by & on command line)
                         Argument                             Description
                         resync                               Resynchronize ALL PE Output
                                                              Type: Integer
                                                              Value: 1..4
                                                              1: Resynchronize Program, PMT PID, ES list & ES PIDs
                                                              2: Resynchronize ES list
                                                              3: Resynchronize ES PIDs
                                                              4: Resynchronize Template ES List & PIDs
                         js                                   Format output using JSON standard (applies to command line input only)
                                                              Type: exist
                                                              Values: any value or empty (any of js=1, js, js=0, or js=9999 are valid)
                                                              Omitting this argument formats the output by default in XML.
               Note     For resync operation, only HTTP data body is supported. POST from XML/JSON file is not supported.
                        As noted in Get, on page 3, in the URL input, the space in STRING should be replaced by %20, for
                        example: "https://192.168.0.1/ws/v2/service_cfg/output/asi?mode=Map%20Service%20Channels%20Only.
                        POST Examples:
                        Example 1: Set Various Output ASI Parameters
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
186
API Definitions
                                                                                                       Output Configuration Command
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example changes both the output descrambling mode to
                  Descrambled and the ratemode to User.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/output/asi?dscrmode=Descrambled&ratemode=User"
                  If successful, the return body will be:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  This is the same example being executed on a NTC MS unit:
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/output/asi1?dscrmode=Descrambled&ratemode=Auto"
                  GET Examples:
                  Example 2: Get full table of ASI Output Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example returns the full ASI Output settings.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https:// 192.168.0.1/ws/v2/service_cfg/output/asi"
                  If successful, the return body will be (please note this is a snippet of the full return body):
                  "output": {
                          "asi": {
                              "mode": "No Output",
                              "dscrmode": "Descrambled",
                              "ratemode": "User",
                              "rate": "68.5",
                              "insertnul": "Yes",
                              "pe": [
                                  {
                                      "peid": "PE1",
                                      "action": "Drop",
                                      "pmtpid": "8191",
                                      "outchan": "0"
                                  },
                                  {
                                      "peid": "PE2",
                                      "action": "Drop",
                                      "pmtpid": "8191",
                                      "outchan": "0"
                                  }
                              ]
                      }
                  }
                  This is the same example executed on a NTC multi-stream unit:
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https:// 192.168.0.1/ws/v2/service_cfg/output/asi2"
                  Example 3: Get specific ASI Output Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example returns the specific ASI Output setting of the
                  descrambled mode (dscrmode) and Output Mode (mode) parameters.
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      187
                                                                                                                          API Definitions
      Output Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
188
API Definitions
                                                                                                       Output Configuration Command
Table 161: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      189
                                                                                                                         API Definitions
      Output Configuration Command
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
190
API Definitions
                                                                                                          Output Configuration Command
Table 162: Additional arguments (preceded by ? and separated by & on command line)
                     Argument                        Description
                     resync                          Resynchronize ALL PE Output
                                                     Type: Integer
                                                     Value: 1..4
                                                     1: Resynchronize Program, PMT PID, ES list & ES PIDs
                                                     2: Resynchronize ES list
                                                     3: Resynchronize ES PIDs
                                                     4: Resynchronize Template ES List & PIDs
                     js                              Format output using JSON standard (applies to command line input only).
                                                     Type: exist
                                                     Values: any value or empty (any of js=1, js, js=0, or js=9999 are valid)
                                                     Omitting this argument formats the output by default in XML
              Note   For resync operation, only HTTP data body is supported. POST from XML/JSON file is not supported.
                     As noted in Get, on page 3, in the URL input, the space in STRING should be replaced by %20, for
                     example:
                     "https://192.168.0.1/ws/v2/service_cfg/output/moip?mode=Map%20Service%20Channels%20Only".
                     POST Examples:
                     Example 1: Set Various MOIP Output Parameters
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. This example changes both the output descrambling mode to
                     Descrambled and the ratemode to User.
                     curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/output/moip?dscrmode=Descrambled&ratemode=User"
                     If successful, the return body will be:
                     "response": {
                             "code": "10",
                             "result": "success",
                             "message": ""
                         }
                     This is the same example except it is being executed on a NTC MS unit and the descrambling mode is set to
                     Scrambled instead of Descrambled:
                     curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/output/moip2?dscrmode=Scrambled&ratemode=User"
                     GET Examples:
                     Example 2: Get full table of MOIP Output Settings
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         191
                                                                                                                          API Definitions
      Output Configuration Command
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example returns the full MOIP Output settings.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/output/moip"
                        If successful, the return body will be (please note this is a snippet of the full return body):
                        "output": {
                                "moip": {
                                    "mode": "No Output",
                                    "dscrmode": "Descrambled",
                                    "ratemode": "User",
                                    "rate": "68.5",
                                    "insertnul": "Yes",
                                    "pe": [
                                        {
                                            "peid": "1",
                                            "action": "Drop",
                                            "pmtpid": "8191",
                                            "outchan": "0"
                                        },
                                        {
                                            "peid": "2",
                                            "action": "Drop",
                                            "pmtpid": "8191",
                                            "outchan": "0"
                                        }
                              ]
                                }
                        }
                        This is the same example being executed on a NTC MS unit:
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/output/moip1"
                        Example 3: Get specific MOIP Output Settings
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example returns the specific MOIP Output setting of the
                        descrambled mode (dscrmode) and Output Mode (mode) parameters.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
192
API Definitions
                                                                                                      Output Configuration Command
Command Information Allows set or get of ASI or MOIP DPM PE output parameters.
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     193
                                                                                                                           API Definitions
      Output Configuration Command
Table 164: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
194
API Definitions
                                                                                                          Output Configuration Command
              Note   To use this command properly, a level 1 parameter must be specified such as asi (asi1/asi2 on a NTC MS
                     unit) followed by a level 2 parameter which is pe followed by the peid argument that must be supplied
                     with a value, and only then can the remaining arguments (as below) be used for GET/POST. In-depth
                     CURL examples follow below.
POST Examples:
              Note   All POST examples will apply to the DPM ASI PE settings, but the same examples can be applied to the
                     DPM MOIP PE settings, by simply replacing the ‘asi’ in the URI with ‘moip’
              Note   The asi/pe?peid=VAL must be provided before adding the specific arguments as seen in the curl command
                     below (due to having to place level 1 parameter followed by level 2 followed by peid followed by optional
                     arguments).
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         195
                                                                                                                          API Definitions
      Output Configuration Command
               Note     All GET examples will apply to the DPM ASI PE settings, but the same examples can be applied to the
                        DPM MOIP PE settings, by simply replacing the ‘asi’ in the URI with ‘moip’.
                        Example 2: Get full table of DPM ASI Parameters for all PE’s
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example returns the full DPM ASI Output Settings for all
                        PE’s.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/output/asi/pe"
                        If successful, the return body will be (please note this is a snippet of the full return body):
                        "output": {
                                "asi": {
                                    "pe": [
                                        {
                                                    "peid": "PE1",
                                                    "action": "Pass",
                                                    "pmtpid": "8191",
                                                    "outchan": "105"
                                              },
                                              {
                                                    "peid": "PE2",
                                                    "action": "Drop",
                                                    "pmtpid": "8191",
                                                    "outchan": "0"
                                              },
                                         ]
                                     }
                        }
                        Example 3: Get the table of DPM ASI Parameters for a specific PE
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example returns the DPM ASI Output Settings for a specific
                        PE, in this case PE 1.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/output/asi/pe?peid=1"
                        If successful, the return body will look like:
                        "output": {
                                "asi": {
                                    "pe": {
                                        "peid": "PE1",
                                        "action": "Pass",
                                        "pmtpid": "8191",
                                        "outchan": "105"
                                    }
                                }
                            }
                        Example 4: Get specific parameters of the DPM ASI Settings for a specific PE
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example returns the pmtpid and output channel of the DPM
                        ASI Output Settings for a specific PE, in this case PE 1.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/output/asi/pe?peid=1&pmtpid&outchan"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
196
API Definitions
                                                                                                       Output Configuration Command
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      197
                                                                                                                           API Definitions
      Output Configuration Command
Table 166: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
198
API Definitions
                                                                                                      Output Configuration Command
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     199
                                                                                                                        API Definitions
      Output Configuration Command
               Note     To use this command properly, firstly a level 1 parameter must be specified such as moip (moip1/moip2
                        on a NTC MS unit) followed by a level 2 parameter which is ipo followed by the ipoid argument that must
                        be supplied with a value, and only then can the remaining arguments (as below) be used for GET/POST.
                        In-depth CURL examples follow below.
                        POST Examples:
                        Example 1: Set Various MOIP Output Parameters for a specific Stream (PE)
                        The following example assumes that the user has successfully logged onto the unit, received the session ID,
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example changes both the MOIP output bitrate to 12.5 and
                        Time To Live (TTL) to 54 for MOIP stream which belongs to PE4 (in SPTS) mode.
               Note     The moip/ipo?ipoid=VAL must be provided before adding the specific arguments as seen in the curl
                        command below (due to having to place level 1 parameter followed by level 2 followed by ipoid followed
                        by optional arguments).
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
200
API Definitions
                                                                                                       Output Configuration Command
                                           "ttl": "34",
                                           "src_port": "0",
                                           "ann_type": "None",
                                           "ann_src": "User String",
                                           "ann_title": "Cisco Default SAP1_2",
                                           "fec_mode": "2D",
                                           "fec_col": "4",
                                           "fec_row": "10",
                                           "fec_colport": "49154",
                                           "fec_rowport": "49156"
                                      },
                                  }
                  Example 3: Get the table of MOIP Output Stream Parameters for a specific Stream (or PE)
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example returns the MOIP Output Settings for a specific
                  Stream (PE), in this case PE 1.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/output/moip/ipo?ipoid=1"
                  If successful, the return body will be:
                  "output": {
                          "moip": {
                              "ipo": {
                                  "ipoid": "1",
                                  "iporate": "68.5",
                                  "encaps": "RTP",
                                  "dest_ip": "225.1.1.101",
                                  "dest_port": "49152",
                                  "toc": "0",
                                  "ttl": "64",
                                  "src_port": "0",
                                  "ann_type": "None",
                                  "ann_src": "User String",
                                  "ann_title": "Cisco Default SAP1_1",
                                  "fec_mode": "2D",
                                  "fec_col": "4",
                                  "fec_row": "10",
                                  "fec_colport": "49154",
                                  "fec_rowport": "49156"
                              }
                          }
                      }
                  Example 4: Get specific parameters of the MOIP Output Settings for a specific Stream (PE)
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example returns the destination IP address and the destination
                  IP port of the MOIP Output Settings for a specific Stream (PE) in this case PE 1.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/output/moip/ipo?ipoid=1&dest_ip&dest_port"
                  If successful, the return body will be:
                  "output": {
                          "moip": {
                              "ipo": {
                                  "ipoid": "1",
                                  "dest_ip": "225.1.1.101",
                                  "dest_port": "49152"
                              }
                          }
                      }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      201
                                                                                                                               API Definitions
       Decode Configuration Commands
Table 168: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 202
API Definitions
                                                                                                     Decode Configuration Commands
                  POST Examples:
                  Example 1: Set a Specific Decoder to be enabled
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example sets the video decoder as enabled.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/ctrl?enable=Yes&decoder=Video"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Retrieve the full list of Decoders and whether they are enabled or disabled
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/ctrl"
                  If successful, the return body will look like (please note this is a snippet of the full return body):
                  "decode": {
                          "ctrl": [
                              {
                                  "decoder": "Video",
                                  "enable": "Yes"
                              },
                              {
                                  "decoder": "Audio1",
                                  "enable": "Yes"
                              },
                       ]
                  }
                  Example 3: Retrieve a specific Decoder and whether it is enabled or disabled
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example retrieves the video decoder to view the
                  enabled status.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/ctrl?&decoder=Video"
                  If successful, the return body will look like:
                  "decode": {
                          "ctrl": {
                              "decoder": "Video",
                              "enable": "Yes"
                          }
                      }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     203
                                                                                                                                      API Definitions
      Decode Configuration Commands
              Note      For GET, the URI arguments below will not contain values. For POST, the arguments below will need to
                        be specified with a value. In-depth CURL examples can be seen below
              Note      Trisync is not supported in the current release. It may still be accepted as an input Query/Set Argument
                        and shown in the output return body data in software Version 2.27 or below. The client software should
                        ignore and not use or display this field.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
204
API Definitions
                                                                                                     Decode Configuration Commands
                  POST Examples:
                  Example 1: Set various video arguments
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example sets the PV Output Format to Auto and
                  the SD Video Output Format to Auto.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/video?sdformat=Auto&pvformat=Auto"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Retrieve the full Video Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/video"
                  If successful, the following is an example of the return body (this is a snippet of the full return body):
                  "decode": {
                          "video": {
                              "pvformat": "Auto",
                              "sdformat": "Auto",
                          }
                      }
                  Example 3: Retrieve specific video settings
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. Please change
                  the IP to the specific unit IP in use. This example will retrieve the PV Output Format and SD Video Output
                  Format.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/video?&sdformat&pvformat"
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     205
                                                                                                                                API Definitions
      Decode Configuration Commands
Command Information Allows set or get of aspect ratio decode settings parameters.
Table 172: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
206
API Definitions
                                                                                                     Decode Configuration Commands
                  POST Examples:
                  Example 1: Set various Aspect Ratio Setting Arguments
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example sets the Standard Definition Aspect Ratio
                  to 4:3 and the Selected Aspect Ratio Conversion to Auto.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1 /ws/v2/service_cfg/decode/ar?arselect=Auto&sdar=4:3"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Retrieve the full Aspect Ratio Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/ar"
                  If successful, the return body will look like (this is a snippet of the full return body):
                  "decode": {
                          "ar": {
                              "sdar": "4:3",
                              "arselect": "Auto",
                              "wssmode": "Passthrough"
                          }
                      }
                  Example 3: Retrieve specific Aspect Ratio Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example retrieves the Standard Definition Aspect
                  Ratio and the Selected Aspect Ratio Conversion.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/ar?&arselect&sdar"
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     207
                                                                                                                              API Definitions
      Decode Configuration Commands
Table 174: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
208
API Definitions
                                                                                                     Decode Configuration Commands
                  POST Examples:
                  Example 1: Set various Subtitle Setting Arguments
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example sets the imitext Position to Standard and the
                  Foreground Color to Auto.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/subt?imitext=Standard&foregndcol=Auto"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Retrieve the full Subtitle Settings
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     209
                                                                                                                          API Definitions
      Decode Configuration Commands
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/decode/subt"
                        If successful, the return body will look:
                        "decode": {
                                "subt": {
                                    "opmode": "Off",
                                    "langmenu": "Language Entry",
                                    "langlist": "eng",
                                    "langentry": "eng",
                                    "pmtorder": "First",
                                    "imitext": "Standard",
                                    "foregndcol": "Auto",
                                    "backgndcol": "Auto"
                                }
                            }
                        Example 3: Retrieve specific Subtitle Settings
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. The following example retrieves the imitext Position and the
                        Foreground Color.
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/decode/subt?&imitext&foregndcol"
                        If successful, the return body will look like:
                        "decode": {
                                "subt": {
                                    "foregndcol": "Auto",
                                    "imitext": "Standard"
                                }
                            }
Command Information Allows set or get of closed caption decode settings parameters.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
210
API Definitions
                                                                                                     Decode Configuration Commands
Table 176: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                  POST Examples:
                  Example 1: Set various CC Setting Arguments
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example sets the prefccmode to Auto.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/cc?prefccmode=Auto"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Retrieve the full CC Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/cc"
                  If successful, the return body will look like:
                  "decode": {
                          "cc": {
                              "prefccmode": "Auto"
                          }
                      }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     211
                                                                                                                            API Definitions
      Decode Configuration Commands
              Note      The full CC settings table is the same as just retrieving it with the prefccmode argument as the prefccmode
                        argument is the only argument of CC.
Note The audio decode configuration command is only supported in Version 1.x to 2.05.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
212
API Definitions
                                                                                                     Decode Configuration Commands
Table 178: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     213
                                                                                                                        API Definitions
      Decode Configuration Commands
                        POST Examples:
                        Example 1: Set various Audio Setting Arguments
                        The following example assumes that the user has successfully logged onto the unit, received the session ID,
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example sets the ddpmode to Pass.
              Note      The device index must be specified in the URI. For this example the ddpmode will be set for audio device
                        1.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
214
API Definitions
                                                                                                        Decode Configuration Commands
                     The following example assumes that the user has successfully logged onto the unit, received the session ID,
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. In this example the audio settings are retrieved for Device 1.
                     curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/decode/audio?right&left&ddpmode&mode&device=1&
                     lang&ac3comp&pmtsrc&langmenu"
                     If successful, the return body will be:
                     "decode": {
                             "audio": {
                                 "device": "1",
                                 "ac3comp": "RF Mode",
                                 "ddpmode": "Pass",
                                 "lang": "eng",
                                 "langmenu": "PMT Order",
                                 "left": "0.0",
                                 "mode": "Stereo",
                                 "pmtsrc": "AUD1",
                                 "right": "0.0"
                             }
                         }
                     Specific audio setting arguments per given audio device can be retrieved by including the specific argument
                     in the URI. For example, to only retrieve the pmtscr and langmenu arguments of audio device 1, the CURL
                     command is:
                     curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=1&pmtsrc&langmenu"
                     Example 3: Set Audio decoder langmenu option to all Audio devices
                     The following example assumes that the user has successfully logged onto the unit, received the session ID,
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use.
                     This example sets the langmenu option to PMT%20Order.
              Note   The device=all must be specified in the URI for PMT%20Order case because that setting value cannot be
                     combined with any other "Language%20List" or "Language%20Entry" option value for other devices.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        215
                                                                                                                      API Definitions
      Decode Configuration Commands
              Note      The device=all must be specified in the URI for Language%20List case when the existing value was
                        previously set to PMT%20Order because that setting value cannot be combined with any other
                        "Language%20List" or "Language%20Entry" option value for other devices.
              Note      The device=all must be specified in the URI for PMT%20Order case because that setting value cannot be
                        combined with any other "Language%20List" or "Language%20Entry" option value for other devices.
              Note      The device=all must be specified in the URI for Language%20Entry case when the existing value was
                        previously set to PMT%20Order because that setting value cannot be combined with any other
                        "Language%20List" or "Language%20Entry" option value for other devices.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
216
API Definitions
                                                                                                        Decode Configuration Commands
              Note   The device=all must be specified in the URI for Language%20Entry case when the existing value was
                     previously set to PMT%20Order because that setting value cannot be combined with any other
                     "Language%20List" or "Language%20Entry" option value for other devices.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        217
                                                                                                                           API Definitions
      Decode Configuration Commands
Note The audio decode configuration command is only supported in Version 2.26 and later.
Command Information Allows set or get of audio decode SDI preference setting parameter.
Table 180: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
218
API Definitions
                                                                                                      Decode Configuration Commands
                  POST Examples:
                  Example 1: Set Audio Device SDI Preference
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example sets the sdipref to Compressed. Please note that the
                  device index must be specified in the URI as well as the sdiindex. For this example the sdipref will be set for
                  audio device 1 and sdiindex 1.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=1&sdiindex=1&sdipref=Compressed"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Examples:
                  Example 2: Retrieve the Audio Device SDI Preference setting
                  The following example assumes that the user has successfully logged onto the unit, received the session id
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. In this example the audio device is 1 and sdiindex is 1. Please note
                  that the only argument of this command is sdipref hence it must be part of the URI.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=1&sdiindex=1&sdipref"
                  If successful, the return body will look like:
                  "decode": {
                          "audio": {
                              "sdipref": "Compressed"
                          }
                  }
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      219
                                                                                                                           API Definitions
      Decode Configuration Commands
                         Command Information                      Allows set or get of audio decode SDI1 or SDI2 output settings
                                                                  parameter.
Table 182: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
220
API Definitions
                                                                                                     Decode Configuration Commands
                  As seen above, the possible URIs are seen. The SDI 1 and 2 Output Modes are still a part of audio. Place the
                  specific URI (see above) into the CURL command and the user will be able to POST and GET the SDI 1 and
                  2 Output Modes.
                  POST Example
                  Example 1: Set Audio Device SDI1Output:
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/audio?sdi1output=PVO"
                  If successful, the return body will look like:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                  GET Example
                  Example 2: Retrieve the Audio Device SDI1Output setting
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/decode/audio?sdi1output"
                  If successful, the return body will look like:
                  "decode": {
                          "audio": {
                              "sdi1output": "PVO"
                          }
                  }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     221
                                                                                                                    API Definitions
      Decode Configuration Commands
              Note      All of the URI Arguments below apply to both GET and POST. For GET, the URI arguments do not need
                        any values. For POST at least one of the arguments must be specified along with the associated value the
                        user would like to set. In-depth CURL examples can be seen below following the table.
                        POST Example
                        Example 1: Set Audio ST302 Device Stream ID
                        curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/decode/aud_st302?streamid=2"
                        If successful, the return body will look like:
                        "response": {
                                "code": "10",
                                "result": "success",
                                "message": ""
                            }
                        GET Example
                        Example 2: Retrieve the Audio ST302 Device Stream ID
                        curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/decode/aud_302"
                        If successful, the return body will look like:
                        "decode": {
                                "aud_st302": {
                                    "device": "1",
                                    "streamid": "2"
                                }
                            }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
222
API Definitions
                                                                                                    Decode Configuration Commands
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                    223
                                                                                                                               API Definitions
      Decode Configuration Commands
Table 186: SDIAUDIO URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
224
API Definitions
                                                                                                      Decode Configuration Commands
Table 187: SDIVANC URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
Table 188: SDIVII URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      225
                                                                                                                         API Definitions
      Decode Configuration Commands
              Note      The possible URI for both POST and GET for sdivanc, sdiaudio, and sdivii are seen above. Please place
                        these URIs into the CURL command with a valid token and users will be able to POST and GET. Refer
                        to the POST and GET syntax examples in the Command Details section above for examples on how to
                        do GET and POST with CURL commands.
Command Information Allows set or get of decode settings for HDMI parameters.
                         GET Syntax                               All HDMI Video Settings for specified HDMI instance:
                                                                  GET "https://192.168.0.1/ws/v2/service_cfg/decode/hdmi? hdmiindex=1"
                                                                  Single HDMI Video Setting for specified HDMI instance:
                                                                  GET "https://192.168.0.1/ws/v2/service_cfg/decode/hdmi?
                                                                  hdmiindex=1&colorspace"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
226
API Definitions
                                                                                                     Decode Configuration Commands
Table 190: HDMI URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     227
                                                                                                                         API Definitions
      Decode Configuration Commands
Command Information Allows set or get of decode settings for advanced audio parameters.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
228
API Definitions
                                                                                                     Decode Configuration Commands
                  Table 192: Advanced Audio Control URI Query/Set Arguments (possible fields and values preceded by ? and separated
                  by &)
Table 193: HDMI Settings URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     229
                                                                                                                            API Definitions
      Decode Configuration Commands
                        Note      All of the URI Arguments listed for VBI Settings apply to both GET and POST. For GET, the URI
                                  arguments do not need any values. For POST the arguments in the following table need to be set
                                  with a value. The GET result output field names re-use the argument names and possible values.
Table 194: SDI Settings URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
230
API Definitions
                                                                                                     Decode Configuration Commands
Command Information Allows set or get of decode settings for VBI parameters.
Table 196: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     231
                                                                                                                       API Definitions
      Decode Configuration Commands
                        POST Examples:
                        Example 1: Set various VBI Setting Arguments
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. The following example enables the VITC Color Mode and the
                        VITC Drop Frame.
                        curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/decode/vbi?vitcdropfr=Enable&vitcmode=Suppress"
                        If successful, the following is an example of the return body:
                        "response": {
                                "code": "10",
                                "result": "success",
                                "message": ""
                            }
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
232
 API Definitions
                                                                                      CA (Conditonal Access) Configuration Commands
                   GET Examples:
                   Example 2: Retrieve the full VBI Settings
                   The following example assumes that the user has successfully logged onto the unit, received the session id
                   and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                   change the IP to the specific unit IP in use.
                   curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                   "https://192.168.0.1/ws/v2/service_cfg/decode/vbi"
                   If successful, the following is an example of the return body:
                   "decode": {
                           "vbi": {
                               "wstinstart": "Standard",
                               "vitspal17": "Disable",
                               "vitspal18": "Disable",
                               "vitspal330": "Disable",
                               "vitspal331": "Disable",
                               "vitcmode": "Passthrough",
                               "vitctmcode": "LTC",
                               "vitcdropfr": "Enable"
                           }
                       }
                   Example 3: Retrieve specific VBI Settings
                   The following example assumes that the user has successfully logged onto the unit, received the session id
                   and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                   change the IP to the specific unit IP in use. The following example will retrieve the VITC Color Mode and
                   the VITC Drop Frame.
                   curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                   "https://192.168.0.1/ws/v2/service_cfg/decode/vbi?vitcdropfr"
                   If successful, the following is an example of the return body:
                   "decode": {
                           "vbi": {
                               "vitcdropfr": "Enable"
                           }
                       }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      233
                                                                                                                              API Definitions
      CA (Conditonal Access) Configuration Commands
Table 198: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         stream (Key)                                                   Multi Input Stream ID. If not specified, default value
                                                                                        of 1 is used.
                         (optional)
                                                                                        Type: Integer
                         Applies to multi-stream units only.
                                                                                        Values: 1..6 (RF), 1 (ASI), 1..32 (MOIP)
                        POST Examples:
                        Example 1: Set various PowerVu CA Setting Arguments
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. The following example sets the commode to Std.
                        curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/ca/pvu?&camode=Std"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
234
API Definitions
                                                                                        CA (Conditonal Access) Configuration Commands
              Note   Running with the specific camode argument will return the same response as above, as PowerVu CA only
                     has one argument.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        235
                                                                                                                            API Definitions
      CA (Conditonal Access) Configuration Commands
Table 200: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         stream (Key)                                Multi Input Stream ID. If not specified, default value of 1 is used.
                         (optional)                                  Type: Integer
                         Applies to multi-stream units only.         Values: 1..6 (RF), 2 (ASI), 1..32 (MOIP)
                        POST Examples:
                        Example 1: Set various BISS Setting Arguments
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
236
API Definitions
                                                                                        CA (Conditonal Access) Configuration Commands
                     The following example assumes that the user has successfully logged onto the unit, received the session ID,
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. This example set the bissmode to Mode 1.
                     curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/ca/biss?&bissmode=Mode%201"
                     If successful, the following is an example of the return body:
                     "response": {
                             "code": "10",
                             "result": "success",
                             "message": ""
                         }
                     GET Examples:
                     Example 2: Retrieve the PowerVu CA Settings
                     The following example assumes that the user has successfully logged onto the unit, received the session ID,
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use.
                     curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/ca/biss"
                     If successful, the following is an example of the return body:
                       "ca": {
                             "biss": {
                                 "bissmode": "Mode 1",
                                 "mod1seswrd": "************",
                                 "modeseswrd": "****************",
                                 "modeinjid": "**************"
                             }
                       }
              Note   The mod1seswrd, modeseswrd, and modeinjid are write-only, so their values will not be shown when
                     trying to perform GET. Hence, only the bissmode will provide useful information from a BISS GET.
                     Command Information                   Allows set or get of Common Interface (CI) Conditional Access
                                                           configuration.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        237
                                                                                                                           API Definitions
      CA (Conditonal Access) Configuration Commands
                        Note      These arguments are intended to be used with POST. When this command is used as a GET command
                                  these arguments generally serve as output field descriptions
Table 202: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         tsid                                      Transport ID
                                                                   Type: Integer
                                                                   Value: 0..65535
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
238
API Definitions
                                                                                     CA (Conditonal Access) Configuration Commands
                  POST Examples:
                  Example 1: Set various CI Setting Arguments
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example disables autoreset and sets tsid to 100.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/ca/ci?autoreset=Disable&tsid=100"
                  GET Examples:
                  Example 2: Retrieve the CI Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/ca/ci"
                  If successful, the following is an example of the return body:
                  {
                      "ca": {
                          "ci": {
                              "sendquery": "Disable",
                              "autoreset": "Disable",
                              "listmgmt": "AddDel",
                              "tsonetchk": "Disable",
                              "tsid": "0",
                              "onetid": "0",
                              "tsrouting": "ServicesOnly"
                          }
                      }
                  }
   PE CA Configuration Command
                  Table 203: Command Details
                  Command Information                   Allows set or get of Conditional Access Program Entry (PE)
                                                        configuration.
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     239
                                                                                                                           API Definitions
      CA (Conditonal Access) Configuration Commands
Table 204: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                        POST Examples:
                        Example 1: Set various PE Setting Arguments
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
240
API Definitions
                                                                                     CA (Conditonal Access) Configuration Commands
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. The following example sets Program Entry ID 1 to ON.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/ca/pe?peid=1&cidecrypt=ON"
                  GET Examples:
                  Example 2: Retrieve the PE Settings
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use.
                  curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/ca/pe"
                  If successful, the following is an example of the return body:
                  {
                      "ca": {
                          "pe": [
                              {
                                      "peid": "1",
                                      "cidecrypt": "ON",
                                      "cislot": "TOP",
                                      "cipe1slot": "TOP"
                                 },
                                  …
                                 {
                                      "peid": "16",
                                      "cidecrypt": "ON",
                                      "cislot": "TOP",
                                      "cipe1slot": "AUTO"
                                 }
                           ]
                      }
                  }
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                     241
                                                                                                                           API Definitions
      CA (Conditonal Access) Configuration Commands
Table 206: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
242
API Definitions
                                                                                        CA (Conditonal Access) Configuration Commands
                     GET Examples:
                     Example 1: Retrieve all the CICOMP Settings
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use.
                     curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/ca/cicomp"
                     If successful, the following is an example of the return body:
                     {
                         "ca": {
                             "cicomp": [
                                 {
                                     "idx": "1",
                                     "peid": "1",
                                     "mode": "PID",
                                     "pid": "8192",
                                     "strmcat": "USER",
                                     "strmval": "0",
                                     "strminst": "1",
                                     "oper": "Inactive"
                                 },
                                 …
                                 {
                                     "idx": "64",
                                     "peid": "1",
                                     "mode": "PID",
                                     "pid": "8192",
                                     "strmcat": "USER",
                                     "strmval": "0",
                                     "strminst": "1",
                                     "oper": "Inactive"
                                 }
                             ]
                         }
                     }
                     POST Examples:
Note POST requires previous knowledge of target row (idx – key) from GET command.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        243
                                                                                                                       API Definitions
       Transcoding Configuration Commands
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 244
API Definitions
                                                                                                 Transcoding Configuration Commands
Table 208: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      245
                                                                                                                           API Definitions
      Transcoding Configuration Commands
                         bitratemode                               Select whether the output bit rate is constant or variable for HD video
                                                                   output
                                                                   Type: String
                                                                   Values: "CBR", "VBR"
                         usergop                                   If the HD GOP Control is under User GOP, select the M and N values
                                                                   Type: String
                                                                   Values: "1 0", "12 2", "15 2", "24 2", "30 2"
                        POST Examples:
                        Example 1: Changing one HD Transcoding Parameter
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. The following example changes the bitratemode of transcoder 5
                        to CBR.
                        curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                        "https://192.168.0.1/ws/v2/service_cfg/transcode/hd?index=5&bitratemode=CBR"
                        If successful, the following is an example of the return body:
                               "response": {
                                   "code": "10",
                                   "result": "success",
                                   "message": ""
                               }
                        Example 2: Changing multiple HD Transcoding Parameters
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
246
API Definitions
                                                                                                   Transcoding Configuration Commands
                     change the IP to the specific unit IP in use. The following example changes several HD transcoder 5 parameters.
                     It will set the bitratemode to CBR, bitrate to 18, and pulldown32 to Disabled.
                     curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/transcode?/hd?
                     index=5&bitratemode=CBR&bitrate=18&pulldown32=Disabled"
                     If successful, the following is an example of the return body:
                         "response": {
                             "code": "10",
                             "result": "success",
                             "message": ""
                         }
                     GET Examples:
                     Example 3: GET the full HD transcoder values for a specific transcoder
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. The following example retrieves all of the HD transcoder settings
                     for transcoder 5.
              Note   The user must specify the port number in the URI followed by the URI argument the user wishes to retrieve.
                     This example retrieves the bitrate from transcoder 5.
              Note   In GET URIs, only the index argument must contain a value for the transcoder, all other arguments do
                     not contain values.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        247
                                                                                                                       API Definitions
      Transcoding Configuration Commands
               Note     The user must specify the port number in the URI followed by the URI arguments the user wishes to
                        retrieve. This example retrieves the bitratemode, bitrate and pulldown32 values from transcoder 5.
               Note     In GET URIs, only the index argument must contain a value for the transcoder, all other arguments do
                        not contain values.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
248
API Definitions
                                                                                                 Transcoding Configuration Commands
Table 210: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                  bitratemode                                 Select whether the output bit rate is constant or variable for HD video
                                                              output
                                                              Type: String
                                                              Values: "CBR", "VBR"
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      249
                                                                                                                            API Definitions
      Transcoding Configuration Commands
                         usergop                                      If the HD GOP Control is under User GOP, select the M and N values
                                                                      Type: String
                                                                      Values: "1 0", "12 2", "15 2", "24 2", "30 2"
                         aspectconv                                   Select the desired aspect ratio conversion method for SD video output
                                                                      Type: String
                                                                      Values: "None", "Auto", "Auto AFD", "16:9 L/B", "4:3 P/B", "14:9",
                                                                      "4:3 CCO", "16:9 SCALE"
                         ccpkt1                                       Select which content to place in the first Closed Captioning Packet
                                                                      for SD video output
                                                                      Type: String
                                                                      Values: "None", "CEA 708", "SCTE-20"
                         ccpkt2                                       Select which content to place in the second Closed Captioning Packet
                                                                      for SD video output
                                                                      Type: String
                                                                      Values: "None", "CEA 708", "SCTE-20"
                        POST Examples:
                        Example 1: Changing one SD Transcoding Parameter
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
250
API Definitions
                                                                                                   Transcoding Configuration Commands
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. This example changes the bitratemode of transcoder 5 to CBR.
                     curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/service_cfg/sd/transcode?index=5&bitratemode=CBR"
                     If successful, the following is an example of the return body will be:
                      "response": {
                             "code": "10",
                             "result": "success",
                             "message": ""
                         }
                     Example 2: Changing multiple SD Transcoding Parameters
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. The following example changes several HD transcoder 5 parameters.
                     It will set the bitratemode to CBR, bitrate to 14 and, pulldown32 to Disabled.
                     curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                     "https://192.168.0.1/ws/v2/
                     service_cfg/transcode/sd?index=5&bitratemode=CBR&bitrate=14&pulldown32=Disabled"
                     If successful, the following is an example of the return body:
                         "response": {
                             "code": "10",
                             "result": "success",
                             "message": ""
                         }
                     GET Examples:
                     Example 3: GET the full SD transcoder values for a specific transcoder
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. The following example retrieves all of the SD transcoder settings
                     for transcoder 5.
                                    Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        251
                                                                                                                     API Definitions
      Transcoding Configuration Commands
                        change the IP to the specific unit IP in use. The following example retrieves one specific parameter value
                        from the ASI tuning settings for ASI port 1.
               Note     The user must specify the port number in the URI followed by the URI argument the user wishes to retrieve.
                        This example retrieves the bitrate from transcoder 5.
               Note     In GET URIs, only the index argument must contain a value for the transcoder, all other arguments do
                        not contain values.
               Note     The user must specify the index number in the URI followed by the URI arguments the user wishes to
                        retrieve. The following example retrieves the bitratemode, bitrate and pulldown32 values from transcoder
                        5.
               Note     In GET URIs, only the index argument must contain a value for the transcoder, all other arguments do
                        not contain values.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
252
API Definitions
                                                                                                 Transcoding Configuration Commands
Table 212: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      253
                                                                                                                           API Definitions
      Transcoding Configuration Commands
                        POST Examples:
                        Example 1: Changing one SUBT Transcoding Parameter
                        The following example assumes that the user has successfully logged onto the unit, received the session id
                        and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                        change the IP to the specific unit IP in use. This example changes the opmode of transcoder 5 to Imitext.
                        curl -X POST -i -H "Accept: application/json" -H
                        "X-SESSION-ID: $token" -k "https://192.168.0.1/ws/v2/service_cfg/transcode/
                        subt?index=5&opmode=Imitext"
                        If successful, the following is an example of the return body:
                        "response": {
                                "code": "10",
                                "result": "success",
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
254
API Definitions
                                                                                                    Transcoding Configuration Commands
                               "message": ""
                          }
                     Example 2: Changing multiple SUBT Transcoding Parameters
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. The following example changes several SUBT transcoder 5
                     parameters. It will set the opmode to "Imitext", langmenu to "PMT Order" and pmtorder to "Second".
                     curl -X POST -i -H "Accept: application/json" -H
                     "X-SESSION-ID: $token" -k "https://192.168.0.1/ws/v2/service_cfg/transcode/
                     subt?index=5&opmode=Imitext&langmenu=PMT%20Order&pmtorder=Second"
                     If successful, the return body will be:
                     "response": {
                             "code": "10",
                             "result": "success",
                             "message": ""
                         }
                     GET Examples:
                     Example 3: GET the full SUBT transcoder values for a specific transcoder
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. The following example retrieves all of the SUBT transcoder settings
                     for transcoder 5.
              Note   The user must always specify the port number in the URI followed by the URI argument the user wishes
                     to retrieve. This example retrieves the langmenu from transcoder 5.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         255
                                                                                                                      API Definitions
       User Configuration Command
                Note     In GET URIs only, the index argument must contain a value for the transcoder, all other arguments so not
                         contain values.
                Note     The user must always specify the port number in the URI followed by the URI arguments the user wishes
                         to retrieve. This example retrieves the langmenu, langentry, and foregndcol values from transcoder 5.
                Note     In GET URIs only, the index argument must contain a value for the transcoder, all other arguments do
                         not contain values.
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 256
API Definitions
                                                                                                            User Configuration Command
Table 214: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                     POST Examples:
                     Example 1: Changing one user parameter
                     The following example assumes that the user has successfully logged onto the unit, received the session id
                     and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                     change the IP to the specific unit IP in use. The following example changes the lossofinput parameter to "No
                     Output".
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         257
                                                                                                                           API Definitions
       Disaster Recovery (D/R) Configuration API
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 258
API Definitions
                                                                                             Disaster Recovery (D/R) Configuration API
Table 216: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                  POST Examples
                  Example 1: Set various D/R global Setting Arguments
                  The following example assumes that the user has successfully logged onto the unit, received the session ID,
                  and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                  change the IP to the specific unit IP in use. This example set the commode to Std.
                  curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                  "https://192.168.0.1/ws/v2/service_cfg/dr/global?&siglock=40"
                  If successful, the return body will be:
                  "response": {
                          "code": "10",
                          "result": "success",
                          "message": ""
                      }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         259
                                                                                                                          API Definitions
      Disaster Recovery (D/R) Configuration API
                         GET Examples
                         Example 2: Retrieve the full D/R global Settings
                         The following example assumes that the user has successfully logged onto the unit, received the session ID,
                         and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                         change the IP to the specific unit IP in use.
                         curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                         "https://192.168.0.1/ws/v2/service_cfg/dr/global"
                         If successful, the return body will be:
                         "dr": {
                                     "global": {
                                         "enable": "Yes",
                                         "siglock": "40",
                                         "siglost": "120",
                                         "verify": "60",
                                         "profile": "Local"
                                     }
                               }
Note The "profile" parameter is only for display, configuring the parameter is not currently supported.
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
260
API Definitions
                                                                                             Disaster Recovery (D/R) Configuration API
Table 218: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                         261
                                                                                                                              API Definitions
      Disaster Recovery (D/R) Configuration API
                         POST Examples
                         Example 1: Set various D/R backup transport Arguments
                         The following example assumes that the user has successfully logged onto the unit, received the session id
                         and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                         change the IP to the specific unit IP in use. This example set the commode to Std.
                         curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                         "https://192.168.0.1/ws/v2/service_cfg/dr/tuning?&csirec=1&rowstatus=Active&input=RF2
                         &dnlkfreq=3.53&symrate=30"
                         If successful, the return body will be:
                         "response": {
                                 "code": "10",
                                 "result": "success",
                                 "message": ""
                             }
                         GET Examples
                         Example 2: Retrieve the full D/R backup Settings
                         The following example assumes that the user has successfully logged onto the unit, received the session id
                         and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                         change the IP to the specific unit IP in use.
                         curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                         "https://192.168.0.1/ws/v2/service_cfg/dr/tuning"
                         If successful, the return body will be:
                         "dr": {
                                     "tuning": [
                                         {
                                             "csirec": "1",
                                             "fec": "Auto",
                                             "dnlkfreq": "3.53",
                                             "input": "RF2",
                                             "mod": "DVB-S",
                                             "netid": "1",
                                             "symrate": "30.0",
                                             "rolloff": ".35",
                                             "rowstatus": "Active"
                                         },
                                         {
                                             "csirec": "2",
                                             "fec": "Auto",
                                             "dnlkfreq": "3.449",
                                             "input": "RF1",
                                             "mod": "DVB-S",
                                             "netid": "1",
                                             "symrate": "28.3465",
                                             "rolloff": ".35",
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
262
API Definitions
                                                                                              Disaster Recovery (D/R) Configuration API
                                       "rowstatus": "Inactive"
                                  },
                                  {
                                       "csirec": "3",
                                       "fec": "Auto",
                                       "dnlkfreq": "3.449",
                                       "input": "RF1",
                                       "mod": "DVB-S",
                                       "netid": "1",
                                       "symrate": "28.3465",
                                       "rolloff": ".35",
                                       "rowstatus": "Inactive"
                                  }
                             ]
                         }
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          263
                                                                                                                            API Definitions
      Disaster Recovery (D/R) Configuration API
Table 220: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                         POST Examples
                         Example 1: Set various D/R global Setting Arguments
                         The following example assumes that the user has successfully logged onto the unit, received the session ID,
                         and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                         change the IP to the specific unit IP in use. This example set the commode to Std.
                         curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                         "https://192.168.0.1/ws/v2/service_cfg/dr/channels?peid=PE1&csirec=1&bkpchan=30"
                         If successful, the return body will look be:
                         "response": {
                                 "code": "10",
                                 "result": "success",
                                 "message": ""
                             }
                         GET Examples
                         Example 2: Retrieve the full D/R backup Settings
                         The following example assumes that the user has successfully logged onto the unit, received the session ID,
                         and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
                         change the IP to the specific unit IP in use.
                         curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
                         "https://192.168.0.1/ws/v2/service_cfg/dr/channels"
                         If successful, the return body will be:
                         "dr": {
                                     "channels": [
                                         {
                                             "peid": "PE1",
                                             "csirec": "1",
                                             "bkpchan": "201",
                                         },
                                         {
                                             "peid": "PE1",
                                             "csirec": "2",
                                             "bkpchan": "0",
                                         },
                                         {
                                             "peid": "PE1",
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
264
 API Definitions
                                                                                                            Device Control Commands
                                       "csirec": "3",
                                       "bkpchan": "0",
                                  },
                                  {
                                       "peid": "PE2",
                                       "csirec": "1",
                                       "bkpchan": "0",
                                  },
                      .
                      .
                      .
                            ]
                       }
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      265
                                                                                                                           API Definitions
      Ethernet Device Control Command
Table 222: Level_1 URI Parameters (extension to the Command URL separated by /)
                        Note      All of the URI Arguments below apply to both GET and POST. For GET, the URI arguments do not
                                  need any values, except the index which must be specified. For POST the index must be specified
                                  followed by any of the below URI arguments and the associated value the user would like to set.
                                  In-depth CURL examples can be seen below following the table.
Table 223: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
266
API Definitions
                                                                                                    Ethernet Device Control Command
                  ipv4mask                              IP V4 mask
                                                        Type: digit
                                                        Value: 8..30
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      267
                                                                                                                          API Definitions
      Ethernet Device Control Command
                                </port>
                                <port>
                                    <portid>3</portid>
                                    <name>Data2</name>
                                    <ipver>IPv4</ipver>
                                    <ipv4addr>192.168.1.3</ipv4addr>
                                    <ipv4mask>24</ipv4mask>
                                    <ipv4defgw>192.168.1.254</ipv4defgw>
                                    <phymode>Auto</phymode>
                                </port>
                            </eth>
                        </devicectl>
                        Show a single port information in XML format:
                        curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/device_ctl/eth/port?portid=1"
                        Expected output (values are for example purposes only):
                        <?xml version="1.0" encoding="ISO-8859-1" ?>
                        <devicectl>
                        <eth>
                            <port>
                                <portid>1</portid>
                                <name>Management</name>
                                <ipver>IPv4</ipver>
                                <ipv4addr>192.168.0.1</ipv4addr>
                                <ipv4mask>24</ipv4mask>
                                <ipv4defgw>192.168.0.254</ipv4defgw>
                                <phymode>Auto</phymode>
                            </port>
                            </eth>
                        </devicectl>
                        Show a single port item in JSON format:
                        curl -k -H "X-SESSION-ID: $token"
                        "https://192.168.0.1/ws/v2/device_ctl/eth/port?portid=2&ipv4addr&js=1"
                        Expected output (values are for example purposes only):
                        {
                             "devicectl": {
                                 "eth": {
                                     "port": {
                                         "portid": "2",
                                         "ipv4addr": "192.168.1.2"
                                     }
                                 }
                             }
                        }
                        POST Method Examples:
                        Configure physical Ethernet Port. When the Management Port IP is changed the connection will be immediately
                        lost and user have to re-login the system, this will also result in the token not being returned. In order to avoid
                        mixing the command with other commands together, IP control port configurations is only supported from
                        HTTP POST body.
                        Management port:
                        curl -k -X POST -H "X-SESSION-ID: $token"
                        "https://192.168.0.1/ws/v2/device_ctl/eth/port?portid=1&ipv4addr=192.168.0.0&js=1"
                        If successful, the following is an example of the return body:
                         "response": {
                                "code": "10",
                                "result": "success",
                                "message": ""
                            }
                        Data Port:
                        curl -k -X POST -H "X-SESSION-ID: $token"
                        "https://192.168.0.1/ws/v2/device_ctl/eth/port?portid=2&ipv4addr=192.131.244.7&js=1"
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
268
 API Definitions
                                                                                             Version Selection Device Control Command
                   Command Information                    Allows getting all runnable software version information, selecting a
                                                          software version or deleting a software version.
Table 225: Level_1 URI Parameters (extension to the Command URL separated by /)
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                        269
                                                                                                                             API Definitions
      Version Selection Device Control Command
                        Note         All of the URI Arguments below apply to both GET and POST except where indicated. For GET,
                                     the URI arguments do not need any values, except the idx which must be specified. For POST, the
                                     idx must be specified followed by any of the below URI arguments and the associated value the user
                                     would like to set. Various CURL examples can be seen below
                        .
Table 226: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
270
API Definitions
                                                                                           Version Selection Device Control Command
                  <verselect><idx>4</idx><name></name><reboot>No</reboot><erase>No</erase></verselect><verselect>
                  <idx>5</idx><name></name><reboot>No</reboot><erase>No</erase></verselect><verselect><idx>6</idx>
                  <name></name><reboot>No</reboot><erase>No</erase></verselect><verselect><idx>7</idx><name>
                  </name><reboot>No</reboot><erase>No</erase></verselect><verselect><idx>8</idx><name></name>
                  <reboot>No</reboot><erase>No</erase></verselect></ver></devicectl>
                  Show all version Info in JSON:
                  {
                      "devicectl": {
                          "ver": {
                              "verselect": [
                                  {
                                      "idx": "0",
                                      "name": "1.10",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "1",
                                      "name": "T2.25C1",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "2",
                                      "name": "T2.25B7",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "3",
                                      "name": "",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "4",
                                      "name": "",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "5",
                                      "name": "",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "6",
                                      "name": "",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "7",
                                      "name": "",
                                      "reboot": "No",
                                      "erase": "No"
                                  },
                                  {
                                      "idx": "8",
                                      "name": "",
                                      "reboot": "No",
                                      "erase": "No"
                                  }
                              ]
                          }
                      }
                  }
                  POST Method Examples:
                  Select a software version to run or delete the software version.
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      271
                                                                                                                              API Definitions
       Reset Device Control Command
                         Select a version:
                         curl -k -X POST -H "X-SESSION-ID: $token"
                         "https://192.168.0.1/ws/v2/device_ctl/ver/verselect?idx=1&reboot=Yes&js=1"
                         If successful, the following is an example of the return body:
                         "response": {
                                 "code": "10",
                                 "result": "success",
                                 "message": ""
                             }
                         And system will reboot successfully to the new version.
                         Delete a version:
                         curl -k -X POST -H "X-SESSION-ID: $token"
                         "https://192.168.0.1/ws/v2/device_ctl/ver/verselect?idx=2&erase=Yes&js=1"
                         If successful, the following is an example of the return body:
                         "response": {
                                 "code": "10",
                                 "result": "success",
                                 "message": ""
                             }
                          Command Information                      Allows performing a device reset or factory reset (restore factory default
                                                                   settings). A device reset reboots the target unit. A factory reset does not
                                                                   trigger any reboot for D9800.
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 272
API Definitions
                                                                                                        Reset Device Control Command
Table 228: Level_1 URI Parameters (extension to the Command URL separated by /)
Table 229: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       273
                                                                                                                             API Definitions
       Protocol Device Control
                           Command Information                          Allows getting and setting device controls for protocols such as
                                                                        HTTP, SNMP, IGMP, and so on.
Table 231: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
             Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
 274
API Definitions
                                                                                                             Protocol Device Control
                                 Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       275
                                                                                                           API Definitions
      Protocol Device Control
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
276
 API Definitions
                                                                                                       Download Device Control Settings
Diagnostics API
                      This section contains APIs that Administrators and Users may use to diagnose specific functionality on a
                      D9800 platform.
               Note   This is different from the APIs used for Diagnostics Package creation and retrieval (referred to as Export
                      Debug File operations on the D9800 web GUI).
IP Diagnostics Commands
                      The following is a list of the Client software requirements:
                      IP Diagnostics command may take up to 30 seconds, depending on status of the specified port and destination
                      ip_address.
                      To avoid blocking of the D9800 integrated applications, and to implement the Progress Bar feature on the
                      web GUI, the required client software operation is a four phase approach:
                      1 Trigger a request for IP diagnostic.
                      2 Wait on status (Diagnostics Operation Status API).
                      3 Retrieve the output data of the command (via GET API response).
                      4 Format the raw data retrieved from the GET API response elements into a format (for example, text box
                        Window on the web GUI) that is useful to the user.
The APIs that are involved in Steps 1 to 3 above are described below.
                                     Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                          277
                                                                                                                           API Definitions
      IP Diagnostics Commands
Table 233: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
278
API Definitions
                                                                                                             IP Diagnostics Commands
                     Status: 200
                     Content-type: application/xml
                     {
                         "response": {
                             "code": "0",
                             "result": "success",
                             "message": "ping data collection is in progress"
                         }
                     }
                     Expected output (for Fail case which indicates that IP Diag Package Preparation was not started):
Note Additional failure reason details may be available by calling the DIAGSTAT API.
                     In XML:
                     HTTP/1.1 200 OK
                     Date: Mon, 26 Jun 2017 11:29:29 GMT
                     Server: Hiawatha v9.14
                     Connection: keep-alive
                     Transfer-Encoding: chunked
                     Status: 200
                     Content-type: application/xml
                     {
                         "response": {
                             "code": "10",
                             "result": "failure",
                             "message": "failure to trigger request "
                         }
                     }
                                   Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                       279
                                                                                                                         API Definitions
      IP Diagnostics Commands
                        available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D2601</ID><VALUE><![CDATA[Done]]></VALUE>
                        <NAME><![CDATA[DETAILEDSTATUS]]></NAME><HELP_STR_1><![CDATA[State of the current
                        Ping Traceroute collection operation]]></HELP_STR_1><HELP_STR_2><![CDATA[This item has 6
                        options
                        available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D2602</ID><VALUE><![CDATA[100]]></VALUE>
                        <NAME><![CDATA[PERCENTCOMPLETE]]></NAME><HELP_STR_1><![CDATA[Progress of the current Ping
                        Traceroute Collection operation as a percent]]></HELP_STR_1><HELP_STR_2>
                        <![CDATA[Item attribute: min(0), max(100), step size(1), unit()]]></HELP_STR_2>
                        </ITEM></RECORD></TABLE></HDR>
                        Expected output (example when ip diagnostics operation did not succeed):
                        <?xml version="1.0" encoding="ISO-8859-1"
                        ?><HDR><TABLE><RECORD><ITEM><ID>0x002D2600</ID><VALUE><![CDATA[Fail]]></VALUE>
                        <NAME><![CDATA[OPERSTATUS]]></NAME><HELP_STR_1><![CDATA[Indicates whether the most recent
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
280
API Definitions
                                                                                                            IP Diagnostics Commands
                  available.]]></HELP_STR_2></ITEM><ITEM><ID>0x002D2602</ID><VALUE><![CDATA[100]]></VALUE>
                  <NAME><![CDATA[PERCENTCOMPLETE]]></NAME><HELP_STR_1><![CDATA[Progress of the current
                  Ping Traceroute Collection operation as a percent]]></HELP_STR_1><HELP_STR_2>
                  <![CDATA[Item attribute: min(0), max(100), step size(1), unit()]]></HELP_STR_2>
                  </ITEM></RECORD></TABLE></HDR>
                  Client software is expected to poll the status by calling this API every 5 seconds, while the Inprogress state
                  is active, and until the OPERSTATUS is Pass and PERCENTCOMPLETE is 100 or OPERSTATUS is Fail.
                  The first call will wait a minimum of 1 second, after the IP diagnostics trigger API, in order to allow the
                  internal states to clear. If, at any time, the OPERSTATUS is Fail, then the client software will abort additional
                  checking and report the last DETAILEDSTATUS.
                  Command Information                          Retrieves the last IP diagnostics report (after last 100% completed
                                                               operation status).
                  Options: NA
                  Example (issue the IP diagnostics retrieval command):
                  Input (append &js for output in JSON format):
                  curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/ip_diags"
                  Expected output (example for Success case which indicates only that Diag Package Retrieval was
                  completed):
                  XML format:
                  HTTP/1.1 200 OK
                  Date: Mon, 26 Jun 2017 13:00:58 GMT
                  Server: Hiawatha v9.14
                  Connection: keep-alive
                  Transfer-Encoding: chunked
                  Status: 200
                  Content-type: application/xml
                                  Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
                                                                                                                                      281
                                                                                                                      API Definitions
      IP Diagnostics Commands
                        {
                            "response": {
                                "code": "0",
                                "result": "success",
                                "message1": "PING 10.132.24.34 (10.132.24.34): 56 data bytes\n64 bytes from
                        10.132.24.34: seq=0 ttl=61 time=0.819 ms\n64 bytes from 10.132.24.34: seq=1 ttl=61 time=1.498
                         ms\n64 bytes from 10.132.24.34: seq=2 ttl=61 time=0.740 ms\n64 bytes from 10.132.24.34:
                        seq=3 ttl=61 time=0.687 ms\n64 bytes from 10.132.24.34: seq=4 ttl=61 time=0.677 ms\n\n---
                        10.132.24.34 ping statistics ---\n5 packets transmitted, 5 packets rece",
                                "message2": "ved, 0 percent packet loss\nround-trip min/avg/max = 0.677/0.884/1.498
                         ms\n"
                            }
                        }
                        Expected output (example for Fail case which indicates that IP Diag report retrieval could not be
                        completed):
Note Additional failure reason details may be available by calling the IPDIAGSTAT API.
                        You can put unrecognized parameter (for example, /extra) on command line to test this case:
                        curl -i -k -H "X-SESSION-ID: $token" "https://10.85.163.98/ws/v2/ip_diags/extra"
                        HTTP/1.1 404 Not Found
                        Date: Mon, 26 Jun 2017 13:06:33 GMT
                        Server: Hiawatha v9.14
                        Connection: keep-alive
                        Transfer-Encoding: chunked
                        Status: 404
            Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
282