我需要通过cloudberry powershell snap in连接到我的存储桶。我将完成以下步骤:
Set-CloudOption -ProxyAddress {muProxyAddress} -ProxyPort 80
$s3 = Get-CloudS3Connection -Key myKey -Secret mySecret
$source = $s3 | Select-CloudFolder -Path myBucketName/myFolderName
但是我收到了这个错误:
Select-CloudFolder : Redirect location is empty
At line:1 char:17
+ $source = $s3 | Select-CloudFolder -Path myBucketName/myFolderName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Select-CloudFolder], Exception
+ FullyQualifiedErrorId : System.Exception,CloudBerryLab.Explorer.PSSnapIn.Commands.SelectCloudFolder
这就是在日志文件中写的:
2016-09-01 16:06:03,368 [S3] [管道执行线程] INFO - HEAD请求,存储桶:myBucketName,key :, version: 2016-09-01 16:06:04,738 [基础] [管道执行线程]信息 - 永久移动到
答案 0 :(得分:0)
这应该有效。
Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
Set-CloudOption -ProxyAddress xxxx -ProxyPort xxxx -PathStyle Path
$key = "xxxx"
$secret = "xxxx"
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup