API

CatalogSelector

Operations

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

Method Route SDK operation Returns
GET /api/v1/hosting/apps/{app_id}/catalog/selectors load Target selectors without deployment history or configuration values

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:

catalog_selector, err := client.CatalogSelector(nil).Load(map[string]any{"app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(catalog_selector)

Lua

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

local catalog_selector, err = client:CatalogSelector():load({ app_id = "example" })

PHP

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

$catalog_selector = $client->CatalogSelector()->load(["app_id" => "example"]);

Python

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

catalog_selector = client.CatalogSelector().load({"app_id": "example"})

Ruby

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

catalog_selector = client.CatalogSelector.load({ "app_id" => "example" })

TypeScript

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

const catalog_selector = await client.CatalogSelector().load({ app_id: "example" })

Fields

Field Type Required Description
environments array Yes Environments
id string Yes Id
locations array Yes Locations
services array Yes Services

load

GET /api/v1/hosting/apps/{app_id}/catalog/selectors

Operation ID: selectors_api_v1_app_catalog.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Responses

200: Target selectors without deployment history or configuration values

application/json

Property Type Required Description
app object Yes
app.environments array of object Yes
app.environments[].id string Yes
app.environments[].name string Yes
app.environments[].slug string Yes
app.id string Yes
app.locations array of object Yes
app.locations[].code string Yes
app.locations[].id string Yes
app.locations[].name string Yes
app.services array of object Yes
app.services[].id string Yes
app.services[].name string Yes
app.services[].slug string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway