All URIs are relative to https://pipes.turbot.com/api/v0
| Method | HTTP request | Description |
|---|---|---|
| Command | Post /user/{user_handle}/workspace/{workspace_handle}/command | Run user workspace command |
| Create | Post /user/{user_handle}/workspace | Create user workspace |
| Delete | Delete /user/{user_handle}/workspace/{workspace_handle} | Delete user workspace |
| Get | Get /user/{user_handle}/workspace/{workspace_handle} | Get user workspace |
| GetQuery | Get /user/{user_handle}/workspace/{workspace_handle}/query | Query user workspace |
| GetQueryWithExtensions | Get /user/{user_handle}/workspace/{workspace_handle}/query/data.{extensions} | Query user workspace with extensions |
| List | Get /user/{user_handle}/workspace | List user workspaces |
| ListAuditLogs | Get /user/{user_handle}/workspace/{workspace_handle}/audit_log | User workspace audit logs |
| ListDBLogs | Get /user/{user_handle}/workspace/{workspace_handle}/db_log | User workspace logs |
| PostQuery | Post /user/{user_handle}/workspace/{workspace_handle}/query | Query user workspace |
| PostQueryWithExtensions | Post /user/{user_handle}/workspace/{workspace_handle}/query/data.{extensions} | Query user workspace with extensions |
| Update | Patch /user/{user_handle}/workspace/{workspace_handle} | Update user workspace |
WorkspaceCommandResponse Command(ctx, userHandle, workspaceHandle).Request(request).Execute()
Run user workspace command
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user where we want to run the workspace command.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where command will be executed.
request := *openapiclient.NewWorkspaceCommandRequest(openapiclient.WorkspaceCommandAction("reboot")) // WorkspaceCommandRequest | The request body for the workspace command.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.Command(context.Background(), userHandle, workspaceHandle).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.Command``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Command`: WorkspaceCommandResponse
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.Command`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user where we want to run the workspace command. | |
| workspaceHandle | string | The handle of the workspace where command will be executed. |
Other parameters are passed through a pointer to a apiCommandRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | WorkspaceCommandRequest | The request body for the workspace command. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace Create(ctx, userHandle).Request(request).Execute()
Create user workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user where we want to create the workspace.
request := *openapiclient.NewCreateWorkspaceRequest("Handle_example") // CreateWorkspaceRequest | The request body for the workspace to be created.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.Create(context.Background(), userHandle).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.Create``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Create`: Workspace
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.Create`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user where we want to create the workspace. |
Other parameters are passed through a pointer to a apiCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | CreateWorkspaceRequest | The request body for the workspace to be created. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace Delete(ctx, userHandle, workspaceHandle).Execute()
Delete user workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user where the workspace exist.
workspaceHandle := "workspaceHandle_example" // string | Provide the handle of the workspace which needs to be deleted.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.Delete(context.Background(), userHandle, workspaceHandle).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.Delete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Delete`: Workspace
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.Delete`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user where the workspace exist. | |
| workspaceHandle | string | Provide the handle of the workspace which needs to be deleted. |
Other parameters are passed through a pointer to a apiDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace Get(ctx, userHandle, workspaceHandle).Execute()
Get user workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user where the workspace exist.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace whose detail needs to be fetched.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.Get(context.Background(), userHandle, workspaceHandle).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: Workspace
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.Get`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user where the workspace exist. | |
| workspaceHandle | string | The handle of the workspace whose detail needs to be fetched. |
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceQueryResult GetQuery(ctx, userHandle, workspaceHandle).Sql(sql).ContentType(contentType).Execute()
Query user workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user that the workspace belongs to.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace to query.
sql := "sql_example" // string | The sql query to perform against the user workspace.
contentType := "contentType_example" // string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.GetQuery(context.Background(), userHandle, workspaceHandle).Sql(sql).ContentType(contentType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.GetQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetQuery`: WorkspaceQueryResult
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.GetQuery`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user that the workspace belongs to. | |
| workspaceHandle | string | The handle of the workspace to query. |
Other parameters are passed through a pointer to a apiGetQueryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
sql | string | The sql query to perform against the user workspace. | contentType | string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/csv, text/markdown
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceQueryResult GetQueryWithExtensions(ctx, userHandle, workspaceHandle, extensions).Sql(sql).ContentType(contentType).Execute()
Query user workspace with extensions
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user that the workspace belongs to.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace to query.
extensions := "extensions_example" // string | The content type for the request. E.g.
sql := "sql_example" // string | The sql query to perform against the user workspace.
contentType := "contentType_example" // string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.GetQueryWithExtensions(context.Background(), userHandle, workspaceHandle, extensions).Sql(sql).ContentType(contentType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.GetQueryWithExtensions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetQueryWithExtensions`: WorkspaceQueryResult
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.GetQueryWithExtensions`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user that the workspace belongs to. | |
| workspaceHandle | string | The handle of the workspace to query. | |
| extensions | string | The content type for the request. E.g. |
Other parameters are passed through a pointer to a apiGetQueryWithExtensionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
sql | string | The sql query to perform against the user workspace. | contentType | string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/csv, text/markdown
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListWorkspacesResponse List(ctx, userHandle).Limit(limit).NextToken(nextToken).Execute()
List user workspaces
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user for which we want to list the workspace.
limit := int32(56) // int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. (optional) (default to 25)
nextToken := "nextToken_example" // string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.List(context.Background(), userHandle).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.List``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `List`: ListWorkspacesResponse
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.List`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user for which we want to list the workspace. |
Other parameters are passed through a pointer to a apiListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. | [default to 25] nextToken | string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAuditLogsResponse ListAuditLogs(ctx, userHandle, workspaceHandle).Limit(limit).NextToken(nextToken).Execute()
User workspace audit logs
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | Specify the user handle to get the audit logs.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace whose logs needs to be fetched.
limit := int32(56) // int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. (optional) (default to 25)
nextToken := "nextToken_example" // string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.ListAuditLogs(context.Background(), userHandle, workspaceHandle).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.ListAuditLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAuditLogs`: ListAuditLogsResponse
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.ListAuditLogs`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | Specify the user handle to get the audit logs. | |
| workspaceHandle | string | The handle of the workspace whose logs needs to be fetched. |
Other parameters are passed through a pointer to a apiListAuditLogsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. | [default to 25] nextToken | string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListLogsResponse ListDBLogs(ctx, userHandle, workspaceHandle).Limit(limit).NextToken(nextToken).Execute()
User workspace logs
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | Specify the user handle to get the workspace logs.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace whose logs needs to be fetched.
limit := int32(56) // int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. (optional) (default to 25)
nextToken := "nextToken_example" // string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.ListDBLogs(context.Background(), userHandle, workspaceHandle).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.ListDBLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDBLogs`: ListLogsResponse
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.ListDBLogs`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | Specify the user handle to get the workspace logs. | |
| workspaceHandle | string | The handle of the workspace whose logs needs to be fetched. |
Other parameters are passed through a pointer to a apiListDBLogsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. | [default to 25] nextToken | string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceQueryResult PostQuery(ctx, userHandle, workspaceHandle).Sql(sql).ContentType(contentType).Execute()
Query user workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user that the workspace belongs to.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace to query.
sql := "sql_example" // string | The sql query to perform against the user workspace.
contentType := "contentType_example" // string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.PostQuery(context.Background(), userHandle, workspaceHandle).Sql(sql).ContentType(contentType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.PostQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostQuery`: WorkspaceQueryResult
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.PostQuery`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user that the workspace belongs to. | |
| workspaceHandle | string | The handle of the workspace to query. |
Other parameters are passed through a pointer to a apiPostQueryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
sql | string | The sql query to perform against the user workspace. | contentType | string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. |
No authorization required
- Content-Type: application/json, text/csv, text/markdown
- Accept: application/json, text/csv, text/markdown
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceQueryResult PostQueryWithExtensions(ctx, userHandle, workspaceHandle, extensions).Sql(sql).ContentType(contentType).Execute()
Query user workspace with extensions
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user that the workspace belongs to.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace to query.
extensions := "extensions_example" // string | The content type for the request. E.g.
sql := "sql_example" // string | The sql query to perform against the user workspace.
contentType := "contentType_example" // string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.PostQueryWithExtensions(context.Background(), userHandle, workspaceHandle, extensions).Sql(sql).ContentType(contentType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.PostQueryWithExtensions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostQueryWithExtensions`: WorkspaceQueryResult
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.PostQueryWithExtensions`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user that the workspace belongs to. | |
| workspaceHandle | string | The handle of the workspace to query. | |
| extensions | string | The content type for the request. E.g. |
Other parameters are passed through a pointer to a apiPostQueryWithExtensionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
sql | string | The sql query to perform against the user workspace. | contentType | string | The required content type for the response. Defaults to application/json. Supported values are json, application/json, csv, text/csv, md and text/markdown. |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/csv, text/markdown
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace Update(ctx, userHandle, workspaceHandle).Request(request).Execute()
Update user workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userHandle := "userHandle_example" // string | The handle of the user where the workspace exist.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace which needs to be updated.
request := *openapiclient.NewUpdateWorkspaceRequest() // UpdateWorkspaceRequest | The request body for the workspace which needs to be updated.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UserWorkspaces.Update(context.Background(), userHandle, workspaceHandle).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserWorkspaces.Update``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Update`: Workspace
fmt.Fprintf(os.Stdout, "Response from `UserWorkspaces.Update`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userHandle | string | The handle of the user where the workspace exist. | |
| workspaceHandle | string | The handle of the workspace which needs to be updated. |
Other parameters are passed through a pointer to a apiUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | UpdateWorkspaceRequest | The request body for the workspace which needs to be updated. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]