Skip to main content

flowhooks

Creates, updates, deletes, gets or lists a flowhooks resource.

Overview

Nameflowhooks
TypeResource
Idgoogle.apigee.flowhooks

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
continueOnErrorbooleanOptional. Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
descriptionstringDescription of the flow hook.
flowHookPointstringOutput only. Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
sharedFlowstringShared flow attached to this flow hook, or empty if there is none attached.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_environments_flowhooks_getselectorganizationsId, environmentsId, flowhooksIdReturns the name of the shared flow attached to the specified flow hook. If there's no shared flow attached to the flow hook, the API does not return an error; it simply does not return a name in the response.
organizations_environments_flowhooks_attach_shared_flow_to_flow_hookexecorganizationsId, environmentsId, flowhooksIdAttaches a shared flow to a flow hook.
organizations_environments_flowhooks_detach_shared_flow_from_flow_hookexecorganizationsId, environmentsId, flowhooksIdDetaches a shared flow from a flow hook.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environmentsIdstring
flowhooksIdstring
organizationsIdstring

SELECT examples

Returns the name of the shared flow attached to the specified flow hook. If there's no shared flow attached to the flow hook, the API does not return an error; it simply does not return a name in the response.

SELECT
continueOnError,
description,
flowHookPoint,
sharedFlow
FROM google.apigee.flowhooks
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
AND flowhooksId = '{{ flowhooksId }}' -- required;

Lifecycle Methods

Attaches a shared flow to a flow hook.

EXEC google.apigee.flowhooks.organizations_environments_flowhooks_attach_shared_flow_to_flow_hook 
@organizationsId='{{ organizationsId }}' --required,
@environmentsId='{{ environmentsId }}' --required,
@flowhooksId='{{ flowhooksId }}' --required
@@json=
'{
"description": "{{ description }}",
"sharedFlow": "{{ sharedFlow }}",
"continueOnError": {{ continueOnError }}
}';