Skip to main content

entitlements

Creates, updates, deletes, gets or lists an entitlements resource.

Overview

Nameentitlements
TypeResource
Idconfluent.partner.entitlements

Fields

The following fields are returned by SELECT queries:

Entitlement.

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)
namestringThe name of the entitlement (example: Acme Prod Entitlement)
external_idstringThe unique external ID of the entitlement (this should be unique to customer) (example: 1111-2222-3333-4444)
plan_idstringThe plan ID the entitlement (example: confluent-cloud-payg-prod)
product_idstringThe product ID of the entitlement (example: confluent-cloud-kafka-service-azure)
resource_idstringThe resource ID of the entitlement (example: 1111-2222-3333-4444)
usage_reporting_idstringThe usage reporting ID of the entitlement (if usage reporting uses a different ID, otherwise, same as external_id) (example: 1111-2222-3333-4444)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (partner/v2)
kindstringKind defines the object this REST resource represents. (Entitlement)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
organizationobjectThe organization associated with this object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_partner_v2_entitlementselectidorganization.id Make a request to read an entitlement.
list_partner_v2_entitlementsselectorganization.id, page_size, page_token Retrieve a sorted, filtered, paginated list of all entitlements.
create_partner_v2_entitlementinsertexternal_id, name, plan_id, product_id Make a request to create an entitlement.

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 entitlement.
organization.idstringFilter the results by exact match for organization.id. (example: b3a17773-05cc-4431-9560-433fb4613da8)
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read an entitlement.

SELECT
id,
name,
external_id,
plan_id,
product_id,
resource_id,
usage_reporting_id,
api_version,
kind,
metadata,
organization
FROM confluent.partner.entitlements
WHERE id = '{{ id }}' -- required
AND organization.id = '{{ organization.id }}'
;

INSERT examples

Make a request to create an entitlement.

INSERT INTO confluent.partner.entitlements (
external_id,
name,
plan_id,
product_id,
usage_reporting_id,
resource_id,
organization
)
SELECT
'{{ external_id }}' /* required */,
'{{ name }}' /* required */,
'{{ plan_id }}' /* required */,
'{{ product_id }}' /* required */,
'{{ usage_reporting_id }}',
'{{ resource_id }}',
'{{ organization }}'
RETURNING
id,
name,
external_id,
plan_id,
product_id,
resource_id,
usage_reporting_id,
api_version,
kind,
metadata,
organization
;