All URIs are relative to https://pipes.turbot.com/api/v0
Method | HTTP request | Description |
---|---|---|
Command | Post /org/{org_handle}/workspace/{workspace_handle}/flowpipe/trigger/{trigger_name}/command | Run organization workspace Flowpipe trigger command |
Create | Post /org/{org_handle}/workspace/{workspace_handle}/trigger | Create org workspace trigger |
Delete | Delete /org/{org_handle}/workspace/{workspace_handle}/flowpipe/trigger/{trigger_name} | Delete org workspace pipeline |
Get | Get /org/{org_handle}/workspace/{workspace_handle}/flowpipe/trigger/{trigger_name} | Get org workspace flowpipe trigger |
List | Get /org/{org_handle}/workspace/{workspace_handle}/trigger | List organization workspace triggers |
Update | Patch /org/{org_handle}/workspace/{workspace_handle}/flowpipe/trigger/{trigger_name} | Update org workspace trigger |
TriggerCommandResponse Command(ctx, orgHandle, workspaceHandle, triggerName).Request(request).Execute()
Run organization workspace Flowpipe trigger command
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of the organization which contains the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the Flowpipe trigger exists.
triggerName := "triggerName_example" // string | Identifier of the Flowpipe trigger on which the command will be run.
request := *openapiclient.NewTriggerCommandRequest(map[string][]openapiclient.TriggerCommandAction{"key": "TODO"}) // TriggerCommandRequest | The request body of the trigger command to run.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceFlowpipeTriggers.Command(context.Background(), orgHandle, workspaceHandle, triggerName).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceFlowpipeTriggers.Command``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Command`: TriggerCommandResponse
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceFlowpipeTriggers.Command`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of the organization which contains the workspace. | |
workspaceHandle | string | The handle of the workspace where the Flowpipe trigger exists. | |
triggerName | string | Identifier of the Flowpipe trigger on which the command will be run. |
Other parameters are passed through a pointer to a apiCommandRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | TriggerCommandRequest | The request body of the trigger command to run. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceModTrigger Create(ctx, orgHandle, workspaceHandle).Request(request).Execute()
Create org workspace trigger
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of the org which contains the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where we want to create the trigger.
request := *openapiclient.NewCreateTriggerRequest(map[string]interface{}(123), "Pipeline_example", map[string][]openapiclient.PipelineFrequency{"key": "TODO"}) // CreateTriggerRequest | The request body for the trigger to be created.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceFlowpipeTriggers.Create(context.Background(), orgHandle, workspaceHandle).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceFlowpipeTriggers.Create``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Create`: WorkspaceModTrigger
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceFlowpipeTriggers.Create`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of the org which contains the workspace. | |
workspaceHandle | string | The handle of the workspace where we want to create the trigger. |
Other parameters are passed through a pointer to a apiCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | CreateTriggerRequest | The request body for the trigger 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]
Pipeline Delete(ctx, orgHandle, workspaceHandle, triggerName).Execute()
Delete org workspace pipeline
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of the organization which contains the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the pipeline exists.
triggerName := "triggerName_example" // string | The name of the trigger which needs to be deleted.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceFlowpipeTriggers.Delete(context.Background(), orgHandle, workspaceHandle, triggerName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceFlowpipeTriggers.Delete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Delete`: Pipeline
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceFlowpipeTriggers.Delete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of the organization which contains the workspace. | |
workspaceHandle | string | The handle of the workspace where the pipeline exists. | |
triggerName | string | The name of the trigger 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]
WorkspaceModTrigger Get(ctx, orgHandle, workspaceHandle, triggerName).Execute()
Get org workspace flowpipe trigger
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of the org which contains the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the trigger exists.
triggerName := "triggerName_example" // string | The name of the flowpipe trigger whose details needs to be fetched.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceFlowpipeTriggers.Get(context.Background(), orgHandle, workspaceHandle, triggerName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceFlowpipeTriggers.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: WorkspaceModTrigger
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceFlowpipeTriggers.Get`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of the org which contains the workspace. | |
workspaceHandle | string | The handle of the workspace where the trigger exists. | |
triggerName | string | The name of the flowpipe trigger whose details 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]
ListTriggersResponse List(ctx, orgHandle, workspaceHandle).Where(where).Limit(limit).NextToken(nextToken).Execute()
List organization workspace triggers
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of the organization which contains the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace for which we want to list the triggers.
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.OrgWorkspaceFlowpipeTriggers.List(context.Background(), orgHandle, workspaceHandle).Where(where).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceFlowpipeTriggers.List``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `List`: ListTriggersResponse
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceFlowpipeTriggers.List`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of the organization which contains the workspace. | |
workspaceHandle | string | The handle of the workspace for which we want to list the triggers. |
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]
WorkspaceModTrigger Update(ctx, orgHandle, workspaceHandle, triggerName).Request(request).Execute()
Update org workspace trigger
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of the org which contains the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the trigger exists.
triggerName := "triggerName_example" // string | The name of the trigger which needs to be updated.
request := *openapiclient.NewUpdateTriggerRequest() // UpdateTriggerRequest | The request body for the trigger which needs to be updated.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceFlowpipeTriggers.Update(context.Background(), orgHandle, workspaceHandle, triggerName).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceFlowpipeTriggers.Update``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Update`: WorkspaceModTrigger
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceFlowpipeTriggers.Update`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of the org which contains the workspace. | |
workspaceHandle | string | The handle of the workspace where the trigger exists. | |
triggerName | string | The name of the trigger 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 | UpdateTriggerRequest | The request body for the trigger 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]