次の方法で共有


BackupProtectedItemResource.SetTags メソッド

定義

リソースのタグを指定されたセットに置き換えます。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}
  • 操作IdProtectedItems_Get
public virtual Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemResource> SetTags (System.Collections.Generic.IDictionary<string,string> tags, System.Threading.CancellationToken cancellationToken = default);
abstract member SetTags : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemResource>
override this.SetTags : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemResource>
Public Overridable Function SetTags (tags As IDictionary(Of String, String), Optional cancellationToken As CancellationToken = Nothing) As Response(Of BackupProtectedItemResource)

パラメーター

tags
IDictionary<String,String>

置換として使用するタグのセット。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

tags が null です。

適用対象