API

AppServiceBinding

Operations

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

Method Route SDK operation Returns
POST /api/v1/hosting/apps/{app_id}/service_bindings/{id}/disable create Success
POST /api/v1/hosting/apps/{app_id}/service_bindings/{id}/enable create Success
POST /api/v1/hosting/apps/{app_id}/service_bindings create Success
GET /api/v1/hosting/apps/{app_id}/service_bindings/{id} load Success
GET /api/v1/hosting/apps/{app_id}/service_bindings load Success
PATCH /api/v1/hosting/apps/{app_id}/service_bindings/{id} patch Success
DELETE /api/v1/hosting/apps/{app_id}/service_bindings/{id} remove Success
PUT /api/v1/hosting/apps/{app_id}/service_bindings/{id} update Success

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:

app_service_binding, err := client.AppServiceBinding(nil).Load(map[string]any{"app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(app_service_binding)
created, err := client.AppServiceBinding(nil).Create(map[string]any{"app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.AppServiceBinding(nil).Update(map[string]any{"id": "example_id", "app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.AppServiceBinding(nil).Patch(map[string]any{"id": "example_id", "app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.AppServiceBinding(nil).Remove(map[string]any{"app_id": "example", "id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local app_service_binding, err = client:AppServiceBinding():load({ app_id = "example" })
local created, err = client:AppServiceBinding():create({ app_id = "example" })
local updated, err = client:AppServiceBinding():update({ id = "example_id", app_id = "example" })
local patched, err = client:AppServiceBinding():patch({ id = "example_id", app_id = "example" })
local removed, err = client:AppServiceBinding():remove({ app_id = "example", id = "example_id" })

PHP

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

$app_service_binding = $client->AppServiceBinding()->load(["app_id" => "example"]);
$created = $client->AppServiceBinding()->create(["app_id" => "example"]);
$updated = $client->AppServiceBinding()->update(["id" => "example_id", "app_id" => "example"]);
$patched = $client->AppServiceBinding()->patch(["id" => "example_id", "app_id" => "example"]);
$client->AppServiceBinding()->remove(["app_id" => "example", "id" => "example_id"]);

Python

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

app_service_binding = client.AppServiceBinding().load({"app_id": "example"})
created = client.AppServiceBinding().create({ "app_id": "example" })
updated = client.AppServiceBinding().update({"id": "example_id", "app_id": "example"})
patched = client.AppServiceBinding().patch({"id": "example_id", "app_id": "example"})
client.AppServiceBinding().remove({"app_id": "example", "id": "example_id"})

Ruby

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

app_service_binding = client.AppServiceBinding.load({ "app_id" => "example" })
created = client.AppServiceBinding.create({ "app_id" => "example" })
updated = client.AppServiceBinding.update({ "id" => "example_id", "app_id" => "example" })
patched = client.AppServiceBinding.patch({ "id" => "example_id", "app_id" => "example" })
client.AppServiceBinding.remove({ "app_id" => "example", "id" => "example_id" })

TypeScript

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

const app_service_binding = await client.AppServiceBinding().load({ app_id: "example" })
const created = await client.AppServiceBinding().create({ app_id: "example" })
const updated = await client.AppServiceBinding().update({ id: "example_id", app_id: "example" })
const patched = await client.AppServiceBinding().patch({ id: "example_id", app_id: "example" })
await client.AppServiceBinding().remove({ app_id: "example", id: "example_id" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/hosting/apps/{app_id}/service_bindings/{id}/disable

Operation ID: disable_api_v1_app_service_binding.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/service_bindings/{id}/enable

Operation ID: enable_api_v1_app_service_binding.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/service_bindings

Operation ID: post_api_v1_hosting_apps_app_id_service_bindings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/hosting/apps/{app_id}/service_bindings/{id}

Operation ID: api_v1_app_service_binding.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/hosting/apps/{app_id}/service_bindings

Operation ID: api_v1_app_service_bindings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/hosting/apps/{app_id}/service_bindings/{id}

Operation ID: patch_api_v1_hosting_apps_app_id_service_bindings_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/hosting/apps/{app_id}/service_bindings/{id}

Operation ID: delete_api_v1_hosting_apps_app_id_service_bindings_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/hosting/apps/{app_id}/service_bindings/{id}

Operation ID: put_api_v1_hosting_apps_app_id_service_bindings_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway