次の方法で共有


ManagementPoliciesOperationsExtensions.CreateOrUpdateAsync メソッド

定義

managementpolicy を指定したストレージ アカウントに設定します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Fluent.Models.ManagementPolicyInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.Storage.Fluent.IManagementPoliciesOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Storage.Fluent.Models.ManagementPolicySchema policy, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Storage.Fluent.IManagementPoliciesOperations * string * string * Microsoft.Azure.Management.Storage.Fluent.Models.ManagementPolicySchema * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Fluent.Models.ManagementPolicyInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IManagementPoliciesOperations, resourceGroupName As String, accountName As String, policy As ManagementPolicySchema, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagementPolicyInner)

パラメーター

operations
IManagementPoliciesOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

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

accountName
String

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

policy
ManagementPolicySchema

JSON 形式のストレージ アカウント管理Policy。 詳細については、 を参照してください https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象