{"id":23096,"date":"2022-12-12T16:13:27","date_gmt":"2022-12-12T07:13:27","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=23096"},"modified":"2022-12-12T16:13:27","modified_gmt":"2022-12-12T07:13:27","slug":"aws-organizations-%e5%88%a9%e7%94%a8%e7%92%b0%e5%a2%83%e3%81%a7-account-management-api-%e3%82%92%e4%bd%bf%e3%81%86%e9%9a%9b%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/aws-organizations-%e5%88%a9%e7%94%a8%e7%92%b0%e5%a2%83%e3%81%a7-account-management-api-%e3%82%92%e4%bd%bf%e3%81%86%e9%9a%9b%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9\/","title":{"rendered":"AWS Organizations \u5229\u7528\u74b0\u5883\u3067 Account Management API \u3092\u4f7f\u3046\u969b\u306e\u6ce8\u610f\u70b9"},"content":{"rendered":"<h3>GetContactInformation \/ GetAlternateContact API \u306b\u3064\u3044\u3066<\/h3>\n<p>AWS Account Management \u306b\u306f <a href=\"https:\/\/docs.aws.amazon.com\/accounts\/latest\/reference\/API_GetContactInformation.html\" target=\"_blank\" rel=\"noopener\">GetContactInformation<\/a> \u3068\u3044\u3046 API \u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3092\u5229\u7528\u3057\u3066 AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u767b\u9332\u3055\u308c\u305f\u9023\u7d61\u5148\u60c5\u5831(\u96fb\u8a71\u756a\u53f7\u30fb\u4f4f\u6240\u306a\u3069)\u304c\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001Orgazniation \u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\u304b\u3089\u30e1\u30f3\u30d0\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>$ aws account get-contact-information --account-id 111122223333\n{\n    \"ContactInformation\": {\n        \"AddressLine1\": \"[\u4f4f\u6240]\",\n        \"City\": \"[\u5e02\u753a\u6751]\",\n        \"CompanyName\": \"[\u4f1a\u793e\u540d]\",\n        \"CountryCode\": \"JP\",\n        \"FullName\": \"[\u540d\u524d]\",\n        \"PhoneNumber\": \"[\u96fb\u8a71\u756a\u53f7]\",\n        \"PostalCode\": \"[\u90f5\u4fbf\u756a\u53f7]\",\n        \"StateOrRegion\": \"Tokyo\"\n    }\n}\n<\/pre>\n<p>\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u9805\u76ee\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h43_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23099\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h43_02.png\" alt=\"\" width=\"772\" height=\"539\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h43_02.png 772w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h43_02-300x209.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h43_02-768x536.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h43_02-728x508.png 728w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/a>\n<p>\u307e\u305f <a href=\"https:\/\/docs.aws.amazon.com\/accounts\/latest\/reference\/API_GetAlternateContact.html\" target=\"_blank\" rel=\"noopener\">GetAlternateContact<\/a> \u3068\u3044\u3046 API \u3067\u306f\u300c\u4ee3\u66ff\u306e\u9023\u7d61\u5148\u300d\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3082 Orgazniation \u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\u304b\u3089\u30e1\u30f3\u30d0\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>$ aws account get-alternate-contact --alternate-contact-type BILLING --account-id 111122223333\n{\n    \"AlternateContact\": {\n        \"AlternateContactType\": \"BILLING\",\n        \"EmailAddress\": \"[\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9]\",\n        \"Name\": \"[\u540d\u524d]\",\n        \"PhoneNumber\": \"[\u96fb\u8a71\u756a\u53f7]\",\n        \"Title\": \"[\u5f79\u8077]\"\n    }\n}\n<\/pre>\n<p>\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u9805\u76ee\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h44_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23100\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h44_02.png\" alt=\"\" width=\"1022\" height=\"484\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h44_02.png 1022w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h44_02-300x142.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h44_02-768x364.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/2022-12-12_15h44_02-728x345.png 728w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/a>\n<h3>\u30a8\u30e9\u30fc<\/h3>\n<p>\u3053\u308c\u3089\u306e API \u3092\u5b9f\u884c\u3057\u305f\u6642\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>$ aws account get-contact-information --account-id 444455556666\n\nAn error occurred (AccessDeniedException) when calling the GetContactInformation operation: User: xxxxxxxx is not authorized to perform: account:GetContactInformation (The management account can only be managed using the standalone context from the management account.)\n\n$ aws account get-alternate-contact --alternate-contact-type BILLING --account-id 444455556666\n\nAn error occurred (AccessDeniedException) when calling the GetAlternateContact operation: User: xxxxxxxx is not authorized to perform: account:GetAlternateContact (The management account can only be managed using the standalone context from the management account.)\n<\/pre>\n<h3>\u89e3\u6c7a\u65b9\u6cd5<\/h3>\n<p>AccountId \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u7701\u7565\u3059\u308b\u3068\u60c5\u5831\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre>$ aws account get-contact-information\n{\n    \"ContactInformation\": {\n        \"AddressLine1\": \"[\u4f4f\u6240]\",\n        \"City\": \"[\u5e02\u753a\u6751]\",\n        \"CompanyName\": \"[\u4f1a\u793e\u540d]\",\n        \"CountryCode\": \"JP\",\n        \"FullName\": \"[\u540d\u524d]\",\n        \"PhoneNumber\": \"[\u96fb\u8a71\u756a\u53f7]\",\n        \"PostalCode\": \"[\u90f5\u4fbf\u756a\u53f7]\",\n        \"StateOrRegion\": \"Tokyo\"\n    }\n}\n\n$ aws account get-alternate-contact --alternate-contact-type BILLING\n{\n    \"AlternateContact\": {\n        \"AlternateContactType\": \"BILLING\",\n        \"EmailAddress\": \"[\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9]\",\n        \"Name\": \"[\u540d\u524d]\",\n        \"PhoneNumber\": \"[\u96fb\u8a71\u756a\u53f7]\",\n        \"Title\": \"[\u5f79\u8077]\"\n    }\n}\n<\/pre>\n<p>\u5148\u307b\u3069\u306e\u30a8\u30e9\u30fc\u306f\u3001Organization \u306e\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\u304b\u3089<br \/>\n\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8(\u3064\u307e\u308a\u81ea\u5206\u81ea\u8eab)\u306e\u9023\u7d61\u5148\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3057\u3066\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n<strong>Organization \u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306f AccountId \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u7701\u7565\u3057\u307e\u3057\u3087\u3046\u3002<\/strong><\/p>\n<h3>\u88dc\u8db3<\/h3>\n<p>Organization \u306b\u6240\u5c5e\u3059\u308b\u5168AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u9023\u7d61\u5148\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3080\u5834\u5408\u306a\u3069\u306b<br \/>\n\u906d\u9047\u3057\u3084\u3059\u3044\u30a8\u30e9\u30fc\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/accounts\/latest\/reference\/API_GetContactInformation.html\" target=\"_blank\" rel=\"noopener\">GetContactInformation<\/a> API \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u3088\u304f\u898b\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3055\u308c\u3066\u304a\u308a\u3001AccountId \u3092\u5916\u305b\u3070\u3044\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<br \/>\n(<a href=\"https:\/\/docs.aws.amazon.com\/accounts\/latest\/reference\/API_GetAlternateContact.html\" target=\"_blank\" rel=\"noopener\">GetAlternateContact<\/a> \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u3082\u540c\u69d8\u306e\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059)<\/p>\n<blockquote><p>The management account can't specify its own AccountId. It must call the operation in standalone context by not including the AccountId parameter.<\/p><\/blockquote>\n<p>\u540c\u3058\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u65b9\u306e\u529b\u306b\u306a\u308c\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GetContactInformation \/ GetAlternateContact API \u306b\u3064\u3044\u3066 AWS Account Management \u306b\u306f GetContactInformation \u3068\u3044\u3046 API \u304c&#8230;<\/p>\n","protected":false},"author":60,"featured_media":23103,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=23096","footnotes":""},"categories":[20],"tags":[102,432],"class_list":{"0":"post-23096","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"tag-aws","9":"tag-aws-organizations","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=23096"}],"version-history":[{"count":10,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23096\/revisions"}],"predecessor-version":[{"id":23117,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23096\/revisions\/23117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/23103"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=23096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=23096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=23096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}