All URIs are relative to https://api.aptible.com
Method | HTTP request | Description |
---|---|---|
GetEphemeralSession | Get /ephemeral_sessions/{id} | show ephemeral_session |
ListEphemeralSessionsForApp | Get /apps/{app_id}/ephemeral_sessions | list ephemeral_sessions |
ListEphemeralSessionsForOperation | Get /operations/{operation_id}/ephemeral_sessions | list ephemeral_sessions |
EphemeralSession GetEphemeralSession(ctx, id).Execute()
show ephemeral_session
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
id := int32(56) // int32 | id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EphemeralSessionsAPI.GetEphemeralSession(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EphemeralSessionsAPI.GetEphemeralSession``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEphemeralSession`: EphemeralSession
fmt.Fprintf(os.Stdout, "Response from `EphemeralSessionsAPI.GetEphemeralSession`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | id |
Other parameters are passed through a pointer to a apiGetEphemeralSessionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListEphemeralSessionsForApp200Response ListEphemeralSessionsForApp(ctx, appId).Page(page).Execute()
list ephemeral_sessions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
appId := int32(56) // int32 | app_id
page := int32(56) // int32 | current page of results for pagination (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EphemeralSessionsAPI.ListEphemeralSessionsForApp(context.Background(), appId).Page(page).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EphemeralSessionsAPI.ListEphemeralSessionsForApp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListEphemeralSessionsForApp`: ListEphemeralSessionsForApp200Response
fmt.Fprintf(os.Stdout, "Response from `EphemeralSessionsAPI.ListEphemeralSessionsForApp`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
appId | int32 | app_id |
Other parameters are passed through a pointer to a apiListEphemeralSessionsForAppRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
page | int32 | current page of results for pagination |
ListEphemeralSessionsForApp200Response
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListEphemeralSessionsForApp200Response ListEphemeralSessionsForOperation(ctx, operationId).Page(page).Execute()
list ephemeral_sessions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
operationId := int32(56) // int32 | operation_id
page := int32(56) // int32 | current page of results for pagination (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EphemeralSessionsAPI.ListEphemeralSessionsForOperation(context.Background(), operationId).Page(page).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EphemeralSessionsAPI.ListEphemeralSessionsForOperation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListEphemeralSessionsForOperation`: ListEphemeralSessionsForApp200Response
fmt.Fprintf(os.Stdout, "Response from `EphemeralSessionsAPI.ListEphemeralSessionsForOperation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
operationId | int32 | operation_id |
Other parameters are passed through a pointer to a apiListEphemeralSessionsForOperationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
page | int32 | current page of results for pagination |
ListEphemeralSessionsForApp200Response
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]