Sdílet prostřednictvím


TableAccountSasBuilder Class

Definition

TableAccountSasBuilder is used to generate a Shared Access Signature (SAS) for an Azure Storage table. For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/create-account-sas.

public class TableAccountSasBuilder
type TableAccountSasBuilder = class
Public Class TableAccountSasBuilder
Inheritance
TableAccountSasBuilder

Constructors

TableAccountSasBuilder(String, TableAccountSasResourceTypes, DateTimeOffset)

Initializes an instance of a TableAccountSasBuilder.

TableAccountSasBuilder(TableAccountSasPermissions, TableAccountSasResourceTypes, DateTimeOffset)

Initializes an instance of a TableAccountSasBuilder.

TableAccountSasBuilder(Uri)

Initializes a new instance of TableAccountSasBuilder based on an existing Uri containing a shared acccess signature.

Properties

ExpiresOn

The time at which the shared access signature becomes invalid. This field must be omitted if it has been specified in an associated stored access policy.

Identifier

An optional unique value up to 64 characters in length that correlates to an access policy specified for the container.

IPRange

Specifies an IP address or a range of IP addresses from which to accept requests. If the IP address from which the request originates does not match the IP address or address range specified on the SAS token, the request is not authenticated. When specifying a range of IP addresses, note that the range is inclusive.

Permissions

The permissions associated with the shared access signature. The user is restricted to operations allowed by the permissions. This field must be omitted if it has been specified in an associated stored access policy. TableAccountSasPermissions can be used to create the permissions string.

Protocol

The optional signed protocol field specifies the protocol permitted for a request made with the SAS. Possible values are HttpsAndHttp, Https, and None.

ResourceTypes

The resource types associated with the shared access signature. The user is restricted to operations on the specified resources.

StartsOn

Optionally specify the time at which the shared access signature becomes valid. If omitted when DateTimeOffset.MinValue is used, start time for this call is assumed to be the time when the storage service receives the request.

Methods

SetPermissions(String)

Sets the permissions for the SAS using a raw permissions string.

SetPermissions(TableAccountSasPermissions)

Sets the permissions for a table SAS.

Sign(TableSharedKeyCredential)

Use an account's TableSharedKeyCredential to sign this shared access signature values to produce the proper SAS query parameters for authenticating requests.

ToSasQueryParameters(TableSharedKeyCredential)

Use an account's TableSharedKeyCredential to sign this shared access signature values to produce the proper SAS query parameters for authenticating requests.

Applies to