Updated on 2025-07-11 GMT+08:00

Listing Enrolled Core Accounts

Function

This API is used to list all enrolled core accounts in an organization.

URI

GET https://{endpoint}/v1/managed-organization/managed-core-accounts

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

account_type

Yes

String

Type of an enrolled account. It can be LOGGING, SECURITY, or PRIMARY.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

account_id

String

ID of an enrolled account.

account_name

String

Name of an enrolled account.

core_resource_mappings

Map<String,String>

Mappings of core resources to fields.

Status code: 403

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

request_id

String

Unique ID of the request.

encoded_authorization_message

String

Encrypted error message.

details

Array of ForbiddenErrorDetail objects

Error message indicating no permissions for cross-service invoking.

Table 4 ForbiddenErrorDetail

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Listing all enrolled core accounts in an organization

GET https://{endpoint}/v1/managed-organization/managed-core-account

Example Responses

Status code: 200

Request succeeded.

{
  "account_id" : "string",
  "account_name" : "string",
  "core_resource_mappings" : {
    "stack_set_urn" : "string",
    "cross_account_admin_agency" : "string",
    "cross_account_read_only_agency" : "string",
    "notify_email" : "string"
  }
}

Status Codes

Status Code

Description

200

Request succeeded.

403

No permissions.

Error Codes

See Error Codes.