Skip to main content

endpoint_attachments

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

Overview​

Nameendpoint_attachments
TypeResource
Idgoogle.apigee.endpoint_attachments

Fields​

The following fields are returned by SELECT queries:

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. (CONNECTION_STATE_UNSPECIFIED, UNAVAILABLE, PENDING, ACCEPTED, REJECTED, CLOSED, FROZEN, NEEDS_ATTENTION, ACCEPTED_LIMITED_CAPACITY)
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. (STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, UPDATING)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_endpoint_attachments_getselectorganizationsId, endpointAttachmentsIdGets the endpoint attachment.
organizations_endpoint_attachments_listselectorganizationsIdpageSize, pageTokenLists the endpoint attachments in an organization.
organizations_endpoint_attachments_createinsertorganizationsIdendpointAttachmentIdCreates an endpoint attachment. Note: Not supported for Apigee hybrid.
organizations_endpoint_attachments_deletedeleteorganizationsId, endpointAttachmentsIdDeletes an endpoint attachment.

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
endpointAttachmentsIdstring
organizationsIdstring
endpointAttachmentIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Gets the endpoint attachment.

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

INSERT examples​

Creates an endpoint attachment. Note: Not supported for Apigee hybrid.

INSERT INTO google.apigee.endpoint_attachments (
data__location,
data__name,
data__serviceAttachment,
organizationsId,
endpointAttachmentId
)
SELECT
'{{ location }}',
'{{ name }}',
'{{ serviceAttachment }}',
'{{ organizationsId }}',
'{{ endpointAttachmentId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples​

Deletes an endpoint attachment.

DELETE FROM google.apigee.endpoint_attachments
WHERE organizationsId = '{{ organizationsId }}' --required
AND endpointAttachmentsId = '{{ endpointAttachmentsId }}' --required
;