升级资源

适用于:合作伙伴中心 | 由世纪互联运营的合作伙伴中心 | Microsoft Cloud for US Government 合作伙伴中心

描述用于将用户从源订阅升级到目标订阅的资源。

注意

本主题仅适用于传统的基于许可证的服务,不适用于新的商业体验。 有关新商业的详细信息,请参阅 新的商业体验概述

升级

描述单个升级资源的行为。

properties 类型​​ 描述
TargetOffer 产品/服务 目标订阅的产品/服务。
UpgradeType string 升级类型: upgrade_onlyupgrade_with_license_transfer
IsEligible boolean 标识是否可以执行升级。
数量 integer 要购买的新产品/服务的数量。 默认为源订阅数量。
UpgradeErrors UpgradeErrors 数组 无法执行升级的原因(如果适用)。
属性 ResourceAttributes 与升级对应的元数据属性。

UpgradeError

描述无法执行升级的原因。

properties 类型​​ 说明
代码 string 与问题关联的错误代码:其他、delegated_admin_permissions_disabled、subscription_status_not_active、conflicting_service_typesconcurrency_conflictsuser_context_required、subscription_add_ons_present、subscription_does_not_have_any_upgrade_pathssubscription_target_offer_not_foundsubscription_not_provisioned。
说明 string 描述错误的友好文本。
AdditionalDetails string 有关错误的详细信息。
特性 ResourceAttributes 与错误对应的元数据属性。

UpgradeResult

描述订阅升级过程的结果。

properties 类型​​ 描述
SourceSubscriptionId string 源订阅的标识符。
TargetSubscriptionID string 目标订阅的标识符。
UpgradeType string 升级类型: upgrade_onlyupgrade_with_license_transfer
UpgradeErrors UpgradeErrors 数组 尝试执行升级时遇到的错误(如果适用)。
LicenseErrors UserLicenseErrrors 数组 尝试迁移用户许可证时遇到的错误(如果适用)。
特性 ResourceAttributes 与许可证对应的元数据属性。

UserLicenseError

描述用户许可证转移失败导致的错误。

properties 类型​​ 描述
UserObjectId string 用户对象的唯一标识。
名称 string 用户的名称。
电子邮件 string 用户的电子邮件。
错误 ServiceFaults 数组 尝试执行用户许可证转移时引发的异常列表。
属性 ResourceAttributes 与许可证对应的元数据属性。