【发布时间】:2016-05-14 05:19:44
【问题描述】:
我关注softlayer-object-storage-python 是为了返回符合特定条件的我的对象列表。
无论我在搜索中输入什么内容,这段代码似乎都会返回我容器中的所有内容
sl_storage = object_storage.get_client(
username = environment['slos_username'],
password = environment['api_key'],
auth_url = environment['auth_url']
)
# get container
sl_container = sl_storage[environment['object_container']]
# get list, the search function doesn't actually work...
containers = sl_container.search("icm10restapi-qa.zip.*")
我希望只取回以 icm10restapi-qa.zip 开头的内容。
我也尝试过使用^=icm10restapi-qa.zip,但也没有运气。
【问题讨论】:
标签: api ibm-cloud-infrastructure