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.public_cloud_analytics.kafka_schema_registry_acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the Schema Registry ACL entry
checksumstringHash of the resource used for concurrency control
created_atstring (date-time)Date at which the resource was created (wire: createdAt)
permissionstringPermission level granted by this ACL entry (READ, READ_WRITE, WRITE)
resourcestringSchema Registry resource pattern this ACL entry applies to. Supports wildcards (*).
updated_atstring (date-time)Date of the last update to the resource (wire: updatedAt)
usernamestringUsername this ACL entry applies to

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectschema_registry_acl_id, service_id, project_idReturns the user, the resource pattern and the permission of the ACL entry. (Beta version)
listselectservice_id, project_idx_pagination_cursor, x_pagination_sizeReturns the Schema Registry ACL entries of the service, each granting a user a permission on a resource pattern. (Beta version)
createinsertservice_id, project_id, permission, resource, usernameGrants a user a permission on the Schema Registry resources matching a pattern. Use * to match all subjects. (Beta version)
deletedeleteschema_registry_acl_id, service_id, project_idDeletes the ACL entry and revokes the permission it granted. (Beta version)

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
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"}})
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
schema_registry_acl_idstring (uuid)Schema registry acl ID (wire: schemaRegistryAclId)
service_idstring (uuid)Service ID (wire: serviceId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the user, the resource pattern and the permission of the ACL entry. (Beta version)

SELECT
id,
checksum,
created_at,
permission,
resource,
updated_at,
username
FROM ovh.public_cloud_analytics.kafka_schema_registry_acls
WHERE schema_registry_acl_id = '{{ schema_registry_acl_id }}' -- required
AND service_id = '{{ service_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Grants a user a permission on the Schema Registry resources matching a pattern. Use * to match all subjects. (Beta version)

INSERT INTO ovh.public_cloud_analytics.kafka_schema_registry_acls (
permission,
resource,
username,
service_id,
project_id
)
SELECT
'{{ permission }}' /* required */,
'{{ resource }}' /* required */,
'{{ username }}' /* required */,
'{{ service_id }}',
'{{ project_id }}'
RETURNING
id,
checksum,
created_at,
permission,
resource,
updated_at,
username
;

DELETE examples​

Deletes the ACL entry and revokes the permission it granted. (Beta version)

DELETE FROM ovh.public_cloud_analytics.kafka_schema_registry_acls
WHERE schema_registry_acl_id = '{{ schema_registry_acl_id }}' --required
AND service_id = '{{ service_id }}' --required
AND project_id = '{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;