Retrieves the list of managed accounts for multi-account governance.
Operation description
Call this operation by using the management account of the resource directory or the delegated administrator account of Security Center.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListAccountsInResourceDirectory |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. It is a unique identifier generated by Alibaba Cloud for the request. You can use it to troubleshoot issues. |
B7A839E8-70AE-591D-8D9E-C5419A2240DB |
| Accounts |
array<object> |
The list of member accounts in the resource directory. |
|
|
object |
The account details. |
||
| DisplayName |
string |
The account name. |
abc** |
| AccountId |
string |
The Alibaba Cloud account ID of the member. |
180803538814**** |
| FolderId |
string |
The ID of the folder in the resource directory. |
fd-cE2SQP**** |
| SasVersion |
string |
The purchased edition of Security Center. Valid values:
|
0 |
| IsMarked |
string |
Indicates whether the account is marked as followed. |
no |
| IsSiemDaAccount |
string |
Indicates whether the account is a delegated administrator account of Cloud Threat Detection and Response (CTDR). Valid values:
|
no |
| IsSasDaAccount |
string |
Indicates whether the account is a delegated administrator account of Security Center. Valid values:
|
no |
| IsMaAccount |
string |
Indicates whether the account is the management account of the resource directory. Valid values:
|
no |
| SaleInstance |
string |
The Security Center instance ID. |
postpay-sas-x5x3hy1ly*** |
| IsSiemControlAccount |
string |
Indicates whether the account is a management account of Cloud Threat Detection and Response (CTDR). Valid values:
|
no |
| ChargeType |
integer |
The subscription billing method. Valid values:
|
1 |
| InstanceBuyType |
integer |
The instance purchase type. Valid values:
|
0 |
BuySas
deprecated
|
integer |
This parameter is deprecated and does not need to be used. |
true |
| PostPayModuleSwitch |
string |
The status of pay-as-you-go module switches, in JsonString format. Valid values:
Valid values:
|
{\"VUL\":0} |
| BuySasNew |
boolean |
Indicates whether a Security Center subscription instance is purchased. Valid values:
|
true |
| PostBasicService |
integer |
The pay-as-you-go module switch. Valid values:
|
1 |
Examples
Success response
JSON format
{
"RequestId": "B7A839E8-70AE-591D-8D9E-C5419A2240DB",
"Accounts": [
{
"DisplayName": "abc**",
"AccountId": "180803538814****",
"FolderId": "fd-cE2SQP****",
"SasVersion": "0",
"IsMarked": "no",
"IsSiemDaAccount": "no\n",
"IsSasDaAccount": "no",
"IsMaAccount": "no",
"SaleInstance": "postpay-sas-x5x3hy1ly***",
"IsSiemControlAccount": "no",
"ChargeType": 1,
"InstanceBuyType": 0,
"BuySas": 0,
"PostPayModuleSwitch": "{\\\"VUL\\\":0}",
"BuySasNew": true,
"PostBasicService": 1
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.