CmdID / aws / aws organizations
aws organizations list-roots
Lists the roots that are defined in the current organization. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To retrieve a list of the roots in an organization
The following list-roots example gets the list of roots for an organization.
aws organizations list-rootsIdentifyThe output includes a list of root structures with summary information.
Its output
{
"Roots": [
{
"Name": "Root",
"Arn": "arn:aws:organizations::123456789012:root/o-exampleorgid/r-examplerootid111",
"Id": "r-examplerootid111",
"PolicyTypes": [
{
"Status": "ENABLED",
"Type": "SERVICE_CONTROL_POLICY"
}
]
}
]
}For more information, see Terminology and concepts for AWS Organizations in the AWS Organizations User Guide.
Options
--max-resultsThe maximum number of items to return in the response.--next-tokenThe parameter for receiving additional results if you receive a NextToken response in a previous request.