Skip to main content

kafka_schema_registry_acls

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

Overview​

Namekafka_schema_registry_acls
TypeResource
Idovh.cloud_database.kafka_schema_registry_acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Acl ID
permissionstringPermission to give to this username on this resource. Permissions values can be retrieved using /cloud/project/{serviceName}/database/kafka/{clusterId}/permissions
resourcestringResource affected by this acl
usernamestringUsername affected by this acl

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectacl_id, cluster_id, service_nameGet kafka schema registry acls
listselectcluster_id, service_namex_pagination_modeList schema registry acls of the kafka
createinsertcluster_id, service_name, permission, resource, usernameCreate a new schema registry acl on the kafka cluster
deletedeleteacl_id, cluster_id, service_nameDelete a kafka schema registry acl

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
acl_idstring (uuid)Acl ID (wire: aclId)
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
cluster_idstring (uuid)Cluster ID (wire: clusterId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get kafka schema registry acls

SELECT
id,
permission,
resource,
username
FROM ovh.cloud_database.kafka_schema_registry_acls
WHERE acl_id = '{{ acl_id }}' -- required
AND cluster_id = '{{ cluster_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Create a new schema registry acl on the kafka cluster

INSERT INTO ovh.cloud_database.kafka_schema_registry_acls (
permission,
resource,
username,
cluster_id,
service_name
)
SELECT
'{{ permission }}' /* required */,
'{{ resource }}' /* required */,
'{{ username }}' /* required */,
'{{ cluster_id }}',
'{{ service_name }}'
RETURNING
id,
permission,
resource,
username
;

DELETE examples​

Delete a kafka schema registry acl

DELETE FROM ovh.cloud_database.kafka_schema_registry_acls
WHERE acl_id = '{{ acl_id }}' --required
AND cluster_id = '{{ cluster_id }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;