Package: opsgenie-sdk
Python SDK for Opsgenie REST APIThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 2.0.0Package version: 2.1.5Build package: com.atlassian.opsgenie.codegen.geniepy.GeniepyGeneratorFor more information, please visithttps://www.opsgenie.com/contact-usRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on Github, you can install directly from Githubpipinstallopsgenie-sdk(you may need to runpipwith root permission:sudo pip install opsgenie-sdk)Then import the package:importopsgenie_sdkSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importopsgenie_sdkGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportopsgenie_sdkfromopsgenie_sdk.restimportApiExceptionfrompprintimportpprintconfiguration=opsgenie_sdk.Configuration()# Configure API key authorization: GenieKeyconfiguration.api_key['Authorization']='YOUR_API_KEY'# create an instance of the API classapi_instance=opsgenie_sdk.AccountApi(opsgenie_sdk.ApiClient(configuration))try:# Get Account Infoapi_response=api_instance.get_info()pprint(api_response)exceptApiExceptionase:print("Exception when calling AccountApi->get_info:%s\n"%e)Note: if you have an european account please set attribute 'host'configuration.host = 'https://api.eu.opsgenie.com'Documentation for API EndpointsAll URIs are relative tohttps://api.opsgenie.comClassMethodHTTP requestDescriptionAccountApiget_infoGET/v2/accountGet Account InfoAlertApiacknowledge_alertPOST/v2/alerts/{identifier}/acknowledgeAcknowledge AlertAlertApiadd_attachmentPOST/v2/alerts/{identifier}/attachmentsAdd Alert AttachmentAlertApiadd_detailsPOST/v2/alerts/{identifier}/detailsAdd DetailsAlertApiadd_notePOST/v2/alerts/{identifier}/notesAdd NoteAlertApiadd_responderPOST/v2/alerts/{identifier}/respondersAdd ResponderAlertApiadd_tagsPOST/v2/alerts/{identifier}/tagsAdd TagsAlertApiadd_teamPOST/v2/alerts/{identifier}/teamsAdd TeamAlertApiassign_alertPOST/v2/alerts/{identifier}/assignAssign AlertAlertApiclose_alertPOST/v2/alerts/{identifier}/closeClose AlertAlertApicount_alertsGET/v2/alerts/countCount AlertsAlertApicreate_alertPOST/v2/alertsCreate AlertAlertApicreate_saved_searchesPOST/v2/alerts/saved-searchesCreate Saved SearchAlertApidelete_alertDELETE/v2/alerts/{identifier}Delete AlertAlertApidelete_saved_searchDELETE/v2/alerts/saved-searches/{identifier}Delete Saved SearchAlertApiescalate_alertPOST/v2/alerts/{identifier}/escalateEscalate AlertAlertApiexecute_custom_alert_actionPOST/v2/alerts/{identifier}/actions/{actionName}Custom Alert ActionAlertApiget_alertGET/v2/alerts/{identifier}Get AlertAlertApiget_attachmentGET/v2/alerts/{identifier}/attachments/{attachmentId}Get Alert AttachmentAlertApiget_request_statusGET/v2/alerts/requests/{requestId}Get Request Status of AlertAlertApiget_saved_searchGET/v2/alerts/saved-searches/{identifier}Get Saved SearchAlertApilist_alertsGET/v2/alertsList AlertsAlertApilist_attachmentsGET/v2/alerts/{identifier}/attachmentsList Alert AttachmentsAlertApilist_logsGET/v2/alerts/{identifier}/logsList Alert LogsAlertApilist_notesGET/v2/alerts/{identifier}/notesList Alert NotesAlertApilist_recipientsGET/v2/alerts/{identifier}/recipientsList Alert RecipientsAlertApilist_saved_searchesGET/v2/alerts/saved-searchesLists Saved SearchesAlertApiremove_attachmentDELETE/v2/alerts/{identifier}/attachments/{attachmentId}Remove Alert AttachmentAlertApiremove_detailsDELETE/v2/alerts/{identifier}/detailsRemove DetailsAlertApiremove_tagsDELETE/v2/alerts/{identifier}/tagsRemove TagsAlertApisnooze_alertPOST/v2/alerts/{identifier}/snoozeSnooze AlertAlertApiun_acknowledge_alertPOST/v2/alerts/{identifier}/unacknowledgeUnAcknowledge AlertAlertApiupdate_alert_descriptionPUT/v2/alerts/{identifier}/descriptionUpdate Alert DescriptionAlertApiupdate_alert_messagePUT/v2/alerts/{identifier}/messageUpdate Alert MessageAlertApiupdate_alert_priorityPUT/v2/alerts/{identifier}/priorityUpdate Alert PriorityAlertApiupdate_saved_searchPATCH/v2/alerts/saved-searches/{identifier}Update Saved SearchHeartbeatApicreate_heartbeatPOST/v2/heartbeatsCreate HeartbeatHeartbeatApidelete_heartbeatDELETE/v2/heartbeats/{name}Delete HeartbeatHeartbeatApidisable_heartbeatPOST/v2/heartbeats/{name}/disableDisable HeartbeatHeartbeatApienable_heartbeatPOST/v2/heartbeats/{name}/enableEnable HeartbeatHeartbeatApiget_heartbeatGET/v2/heartbeats/{name}Get HeartbeatHeartbeatApilist_heart_beatsGET/v2/heartbeatsList HeartbeatsHeartbeatApipingGET/v2/heartbeats/{name}/pingPing HeartbeatHeartbeatApiupdate_heartbeatPATCH/v2/heartbeats/{name}Update Heartbeat (Partial)IncidentApiclose_incidentPOST/v1/incidents/{identifier}/closeClose IncidentIncidentApicreate_incidentPOST/v1/incidents/createCreate IncidentIncidentApidelete_incidentDELETE/v1/incidents/{identifier}Delete IncidentIncidentApiget_incidentGET/v1/incidents/{identifier}Get IncidentIncidentApiget_incident_request_statusGET/v1/incidents/requests/{requestId}Get Request Status of IncidentIncidentApilist_incidentsGET/v1/incidents/List incidentsDocumentation For ModelsAccountInfoAccountPlanAcknowledgeAlertPayloadAddDetailsToAlertPayloadAddDetailsToAlertPayloadAllOfAddNoteToAlertPayloadAddResponderToAlertPayloadAddResponderToAlertPayloadAllOfAddTagsToAlertPayloadAddTagsToAlertPayloadAllOfAddTeamToAlertPayloadAddTeamToAlertPayloadAllOfAlertAlertActionPayloadAlertAllOfAlertAttachmentAlertAttachmentMetaAlertIntegrationAlertLogAlertNoteAlertPagingAlertRecipientAlertReportAlertRequestStatusAlertTeamMetaAlertUserMetaAllRecipientAssignAlertPayloadAssignAlertPayloadAllOfBaseAlertBaseIncidentBaseResponseBaseResponseWithExpandableBaseResponseWithExpandableAllOfCloseAlertPayloadCloseIncidentPayloadConditionCreateAlertPayloadCreateAlertPayloadAllOfCreateHeartbeatPayloadCreateHeartbeatPayloadAllOfCreateHeartbeatPayloadAllOfOwnerTeamCreateHeartbeatResponseCreateHeartbeatResponseAllOfCreateIncidentPayloadCreateIncidentPayloadAllOfCreateSavedSearchPayloadCreateSavedSearchResponseCreateSavedSearchResponseAllOfDisableHeartbeatResponseDisableHeartbeatResponseAllOfDurationEnableHeartbeatResponseErrorResponseErrorResponseAllOfEscalateAlertToNextPayloadEscalateAlertToNextPayloadAllOfEscalationRecipientExecuteCustomAlertActionPayloadFilterGetAccountInfoResponseGetAccountInfoResponseAllOfGetAlertAttachmentResponseGetAlertAttachmentResponseAllOfGetAlertResponseGetAlertResponseAllOfGetCountAlertsResponseGetCountAlertsResponseAllOfGetCountAlertsResponseAllOfDataGetHeartbeatResponseGetIncidentRequestStatusResponseGetIncidentRequestStatusResponseAllOfGetIncidentResponseGetIncidentResponseAllOfGetRequestStatusResponseGetRequestStatusResponseAllOfGetSavedSearchResponseGetSavedSearchResponseAllOfGroupRecipientHeartbeatHeartbeatMetaIncidentIncidentActionPayloadIncidentAllOfIncidentRequestStatusListAlertAttachmentsResponseListAlertAttachmentsResponseAllOfListAlertLogsResponseListAlertLogsResponseAllOfListAlertNotesResponseListAlertNotesResponseAllOfListAlertRecipientsResponseListAlertRecipientsResponseAllOfListAlertsResponseListAlertsResponseAllOfListHeartbeatResponseListHeartbeatResponseAllOfListHeartbeatResponseAllOfDataListIncidentsResponseListIncidentsResponseAllOfListSavedSearchesResponseListSavedSearchesResponseAllOfMatchAllMatchAllConditionsMatchAnyConditionMatchAnyConditionAllOfNoRecipientPageDetailsRecipientResponderSavedSearchSavedSearchEntitySavedSearchMetaScheduleRecipientSnoozeAlertPayloadSnoozeAlertPayloadAllOfStatusPageEntryStatusPageEntryAllOfSuccessDataSuccessResponseSuccessResponseAllOfTeamRecipientTeamRecipientAllOfTeamResponderTimeOfDayRestrictionTimeOfDayRestrictionIntervalTimeOfDayRestrictionIntervalAllOfTimeRestrictionIntervalUnAcknowledgeAlertPayloadUpdateAlertDescriptionPayloadUpdateAlertMessagePayloadUpdateAlertPriorityPayloadUpdateHeartbeatPayloadUpdateHeartbeatResponseUpdateSavedSearchPayloadUserRecipientUserRecipientAllOfUserResponderUserResponderAllOfWeekdayTimeRestrictionWeekdayTimeRestrictionIntervalWeekdayTimeRestrictionIntervalAllOfDocumentation For AuthorizationGenieKeyType: API keyAPI key parameter name: AuthorizationLocation: HTTP headerAuthorsupport@opsgenie.com