All URIs are relative to https://app.koyeb.com
Method | HTTP request | Description |
---|---|---|
CancelDeployment | Post /v1/deployments/{id}/cancel | Cancel Deployment |
GetDeployment | Get /v1/deployments/{id} | Get Deployment |
ListDeploymentEvents | Get /v1/deployment_events | List Deployment events |
ListDeployments | Get /v1/deployments | List Deployments |
map[string]interface{} CancelDeployment(ctx, id).Execute()
Cancel Deployment
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The id of the deployment to cancel.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeploymentsApi.CancelDeployment(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeploymentsApi.CancelDeployment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CancelDeployment`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `DeploymentsApi.CancelDeployment`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The id of the deployment to cancel. |
Other parameters are passed through a pointer to a apiCancelDeploymentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDeploymentReply GetDeployment(ctx, id).Execute()
Get Deployment
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The id of the deployment
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeploymentsApi.GetDeployment(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeploymentsApi.GetDeployment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDeployment`: GetDeploymentReply
fmt.Fprintf(os.Stdout, "Response from `DeploymentsApi.GetDeployment`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The id of the deployment |
Other parameters are passed through a pointer to a apiGetDeploymentRequest 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]
ListDeploymentEventsReply ListDeploymentEvents(ctx).DeploymentId(deploymentId).Types(types).Limit(limit).Offset(offset).Order(order).Execute()
List Deployment events
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
deploymentId := "deploymentId_example" // string | (Optional) Filter on deployment id (optional)
types := []string{"Inner_example"} // []string | (Optional) Filter on deployment event types (optional)
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)
order := "order_example" // string | (Optional) Sorts the list in the ascending or the descending order (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeploymentsApi.ListDeploymentEvents(context.Background()).DeploymentId(deploymentId).Types(types).Limit(limit).Offset(offset).Order(order).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeploymentsApi.ListDeploymentEvents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDeploymentEvents`: ListDeploymentEventsReply
fmt.Fprintf(os.Stdout, "Response from `DeploymentsApi.ListDeploymentEvents`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDeploymentEventsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
deploymentId | string | (Optional) Filter on deployment id | |
types | []string | (Optional) Filter on deployment event types | |
limit | string | (Optional) The number of items to return | |
offset | string | (Optional) The offset in the list of item to return | |
order | string | (Optional) Sorts the list in the ascending or the descending order |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListDeploymentsReply ListDeployments(ctx).AppId(appId).ServiceId(serviceId).Limit(limit).Offset(offset).Statuses(statuses).Execute()
List Deployments
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
appId := "appId_example" // string | (Optional) Filter on application id (optional)
serviceId := "serviceId_example" // string | (Optional) Filter on service id (optional)
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)
statuses := []string{"Statuses_example"} // []string | (Optional) Filter on statuses (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeploymentsApi.ListDeployments(context.Background()).AppId(appId).ServiceId(serviceId).Limit(limit).Offset(offset).Statuses(statuses).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeploymentsApi.ListDeployments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDeployments`: ListDeploymentsReply
fmt.Fprintf(os.Stdout, "Response from `DeploymentsApi.ListDeployments`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDeploymentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
appId | string | (Optional) Filter on application id | |
serviceId | string | (Optional) Filter on service id | |
limit | string | (Optional) The number of items to return | |
offset | string | (Optional) The offset in the list of item to return | |
statuses | []string | (Optional) Filter on statuses |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]