35.2. URI 格式
minio://bucketName[?options]
minio://bucketName[?options]
如果存储桶不存在,则会创建存储桶。您可以以以下格式将查询选项附加到 URI 中,
?options=value&option2=value&…
?options=value&option2=value&…
例如,要从存储桶 helloBucket
读取文件 hello.txt
,请使用以下片断:
from("minio://helloBucket?accessKey=yourAccessKey&secretKey=yourSecretKey&prefix=hello.txt") .to("file:/var/downloaded");
from("minio://helloBucket?accessKey=yourAccessKey&secretKey=yourSecretKey&prefix=hello.txt")
.to("file:/var/downloaded");