次の方法で共有


ProtectedItemsOperationsExtensions.CreateOrUpdateAsync メソッド

定義

項目のバックアップを有効にするか、または既にバックアップされている項目のバックアップ ポリシー情報を変更します。 これは非同期操作です。 操作の状態を確認するには、GetItemOperationResult API を呼び出します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectedItemsOperations operations, string vaultName, string resourceGroupName, string fabricName, string containerName, string protectedItemName, Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectedItemsOperations * string * string * string * string * string * Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IProtectedItemsOperations, vaultName As String, resourceGroupName As String, fabricName As String, containerName As String, protectedItemName As String, parameters As ProtectedItemResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ProtectedItemResource)

パラメーター

operations
IProtectedItemsOperations

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

vaultName
String

Recovery Services コンテナーの名前。

resourceGroupName
String

Recovery Services コンテナーが存在するリソース グループの名前。

fabricName
String

バックアップ項目に関連付けられているファブリック名。

containerName
String

バックアップ項目に関連付けられているコンテナー名。

protectedItemName
String

バックアップするアイテム名。

parameters
ProtectedItemResource

リソースのバックアップ項目

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象