Use case 7: Get all Extensions in a Data Source
Follow this example to get all of the Extensions in a Data Source.
Prerequisites
-
You have obtained the Data Source ID.
-
Assume the Data Source ID is 101.
Step
-
Call the GET method on endpoint /api/em/v2/datasources/101/extensions.
Sample Response:
Copy{
"data": [
{
"type": "extension",
"id": "5301",
"attributes": {
"id": 5301,
"extensionValue": "100",
"recordingMode": 1
}
},
{
"type": "extension",
"id": "5302",
"attributes": {
"id": 5302,
"extensionValue": "101",
"recordingMode": 1
}
},
{
"type": "extension",
"id": "5303",
"attributes": {
"id": 5303,
"extensionValue": "102",
"recordingMode": 1
}
},
{
"type": "extension",
"id": "5304",
"attributes": {
"id": 5304,
"extensionValue": "103",
"recordingMode": 1
}
},
{
"type": "extension",
"id": "5305",
"attributes": {
"id": 5305,
"extensionValue": "104",
"recordingMode": 1
}
},
{
"type": "extension",
"id": "5306",
"attributes": {
"id": 5306,
"extensionValue": "105",
"recordingMode": 1
}
}
]
}