GET /pm-extension-ms/terminal-selection-service/ons-list

Fetch One Number Service (ONS) list related to the specific extension number.

To get all the ONS numbers for specific extension number:
  1. Perform the authentication and login to the API. For more information, see POST /auth/login.

  2. Use GET /pm-extension-ms/terminal-selection-service/ons-list to send an HTTP GET request.

  3. Click Try it Out option.

  4. Set the parameters as listed in the following table.

    Parameter Name

    Sample Value

    Supported Value

    Description

    extensionNumber

    extensionNumber

    string

    Indicates the extension number.
    Note: This parameter is mandatory.

    subsystemId

    subsystemId

    integer 32

    Indicates the subsystem ID.
    Note: This parameter is mandatory.
  5. Click on Execute to generate the request URL.

    Request URL:
    https://<IP_Address>:<PORT>/pm-extension-ms/terminal-selection-service/ons-list?extensionNumber=1&subsystemId=2
    The following table lists the expected responses.

    Response Type

    Value

    Schema

    Valid Response

    200 OK

    {
      "onsVo": [
        {
          "onsid": "string",
          "onsprefix": "string",
          "onstranslateNo": "string"
        }
      ],
      "info": {
        "reason": "string",
        "parameterList": [
          {
            "fieldName": "string",
            "value": "string",
            "item": "string"
          }
        ],
        "message": "string",
        "component": "string",
        "id": "string"
      }

    Error Response

    400 Bad Request

    Not applicable

    401 Authentication Failure

    Not applicable

    403 Forbidden

    Not applicable

    404 Not found

    Not applicable