擷取帳號工廠中註冊帳號詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
governance:GetEnrolledAccount |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AccountUid |
integer |
是 |
帳號 ID。 |
19534534552**** |
| RegionId |
string |
否 |
地區 ID。 |
cn-hangzhou |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
註冊帳號資訊。 |
||
| AccountUid |
integer |
帳號 ID。 |
12868156179***** |
| BaselineId |
string |
當前應用的基準 ID。 |
afb-bp1adadfadsf*** |
| BaselineItems |
array<object> |
基準項配置數組。 |
|
|
object |
基準項配置。 |
||
| Config |
string |
基準項配置。 |
{\"Notifications\":[{\"GroupKey\":\"account_msg\",\"Contacts\":[{\"Name\":\"aa\"}],\"PmsgStatus\":1,\"EmailStatus\":1,\"SmsStatus\":1}]} |
| Name |
string |
基準項的名稱。 |
ACS-BP_ACCOUNT_FACTORY_VPC |
| Skip |
boolean |
是否跳過基準項。取值:
|
false |
| Version |
string |
基準項版本。 |
1.0 |
| CreateTime |
string |
建立時間。 |
2021-11-01T02:38:27Z |
| DisplayName |
string |
帳號顯示名稱。 |
test-account |
| ErrorInfo |
object |
錯誤資訊。 說明
當 |
|
| Code |
string |
錯誤碼。 |
EntityAlreadyExists.Role |
| Message |
string |
錯誤資訊。 |
The role already exists. |
| Recommend |
string |
處理建議。 |
https://next.api.aliyun.com/troubleshoot?q=EntityAlreadyExists.Role\u0026product=Ram |
| RequestId |
string |
請求 ID。 |
6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E |
| FolderId |
string |
父資源夾 ID。 |
fd-5ESoku**** |
| Initialized |
boolean |
是否初始化完成。取值:
|
true |
| Inputs |
object |
註冊帳號時的輸入參數。 |
|
| AccountNamePrefix |
string |
帳號名稱首碼。 |
test-account |
| AccountUid |
integer |
帳號 ID。 |
12868156179***** |
| BaselineItems |
array<object> |
基準項列表。 |
|
|
object |
基準項列表。 |
||
| Config |
string |
基準項配置。 |
{\"Contacts\":[{\"Name\":\"governance\",\"Email\":\"wibud5210+10@gmail.com\",\"Mobile\":\"1234\",\"Position\":\"Other\"}]} |
| Name |
string |
基準項名稱。 |
ACS-BP_ACCOUNT_FACTORY_VPC |
| Skip |
boolean |
是否跳過基準項。取值:
|
false |
| Version |
string |
基準項版本。 |
1.0 |
| DisplayName |
string |
帳號顯示名稱。 |
test-account |
| FolderId |
string |
父資源夾 ID。 |
fd-5ESoku**** |
| PayerAccountUid |
integer |
結算帳號 ID。 |
19534534552***** |
| Tag |
array<object> |
標籤。 |
|
|
object |
標籤。 |
||
| Key |
string |
標籤鍵。 |
product |
| Value |
string |
標籤值。 |
governance |
| MasterAccountUid |
integer |
所屬的資來源目錄管理帳號 ID。 |
19534534552***** |
| PayerAccountUid |
integer |
結算帳號 ID。 |
19534534552***** |
| Progress |
array<object> |
基準實施進度。 |
|
|
object |
實施進度。 |
||
| Name |
string |
基準項名稱。 |
ACS-BP_ACCOUNT_FACTORY_VPC |
| Status |
string |
基準項實施狀態。取值:
|
Running |
| RequestId |
string |
請求 ID。 |
768F908D-A66A-5A5D-816C-20C93CBBFEE3 |
| Status |
string |
帳號註冊狀態。取值:
|
Finished |
| UpdateTime |
string |
更新時間。 |
2021-11-01T02:38:27Z |
樣本
正常返回樣本
JSON格式
{
"AccountUid": 0,
"BaselineId": "afb-bp1adadfadsf***",
"BaselineItems": [
{
"Config": "{\\\"Notifications\\\":[{\\\"GroupKey\\\":\\\"account_msg\\\",\\\"Contacts\\\":[{\\\"Name\\\":\\\"aa\\\"}],\\\"PmsgStatus\\\":1,\\\"EmailStatus\\\":1,\\\"SmsStatus\\\":1}]}",
"Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
"Skip": false,
"Version": "1.0"
}
],
"CreateTime": "2021-11-01T02:38:27Z",
"DisplayName": "test-account",
"ErrorInfo": {
"Code": "EntityAlreadyExists.Role",
"Message": "The role already exists.",
"Recommend": "https://next.api.aliyun.com/troubleshoot?q=EntityAlreadyExists.Role\\u0026product=Ram",
"RequestId": "6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E"
},
"FolderId": "fd-5ESoku****",
"Initialized": true,
"Inputs": {
"AccountNamePrefix": "test-account",
"AccountUid": 0,
"BaselineItems": [
{
"Config": "{\\\"Contacts\\\":[{\\\"Name\\\":\\\"governance\\\",\\\"Email\\\":\\\"wibud5210+10@gmail.com\\\",\\\"Mobile\\\":\\\"1234\\\",\\\"Position\\\":\\\"Other\\\"}]}",
"Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
"Skip": false,
"Version": "1.0"
}
],
"DisplayName": "test-account",
"FolderId": "fd-5ESoku****",
"PayerAccountUid": 0,
"Tag": [
{
"Key": "product",
"Value": "governance"
}
]
},
"MasterAccountUid": 0,
"PayerAccountUid": 0,
"Progress": [
{
"Name": "ACS-BP_ACCOUNT_FACTORY_VPC",
"Status": "Running"
}
],
"RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3",
"Status": "Finished",
"UpdateTime": "2021-11-01T02:38:27Z"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter %s is not valid. | 您的請求中存在參數缺失或者參數無效。 |
| 500 | InternalError | A system error occurred. | 系統錯誤。 |
| 404 | InvalidUser.NotFound | The specified user does not exist. | 使用者不存在。 |
| 404 | InvalidBlueprint.NotFound | The specified blueprint does not exist. | 藍圖執行個體不存在。 |
| 404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. | 當前帳號未進行企業實名認證,請您先完成企業實名認證。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。