Skip to main content

consumer_shared_resources

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

Overview

Nameconsumer_shared_resources
TypeResource
Idconfluent.stream_sharing.consumer_shared_resources

Fields

The following fields are returned by SELECT queries:

Consumer Shared Resource.

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)
display_namestringConsumer resource display name (example: Stock Trades)
organization_namestringShared resource's organization name (example: ABC Corp)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (cdx/v1)
cloudstringThe cloud service provider of the provider shared cluster. (example: AWS)
descriptionstringDescription of consumer resource (example: This topic provides realtime data for the orders placed through the website)
kindstringKind defines the object this REST resource represents. (ConsumerSharedResource)
logo_urlstring (uri)Resource logo url (example: https://confluent.cloud/api/cdx/v1/consumer-shared-resources/sr-123/images/logo)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
network_connection_typesarrayThe network connection types of the provider shared cluster. If the shared cluster is on public internet, then the list will be empty
organization_contactstring (email)Email of the shared resource's organization contact (example: jane.doe@example.com)
organization_descriptionstringShared resource's organization description (example: ABC Corp is the biggest online retailer)
schemasarrayList of schemas in JSON format. This field is work in progress and subject to changes.
tagsarraylist of tags

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cdx_v1_consumer_shared_resourceselectidMake a request to read a consumer shared resource.
list_cdx_v1_consumer_shared_resourcesselectstream_share, include_deleted, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all consumer shared resources.
image_cdx_v1_consumer_shared_resourceexecid, file_nameReturns the image file for the shared resource

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
file_namestringThe File Name
idstringThe unique identifier for the consumer shared resource.
include_deletedbooleanInclude deactivated shared resources
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.
stream_sharestringFilter the results by exact match for stream_share. (example: ss-1234)

SELECT examples

Make a request to read a consumer shared resource.

SELECT
id,
display_name,
organization_name,
api_version,
cloud,
description,
kind,
logo_url,
metadata,
network_connection_types,
organization_contact,
organization_description,
schemas,
tags
FROM confluent.stream_sharing.consumer_shared_resources
WHERE id = '{{ id }}' -- required
;

Lifecycle Methods

Returns the image file for the shared resource

EXEC confluent.stream_sharing.consumer_shared_resources.image_cdx_v1_consumer_shared_resource
@id='{{ id }}' --required,
@file_name='{{ file_name }}' --required
;