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.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
cosIntegerID of class of service.Yes
countInteger1 to return a count, 0 to return full data.No0
limitIntegerThe maximum results to return. 0 for all.No0
offsetIntegerThe result to start at. 0 for the first.No0
pagesInteger1 to return a reduced set of data for generating the pages select box, 0 to return full data.No0

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.
404The 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

VersionChanges
3.13Function added.