All URIs are relative to https://app.koyeb.com
Method | HTTP request | Description |
---|---|---|
GetCatalogInstance | Get /v1/catalog/instances/{id} | Get Instance |
ListCatalogInstances | Get /v1/catalog/instances | List Instance |
GetCatalogInstanceReply GetCatalogInstance(ctx, id).Execute()
Get Instance
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The name of the instance
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CatalogInstancesApi.GetCatalogInstance(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogInstancesApi.GetCatalogInstance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCatalogInstance`: GetCatalogInstanceReply
fmt.Fprintf(os.Stdout, "Response from `CatalogInstancesApi.GetCatalogInstance`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The name of the instance |
Other parameters are passed through a pointer to a apiGetCatalogInstanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCatalogInstancesReply ListCatalogInstances(ctx).Limit(limit).Offset(offset).Id(id).Execute()
List Instance
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
limit := "limit_example" // string | (Optional) The number of items to return (optional)
offset := "offset_example" // string | (Optional) The offset in the list of item to return (optional)
id := "id_example" // string | (Optional) A filter for instances (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CatalogInstancesApi.ListCatalogInstances(context.Background()).Limit(limit).Offset(offset).Id(id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogInstancesApi.ListCatalogInstances``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCatalogInstances`: ListCatalogInstancesReply
fmt.Fprintf(os.Stdout, "Response from `CatalogInstancesApi.ListCatalogInstances`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListCatalogInstancesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
limit | string | (Optional) The number of items to return | |
offset | string | (Optional) The offset in the list of item to return | |
id | string | (Optional) A filter for instances |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]