Skip to main content

transit_gateway_attachments

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

Overview

Nametransit_gateway_attachments
TypeResource
Idconfluent.networking.transit_gateway_attachments

Fields

The following fields are returned by SELECT queries:

Transit Gateway Attachment.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (networking/v1)
kindstringKind defines the object this REST resource represents. (TransitGatewayAttachment)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe desired state of the Transit Gateway Attachment
statusobjectThe status of the Transit Gateway Attachment

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_networking_v1_transit_gateway_attachmentselectenvironment, idMake a request to read a transit gateway attachment.
list_networking_v1_transit_gateway_attachmentsselectenvironmentspec.display_name, status.phase, spec.network, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all transit gateway attachments.
create_networking_v1_transit_gateway_attachmentinsertspecMake a request to create a transit gateway attachment.
update_networking_v1_transit_gateway_attachmentupdateid, specMake a request to update a transit gateway attachment.

delete_networking_v1_transit_gateway_attachmentdeleteenvironment, idMake a request to delete a transit gateway 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
environmentstringScope the operation to the given environment. (example: env-00000)
idstringThe unique identifier for the transit gateway attachment.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.
spec.display_namearrayFilter the results by exact match for spec.display_name. Pass multiple times to see results matching any of the values. (example: [prod-tgw-use1, prod-tgw-usw2])
spec.networkarrayFilter the results by exact match for spec.network. Pass multiple times to see results matching any of the values. (example: [n-00000, n-00001])
status.phasearrayFilter the results by exact match for status.phase. Pass multiple times to see results matching any of the values. (example: [PROVISIONING, READY])

SELECT examples

Make a request to read a transit gateway attachment.

SELECT
id,
api_version,
kind,
metadata,
spec,
status
FROM confluent.networking.transit_gateway_attachments
WHERE environment = '{{ environment }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Make a request to create a transit gateway attachment.

INSERT INTO confluent.networking.transit_gateway_attachments (
spec
)
SELECT
'{{ spec }}' /* required */
RETURNING
id,
api_version,
kind,
metadata,
spec,
status
;

UPDATE examples

Make a request to update a transit gateway attachment.

UPDATE confluent.networking.transit_gateway_attachments
SET
spec = '{{ spec }}'
WHERE
id = '{{ id }}' --required
AND spec = '{{ spec }}' --required
RETURNING
id,
api_version,
kind,
metadata,
spec,
status;

DELETE examples

Make a request to delete a transit gateway attachment.

DELETE FROM confluent.networking.transit_gateway_attachments
WHERE environment = '{{ environment }}' --required
AND id = '{{ id }}' --required
;