Skip to main content

endpoint_attachments

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

Overview

Nameendpoint_attachments
TypeResource
Idgoogle.apigee.endpoint_attachments

Fields

NameDatatypeDescription
namestringName of the endpoint attachment. Use the following structure in your request: organizations/{org}/endpointAttachments/{endpoint_attachment}
connectionStatestringOutput only. State of the endpoint attachment connection to the service attachment.
hoststringOutput only. Host that can be used in either the HTTP target endpoint directly or as the host in target server.
locationstringRequired. Location of the endpoint attachment.
serviceAttachmentstringFormat: projects//regions//serviceAttachments/*
statestringOutput only. State of the endpoint attachment. Values other than ACTIVE mean the resource is not ready to use.

Methods

NameAccessible byRequired ParamsDescription
organizations_endpoint_attachments_getSELECTendpointAttachmentsId, organizationsIdGets the endpoint attachment.
organizations_endpoint_attachments_listSELECTorganizationsIdLists the endpoint attachments in an organization.
organizations_endpoint_attachments_createINSERTorganizationsIdCreates an endpoint attachment. Note: Not supported for Apigee hybrid.
organizations_endpoint_attachments_deleteDELETEendpointAttachmentsId, organizationsIdDeletes an endpoint attachment.

SELECT examples

Lists the endpoint attachments in an organization.

SELECT
name,
connectionState,
host,
location,
serviceAttachment,
state
FROM google.apigee.endpoint_attachments
WHERE organizationsId = '{{ organizationsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.apigee.endpoint_attachments (
organizationsId,
name,
location,
serviceAttachment
)
SELECT
'{{ organizationsId }}',
'{{ name }}',
'{{ location }}',
'{{ serviceAttachment }}'
;

DELETE example

Deletes the specified endpoint_attachments resource.

/*+ delete */
DELETE FROM google.apigee.endpoint_attachments
WHERE endpointAttachmentsId = '{{ endpointAttachmentsId }}'
AND organizationsId = '{{ organizationsId }}';