Skip to main content

sharedflows

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

Overview

Namesharedflows
TypeResource
Idgoogle.apigee.sharedflows

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe ID of the shared flow.
latestRevisionIdstringThe id of the most recently created revision for this shared flow.
metaDataobjectMetadata describing the shared flow. (id: GoogleCloudApigeeV1EntityMetadata)
revisionarrayA list of revisions of this shared flow.
spacestringOptional. The ID of the space associated with this shared flow. Any IAM policies applied to the space will control access to this shared flow. To learn how Spaces can be used to manage resources, read the Apigee Spaces Overview.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_sharedflows_getselectorganizationsId, sharedflowsIdGets a shared flow by name, including a list of its revisions.
organizations_sharedflows_listselectorganizationsIdincludeRevisions, includeMetaData, spaceLists all shared flows in the organization. If the resource has the space attribute set, the response may not return all resources. To learn more, read the Apigee Spaces Overview.
organizations_sharedflows_createinsertorganizationsIdaction, name, spaceUploads a ZIP-formatted shared flow configuration bundle to an organization. If the shared flow already exists, this creates a new revision of it. If the shared flow does not exist, this creates it. Once imported, the shared flow revision must be deployed before it can be accessed at runtime. The size limit of a shared flow bundle is 15 MB.
organizations_sharedflows_deletedeleteorganizationsId, sharedflowsIdDeletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.
organizations_sharedflows_moveexecorganizationsId, sharedflowsIdMoves an shared flow to a different space.

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
organizationsIdstring
sharedflowsIdstring
actionstring
includeMetaDataboolean
includeRevisionsboolean
namestring
spacestring

SELECT examples

Gets a shared flow by name, including a list of its revisions.

SELECT
name,
latestRevisionId,
metaData,
revision,
space
FROM google.apigee.sharedflows
WHERE organizationsId = '{{ organizationsId }}' -- required
AND sharedflowsId = '{{ sharedflowsId }}' -- required;

INSERT examples

Uploads a ZIP-formatted shared flow configuration bundle to an organization. If the shared flow already exists, this creates a new revision of it. If the shared flow does not exist, this creates it. Once imported, the shared flow revision must be deployed before it can be accessed at runtime. The size limit of a shared flow bundle is 15 MB.

INSERT INTO google.apigee.sharedflows (
data__contentType,
data__data,
data__extensions,
organizationsId,
action,
name,
space
)
SELECT
'{{ contentType }}',
'{{ data }}',
'{{ extensions }}',
'{{ organizationsId }}',
'{{ action }}',
'{{ name }}',
'{{ space }}'
RETURNING
name,
configurationVersion,
contextInfo,
createdAt,
description,
displayName,
entityMetaDataAsProperties,
lastModifiedAt,
policies,
resourceFiles,
resources,
revision,
sharedFlows,
type
;

DELETE examples

Deletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.

DELETE FROM google.apigee.sharedflows
WHERE organizationsId = '{{ organizationsId }}' --required
AND sharedflowsId = '{{ sharedflowsId }}' --required;

Lifecycle Methods

Moves an shared flow to a different space.

EXEC google.apigee.sharedflows.organizations_sharedflows_move 
@organizationsId='{{ organizationsId }}' --required,
@sharedflowsId='{{ sharedflowsId }}' --required
@@json=
'{
"space": "{{ space }}"
}';