attachments
Creates, updates, deletes, gets or lists a attachments
resource.
Overview
Name | attachments |
Type | Resource |
Id | google.apigee.attachments |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. ID of the attachment. |
createdAt | string | Output only. Time the attachment was created in milliseconds since epoch. |
environment | string | ID of the attached environment. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_envgroups_attachments_get | SELECT | attachmentsId, envgroupsId, organizationsId | Gets an environment group attachment. |
organizations_envgroups_attachments_list | SELECT | envgroupsId, organizationsId | Lists all attachments of an environment group. |
organizations_instances_attachments_get | SELECT | attachmentsId, instancesId, organizationsId | Gets an attachment. Note: Not supported for Apigee hybrid. |
organizations_instances_attachments_list | SELECT | instancesId, organizationsId | Lists all attachments to an instance. Note: Not supported for Apigee hybrid. |
organizations_envgroups_attachments_create | INSERT | envgroupsId, organizationsId | Creates a new attachment of an environment to an environment group. |
organizations_instances_attachments_create | INSERT | instancesId, organizationsId | Creates a new attachment of an environment to an instance. Note: Not supported for Apigee hybrid. |
organizations_envgroups_attachments_delete | DELETE | attachmentsId, envgroupsId, organizationsId | Deletes an environment group attachment. |
organizations_instances_attachments_delete | DELETE | attachmentsId, instancesId, organizationsId | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.attachments (
envgroupsId,
organizationsId,
environment,
name
)
SELECT
'{{ envgroupsId }}',
'{{ organizationsId }}',
'{{ environment }}',
'{{ name }}'
;
- name: your_resource_model_name
props:
- name: environment
value: string
- name: name
value: string
- name: environmentGroupId
value: string
- name: createdAt
value: string
DELETE
example
Deletes the specified attachments
resource.
/*+ delete */
DELETE FROM google.apigee.attachments
WHERE attachmentsId = '{{ attachmentsId }}'
AND envgroupsId = '{{ envgroupsId }}'
AND organizationsId = '{{ organizationsId }}';