All URIs are relative to https://api.salad.com/api/public
Method | HTTP request | Description |
---|---|---|
ContainerGroupInstanceReallocate | Post /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/instances/{machine_id}/reallocate | Reallocate container group instance to another node |
ContainerGroupInstanceRecreate | Post /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/instances/{machine_id}/recreate | Recreate container on a node |
ContainerGroupInstanceRestart | Post /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/instances/{machine_id}/restart | Restart container on a node |
CreateContainerGroup | Post /organizations/{organization_name}/projects/{project_name}/containers | Create a Container Group |
DeleteContainerGroup | Delete /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name} | Delete a Container Group |
GetContainerGroup | Get /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name} | Get a Container Group |
ListContainerGroupInstances | Get /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/instances | List Container Group Instances |
ListContainerGroups | Get /organizations/{organization_name}/projects/{project_name}/containers | List Container Groups |
RestartContainerGroup | Post /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/restart | Restart a Container Group |
StartContainerGroup | Post /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/start | Start a Container Group |
StopContainerGroup | Post /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/stop | Stop a Container Group |
UpdateContainerGroup | Patch /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name} | Update a Container Group |
ContainerGroupInstanceReallocate(ctx, organizationName, projectName, containerGroupName, machineId).Execute()
Reallocate container group instance to another node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
machineId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique machine identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.ContainerGroupInstanceReallocate(context.Background(), organizationName, projectName, containerGroupName, machineId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.ContainerGroupInstanceReallocate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name | |
machineId | string | The unique machine identifier |
Other parameters are passed through a pointer to a apiContainerGroupInstanceReallocateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroupInstanceRecreate(ctx, organizationName, projectName, containerGroupName, machineId).Execute()
Recreate container on a node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
machineId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique machine identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.ContainerGroupInstanceRecreate(context.Background(), organizationName, projectName, containerGroupName, machineId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.ContainerGroupInstanceRecreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name | |
machineId | string | The unique machine identifier |
Other parameters are passed through a pointer to a apiContainerGroupInstanceRecreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroupInstanceRestart(ctx, organizationName, projectName, containerGroupName, machineId).Execute()
Restart container on a node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
machineId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique machine identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.ContainerGroupInstanceRestart(context.Background(), organizationName, projectName, containerGroupName, machineId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.ContainerGroupInstanceRestart``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name | |
machineId | string | The unique machine identifier |
Other parameters are passed through a pointer to a apiContainerGroupInstanceRestartRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroup CreateContainerGroup(ctx, organizationName, projectName).CreateContainerGroup(createContainerGroup).Execute()
Create a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
createContainerGroup := *openapiclient.NewCreateContainerGroup("Name_example", *openapiclient.NewCreateContainer("Image_example", *openapiclient.NewContainerResourceRequirements(int32(123), int32(123))), openapiclient.ContainerRestartPolicy("always"), int32(123)) // CreateContainerGroup |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ContainerGroupsAPI.CreateContainerGroup(context.Background(), organizationName, projectName).CreateContainerGroup(createContainerGroup).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.CreateContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateContainerGroup`: ContainerGroup
fmt.Fprintf(os.Stdout, "Response from `ContainerGroupsAPI.CreateContainerGroup`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name |
Other parameters are passed through a pointer to a apiCreateContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createContainerGroup | CreateContainerGroup | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteContainerGroup(ctx, organizationName, projectName, containerGroupName).Execute()
Delete a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.DeleteContainerGroup(context.Background(), organizationName, projectName, containerGroupName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.DeleteContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiDeleteContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroup GetContainerGroup(ctx, organizationName, projectName, containerGroupName).Execute()
Get a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ContainerGroupsAPI.GetContainerGroup(context.Background(), organizationName, projectName, containerGroupName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.GetContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetContainerGroup`: ContainerGroup
fmt.Fprintf(os.Stdout, "Response from `ContainerGroupsAPI.GetContainerGroup`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiGetContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroupInstances ListContainerGroupInstances(ctx, organizationName, projectName, containerGroupName).Execute()
List Container Group Instances
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ContainerGroupsAPI.ListContainerGroupInstances(context.Background(), organizationName, projectName, containerGroupName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.ListContainerGroupInstances``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListContainerGroupInstances`: ContainerGroupInstances
fmt.Fprintf(os.Stdout, "Response from `ContainerGroupsAPI.ListContainerGroupInstances`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiListContainerGroupInstancesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroupList ListContainerGroups(ctx, organizationName, projectName).Execute()
List Container Groups
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ContainerGroupsAPI.ListContainerGroups(context.Background(), organizationName, projectName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.ListContainerGroups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListContainerGroups`: ContainerGroupList
fmt.Fprintf(os.Stdout, "Response from `ContainerGroupsAPI.ListContainerGroups`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name |
Other parameters are passed through a pointer to a apiListContainerGroupsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestartContainerGroup(ctx, organizationName, projectName, containerGroupName).Execute()
Restart a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.RestartContainerGroup(context.Background(), organizationName, projectName, containerGroupName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.RestartContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiRestartContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StartContainerGroup(ctx, organizationName, projectName, containerGroupName).Execute()
Start a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.StartContainerGroup(context.Background(), organizationName, projectName, containerGroupName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.StartContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiStartContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StopContainerGroup(ctx, organizationName, projectName, containerGroupName).Execute()
Stop a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ContainerGroupsAPI.StopContainerGroup(context.Background(), organizationName, projectName, containerGroupName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.StopContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiStopContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContainerGroup UpdateContainerGroup(ctx, organizationName, projectName, containerGroupName).UpdateContainerGroup(updateContainerGroup).Execute()
Update a Container Group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationName := "organizationName_example" // string | The unique organization name
projectName := "projectName_example" // string | The unique project name
containerGroupName := "containerGroupName_example" // string | The unique container group name
updateContainerGroup := *openapiclient.NewUpdateContainerGroup() // UpdateContainerGroup |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ContainerGroupsAPI.UpdateContainerGroup(context.Background(), organizationName, projectName, containerGroupName).UpdateContainerGroup(updateContainerGroup).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContainerGroupsAPI.UpdateContainerGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateContainerGroup`: ContainerGroup
fmt.Fprintf(os.Stdout, "Response from `ContainerGroupsAPI.UpdateContainerGroup`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationName | string | The unique organization name | |
projectName | string | The unique project name | |
containerGroupName | string | The unique container group name |
Other parameters are passed through a pointer to a apiUpdateContainerGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateContainerGroup | UpdateContainerGroup | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]