Skip to main content

compute_pools

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

Overview

Namecompute_pools
TypeResource
Idconfluent.flink_compute_pools.compute_pools

Fields

The following fields are returned by SELECT queries:

Compute Pool.

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. (fcpm/v2)
kindstringKind defines the object this REST resource represents. (ComputePool)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe desired state of the Compute Pool
statusobjectThe status of the Compute Pool

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_fcpm_v2_compute_poolselectenvironment, idMake a request to read a compute pool.
list_fcpm_v2_compute_poolsselectenvironmentspec.region, spec.network, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all compute pools.
create_fcpm_v2_compute_poolinsertspecMake a request to create a compute pool.
update_fcpm_v2_compute_poolupdateid, specMake a request to update a compute pool.
delete_fcpm_v2_compute_pooldeleteenvironment, idMake a request to delete a compute pool.

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 compute pool.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.
spec.networkstringFilter the results by exact match for spec.network. (example: n-00000)
spec.regionstringFilter the results by exact match for spec.region. (example: us-west-1)

SELECT examples

Make a request to read a compute pool.

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

INSERT examples

Make a request to create a compute pool.

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

UPDATE examples

Make a request to update a compute pool.

UPDATE confluent.flink_compute_pools.compute_pools
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 compute pool.

DELETE FROM confluent.flink_compute_pools.compute_pools
WHERE environment = '{{ environment }}' --required
AND id = '{{ id }}' --required
;