The signurl
command is used to get the pre-signed URL of an object, through which the object can be accessed anonymously.
./coscli signurl cos://<bucketAlias>/<key> [flag]
Note:
- For more information on
bucketAlias
, see Download and Installation Configuration.- For more general options for this command (such as switching buckets or user accounts), see General Options.
The signurl
command contains the following optional flags:
Flag Abbreviation | Flag Full Name | Description |
---|---|---|
-t | --time | Sets the URL expiration time, which is 1000s by default |
picture.jpg
in bucket1
bucket./coscli signurl cos://bucket1/picture.jpg
picture.jpg
in bucket2
bucket and setting the URL expiration time to 1314s./coscli signurl cos://bucket2/picture.jpg --time 1314
Was this page helpful?