gns3-server/docs/controller_notifications.rst

1.7 KiB

Controller notifications

Controller notifications can be received from the controller, they can be used to get information about computes and appliance.

Notification endpoints

Listen to the HTTP stream endpoint or to the WebSocket endpoint.

  • api/v2/controller/notification/notifications
  • api/v2/controller/notification/notificationsws

It is recommended to use the WebSocket endpoint.

Available notifications

ping

Keep-alive between client and controller. Also used to receive the current CPU and memory usage.

api/notifications/ping.json

compute.created

A compute has been created.

api/notifications/compute.created.json

compute.updated

A compute has been updated.

api/notifications/compute.updated.json

compute.deleted

A compute has been deleted.

api/notifications/compute.deleted.json

appliance.created

An appliance has been created.

api/notifications/appliance.created.json

appliance.updated

An appliance has been updated.

api/notifications/appliance.updated.json

appliance.deleted

An appliance has been deleted.

api/notifications/appliance.deleted.json

log.error

Sends an error

api/notifications/log.error.json

log.warning

Sends a warning

api/notifications/log.warning.json

log.info

Sends an information

api/notifications/log.info.json