Skip to main content

provider_shares

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

Overview

Nameprovider_shares
TypeResource
Idconfluent.stream_sharing.provider_shares

Fields

The following fields are returned by SELECT queries:

Provider Share.

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)
consumer_organization_namestringConsumer organization name (example: Nasdaq)
consumer_user_namestringName of the consumer (example: John Doe)
provider_user_namestringName or email of the provider user. Deprecated (example: Jane Doe)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (cdx/v1)
cloud_clusterobjectThe cloud cluster to which this belongs.
consumer_restrictionobjectRestrictions on the consumer that can redeem this token
delivery_methodstringMethod by which the invite will be delivered (example: EMAIL)
invite_expires_atstring (date-time)The date and time at which the invitation will expire. Only for invited shares (example: 2006-01-02T15:04:05-07:00)
invited_atstring (date-time)The date and time at which consumer was invited (example: 2006-01-02T15:04:05-07:00)
kindstringKind defines the object this REST resource represents. (ProviderShare)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
provider_userobjectThe provider user/inviter
redeemed_atstring (date-time)The date and time at which the invite was redeemed (example: 2006-01-02T15:04:05-07:00)
service_accountobjectThe service account associated with this object.
statusobjectThe status of the Provider Share

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cdx_v1_provider_shareselectidMake a request to read a provider share.
list_cdx_v1_provider_sharesselectshared_resource, crn, include_deleted, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all provider shares.
create_cdx_v1_provider_shareinsertdelivery_method, consumer_restriction, resourcesCreates a share based on delivery method.
delete_cdx_v1_provider_sharedeleteidMake a request to delete a provider share.
resend_cdx_v1_provider_shareexecidResend provider share

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
idstringThe unique identifier for the provider share.
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 shares
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.
shared_resourcestringFilter the results by exact match for shared_resource. (example: sr-1234)

SELECT examples

Make a request to read a provider share.

SELECT
id,
consumer_organization_name,
consumer_user_name,
provider_user_name,
api_version,
cloud_cluster,
consumer_restriction,
delivery_method,
invite_expires_at,
invited_at,
kind,
metadata,
provider_user,
redeemed_at,
service_account,
status
FROM confluent.stream_sharing.provider_shares
WHERE id = '{{ id }}' -- required
;

INSERT examples

Creates a share based on delivery method.

INSERT INTO confluent.stream_sharing.provider_shares (
delivery_method,
consumer_restriction,
resources
)
SELECT
'{{ delivery_method }}' /* required */,
'{{ consumer_restriction }}' /* required */,
'{{ resources }}' /* required */
RETURNING
id,
consumer_organization_name,
consumer_user_name,
provider_user_name,
api_version,
cloud_cluster,
consumer_restriction,
delivery_method,
invite_expires_at,
invited_at,
kind,
metadata,
provider_user,
redeemed_at,
service_account,
status
;

DELETE examples

Make a request to delete a provider share.

DELETE FROM confluent.stream_sharing.provider_shares
WHERE id = '{{ id }}' --required
;

Lifecycle Methods

Resend provider share

EXEC confluent.stream_sharing.provider_shares.resend_cdx_v1_provider_share
@id='{{ id }}' --required
;