Skip to main content

custom_code_loggings

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

Overview

Namecustom_code_loggings
TypeResource
Idconfluent.ccl.custom_code_loggings

Fields

The following fields are returned by SELECT queries:

Custom Code Logging.

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. (ccl/v1)
cloudstringCloud provider where the Custom Code Logging is sent. (example: AWS)
destination_settingsobjectDestination Settings of the Custom Code Logging.
environmentobjectThe environment to which this belongs.
kindstringKind defines the object this REST resource represents. (CustomCodeLogging)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
regionstringThe Cloud provider region the Custom Code Logging is sent. (example: us-west-2)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ccl_v1_custom_code_loggingselectenvironment, id Make a request to read a custom code logging.
list_ccl_v1_custom_code_loggingsselectenvironmentpage_size, page_token Retrieve a sorted, filtered, paginated list of all custom code loggings.
create_ccl_v1_custom_code_logginginsertcloud, region, destination_settings, environment Make a request to create a custom code logging.
update_ccl_v1_custom_code_loggingupdateenvironment, id, environment Make a request to update a custom code logging.

delete_ccl_v1_custom_code_loggingdeleteenvironment, id Make a request to delete a custom code logging.

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 custom code logging.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read a custom code logging.

SELECT
id,
api_version,
cloud,
destination_settings,
environment,
kind,
metadata,
region
FROM confluent.ccl.custom_code_loggings
WHERE environment = '{{ environment }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Make a request to create a custom code logging.

INSERT INTO confluent.ccl.custom_code_loggings (
cloud,
region,
destination_settings,
environment
)
SELECT
'{{ cloud }}' /* required */,
'{{ region }}' /* required */,
'{{ destination_settings }}' /* required */,
'{{ environment }}' /* required */
RETURNING
id,
api_version,
cloud,
destination_settings,
environment,
kind,
metadata,
region
;

UPDATE examples

Make a request to update a custom code logging.

UPDATE confluent.ccl.custom_code_loggings
SET
cloud = '{{ cloud }}',
region = '{{ region }}',
destination_settings = '{{ destination_settings }}',
environment = '{{ environment }}'
WHERE
environment = '{{ environment }}' --required
AND id = '{{ id }}' --required
AND environment = '{{ environment }}' --required
RETURNING
id,
api_version,
cloud,
destination_settings,
environment,
kind,
metadata,
region;

DELETE examples

Make a request to delete a custom code logging.

DELETE FROM confluent.ccl.custom_code_loggings
WHERE environment = '{{ environment }}' --required
AND id = '{{ id }}' --required
;