检索产品/服务状态

注意

云合作伙伴门户 API 与合作伙伴中心集成,并将继续在合作伙伴中心工作。 转换引入了细微的更改。 查看 云合作伙伴门户 API 参考 中列出的更改,以确保代码在过渡到合作伙伴中心后继续工作。 CPP API 仅适用于在过渡到合作伙伴中心之前已集成的现有产品;新产品应使用合作伙伴中心提交 API。

检索产品/服务的当前状态。

GET https://cloudpartner.azure.com/api/publishers/<publisherId>/offers/<offerId>/status?api-version=2017-10-31

URI 参数

名称 说明 数据类型
publisherId 发布者标识符,例如 Contoso 字符串
offerId 唯一标识套餐的 GUID 字符串
api-version 最新版本的 API 日期
名字 价值
Content-Type application/json
授权 Bearer YOUR_TOKEN

正文示例

响应

  {
      "status": "succeeded",
      "messages": [],
      "steps": [
      {
          "estimatedTimeFrame": "< 15 min",
          "id": "displaydummycertify",
          "stepName": "Validate Pre-Requisites",
          "description": "Offer settings provided are validated.",
          "status": "complete",
          "messages": [
              {
                  "messageHtml": "Step completed.",
                  "level": "information",
                  "timestamp": "2018-03-16T17:50:45.7215661Z"
              }
          ],       
          "progressPercentage": 100
      },
      {
          "estimatedTimeFrame": "~2-3 days",
          "id": "displaycertify",
          "stepName": "Certification",
          "description": "Your offer is analyzed by our certification systems for issues.",
          "status": "notStarted",
          "messages": [],
          "progressPercentage": 0
      },
      {
          "estimatedTimeFrame": "< 1 day",
          "id": "displayprovision",
          "stepName": "Provisioning",
          "description": "Your virtual machine is being replicated in our production systems.",
          "status": "notStarted",
          "messages": [],
          "progressPercentage": 0
      },
      {
          "estimatedTimeFrame": "< 1 hour",
          "id": "displaypackage",
          "stepName": "Packaging and Lead Generation Registration",
          "description": "Your virtual machine is being packaged for customers. Additionally, lead systems are being configured and set up.",
          "status": "notStarted",
          "messages": [],
          "progressPercentage": 0
      },
      {
          "estimatedTimeFrame": "< 1 hour",
          "id": "publisher-signoff",
          "stepName": "Publisher signoff",
          "description": "Offer is available to preview. Ensure that everything looks good before making your offer live.",
          "status": "complete",
          "messages": [],
          "progressPercentage": 0
      },
      {
          "estimatedTimeFrame": "~2-5 days",
          "id": "live",
          "stepName": "Live",
          "description": "Offer is publicly visible and is available for purchase.",
          "status": "complete",
          "messages": [],
          "progressPercentage": 0
      }
      ],
      "previewLinks": [],
      liveLinks": [],
  }

响应正文属性

名称 说明
地位 产品/服务的状态。 有关可能值的列表,请参阅下面的 产品/服务状态
消息 与产品/服务关联的消息数组
步骤 产品/服务发布期间经历的步骤数组
estimatedTimeFrame 以友好格式完成此步骤所需的时间估计
id 步骤的标识符
stepName 步骤的名称
描述 步骤说明
地位 步骤的状态。 有关可能值的列表,请参阅下面的 步骤状态
消息 与步骤相关的消息数组
processPercentage 步骤完成百分比
previewLinks 当前未实现
liveLinks 当前未实现
notificationEmails 对于迁移到合作伙伴中心的产品/服务,已弃用。 已迁移产品/服务的通知电子邮件将发送到“帐户”设置中卖家联系信息下指定的电子邮件。

对于未迁移的产品/服务,请以逗号分隔的电子邮件地址列表,以通知作进度

响应状态代码

Code 说明
200 OK - 已成功处理请求,并返回产品/服务的当前状态。
400 Bad/Malformed request - 错误响应正文可能包含更多信息。
404 Not found - 指定的实体不存在。

产品/服务状态

名称 说明
NeverPublished 产品/服务从未发布过。
NotStarted 产品/服务是新的,不是启动的。
WaitingForPublisherReview 产品/服务正在等待发布者批准。
运行 正在处理产品/服务提交。
成功 产品/服务提交已完成处理。
取消 产品/服务提交已取消。
失败 产品/服务提交失败。

步骤状态

名称 说明
NotStarted 步骤尚未启动。
InProgress 步骤正在运行。
WaitingForPublisherReview 步骤正在等待发布者批准。
WaitingForApproval 步骤正在等待进程审批。
封锁 步骤被阻止。
拒绝 步骤被拒绝。
完成 步骤已完成。
取消 步骤已取消。