JSON API » provisioning » provisioning/files/get

Gets provisioning files for a MAC address.

Input parameters

Does not require authentication.

NameTypeDescriptionRequiredDefault value
macStringMAC address to get provisioning for.Yes
modelStringModel of requesting handset.Yes
serverStringServer value passed to template.NoEmpty string.
sourceStringIP address of requesting handset.NoEmpty string.
url_baseStringURL base value passed to template.NoEmpty string.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
404No 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

VersionChanges
3.13Function added.