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:
-
Perform the authentication and login to the API. For more information, see POST /auth/login.
Use GET /pm-extension-ms/terminal-selection-service/ons-list to send an HTTP GET request.
Click Try it Out option.
-
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. -
Click on Execute to generate the request URL.
Request URL:
The following table lists the expected responses.https://<IP_Address>:<PORT>/pm-extension-ms/terminal-selection-service/ons-list?extensionNumber=1&subsystemId=2Response 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
↑