Package version:

Represents the components that make up an Azure Storage SAS' query parameters. This type is not constructed directly by the user; it is only generated by the AccountSASSignatureValues and QueueSASSignatureValues types. Once generated, it can be encoded into a String and appended to a URL directly (though caution should be taken here in case there are existing query parameters, which might affect the appropriate means of appending these query parameters).

NOTE: Instances of this class are immutable.

Constructors

  • Creates an instance of SASQueryParameters.

    Parameters

    • version: string

      Representing the storage version

    • signature: string

      Representing the signature for the SAS token

    • Optionalpermissions: string

      Representing the storage permissions

    • Optionalservices: string

      Representing the storage services being accessed (only for Account SAS)

    • OptionalresourceTypes: string

      Representing the storage resource types being accessed (only for Account SAS)

    • Optionalprotocol: SASProtocol

      Representing the allowed HTTP protocol(s)

    • OptionalstartsOn: any

      Representing the start time for this SAS token

    • OptionalexpiresOn: any

      Representing the expiry time for this SAS token

    • OptionalipRange: SasIPRange

      Representing the range of valid IP addresses for this SAS token

    • Optionalidentifier: string

      Representing the signed identifier (only for Service SAS)

    • Optionalresource: string

      Representing the storage queue (only for Service SAS)

    Returns SASQueryParameters

Properties

expiresOn?: any

Optional only when identifier is provided. The expiry time for this SAS token.

identifier?: string

Optional. The signed identifier (only for QueueSASSignatureValues).

permissions?: string

Optional only when identifier is provided. Please refer to AccountSASPermissions, QueueSASPermissions for more details.

protocol?: SASProtocol

Optional. The allowed HTTP protocol(s).

resource?: string

Optional. The storage queue (only for QueueSASSignatureValues).

resourceTypes?: string

Optional. The storage resource types being accessed (only for Account SAS). Please refer to AccountSASResourceTypes for more details.

services?: string

Optional. The storage services being accessed (only for Account SAS). Please refer to AccountSASServices for more details.

signature: string

The signature for the SAS token.

startsOn?: any

Optional. The start time for this SAS token.

version: string

The storage API version.

Accessors

Methods

  • Encodes all SAS query parameters into a string that can be appended to a URL.

    Returns string