你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Marketplace Agreements - Get
获取市场术语。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current?api-version=2021-01-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
offer
|
path | True |
string |
正在部署的映像的套餐标识符字符串。 |
offer
|
path | True |
产品/服务类型,目前仅支持虚拟机类型。 |
|
plan
|
path | True |
string |
正在部署的映像的计划标识符字符串。 |
publisher
|
path | True |
string |
正在部署的映像的发布者标识符字符串。 |
subscription
|
path | True |
string |
用于标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功返回的术语 |
|
Other Status Codes |
描述操作失败原因的 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 | 模拟用户帐户 |
示例
GetMarketplaceTerms
Sample Request
Sample Response
{
"id": "id",
"name": "planid",
"type": "Microsoft.MarketplaceOrdering/offertypes",
"properties": {
"publisher": "pubid",
"product": "offid",
"plan": "planid",
"licenseTextLink": "test.licenseLink",
"privacyPolicyLink": "test.privacyPolicyLink",
"marketplaceTermsLink": "test.marketplaceTermsLink",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
}
}
定义
名称 | 说明 |
---|---|
Agreement |
提供的发布服务器/套餐/计划元组的术语属性 |
created |
创建资源的标识类型。 |
Error |
错误的详细信息。 |
Error |
错误响应指示 Microsoft.MarketplaceOrdering 服务无法处理传入请求。 错误消息中提供了原因。 |
Offer |
产品/服务类型,目前仅支持虚拟机类型。 |
system |
与资源的创建和上次修改相关的元数据。 |
AgreementTerms
提供的发布服务器/套餐/计划元组的术语属性
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.accepted |
boolean |
如果已接受任何版本的条款,则为 false。 |
properties.licenseTextLink |
string |
使用 Microsoft 和发布者术语链接到 HTML。 |
properties.marketplaceTermsLink |
string |
包含Azure 市场术语的 HTML 链接。 |
properties.plan |
string |
正在部署的映像的计划标识符字符串。 |
properties.privacyPolicyLink |
string |
指向发布者的隐私策略的链接。 |
properties.product |
string |
正在部署的映像的套餐标识符字符串。 |
properties.publisher |
string |
正在部署的映像的发布者标识符字符串。 |
properties.retrieveDatetime |
string |
接受条款的 UTC 日期和时间。 如果 Accepted 为 false,则为空。 |
properties.signature |
string |
术语签名。 |
systemData |
与此资源相关的系统元数据。 |
|
type |
string |
资源类型。 |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
Error
错误的详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示操作失败原因的错误消息。 |
ErrorResponse
错误响应指示 Microsoft.MarketplaceOrdering 服务无法处理传入请求。 错误消息中提供了原因。
名称 | 类型 | 说明 |
---|---|---|
error |
错误的详细信息。 |
OfferType
产品/服务类型,目前仅支持虚拟机类型。
名称 | 类型 | 说明 |
---|---|---|
virtualmachine |
string |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源的创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |