Skip to main content

attachments

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

Overview

Nameattachments
TypeResource
Idgoogle.apigee.attachments

Fields

NameDatatypeDescription
namestringOutput only. ID of the attachment.
createdAtstringOutput only. Time the attachment was created in milliseconds since epoch.
environmentstringID of the attached environment.

Methods

NameAccessible byRequired ParamsDescription
organizations_envgroups_attachments_getSELECTattachmentsId, envgroupsId, organizationsIdGets an environment group attachment.
organizations_envgroups_attachments_listSELECTenvgroupsId, organizationsIdLists all attachments of an environment group.
organizations_instances_attachments_getSELECTattachmentsId, instancesId, organizationsIdGets an attachment. Note: Not supported for Apigee hybrid.
organizations_instances_attachments_listSELECTinstancesId, organizationsIdLists all attachments to an instance. Note: Not supported for Apigee hybrid.
organizations_envgroups_attachments_createINSERTenvgroupsId, organizationsIdCreates a new attachment of an environment to an environment group.
organizations_instances_attachments_createINSERTinstancesId, organizationsIdCreates a new attachment of an environment to an instance. Note: Not supported for Apigee hybrid.
organizations_envgroups_attachments_deleteDELETEattachmentsId, envgroupsId, organizationsIdDeletes an environment group attachment.
organizations_instances_attachments_deleteDELETEattachmentsId, instancesId, organizationsIdDeletes an attachment. Note: Not supported for Apigee hybrid.

SELECT examples

Lists all attachments of an environment group.

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

INSERT example

Use the following StackQL query and manifest file to create a new attachments resource.

/*+ create */
INSERT INTO google.apigee.attachments (
envgroupsId,
organizationsId,
environment,
name
)
SELECT
'{{ envgroupsId }}',
'{{ organizationsId }}',
'{{ environment }}',
'{{ name }}'
;

DELETE example

Deletes the specified attachments resource.

/*+ delete */
DELETE FROM google.apigee.attachments
WHERE attachmentsId = '{{ attachmentsId }}'
AND envgroupsId = '{{ envgroupsId }}'
AND organizationsId = '{{ organizationsId }}';