次の方法で共有


IBlobContainersOperations.CreateOrUpdateImmutabilityPolicyWithHttpMessagesAsync メソッド

定義

ロック解除された不変ポリシーを作成または更新します。 If-Matchの ETag が指定されている場合は受け入れられますが、この操作には必要ありません。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Storage.Fluent.Models.ImmutabilityPolicyInner,Microsoft.Azure.Management.Storage.Fluent.Models.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders>> CreateOrUpdateImmutabilityPolicyWithHttpMessagesAsync (string resourceGroupName, string accountName, string containerName, int immutabilityPeriodSinceCreationInDays, string ifMatch = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateImmutabilityPolicyWithHttpMessagesAsync : string * string * string * int * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Storage.Fluent.Models.ImmutabilityPolicyInner, Microsoft.Azure.Management.Storage.Fluent.Models.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders>>
Public Function CreateOrUpdateImmutabilityPolicyWithHttpMessagesAsync (resourceGroupName As String, accountName As String, containerName As String, immutabilityPeriodSinceCreationInDays As Integer, Optional ifMatch As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ImmutabilityPolicyInner, BlobContainersCreateOrUpdateImmutabilityPolicyHeaders))

パラメーター

resourceGroupName
String

ユーザーのサブスクリプション内のリソース グループの名前。 名前の大文字と小文字は区別されます。

accountName
String

指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。

containerName
String

指定したストレージ アカウント内の BLOB コンテナーの名前。 BLOB コンテナー名の長さは 3 ~ 63 文字で、数字、小文字、ダッシュ (-) のみを使用する必要があります。 すべてのダッシュ (-) 文字は、その直前および直後に文字または数字が使用されている必要があります。

immutabilityPeriodSinceCreationInDays
Int32

ポリシーの作成以降のコンテナー内の BLOB の不変期間 (日数)。

ifMatch
String

更新する不変ポリシーのエンティティ状態 (ETag) バージョン。 不変ポリシーが既に存在する場合にのみ、値 "*" を使用して操作を適用できます。 省略すると、この操作は常に適用されます。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象