Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.
communication_manager/rest/config/asterisk/{coreServerId}/parkingLots
{
"id": "ce87c947-81a4-4c10-80ec-0a3f4d67a460",
"name": "Main",
"identifier": "default",
"destinationExtension": "70",
"destinationContext": "from-internal",
"permissionDisplayName": "Main <default>",
"permissionId": "ce87c947-81a4-4c10-80ec-0a3f4d67a460"
}
| | |
---|
| | Configuration id of the parking lot. |
| | The display name of the parking lot. |
| | The Asterisk identifier of the parking lot. |
| | The extension used to call the parking lot from the panel. |
| | The context used to call the parking lot from the panel. |
| | Display name of the parking lot in the permission system. |
| | Permission id of the parking lot. |
communication_manager/rest/config/asterisk/{coreServerId}/parkingLots |
---|
| Accesses all the parking lots in the core server. |
| Gets all the configuration for all the parking lot in the system. |
| Adds a parking lot to the configuration. Errors: - 409 'A parkingLot with the given id already exists.': Returned if a parking lot with the given id already exists.
- 409 'A parkingLot with the given identifier already exists.': Returned if a parkingLot with the given identifier already exists.
- 412 'No identifier provided.': Returned if no identifier was provided.
- 412 'No displayName provided.': Returned if no display name was provided.
- 412 'No destinationContext provided.': Returned if no destination context was provided.
- 412 'No destinationExtension provided.': Returned if no destination extension was provided.
|
|
communication_manager/rest/config/asterisk/{coreServerId}/parkingLots/{parkingLotId} |
---|
| Accesses the configuration of a specific parking lot. Parameters: - parkingLotId: The configuration id of the parking lot.
|
| Gets the configuration of the specified parking lot. Errors: - 404 'A parking lot with the given id does not exist': Returned if no parking lot exists with the given id.
|
| Updates the specified parking lot configuration. Errors: - 404 'A parkingLot with the given id does not exist': Returned if no parking lot exists with the given id.
- 409 'A parkingLot with the given identifier already exists.': Returned if a parking lot with the given identifier already exists.
- 412 'No identifier provided.': Returned if no identifier was provided.
- 412 'No displayName provided.': Returned if no display name was provided.
- 412 'No destinationContext provided.': Returned if no destination context was provided.
- 412 'No destinationExtension provided.': Returned if no destination extension was provided.
|
| Deletes the specified parking lot. Errors: - 404 'A ParkingLot with the given id does not exist': Returned if no parking lot exists with the given id.
|
curl --user manager:manag3rpa55word -k -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/parkingLots
curl --user manager:manag3rpa55word -k -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/parkingLots/56cf70a3-1ee0-4b09-8f40-297430eeeddf
curl --user manager:manag3rpa55word -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"id":"ce87c947-81a4-4c10-80ec-0a3f4d67a460","name":"Main","identifier":"default","destinationExtension":"70","destinationContext":"from-internal"}' http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/parkingLots
curl --user manager:manag3rpa55word -k -i -X DELETE http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/parkingLots/56cf70a3-1ee0-4b09-8f40-297430eeeddf
curl --user manager:manag3rpa55word -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X PUT -d '{"id":"ce87c947-81a4-4c10-80ec-0a3f4d67a460","name":"Main New","identifier":"default","destinationExtension":"70","destinationContext":"from-internal"}' http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/parkingLots/ce87c947-81a4-4c10-80ec-0a3f4d67a460