Skip to main content

provider_shared_resources

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

Overview

Nameprovider_shared_resources
TypeResource
Idconfluent.stream_sharing.provider_shared_resources

Fields

The following fields are returned by SELECT queries:

Provider 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)
cluster_namestringThe cluster display name of the shared resource. Deprecated (example: Published Trades)
display_namestringShared resource display name (example: Stock Trades)
environment_namestringThe environment name of the shared resource. Deprecated (example: Public Env)
organization_nameOrganization to which the shared resource belongs. Deprecated (example: ABC Corp)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (cdx/v1)
cloud_clusterobjectThe cloud cluster to which this belongs.
crnstring (uri)Deprecated please use resources attribute. (pattern: ^crn://.+$, example: crn://confluent.cloud/environment=env-123/cloud-cluster=lkc-1111aaa/kafka=lkc-111aaa/topic=my.topic)
descriptionstringDescription of shared resource (example: This topic provides realtime data for the orders placed through the website)
kindstringKind defines the object this REST resource represents. (ProviderSharedResource)
logo_urlstring (uri)Resource logo url (example: https://confluent.cloud/api/cdx/v1/provider-shared-resources/sr-123/images/logo)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
organization_contactstring (email)Email of contact person from the organization (example: jane.doe@example.com)
organization_descriptionstringShared resource's organization description (example: ABC Corp is the biggest online retailer)
resourcesarrayList of resource crns that are shared together
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_provider_shared_resourceselectidMake a request to read a provider shared resource.
list_cdx_v1_provider_shared_resourcesselectstream_share, crn, include_deleted, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all provider shared resources.
update_cdx_v1_provider_shared_resourceupdateidMake a request to update a provider shared resource.

delete_image_cdx_v1_provider_shared_resourcedeleteid, file_nameDeletes the image file for the shared resource
upload_image_cdx_v1_provider_shared_resourceexecid, file_nameUpload the image file for the shared resource
view_image_cdx_v1_provider_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 provider shared resource.
crnstringFilter the results by exact match for crn. (example: crn://confluent.cloud/cloud-cluster=lkc-111aaa/kafka=lkc-111aaa/topic=my.topic)
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 provider shared resource.

SELECT
id,
cluster_name,
display_name,
environment_name,
organization_name,
api_version,
cloud_cluster,
crn,
description,
kind,
logo_url,
metadata,
organization_contact,
organization_description,
resources,
schemas,
tags
FROM confluent.stream_sharing.provider_shared_resources
WHERE id = '{{ id }}' -- required
;

UPDATE examples

Make a request to update a provider shared resource.

UPDATE confluent.stream_sharing.provider_shared_resources
SET
crn = '{{ crn }}',
resources = '{{ resources }}',
display_name = '{{ display_name }}',
organization_description = '{{ organization_description }}',
organization_contact = '{{ organization_contact }}',
cloud_cluster = '{{ cloud_cluster }}'
WHERE
id = '{{ id }}' --required
RETURNING
id,
cluster_name,
display_name,
environment_name,
organization_name,
api_version,
cloud_cluster,
crn,
description,
kind,
logo_url,
metadata,
organization_contact,
organization_description,
resources,
schemas,
tags;

DELETE examples

Deletes the image file for the shared resource

DELETE FROM confluent.stream_sharing.provider_shared_resources
WHERE id = '{{ id }}' --required
AND file_name = '{{ file_name }}' --required
;

Lifecycle Methods

Upload the image file for the shared resource

EXEC confluent.stream_sharing.provider_shared_resources.upload_image_cdx_v1_provider_shared_resource
@id='{{ id }}' --required,
@file_name='{{ file_name }}' --required
;