JSON API » provisioning » provisioning/provision1/get
Gets provisioning options available in /etc/enswitch/provision/provision1.conf.
Input parameters
Requires authentication and the residential, user, or wholesale role privileges.
| Name | Type | Description | Required | Default value |
|---|---|---|---|---|
| auth_username | String | Authentication username. | Yes | |
| auth_password | String | Authentication password. | Yes |
Responses
| Code | Description |
|---|---|
| 200 | Success. |
| 204 | Request successful, but provision1 is not enabled, the file does not exist, or contains no data. |
| 401 | The authentication details provided are invalid. |
| 402 | Your role does not allow this. |
Data returned
Example: With data in /etc/enswitch/provision/provision1.conf
http://enswitch.example.com/api/json/provisioning/provision1/get/?auth_username=user;auth_password=password{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "options":{ "option_a":"Option A", "option_b":"Option B" } }
Example: With no data
http://enswitch.example.com/api/json/provisioning/provision1/get/?auth_username=user;auth_password=password{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }
Change history
| Version | Changes |
|---|---|
| 3.13 | Function added. |
