

AWS Marketplace API リファレンスが再構築されました。サポートされている API オペレーションの詳細については、[AWS Marketplace API リファレンス](https://docs.aws.amazon.com/marketplace/latest/APIReference/Welcome.html)を参照してください。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# AWS Marketplace Reporting API のアクセスコントロール
<a name="reporting-api-access-control"></a>

 AWS Marketplace Reporting API を使用して**、調達インサイト**ダッシュボードを取得します。API は [https://docs.aws.amazon.com/marketplace/latest/APIReference/API_marketplace-reporting_GetBuyerDashboard.html](https://docs.aws.amazon.com/marketplace/latest/APIReference/API_marketplace-reporting_GetBuyerDashboard.html)アクションをサポートします。

API を使用するには、まず`AWSServiceRoleForProcurementInsightsPolicy`サービスにリンクされたロールを作成する必要があります。ロールは以下を実行します。
+ が購入者の組織内のすべてのアカウントのデータにアクセスして記述 AWS Marketplace できるようにします。
+ **調達インサイト**ダッシュボードを取得します
+ 委任された管理者を登録および登録解除できます

購入者は、 AWS Marketplace コンソールを使用して**調達インサイト**ダッシュボードへの信頼されたアクセスを有効にするときにロールを作成します。このプロセスの詳細については、「 *AWS Marketplace 購入者ガイド*[」の「ダッシュボードのアクティブ化](https://docs.aws.amazon.com/marketplace/latest/buyerguide/enabling-procurement-insights.html#integrate-dashboard)」を参照してください。

**重要**  
API または CLI を使用する場合は、ダッシュボードへの信頼されたアクセスを有効にする前に、サービスにリンクされたロールを作成する必要があります。
サービスにリンクされたロールに加えて、組織のすべての機能を有効にし、管理者アカウントに属している必要があります。詳細については、*AWS 「 Organizations ユーザーガイド*」の以下のトピックを参照してください。  
 [AWS Organizations を使用して組織のすべての機能を有効にする](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html)
[チュートリアル: 組織の作成と設定](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tutorials_basic.html)
[を使用した管理アカウントの管理 AWS Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs-manage_accounts_management.html)

[https://docs.aws.amazon.com/marketplace/latest/APIReference/API_marketplace-reporting_GetBuyerDashboard.html](https://docs.aws.amazon.com/marketplace/latest/APIReference/API_marketplace-reporting_GetBuyerDashboard.html) アクションを呼び出し、委任された管理者を登録および登録解除するには、 に次の IAM アクセス許可`AWSServiceRoleForProcurementInsightsPolicy`が必要です。

------
#### [ 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 ユーザーガイド*の[AWS 「Identity and Access Management」の「ポリシーとアクセス許可](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html)」を参照してください。

ポリシーが使用する AWS Organizations アクションの詳細については、 [AWS Organizations API リファレンス](https://docs.aws.amazon.com/organizations/latest/APIReference/API_Operations.html)を参照してください。