Servers

Overview of all servers

GET https://cronly.app/api/servers

Headers

Name
Type
Description

Authorization*

String

Bearer: API token

[
    {
        "id": 1,
        "company_id": 1,
        "name": "Test Server",
        "identifier": "server_identifier",
        "ip_address": "143.110.208.131",
        "deleted_at": null,
        "created_at": "2024-03-04T16:19:06.000000Z",
        "updated_at": "2024-03-04T16:19:06.000000Z"
    }
]

Details of server

GET https://cronly.app/api/servers/{id}

Query Parameters

Name
Type
Description

id*

Integer

The ID of the job server you want to view

Headers

Name
Type
Description

Authorization*

String

Bearer: API token

{
        "id": 1,
        "company_id": 1,
        "name": "Test Server",
        "ip_address": "143.110.208.131",
        "identifier": "server_identifier",
        "deleted_at": null,
        "created_at": "2024-03-04T16:19:06.000000Z",
        "updated_at": "2024-03-04T16:19:06.000000Z"
}

Create a new server

POST https://cronly.app/api/servers

Headers

Name
Type
Description

Authorization*

String

Bearer: API token

Request Body

Name
Type
Description

name*

String

The name of the server

ip_address*

String

The IP Address of the server

identifier*

String

{
    "name": "Test Server",
    "ip_address": "143.110.208.131",
    "identifier": "server_identifier",
    "company_id": 1,
    "updated_at": "2024-03-04T20:41:32.000000Z",
    "created_at": "2024-03-04T20:41:32.000000Z",
    "id": 4
}

Delete a server

DELETE https://cronly.app/api/servers/{server_id}

Query Parameters

Name
Type
Description

server_id*

Integer

The identifier of the server you want to delete

Headers

Name
Type
Description

Authorization*

String

Bearer: API token

{
    "success": "Server deleted"
}

Alert

POST https://cronly.app/api/servers/alert

Headers

Name
Type
Description

Authorization*

String

Bearer: API token

Request Body

Name
Type
Description

username*

String

The username on the server whose back-up you want to alert

server_id*

String

The identifier of the server you want to alert

command*

String

The command that was altered

{
    "success": "Alert sent"
}

Last updated