JSON API » cos » cos/outroutes/list
Gets the fields of all exceptions for a class of service.
Input parameters
Requires authentication and the administrator role privilege.
| Name | Type | Description | Required | Default value |
|---|---|---|---|---|
| auth_username | String | Authentication username. | Yes | |
| auth_password | String | Authentication password. | Yes | |
| cos | Integer | ID of class of service. | Yes | |
| count | Integer | 1 to return a count, 0 to return full data. | No | 0 |
| limit | Integer | The maximum results to return. 0 for all. | No | 0 |
| offset | Integer | The result to start at. 0 for the first. | No | 0 |
| pages | Integer | 1 to return a reduced set of data for generating the pages select box, 0 to return full data. | No | 0 |
Responses
| Code | Description |
|---|---|
| 200 | Success. |
| 401 | The authentication details provided are invalid. |
| 402 | Your role does not allow this. |
| 404 | The customer does not exist, or you do not have permission to use it. |
Data returned
An array of fields, corresponding to the rows of the cos_outroutes table in the database.
Example: With required parameters
http://enswitch.example.com/api/json/cos/outroutes/list/?auth_username=user;auth_password=password;cos=123{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "cos":123, "prefix":"011", ... }, { "cos":123, "prefix":"1900", ... } ] }
Change history
| Version | Changes |
|---|---|
| 3.13 | Function added. |
