简体   繁体   English

从存储中以编程方式C#删除Azure表,但不手动删除

[英]Delete Azure table from storage programatically c# but not manually

Is there a way we do not allow users to delete tables manually by connecting to azure table storage instead allow the c# code to delete it programmatically. 有没有一种方法,我们不允许用户通过连接到azure表存储来手动删除表,而是允许c#代码以编程方式删除它。 This will restrict users accessing the shared table storage from deleting tables. 这将限制访问共享表存储的用户删除表。

As far as I know, azure doesn't have the feature which could enable delete Azure table from storage programatically c# but not manually. 据我所知,azure不具有可以通过编程方式从c#而非手动删除存储中删除Azure表的功能。

In my opinion, you could share the storage SAS token instead of the storage key. 我认为,您可以共享存储SAS令牌而不是存储密钥。

By using the storage SAS token, we could decide which user have the permission to read ,modify or delete the table record as Nick.McDermaid says(Give the right permission token to right user). 通过使用存储SAS令牌,我们可以决定哪个用户具有读取,修改或删除表记录的权限,如Nick.McDermaid所说(将正确的权限令牌提供给正确的用户)。

More details about how to generate the SAS token with permission, you could refer to this example . 有关如何在获得许可的情况下生成SAS令牌的更多详细信息,您可以参考此示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM