If you are the owner of Feature Store, you can grant either read access, write access, or read and write access to other users. Similarly, you can revoke granted access from other users.
Users who are granted read access can access the following APIs on the corresponding Feature Store.
- list_features
- list_entities
- list_data_sources
- list_feature_groups
- get_feature
- get_entity
- get_data_source
- get_feature_group
Users who are granted write access can access the following APIs on the corresponding Feature Store.
- apply
- archive_feature_group
- delete_feature_group
- archive_entity
- delete_entity
- archive_data_source
- delete_data_source
- archive_feature_group
- delete_feature_group
Users with both read and write access can access any API on Feature Store.
grant.read
grant.read() grants read access to users.
>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
>>> fs.grant.read('BoB') True
grant.write
grant.write() grants write access to users.
>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
>>> fs.grant.write('BoB') True
grant.read_write
grant.read_write() grants both read and write access to users.
>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
>>> fs.grant.read_write('BoB') True
revoke.read
revoke.read() revokes read access from users.
>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
>>> fs.revoke.read('BoB') True
revoke.write
revoke.write() revokes write access from users.
>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
>>> fs.revoke.write('BoB') True
revoke.read_write
revoke.read_write() revokes both read and write access from users.
>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
>>> fs.revoke.read_write('BoB') True