Skip to main content

list-aws-organizations-settings

dci list-aws-organizations-settings [flags]

Returns automation and recommendation engine settings for every onboarded organization, broken down by product line (compute, database). Settings are configured at the customer level and apply uniformly across all organizations. Only product lines that are activated/onboarded for a given organization are returned. The purchaseAccountId is the member AWS account designated to execute SP purchases on behalf of that organization.

Flags

--page-token: (string)

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

Output

List of per-organization per-product-line engine settings.

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[].purchaseAccountIdstringMember AWS account used to execute SP purchases for this organization. Null if not configured.
items[].servicesarray of objectSettings for each activated product line.
items[].services[].servicestringProduct line these settings apply to. One of: "compute", "database".
items[].services[].settingsobjectAutomation and recommendation engine settings for one product line.
items[].services[].settings.purchaseModestringWhether purchases execute automatically or require approval. One of: "autonomous", "requires_approval".
items[].services[].settings.minimumCommitmentnumber (double)Minimum hourly commitment amount (USD) per purchase step.
items[].services[].settings.lastDayOfMonthForPurchaseintegerLatest calendar day of the month on which a purchase may be scheduled.
items[].services[].settings.maximumCommitmentnumber (double)Maximum total hourly commitment (USD). 0 means no cap.
items[].services[].settings.termstringPreferred commitment term length.
items[].services[].settings.paymentOptionstringPreferred payment structure for new commitments.
items[].services[].settings.policystringCoverage target policy.
items[].services[].settings.upfrontPercentagenumber (double)Fraction of the hourly commitment paid upfront (0–1). Only present when paymentOption is partial_upfront.
pageTokenstringOpaque cursor for the next page. Absent when this is the last page.
rowCountinteger (int64)Number of items returned in this page.
Raw JSON schema
{
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"managementAccountId",
"purchaseAccountId",
"services"
],
"properties": {
"managementAccountId": {
"type": "string",
"description": "12-digit account number of the organization's management (payer) account.",
"example": "123456789012"
},
"purchaseAccountId": {
"type": "string",
"description": "Member AWS account used to execute SP purchases for this organization. Null if not configured.",
"nullable": true,
"example": "987654321098"
},
"services": {
"type": "array",
"items": {
"type": "object",
"required": [
"service",
"settings"
],
"properties": {
"service": {
"type": "string",
"enum": [
"compute",
"database"
],
"description": "Product line these settings apply to."
},
"settings": {
"type": "object",
"description": "Automation and recommendation engine settings for one product line.",
"required": [
"purchaseMode",
"minimumCommitment",
"lastDayOfMonthForPurchase",
"maximumCommitment",
"term",
"paymentOption",
"policy"
],
"properties": {
"purchaseMode": {
"type": "string",
"enum": [
"autonomous",
"requires_approval"
],
"description": "Whether purchases execute automatically or require approval."
},
"minimumCommitment": {
"type": "number",
"format": "double",
"description": "Minimum hourly commitment amount (USD) per purchase step."
},
"lastDayOfMonthForPurchase": {
"type": "integer",
"description": "Latest calendar day of the month on which a purchase may be scheduled."
},
"maximumCommitment": {
"type": "number",
"format": "double",
"description": "Maximum total hourly commitment (USD). 0 means no cap."
},
"term": {
"allOf": [
{
"type": "string",
"enum": [
"one_year",
"three_year"
],
"description": "Commitment term length."
}
],
"description": "Preferred commitment term length."
},
"paymentOption": {
"allOf": [
{
"type": "string",
"enum": [
"no_upfront",
"partial_upfront",
"all_upfront"
],
"description": "Payment structure for a commitment.\n- `no_upfront` — all charges paid monthly\n- `partial_upfront` — a portion paid upfront; remainder monthly\n- `all_upfront` — full commitment paid upfront\n"
}
],
"description": "Preferred payment structure for new commitments."
},
"policy": {
"allOf": [
{
"type": "string",
"enum": [
"conservative",
"balanced",
"max_savings"
],
"description": "Coverage target policy.\n- `conservative` — lower coverage target (~65%)\n- `balanced` — moderate coverage target (~80%)\n- `max_savings` — aggressive coverage target (~90%)\n"
}
],
"description": "Coverage target policy."
},
"upfrontPercentage": {
"type": "number",
"format": "double",
"description": "Fraction of the hourly commitment paid upfront (0–1). Only present when paymentOption is `partial_upfront`."
}
}
}
}
},
"description": "Settings for each activated product line."
}
}
}
},
"pageToken": {
"type": "string",
"description": "Opaque cursor for the next page. Absent when this is the last page.",
"nullable": true
},
"rowCount": {
"type": "integer",
"format": "int64",
"description": "Number of items returned in this page."
}
}
}

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: listawsorganizationssettings