JSON API » provisioning » provisioning/files/get
Gets provisioning files for a MAC address.
Input parameters
Does not require authentication.
| Name | Type | Description | Required | Default value |
|---|---|---|---|---|
| mac | String | MAC address to get provisioning for. | Yes | |
| model | String | Model of requesting handset. | Yes | |
| server | String | Server value passed to template. | No | Empty string. |
| source | String | IP address of requesting handset. | No | Empty string. |
| url_base | String | URL base value passed to template. | No | Empty string. |
Responses
| Code | Description |
|---|---|
| 200 | Success. |
| 400 | Invalid input parameters specified. Check the key and message fields for more details. |
| 404 | No provisioning file found for MAC address and model. |
Data returned
Provisioning files with data for specified MAC address.
Example: With required parameters (files truncated for brevity)
http://enswitch.example.com/api/json/provisioning/files/get/?mac=00:11:22:33:44:55;model=digium{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "template1":"...", "template2":"", "template_directory":"" } }
Change history
| Version | Changes |
|---|---|
| 3.13 | Function added. |
