jira.php¶
Jira integration module for creating support tickets related to server management (power, reboot, KVM) and sales assistance requests.
API Methods¶
| Method | Action | Description |
|---|---|---|
request_PXEboot | PXE boot request | Creates a Jira ticket for manual server PXE boot if remote management is unavailable. |
request_assistance | Sales assistance request | Creates a Jira ticket for the sales department with details regarding service cancellation or modification. |
request_check | Server check request | Creates a Jira ticket to check and boot the server into the OS if remote management is unavailable. |
request_kvm | KVM connection request | Creates a Jira ticket to connect an IP KVM to the server. |
request_poff | Power off request | Creates a Jira ticket for manual server power off. |
request_pon | Power on request | Creates a Jira ticket for manual server power on. |
request_reboot | Reboot request | Creates a Jira ticket for manual server reboot. |
jira/request_PXEboot¶
Creates a Jira ticket for manual server PXE boot if remote management is unavailable.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: request_PXEboot |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
Example Request
Example of a successful response
Failure response
jira/request_assistance¶
Creates a Jira ticket for the sales department with details regarding service cancellation or modification.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: request_assistance |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
| cancellation_type | ❌ | string | Service cancellation type |
| cancellation_reason | ❌ | string | Cancellation reason |
| terminate_reason_custom | ❌ | string | Custom problem description |
| terminate_move_to_provider | ❌ | string | Desire to switch to another provider |
| terminate_reorder | ❌ | string | Desire to reorder the service later |
| terminate_contact | ❌ | string | Desire to be contacted by support |
Example Request
Example of a successful response
Failure response
jira/request_check¶
Creates a Jira ticket to check and boot the server into the OS if remote management is unavailable.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name (must be request_check) |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
Example Request
Example of a successful response
{
"result": "OK",
"action": {
"permission": "eq/console",
"subject": "CP request: Check the server $id please",
"message": "Dear HOSTKEY support, please check and boot the server $id into OS since it doesn't have remote control - something is wrong. \n This is automated message from INVAPI, no extra verification required."
},
"jira_url": "https://jira.hostkey.com/browse/SUP-11111",
"jira_issue": "SUP-11111"
}
jira/request_kvm¶
Creates a Jira ticket to connect an IP KVM to the server.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name (must be 'request_kvm') |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
Example Request
Example of a successful response
{
"result": "OK",
"action": {
"permission": "eq/console",
"subject": "CP request: Connect IP KVM to the server $id please",
"message": "Dear HOSTKEY support, please connect KVM to the server $id since it doesn't have remote control. \n This is automated message from INVAPI, no extra verification required."
},
"jira_url": "https://jira.hostkey.com/browse/SUP-22222",
"jira_issue": "SUP-22222"
}
jira/request_poff¶
Creates a Jira ticket for manual server power off.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name (must be 'request_poff') |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
Example Request
Example of a successful response
{
"result": "OK",
"action": {
"permission": "eq/off",
"subject": "CP request: Manual power OFF the server $id please",
"message": "Dear HOSTKEY support, please power off the server $id since it doesn't have remote control. \n This is automated message from INVAPI, no extra verification required."
},
"jira_url": "https://jira.hostkey.com/browse/SUP-33333",
"jira_issue": "SUP-33333"
}
jira/request_pon¶
Creates a Jira ticket for manual server power on.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name: request_pon |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
Example Request
Example of a successful response
jira/request_reboot¶
Creates a Jira ticket for manual server reboot.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name: request_reboot |
| token | ✅ | string | User authorization token |
| id | ✅ | int | Server identifier |
Example Request
Example of a successful response
{
"result": "OK",
"action": {
"permission": "eq/reboot",
"subject": "CP request: Manual reboot the server $id please",
"message": "Dear HOSTKEY support, please reboot the server $id since it doesn't have remote control. \n This is automated message from INVAPI, no extra verification required."
},
"jira_url": "https://jira.hostkey.com/browse/SUP-55555",
"jira_issue": "SUP-55555"
}