Skip to main content

list-aws-organizations

dci list-aws-organizations [flags]

Returns all AWS Organizations accessible to the authenticated tenant. Each item includes metadata, trailing 30-day aggregate statistics, precomputed YTD/lifetime savings totals per SP type so customer-level savings can be aggregated client-side by summing across organizations, and estimated monthly potential savings (monthlyPotentialSavings) per SP type from the latest projection.

Flags

--page-token: (string)

--max-results: (integer default:50)

Output

List of AWS Organizations.

By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.

FieldTypeDescription
itemsarray of object
items[].managementAccountIdstring12-digit account number of the organization's management (payer) account.
items[].displayNamestringHuman-readable account alias, if available.
items[].onboardingStatusobjectPer-product-line PS4C onboarding state for this organization.
items[].onboardingStatus.computeobjectPer-product-line PS4C onboarding state.
items[].onboardingStatus.compute.statusstringCurrent onboarding lifecycle stage for this product line. One of: "not_started", "onboarding", "done", "error".
items[].onboardingStatus.compute.onboardingStartedAtstring (date-time)When PS4C first began tracking commitments for this product line. Used to bound lifetime savings totals and to render onboarding history in the DoiT Console.
items[].onboardingStatus.databaseobjectPer-product-line PS4C onboarding state.
items[].onboardingStatus.database.statusstringCurrent onboarding lifecycle stage for this product line. One of: "not_started", "onboarding", "done", "error".
items[].onboardingStatus.database.onboardingStartedAtstring (date-time)When PS4C first began tracking commitments for this product line. Used to bound lifetime savings totals and to render onboarding history in the DoiT Console.
items[].savingsPlansSyncTimestring (date-time)Timestamp of the last successful Savings Plan inventory sync.
items[].stats30dobjectTrailing 30-day aggregate metrics, broken down by SP type.
items[].stats30d.computeobjectMinimal 30-day aggregate. Only esr and savings are persisted at this granularity. Responses are denominated in USD. Used by both AWS organization/member-account and GCP billing-account list items.
items[].stats30d.compute.esrnumber (double)Effective Savings Rate over the last 30 days (0–1).
items[].stats30d.compute.savingsobjectRealized savings amount over the last 30 days. Nested fields omitted — see the raw JSON schema.
items[].stats30d.databaseobjectMinimal 30-day aggregate. Only esr and savings are persisted at this granularity. Responses are denominated in USD. Used by both AWS organization/member-account and GCP billing-account list items.
items[].stats30d.database.esrnumber (double)Effective Savings Rate over the last 30 days (0–1).
items[].stats30d.database.savingsobjectRealized savings amount over the last 30 days. Nested fields omitted — see the raw JSON schema.
items[].savingsTotalsobjectYear-to-date and lifetime savings per SP type. Same figures the detail endpoint returns — surfaced on the list item so callers can compute customer-level totals (sum across organizations) without an extra round-trip per organization. Lifetime is bounded by each organization's PS4C onboarding start.
items[].savingsTotals.computeobjectRunning savings figures derived server-side from the full monthly stats history (onDemandCost - costWithSavings per month, optionally bounded by onboarding start date and start of year).
items[].savingsTotals.compute.ytdobjectYear-to-date realized savings. Nested fields omitted — see the raw JSON schema.
items[].savingsTotals.compute.lifetimeobjectLifetime realized savings since onboarding. Nested fields omitted — see the raw JSON schema.
items[].savingsTotals.databaseobjectRunning savings figures derived server-side from the full monthly stats history (onDemandCost - costWithSavings per month, optionally bounded by onboarding start date and start of year).
items[].savingsTotals.database.ytdobjectYear-to-date realized savings. Nested fields omitted — see the raw JSON schema.
items[].savingsTotals.database.lifetimeobjectLifetime realized savings since onboarding. Nested fields omitted — see the raw JSON schema.
items[].monthlyPotentialSavingsobjectEstimated monthly additional savings per SP type for this organization.
items[].monthlyPotentialSavings.computeobject
items[].monthlyPotentialSavings.compute.amountstringDecimal monetary amount at ISO 4217 minor-unit precision (string).
items[].monthlyPotentialSavings.compute.currencystringISO 4217 currency code.
items[].monthlyPotentialSavings.databaseobject
items[].monthlyPotentialSavings.database.amountstringDecimal monetary amount at ISO 4217 minor-unit precision (string).
items[].monthlyPotentialSavings.database.currencystringISO 4217 currency code.
pageTokenstring
rowCountinteger (int64)Best-effort count for the filtered result set. May be null or omitted for expensive counts.
Raw JSON schema
{
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"managementAccountId"
],
"properties": {
"managementAccountId": {
"type": "string",
"description": "12-digit account number of the organization's management (payer) account.",
"example": "123456789012"
},
"displayName": {
"type": "string",
"description": "Human-readable account alias, if available.",
"nullable": true,
"example": "Acme Prod"
},
"onboardingStatus": {
"allOf": [
{
"type": "object",
"description": "PS4C onboarding state grouped by product line. A product line is omitted when it\nis not onboarded at all.\n",
"properties": {
"compute": {
"type": "object",
"required": [
"status"
],
"description": "Per-product-line PS4C onboarding state.",
"properties": {
"status": {
"type": "string",
"description": "Current onboarding lifecycle stage for this product line.",
"enum": [
"not_started",
"onboarding",
"done",
"error"
]
},
"onboardingStartedAt": {
"type": "string",
"format": "date-time",
"description": "When PS4C first began tracking commitments for this product line. Used to bound\nlifetime savings totals and to render onboarding history in the DoiT Console.\n",
"nullable": true
}
}
},
"database": {
"type": "object",
"required": [
"status"
],
"description": "Per-product-line PS4C onboarding state.",
"properties": {
"status": {
"type": "string",
"description": "Current onboarding lifecycle stage for this product line.",
"enum": [
"not_started",
"onboarding",
"done",
"error"
]
},
"onboardingStartedAt": {
"type": "string",
"format": "date-time",
"description": "When PS4C first began tracking commitments for this product line. Used to bound\nlifetime savings totals and to render onboarding history in the DoiT Console.\n",
"nullable": true
}
}
}
}
}
],
"description": "Per-product-line PS4C onboarding state for this organization."
},
"savingsPlansSyncTime": {
"type": "string",
"format": "date-time",
"description": "Timestamp of the last successful Savings Plan inventory sync.",
"nullable": true
},
"stats30d": {
"type": "object",
"description": "Trailing 30-day aggregate metrics, broken down by SP type.",
"properties": {
"compute": {
"type": "object",
"description": "Minimal 30-day aggregate. Only `esr` and `savings` are persisted at this granularity.\nResponses are denominated in USD. Used by both AWS organization/member-account and GCP\nbilling-account list items.\n",
"properties": {
"esr": {
"type": "number",
"format": "double",
"description": "Effective Savings Rate over the last 30 days (0–1).",
"nullable": true,
"example": 0.187
},
"savings": {
"allOf": [
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
],
"description": "Realized savings amount over the last 30 days."
}
}
},
"database": {
"type": "object",
"description": "Minimal 30-day aggregate. Only `esr` and `savings` are persisted at this granularity.\nResponses are denominated in USD. Used by both AWS organization/member-account and GCP\nbilling-account list items.\n",
"properties": {
"esr": {
"type": "number",
"format": "double",
"description": "Effective Savings Rate over the last 30 days (0–1).",
"nullable": true,
"example": 0.187
},
"savings": {
"allOf": [
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
],
"description": "Realized savings amount over the last 30 days."
}
}
}
}
},
"savingsTotals": {
"type": "object",
"description": "Year-to-date and lifetime savings per SP type. Same figures the detail\nendpoint returns — surfaced on the list item so callers can compute\ncustomer-level totals (sum across organizations) without an extra\nround-trip per organization. Lifetime is bounded by each organization's PS4C\nonboarding start.\n",
"properties": {
"compute": {
"type": "object",
"required": [
"ytd",
"lifetime"
],
"description": "Running savings figures derived server-side from the full monthly stats history\n(`onDemandCost - costWithSavings` per month, optionally bounded by onboarding\nstart date and start of year).\n",
"properties": {
"ytd": {
"allOf": [
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
],
"description": "Year-to-date realized savings."
},
"lifetime": {
"allOf": [
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
],
"description": "Lifetime realized savings since onboarding."
}
}
},
"database": {
"type": "object",
"required": [
"ytd",
"lifetime"
],
"description": "Running savings figures derived server-side from the full monthly stats history\n(`onDemandCost - costWithSavings` per month, optionally bounded by onboarding\nstart date and start of year).\n",
"properties": {
"ytd": {
"allOf": [
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
],
"description": "Year-to-date realized savings."
},
"lifetime": {
"allOf": [
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
],
"description": "Lifetime realized savings since onboarding."
}
}
}
}
},
"monthlyPotentialSavings": {
"allOf": [
{
"type": "object",
"description": "Estimated monthly additional savings per SP type, taken from the latest PS4C purchase\nprojection. Unlike `savingsTotals` (realized YTD/lifetime savings), this is a forward-looking\nestimate of the monthly savings achievable if the recommended commitments were purchased. For\nmember accounts, the organization figure is attributed by each member account's share of\ntrailing-60-day SP-eligible on-demand cost. A per-SP-type value of `0.00` means the latest\nprojection is missing, expired, or empty. The field is omitted entirely only for accounts that\nhave never had potential savings computed.\n",
"properties": {
"compute": {
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
},
"database": {
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "Decimal monetary amount at ISO 4217 minor-unit precision (string)."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code.",
"example": "USD"
}
}
}
}
}
],
"description": "Estimated monthly additional savings per SP type for this organization."
}
}
}
},
"pageToken": {
"type": "string",
"nullable": true
},
"rowCount": {
"type": "integer",
"format": "int64",
"description": "Best-effort count for the filtered result set. May be null or omitted for expensive counts.",
"nullable": true
}
}
}

Errors

On failure, dci prints a single error message — with a hint when one is available — and exits with a typed code your scripts can branch on. See Errors and exit codes for the full contract.

HTTP statusExit codeError codeMeaning
40030VALIDATION_ERRORThe arguments or request body were rejected. Review the command's flags and payload.
40110AUTHENTICATION_FAILEDNot signed in, or the API token is invalid. Run dci login or check DCI_API_KEY.
40311PERMISSION_DENIEDThe DoiT user or the active customer context does not have access.
500, 50340API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listawsorganizations