Partager via


SasPolicy Class

Definition

SasPolicy assigned to the storage account.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SasPolicyTypeConverter))]
public class SasPolicy : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ISasPolicy
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SasPolicyTypeConverter))>]
type SasPolicy = class
    interface ISasPolicy
    interface IJsonSerializable
Public Class SasPolicy
Implements ISasPolicy
Inheritance
SasPolicy
Attributes
Implements

Constructors

Name Description
SasPolicy()

Creates an new SasPolicy instance.

Properties

Name Description
ExpirationAction

The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.

SasExpirationPeriod

The SAS expiration period, DD.HH:MM:SS.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SasPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SasPolicy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ISasPolicy.

FromJsonString(String)

Creates a new instance of SasPolicy, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SasPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to