List installs in a zone
List installs in a zone
client.Zones.Installs.List(ctx, zoneID, params) (*InstallList, error)
GET/zones/{zone_id}/installs
List installs in a zone
Parameters
zoneID string
Returns
List installs in a zone
package main
import (
"context"
"fmt"
"github.com/keycardai/keycard-go"
)
func main() {
client := keycard.NewClient(
)
installList, err := client.Zones.Installs.List(
context.TODO(),
"zone_id",
keycard.ZoneInstallListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", installList.Items)
}
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"package_id": "package_id",
"package_slug": "package_slug",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"inputs": {
"client_id": "bar",
"client_secret": "bar"
},
"links": [
{
"href": "href",
"rel": "rel",
"properties": {
"foo": "bar"
},
"titles": {
"foo": "string"
},
"type": "type"
}
],
"org_id": "org_id",
"outputs": {
"mcp_url": "bar"
},
"package_version": 0,
"zone_id": "zone_id"
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"package_id": "package_id",
"package_slug": "package_slug",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"inputs": {
"client_id": "bar",
"client_secret": "bar"
},
"links": [
{
"href": "href",
"rel": "rel",
"properties": {
"foo": "bar"
},
"titles": {
"foo": "string"
},
"type": "type"
}
],
"org_id": "org_id",
"outputs": {
"mcp_url": "bar"
},
"package_version": 0,
"zone_id": "zone_id"
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}