获取账号工厂中注册账号详情。
调试
您可以在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. | 当前账号未进行企业实名认证,请您先完成企业实名认证。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。