Skip to main content

environments

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

Overview

Nameenvironments
TypeResource
Idconfluent.org.environments

Fields

NameDatatypeDescription
idtextID 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").
api_versiontextAPIVersion defines the schema version of this representation of a resource.
created_attextfield from the parent object
display_nametextA human-readable name for the Environment
kindtextKind defines the object this REST resource represents.
resource_nametextfield from the parent object
selftextfield from the parent object
stream_governance_packagetextfield from the parent object
updated_attextfield from the parent object

Methods

NameAccessible byRequired ParamsDescription
get_org_v2environmentSELECTidGeneral Availability Make a request to read an environment.
list_org_v2environmentsSELECTGeneral Availability Retrieve a sorted, filtered, paginated list of all environments.
create_org_v2environmentINSERTGeneral Availability Make a request to create an environment.
delete_org_v2environmentDELETEidGeneral Availability Make a request to delete an environment. If successful, this request will also recursively delete all of the environment's associated resources, including all Kafka clusters, connectors, etc.
update_org_v2environmentUPDATEidGeneral Availability Make a request to update an environment.

SELECT examples

General Availability Retrieve a sorted, filtered, paginated list of all environments.

SELECT
id,
api_version,
created_at,
display_name,
kind,
resource_name,
self,
stream_governance_package,
updated_at
FROM confluent.org.vw_environments
;

INSERT example

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

/*+ create */
INSERT INTO confluent.org.environments (
data__display_name,
data__stream_governance_config
)
SELECT
'{{ display_name }}',
'{{ stream_governance_config }}'
;

UPDATE example

Updates a environments resource.

/*+ update */
UPDATE confluent.org.environments
SET
display_name = '{{ display_name }}',
stream_governance_config = '{{ stream_governance_config }}'
WHERE
id = '{{ id }}';

DELETE example

Deletes the specified environments resource.

/*+ delete */
DELETE FROM confluent.org.environments
WHERE id = '{{ id }}';