API

HostingApplication

The applications Web Hosting can run: list them or get one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /simplehosting/applications list OK
GET /simplehosting/applications/{application_name} load OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

hosting_applications, err := client.HostingApplication(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(hosting_applications)
hosting_application, err := client.HostingApplication(nil).Load(map[string]any{"name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(hosting_application)

Lua

Construct client as shown in the Lua setup, then call the operations:

local hosting_applications, err = client:HostingApplication():list()
local hosting_application, err = client:HostingApplication():load({ name = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$hosting_applications = $client->HostingApplication()->list();
$hosting_application = $client->HostingApplication()->load(["name" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

hosting_applications = client.HostingApplication().list()
hosting_application = client.HostingApplication().load({"name": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

hosting_applications = client.HostingApplication.list()
hosting_application = client.HostingApplication.load({ "name" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const hosting_applications = await client.HostingApplication().list()
const hosting_application = await client.HostingApplication().load({ name: "example" })

Fields

Field Type Required Description
name string Yes Name
name_label string Yes Name Label
requirements array Yes Requirements

list

GET /simplehosting/applications

Operation ID: getSimplehostingApplications.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
database query string No
language query string No
name query string No
page query integer No
per_page query integer No
sharing_id query string No
sort_by query string No

Responses

200: OK

application/json

Property Type Required Description
[].name string Yes
[].name_label string Yes
[].requirements array of object Yes
[].requirements[].database object Yes
[].requirements[].database.name string Yes
[].requirements[].database.status string Yes
[].requirements[].database.version string Yes
[].requirements[].instance_minimum_size string Yes
[].requirements[].language object Yes
[].requirements[].language.name string Yes
[].requirements[].language.single_application boolean Yes
[].requirements[].language.status string Yes
[].requirements[].language.version string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /simplehosting/applications/{application_name}

Operation ID: getSimplehostingApplicationsApplicationName.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
application_name path string Yes

Responses

200: OK

application/json

Property Type Required Description
name string Yes
name_label string Yes
requirements array of object Yes
requirements[].database object Yes
requirements[].database.name string Yes
requirements[].database.status string Yes
requirements[].database.version string Yes
requirements[].instance_minimum_size string Yes
requirements[].language object Yes
requirements[].language.name string Yes
requirements[].language.single_application boolean Yes
requirements[].language.status string Yes
requirements[].language.version string Yes