tencent cloud

masukan

Getting Pre-signed URL - signurl

Terakhir diperbarui:2024-01-06 16:15:35
    The signurl command is used to get the pre-signed URL of an object, through which the object can be accessed anonymously.

    Command Syntax

    ./coscli signurl cos://<bucket-name>/<key> [flag]
    signurl includes the following parameters:
    Parameter Format
    Description
    Example
    cos://<bucket-name>/<key>
    Specifies the target object in the bucket, which is accessible by using the bucket alias or bucket name configured in the configuration file as detailed in Download and Installation Configuration. If you use the bucket name for access, you also need to include the endpoint flag.
    Access with the bucket alias: cos://example-alias/test.txt
    Access with the bucket name: cos://examplebucket-1250000000/test.txt
    The signurl command contains the following optional flags:
    Flag Abbreviation
    Flag Name
    Description
    -h
    --help
    Views the usage of this command.
    -t
    --time
    Sets the URL expiration time, which is 1000s by default
    Note:
    For other common options of this command (such as switching bucket and user account), see Common Options.

    Examples

    Getting the pre-signed URL of picture.jpg in bucket1 bucket

    ./coscli signurl cos://bucket1/picture.jpg

    Getting the pre-signed URL of picture.jpg in bucket2 bucket and setting the URL expiration time to 1314s

    ./coscli signurl cos://bucket2/picture.jpg --time 1314
    
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24