Skip to main content

attachments

Creates, updates, deletes, gets or lists an attachments resource.

Overview

Nameattachments
TypeResource
Idgoogle.apigee.attachments

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringID of the environment group attachment.
createdAtstring (int64)Output only. The time at which the environment group attachment was created as milliseconds since epoch.
environmentstringRequired. ID of the attached environment.
environmentGroupIdstringOutput only. ID of the environment group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_envgroups_attachments_getselectorganizationsId, envgroupsId, attachmentsIdGets an environment group attachment.
organizations_instances_attachments_getselectorganizationsId, instancesId, attachmentsIdGets an attachment. Note: Not supported for Apigee hybrid.
organizations_envgroups_attachments_listselectorganizationsId, envgroupsIdpageSize, pageTokenLists all attachments of an environment group.
organizations_instances_attachments_listselectorganizationsId, instancesIdpageSize, pageTokenLists all attachments to an instance. Note: Not supported for Apigee hybrid.
organizations_envgroups_attachments_createinsertorganizationsId, envgroupsIdCreates a new attachment of an environment to an environment group.
organizations_instances_attachments_createinsertorganizationsId, instancesIdCreates a new attachment of an environment to an instance. Note: Not supported for Apigee hybrid.
organizations_envgroups_attachments_deletedeleteorganizationsId, envgroupsId, attachmentsIdDeletes an environment group attachment.
organizations_instances_attachments_deletedeleteorganizationsId, instancesId, attachmentsIdDeletes an attachment. Note: Not supported for Apigee hybrid.

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
attachmentsIdstring
envgroupsIdstring
instancesIdstring
organizationsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets an environment group attachment.

SELECT
name,
createdAt,
environment,
environmentGroupId
FROM google.apigee.attachments
WHERE organizationsId = '{{ organizationsId }}' -- required
AND envgroupsId = '{{ envgroupsId }}' -- required
AND attachmentsId = '{{ attachmentsId }}' -- required;

INSERT examples

Creates a new attachment of an environment to an environment group.

INSERT INTO google.apigee.attachments (
data__name,
data__environment,
organizationsId,
envgroupsId
)
SELECT
'{{ name }}',
'{{ environment }}',
'{{ organizationsId }}',
'{{ envgroupsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes an environment group attachment.

DELETE FROM google.apigee.attachments
WHERE organizationsId = '{{ organizationsId }}' --required
AND envgroupsId = '{{ envgroupsId }}' --required
AND attachmentsId = '{{ attachmentsId }}' --required;