AWS Marketplace API 参考已重组。有关支持的 API 操作的更多信息,请参阅 AWS Marketplace API 参考。
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
的访问控制 AWS Marketplace 报告 API
您可以使用 AWS Marketplace 报告 API 来获取采购见解控制面板。API 支持该GetBuyerDashboard操作。
要使用 API,必须先创建AWSServiceRoleForProcurementInsightsPolicy服务相关角色。该角色执行以下操作:
买家在使用 AWS Marketplace 控制台启用对采购见解仪表板的可信访问权限时创建角色。有关该过程的更多信息,请参阅《AWS Marketplace 买家指南》中的激活控制面板。
AWSServiceRoleForProcurementInsightsPolicy必须具有以下 IAM 权限才能调用GetBuyerDashboard操作以及注册和取消注册委托管理员:
- JSON
-
-
{
"Version":"2012-10-17",
"Statement": [{
"Sid": "CreateServiceLinkedRoleForProcurementInsights",
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/procurement-insights.marketplace.amazonaws.com/AWSServiceRoleForProcurementInsights*",
"Condition": {
"StringLike": {
"iam:AWSServiceName": "procurement-insights.marketplace.amazonaws.com"
}
}
},
{
"Sid": "EnableAWSServiceAccessForProcurementInsights",
"Effect": "Allow",
"Action": [
"organizations:EnableAWSServiceAccess"
],
"Resource": "*",
"Condition": {
"StringLike": {
"organizations:ServicePrincipal": "procurement-insights.marketplace.amazonaws.com"
}
}
},
{
"Sid": "ManageDelegatedAdministrators",
"Effect": "Allow",
"Action": [
"organizations:ListDelegatedAdministrators",
"organizations:DeregisterDelegatedAdministrator",
"organizations:RegisterDelegatedAdministrator"
],
"Resource": "*",
"Condition": {
"StringLike": {
"organizations:ServicePrincipal": "procurement-insights.marketplace.amazonaws.com"
}
}
},
{
"Sid": "GetBuyerDashboardStatement",
"Effect": "Allow",
"Action": "aws-marketplace:GetBuyerDashboard",
"Resource": "*"
},
{
"Sid": "ViewOrganizationDetails",
"Effect": "Allow",
"Action": [
"organizations:DescribeOrganization",
"organizations:ListAWSServiceAccessForOrganization"
],
"Resource": "*"
}
]
}
有关创建策略的更多信息,请参阅 IAM 用户指南中的 Ident AWS ity and Access Management 中的策略和权限。
有关该策略使用的 AWS Organizations 操作的更多信息,请参阅 AWS Organizations API 参考。