All URIs are relative to https://pipes.turbot.com/api/v0
| Method | HTTP request | Description |
|---|---|---|
| Get | Get /org/{org_handle}/process/{process_id} | Get Org process |
| List | Get /org/{org_handle}/process | List Org processes |
| Log | Get /org/{org_handle}/process/{process_id}/log/{log_file}.{content_type} | List Org process logs |
SpProcess Get(ctx, orgHandle, processId).Execute()
Get Org process
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization to get the process.
processId := "processId_example" // string | The id of the process to be fetched.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgProcesses.Get(context.Background(), orgHandle, processId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgProcesses.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: SpProcess
fmt.Fprintf(os.Stdout, "Response from `OrgProcesses.Get`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| orgHandle | string | The handle of an organization to get the process. | |
| processId | string | The id of the process 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]
ListProcessesResponse List(ctx, orgHandle).Where(where).Limit(limit).NextToken(nextToken).Execute()
List Org processes
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization to list the processes.
where := "where_example" // string | The SQL where filter you wish to apply to this request. The filter will be parsed and sanitised and checked against the supported columns for this API. (optional)
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.OrgProcesses.List(context.Background(), orgHandle).Where(where).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgProcesses.List``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `List`: ListProcessesResponse
fmt.Fprintf(os.Stdout, "Response from `OrgProcesses.List`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| orgHandle | string | The handle of an organization to list the processes. |
Other parameters are passed through a pointer to a apiListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
where | string | The SQL where filter you wish to apply to this request. The filter will be parsed and sanitised and checked against the supported columns for this API. | 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]
string Log(ctx, orgHandle, processId, logFile, contentType).Execute()
List Org process logs
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization to list the process logs.
processId := "processId_example" // string | The id of the process where you want to list the process logs.
logFile := "logFile_example" // string | The process logs file to be fetched.
contentType := "contentType_example" // string | The required content type of the process logs.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgProcesses.Log(context.Background(), orgHandle, processId, logFile, contentType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgProcesses.Log``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Log`: string
fmt.Fprintf(os.Stdout, "Response from `OrgProcesses.Log`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| orgHandle | string | The handle of an organization to list the process logs. | |
| processId | string | The id of the process where you want to list the process logs. | |
| logFile | string | The process logs file to be fetched. | |
| contentType | string | The required content type of the process logs. |
Other parameters are passed through a pointer to a apiLogRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
string
No authorization required
- Content-Type: Not defined
- Accept: application/jsonlines+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]