你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Marketplace Agreements - Sign

签署市场条款。

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/sign?api-version=2021-01-01

URI 参数

名称 必需 类型 说明
offerId
path True

string

正在部署的映像的套餐标识符字符串。

planId
path True

string

正在部署的映像的计划标识符字符串。

publisherId
path True

string

正在部署的映像的发布者标识符字符串。

subscriptionId
path True

string

用于标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

响应

名称 类型 说明
200 OK

OldAgreementTerms

没问题。 已成功处理请求并接受条款。

Other Status Codes

ErrorResponse

描述操作失败原因的 Microsoft.MarketplaceOrdering 错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

SetMarketplaceTerms

Sample Request

POST https://management.azure.com/subscriptions/subid/providers/Microsoft.MarketplaceOrdering/agreements/pubid/offers/offid/plans/planid/sign?api-version=2021-01-01

Sample Response

{
  "id": "id",
  "name": "planid",
  "type": "Microsoft.MarketplaceOrdering/agreements",
  "properties": {
    "publisher": "pubid",
    "offer": "offid",
    "signDate": "2021-08-15T11:33:07.12132Z",
    "state": "Active"
  }
}

定义

名称 说明
Error

错误的详细信息。

ErrorResponse

错误响应指示 Microsoft.MarketplaceOrdering 服务无法处理传入请求。 错误消息中提供了原因。

OldAgreementTerms

提供的发布服务器/套餐/计划元组的术语属性

state

协议是有效还是已取消

Error

错误的详细信息。

名称 类型 说明
code

string

错误代码。

message

string

指示操作失败原因的错误消息。

ErrorResponse

错误响应指示 Microsoft.MarketplaceOrdering 服务无法处理传入请求。 错误消息中提供了原因。

名称 类型 说明
error

Error

错误的详细信息。

OldAgreementTerms

提供的发布服务器/套餐/计划元组的术语属性

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.cancelDate

string

取消条款的 UTC 日期和时间。 如果状态处于活动状态,则为空。

properties.id

string

协议的唯一标识符。

properties.offer

string

正在部署的映像的套餐标识符字符串。

properties.publisher

string

正在部署的映像的发布者标识符字符串。

properties.signDate

string

接受条款的 UTC 日期和时间。 如果状态取消,则为空。

properties.state

state

协议是有效还是已取消

type

string

资源类型。

state

协议是有效还是已取消

名称 类型 说明
Active

string

Canceled

string