CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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-rootsIdentify

The 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

2 in the AWS CLI reference
--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.