Share

Import Calender Events

Import Events

API: Import Calendar Events

Calendar events can be injected into the ServiceView database using an HTTP POST:

http://<serviceview_url>/put_event.php?service_code=<service_code>service_id=<service_id>&start=<start>&end=<end>&title=<title>&description=<description>&service_availability=<service_availability>&event_group_id=<event_group_id>&event_status_id=<event_status_id>&secret=<secret>

Parameters

<service_code>The unique code associated with each service entered from the add or edit service dialog.
<service_id>The ServiceView service_id for this service. Either specify servie_code or service_id.
<start>>Date and time the event started format YYYY-MM-DD HH:MM:SS
<end>Date and time the event ended format YYYY-MM-DD HH:MM:SS
<title>The event title.
<description>>The event description.
<service_availability>Service availability code, possible values are:
  • 1 - Service not available
  • 2 - Service reduced or impaired
  • 3 - No impact on the service.
<event_group_id>Possible values are:
  • 2 - Unscheduled
  • 4 - Scheduled
  • 9 - For information.
<event_status_id>Possible values are:
  • 1 - Active
  • 2 - Resolved
<secret>The value of the SECRET option set in the options setup section.

Returns

SUCCESS or FAILURE

Comments

The HTTP request can either be sent using a HTTP GET or POST request. Given the description section may be long a HTTP POST is recommended.

Sample Powershell 2 Code

Download Code