【问题标题】:Azure Ruby SDK create public blobAzure Ruby SDK 创建公共 blob
【发布时间】:2015-11-14 04:11:01
【问题描述】:

我在使用 Ruby SDK 以编程方式创建容器时遇到问题,并且它被立即设置为 Private。

我正在使用此处找到的 Azure Ruby SDK:https://github.com/Azure/azure-sdk-for-ruby

def create_container(container_name)
  container = Azure.blobs.create_container(container_name)
end

如何将访问级别设置为公共 Blob?现在我必须去传送门并手动设置它。

【问题讨论】:

    标签: ruby azure blob containers


    【解决方案1】:

    here复制代码:)

    container = azure_blob_service.create_container("test-container", :public_access_level => "container")
    

    【讨论】:

      猜你喜欢
      • 2015-03-18
      • 2019-09-22
      • 1970-01-01
      • 2014-03-30
      • 2022-01-13
      • 2018-10-29
      • 1970-01-01
      • 2019-07-03
      • 2020-12-08
      相关资源
      最近更新 更多