Chat now with support
Chat with Support

LiteSpeed for SQL Server 8.9.5 - Security and Compliance Guide

xp_sls_amazon_browse

The xp_sls_amazon_browse command returns a list of objects located on the specified cloud storage path.

This topic covers:

Syntax

exec master.dbo.xp_sls_amazon_browse

[, @AWSAccessKey = N'AKOOPRYRPKERG*QTRWPQ']

[, @AWSSecretKey = N'P96YGZGerKmQM1rJRDQ]

[, @AWSBucketName = N'aabucket6']

[, @AWSFolderName = N'f1']

[, @AWSMaxItems = 2]

Arguments

Tips:

  • To see the list of accepted arguments and data types for arguments, execute the following:
    exec master.dbo.<procedure_name> show_help

  • To convert the script for use with the command-line utilities, execute the following:
    exec master.dbo.<procedure_name> show_cmd, <xp_arguments>

@AWSAccessKey

Type: Varchar

The @AWSAccessKey argument specifies the name of the unique Amazon Web Service alphanumeric access key that identifies each user.

Important: This @AWSAccessKey argument is replaced by @CloudAccessKey. The @AWSAccessKey argument is no longer valid in subsequent LiteSpeed versions after 8.2.

@AWSAccessKeyEnc

Type: Varchar

The @AWSAccessKeyEnc argument specifies the name of the encrypted unique Amazon Web Service alphanumeric access key that identifies each user.

Important: This @AWSAccessKeyEnc argument is replaced by @CloudAccessKeyEnc. The @AWSAccessKeyEnc argument is no longer valid in subsequent LiteSpeed versions after 8.2.

@AWSBucketName

Type: Varchar

The @AWSBucketName argument specifies the name of the container for AWS objects. Bucket names must be at least 3 and no more than 63 characters long.

Important: This @AWSBucketName argument is replaced by @CloudBucketName. The @AWSBucketName argument is no longer valid in subsequent LiteSpeed versions after 8.2.

@AWSFolderName

Type: Varchar

The @AWSFolderName argument specifies the name of the folder for searching in amazon_browse. It is a filter for output files.

This argument accepts variables. For more information, see LiteSpeed Variables.

@AWSMaxItems

Type: Varchar

The @AWSMaxItems argument specifies the number of rows to return from the Amazon Web Service.

Note: The @AWSMaxItems argument can be very useful on large tables with thousands of records. Returning a large number of records can impact cloud performance.

@AWSSecretKey

Type: Varchar

The @AWSSecretKey argument specifies the name of the Amazon Web Service secret key that is assigned when you initially get an AWS account.

Important: This @AWSSecretKey argument is replaced by @CloudSecretKey. The @AWSSecretKey argument is no longer valid in subsequent LiteSpeed versions after 8.2.

@AWSSecretKeyEnc

Type: Varchar

The @AWSSecretKeyEnc argument specifies the name of the encrypted Amazon Web Service secret key that is assigned when you initially get an AWS account.

Important: This @AWSSecretKeyEnc argument is replaced by @CloudSecretKeyEnc. The @AWSSecretKeyEnc is no longer valid in subsequent LiteSpeed versions after 8.2.

@AWSUseGovCloud

The @AWSUseGovCloud argument enables a special restricted region for the US Government use in Amazon S3. This argument accepts one of the following values:

  • 0—Do not use government cloud
  • 1—Use government cloud

Important: This @AWSUseGovCloud argument is replaced by @CloudGovRegion. The @AWSUseGovCloud argument is no longer valid in subsequent LiteSpeed versions after 8.2.

@ProxyHost

Type: Varchar

The @ProxyHost argument is optional and specifies the name of the proxy host name that is running the proxy server.

note: If the @ProxyHost argument is not defined, then the LiteSpeed core engine checks the local .ini files for the proxy parameters. If the proxy parameters are not detected, then the LiteSpeed core engine connects directly to the proxy servers.

@ProxyLogin

Type: Varchar

The @ProxyLogin argument is optional and specifies the proxy server login credential.

note: If not defined, then the LiteSpeed core engine checks the local .ini files for the proxy parameters. If the proxy parameters are not detected, then the LiteSpeed core engine connects directly to the proxy servers.

@ProxyPassword

Type: Varchar

The @ProxyPassword argument is optional and specifies the proxy server password credential.

note: If the @ProxyPassword argument is not defined, then the LiteSpeed core engine checks the local .ini files for the proxy parameters. If the proxy parameters are not detected, then the LiteSpeed core engine connects directly to the proxy servers.

@ProxyPasswordEnc

Type: Varchar

The @ProxyPasswordEnc argument is optional and specifies the encrypted proxy server password credential.

note: If the @ProxyPasswordEnc argument is not defined, then the LiteSpeed core engine checks the local .ini files for the proxy parameters. If the proxy parameters are not detected, then the LiteSpeed core engine connects directly to the proxy servers.

@ProxyPort

The @ProxyPort argument is optional and contains the port number of the proxy server. The TCP/IP port values can be 1-65535.

note: If the @ProxyPort argument is not defined, then the LiteSpeed core engine checks the local .ini files for the proxy parameters. If the proxy parameters are not detected, then the LiteSpeed core engine connects directly to the proxy servers.

@UseSSL

The @UseSSL argument specifies that the connection uses SSL security. This argument accepts one of the following values:

  • 0—Do not use SSL
  • 1—Use SSL (default)

Examples

  • exec master.dbo.xp_sls_amazon_browse

    @AWSAccessKey = N'AKOTWEYRPKERG*QWBEPQ' -- my key

    , @AWSSecretKey = N'P47YGZGwsKuQM1rJRDQ' -- my key

    , @AWSBucketName = N'aabucket1'

    , @AWSFolderName = N'f1' -- f1/f2 – for subfolders

    , @AWSMaxItems = 2-- number of returning rows. Works like TOP command in SQL.

    Returns

    A list of objects or error on failure.

    To capture the output message, run the following:

    declare @rmsg varchar(999)
    exec master..<procedure_name> <arguments>, @resultmsg=@rmsg output
    select @rmsg

    To capture the output message and the result code, run the following:

    declare @rc int
    declare @rmsg varchar(999)
    exec master..<procedure_name> <arguments>, @resultmsg=@rmsg output, @resultcode=@rc output
    select @rc, @rmsg

     

    Related Topics

    About Using Extended Stored Procedures

    xp_sls_cloud_browse

  • Related Documents

    The document was helpful.

    Select Rating

    I easily found the information I needed.

    Select Rating