Azure spending - Create a product upgrade entity for a customer
创建产品升级实体,将客户从旧版 Azure 订阅升级到 Azure 计划。
POST https://api.partnercenter.microsoft.com/v{version}/productUpgrades
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
version
|
path | True |
string |
请求头
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
ms-cv |
string |
用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
请求正文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 类型 | 说明 |
---|---|---|
customerId |
string |
|
productFamily |
string |
响应
名称 | 类型 | 说明 |
---|---|---|
202 Accepted |
Microsoft. |
请求成功。 响应正文包含位置标头,其中包含用于升级信息的链接。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
400 Bad Request |
输入缺失或无效。 响应正文将提供错误详细信息。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
请求未通过身份验证。 客户端需要首先通过合作伙伴 API 服务进行身份验证。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
请求已经过身份验证,但被拒绝,因为调用方无权调用该请求。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
找不到资源或未与给定输入参数一起使用。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
合作伙伴 API 服务或其某个依赖项未能满足请求。 调用方可能会重试此操作。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定义
Microsoft.Partner.Services.Transfers.V2.Models.ErrorDetails
名称 | 类型 | 说明 |
---|---|---|
code |
string |
|
message |
string |
Microsoft.Partner.Services.Transfers.V2.Models.ProductUpgradesRequest
名称 | 类型 | 说明 |
---|---|---|
customerId |
string |
|
productFamily |
string |
Microsoft.Partner.Services.Transfers.V2.Models.ProductUpgradesStatus
名称 | 类型 | 说明 |
---|---|---|
errorDetails | ||
id |
string |
|
lineItems |
Microsoft. |
|
productFamily |
string |
|
status |
string |
Microsoft.Partner.Services.Transfers.V2.Models.UpgradeProduct
名称 | 类型 | 说明 |
---|---|---|
id |
string |
|
name |
string |
Microsoft.Partner.Services.Transfers.V2.Models.UpgradesLineItem
名称 | 类型 | 说明 |
---|---|---|
errorDetails | ||
sourceProduct |
Microsoft. |
|
status |
string |
|
targetProduct |
Microsoft. |
|
upgradedDate |
string |