Table of Contents

Codeunit "Storage Service Authorization"

ID 9062
Namespace: System.Azure.Storage

Exposes methods to create different kinds of authorizations for HTTP Request made to Azure Storage Services.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

CreateAccountSAS

Creates an account SAS (Shared Access Signature) for authorizing HTTP request to Azure Storage Services. see: https://go.microsoft.com/fwlink/?linkid=2210398

procedure CreateAccountSAS(SigningKey: SecretText, SignedVersion: Enum "Storage Service API Version", SignedServices: List of [Enum "SAS Service Type"], SignedResources: List of [Enum "SAS Resource Type"], SignedPermissions: List of [Enum "SAS Permission"], SignedExpiry: DateTime): Interface "Storage Service Authorization"

Parameters

Name Type Description
SigningKey SecretText

The signing key to use.

SignedVersion Enum System.Azure.Storage."Storage Service API Version"

Specifies the signed storage service version to use to authorize requests made with this account SAS. Must be set to version 2015-04-05 or later.

SignedServices List of [Enum System.Azure.Storage."SAS Service Type"]

Specifies the signed services accessible with the account SAS.

SignedResources List of [Enum System.Azure.Storage."SAS Resource Type"]

The signing key to use.

SignedPermissions List of [Enum System.Azure.Storage."SAS Permission"]

Specifies the signed permissions for the account SAS. Permissions are only valid if they match the specified signed resource type; otherwise they are ignored.

SignedExpiry DateTime

The time at which the shared access signature becomes invalid.

Returns

Type Description
Interface System.Azure.Storage."Storage Service Authorization"

An account SAS authorization.

CreateAccountSAS

Creates an account SAS (Shared Access Signature) for authorizing HTTP request to Azure Storage Services. see: https://go.microsoft.com/fwlink/?linkid=2210398

procedure CreateAccountSAS(SigningKey: SecretText, SignedVersion: Enum "Storage Service API Version", SignedServices: List of [Enum "SAS Service Type"], SignedResources: List of [Enum "SAS Resource Type"], SignedPermissions: List of [Enum "SAS Permission"], SignedExpiry: DateTime, OptionalSASParameters: Record "SAS Parameters" temporary): Interface "Storage Service Authorization"

Parameters

Name Type Description
SigningKey SecretText

The signing key to use.

SignedVersion Enum System.Azure.Storage."Storage Service API Version"

Specifies the signed storage service version to use to authorize requests made with this account SAS. Must be set to version 2015-04-05 or later.

SignedServices List of [Enum System.Azure.Storage."SAS Service Type"]

Specifies the signed services accessible with the account SAS.

SignedResources List of [Enum System.Azure.Storage."SAS Resource Type"]

The signing key to use.

SignedPermissions List of [Enum System.Azure.Storage."SAS Permission"]

Specifies the signed permissions for the account SAS. Permissions are only valid if they match the specified signed resource type; otherwise they are ignored.

SignedExpiry DateTime

The time at which the shared access signature becomes invalid.

OptionalSASParameters Table System.Azure.Storage."SAS Parameters"

See table "Stor. Serv. SAS Parameters".

Returns

Type Description
Interface System.Azure.Storage."Storage Service Authorization"

An account SAS authorization.

CreateSharedKey

Creates a Shared Key authorization mechanism for HTTP requests to Azure Storage Services. See: https://go.microsoft.com/fwlink/?linkid=2210396

procedure CreateSharedKey(SharedKey: SecretText): Interface "Storage Service Authorization"

Parameters

Name Type Description
SharedKey SecretText

The shared key to use.

Returns

Type Description
Interface System.Azure.Storage."Storage Service Authorization"

A Shared Key authorization.

CreateSharedKey

Creates a Shared Key authorization mechanism for HTTP requests to Azure Storage Services. See: https://go.microsoft.com/fwlink/?linkid=2210396

procedure CreateSharedKey(SharedKey: SecretText, ApiVersion: Enum "Storage Service API Version"): Interface "Storage Service Authorization"

Parameters

Name Type Description
SharedKey SecretText

The shared key to use.

ApiVersion Enum System.Azure.Storage."Storage Service API Version"

The API version to use.

Returns

Type Description
Interface System.Azure.Storage."Storage Service Authorization"

A Shared Key authorization.

UseReadySAS

Uses a pre-generated account SAS (Shared Access Signature) for authorizing HTTP request to Azure Storage Services. see: https://go.microsoft.com/fwlink/?linkid=2210398

[NonDebuggable]
procedure UseReadySAS(SASToken: SecretText): Interface "Storage Service Authorization"

Parameters

Name Type Description
SASToken SecretText

A pre-generated SAS token.

Returns

Type Description
Interface System.Azure.Storage."Storage Service Authorization"

An account SAS authorization.

GetDefaultAPIVersion

Get the default Storage Service API Version.

procedure GetDefaultAPIVersion(): Enum "Storage Service API Version"

Returns

Type Description
Enum System.Azure.Storage."Storage Service API Version"

The default Storage Service API Version

See also