get-aws-organization
dci get-aws-organization managementAccountId
Returns a single AWS Organization including metadata, 30-day aggregates, and the trailing-window stats that drive the customer Overview screen:
monthlyStats— last 6 calendar months (ESR, on-demand cost, cost with savings).dailyCoverage— last 30 days of commitment coverage breakdown.savingsTotals— year-to-date and lifetime savings per SP type.monthlyPotentialSavings— estimated monthly additional savings per SP type from the latest projection.
Output
AWS Organization detail.
By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.
| Field | Type | Description |
|---|---|---|
monthlyStats | object | Trailing 6 calendar months of organization stats, grouped by SP type. |
monthlyStats.compute | array of object | |
monthlyStats.compute[].month | string | |
monthlyStats.compute[].esr | number (double) | Effective Savings Rate for the month (0–1). |
monthlyStats.compute[].onDemandCost | object | Eligible on-demand cost for the month. |
monthlyStats.compute[].onDemandCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
monthlyStats.compute[].onDemandCost.currency | string | ISO 4217 currency code. |
monthlyStats.compute[].costWithSavings | object | Actual cost after commitments for the month. |
monthlyStats.compute[].costWithSavings.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
monthlyStats.compute[].costWithSavings.currency | string | ISO 4217 currency code. |
monthlyStats.database | array of object | |
monthlyStats.database[].month | string | |
monthlyStats.database[].esr | number (double) | Effective Savings Rate for the month (0–1). |
monthlyStats.database[].onDemandCost | object | Eligible on-demand cost for the month. |
monthlyStats.database[].onDemandCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
monthlyStats.database[].onDemandCost.currency | string | ISO 4217 currency code. |
monthlyStats.database[].costWithSavings | object | Actual cost after commitments for the month. |
monthlyStats.database[].costWithSavings.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
monthlyStats.database[].costWithSavings.currency | string | ISO 4217 currency code. |
dailyCoverage | object | Trailing 30 days of commitment coverage, grouped by SP type. |
dailyCoverage.compute | array of object | |
dailyCoverage.compute[].date | string (date) | |
dailyCoverage.compute[].onDemandCost | object | |
dailyCoverage.compute[].onDemandCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.compute[].onDemandCost.currency | string | ISO 4217 currency code. |
dailyCoverage.compute[].savingsPlanCost | object | |
dailyCoverage.compute[].savingsPlanCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.compute[].savingsPlanCost.currency | string | ISO 4217 currency code. |
dailyCoverage.compute[].reservedInstCost | object | |
dailyCoverage.compute[].reservedInstCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.compute[].reservedInstCost.currency | string | ISO 4217 currency code. |
dailyCoverage.compute[].flexsaveCost | object | |
dailyCoverage.compute[].flexsaveCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.compute[].flexsaveCost.currency | string | ISO 4217 currency code. |
dailyCoverage.compute[].spotCost | object | |
dailyCoverage.compute[].spotCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.compute[].spotCost.currency | string | ISO 4217 currency code. |
dailyCoverage.database | array of object | |
dailyCoverage.database[].date | string (date) | |
dailyCoverage.database[].onDemandCost | object | |
dailyCoverage.database[].onDemandCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.database[].onDemandCost.currency | string | ISO 4217 currency code. |
dailyCoverage.database[].savingsPlanCost | object | |
dailyCoverage.database[].savingsPlanCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.database[].savingsPlanCost.currency | string | ISO 4217 currency code. |
dailyCoverage.database[].reservedInstCost | object | |
dailyCoverage.database[].reservedInstCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.database[].reservedInstCost.currency | string | ISO 4217 currency code. |
dailyCoverage.database[].flexsaveCost | object | |
dailyCoverage.database[].flexsaveCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.database[].flexsaveCost.currency | string | ISO 4217 currency code. |
dailyCoverage.database[].spotCost | object | |
dailyCoverage.database[].spotCost.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
dailyCoverage.database[].spotCost.currency | string | ISO 4217 currency code. |
managementAccountId | string | 12-digit account number of the organization's management (payer) account. |
displayName | string | Human-readable account alias, if available. |
onboardingStatus | object | Per-product-line PS4C onboarding state for this organization. |
onboardingStatus.compute | object | Per-product-line PS4C onboarding state. |
onboardingStatus.compute.status | string | Current onboarding lifecycle stage for this product line. One of: "not_started", "onboarding", "done", "error". |
onboardingStatus.compute.onboardingStartedAt | string (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. |
onboardingStatus.database | object | Per-product-line PS4C onboarding state. |
onboardingStatus.database.status | string | Current onboarding lifecycle stage for this product line. One of: "not_started", "onboarding", "done", "error". |
onboardingStatus.database.onboardingStartedAt | string (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. |
savingsPlansSyncTime | string (date-time) | Timestamp of the last successful Savings Plan inventory sync. |
stats30d | object | Trailing 30-day aggregate metrics, broken down by SP type. |
stats30d.compute | object | Minimal 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. |
stats30d.compute.esr | number (double) | Effective Savings Rate over the last 30 days (0–1). |
stats30d.compute.savings | object | Realized savings amount over the last 30 days. |
stats30d.compute.savings.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
stats30d.compute.savings.currency | string | ISO 4217 currency code. |
stats30d.database | object | Minimal 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. |
stats30d.database.esr | number (double) | Effective Savings Rate over the last 30 days (0–1). |
stats30d.database.savings | object | Realized savings amount over the last 30 days. |
stats30d.database.savings.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
stats30d.database.savings.currency | string | ISO 4217 currency code. |
savingsTotals | object | Year-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. |
savingsTotals.compute | object | Running 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). |
savingsTotals.compute.ytd | object | Year-to-date realized savings. |
savingsTotals.compute.ytd.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
savingsTotals.compute.ytd.currency | string | ISO 4217 currency code. |
savingsTotals.compute.lifetime | object | Lifetime realized savings since onboarding. |
savingsTotals.compute.lifetime.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
savingsTotals.compute.lifetime.currency | string | ISO 4217 currency code. |
savingsTotals.database | object | Running 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). |
savingsTotals.database.ytd | object | Year-to-date realized savings. |
savingsTotals.database.ytd.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
savingsTotals.database.ytd.currency | string | ISO 4217 currency code. |
savingsTotals.database.lifetime | object | Lifetime realized savings since onboarding. |
savingsTotals.database.lifetime.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
savingsTotals.database.lifetime.currency | string | ISO 4217 currency code. |
monthlyPotentialSavings | object | Estimated monthly additional savings per SP type for this organization. |
monthlyPotentialSavings.compute | object | |
monthlyPotentialSavings.compute.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
monthlyPotentialSavings.compute.currency | string | ISO 4217 currency code. |
monthlyPotentialSavings.database | object | |
monthlyPotentialSavings.database.amount | string | Decimal monetary amount at ISO 4217 minor-unit precision (string). |
monthlyPotentialSavings.database.currency | string | ISO 4217 currency code. |
Raw JSON schema
{
"description": "Single AWS Organization detail. Adds the trailing-window stats that drive the\nDoiT Console overview screen on top of the list-item shape:\n- `monthlyStats` — last 6 calendar months per SP type\n- `dailyCoverage` — last 30 days per SP type\n\n`savingsTotals` (precomputed YTD and lifetime savings per SP type) and\n`monthlyPotentialSavings` (estimated monthly additional savings per SP type) are\ninherited from the list-item shape (`AwsOrganization`).\n",
"allOf": [
{
"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."
}
}
},
{
"type": "object",
"properties": {
"monthlyStats": {
"type": "object",
"description": "Trailing 6 calendar months of organization stats, grouped by SP type.",
"properties": {
"compute": {
"type": "array",
"items": {
"type": "object",
"required": [
"month",
"esr",
"onDemandCost",
"costWithSavings"
],
"description": "One calendar-month aggregate for the organization. Money fields are wrapped\nobjects (`{amount, currency}`).\n",
"properties": {
"month": {
"type": "string",
"pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
"example": "2025-06"
},
"esr": {
"type": "number",
"format": "double",
"description": "Effective Savings Rate for the month (0–1)."
},
"onDemandCost": {
"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": "Eligible on-demand cost for the month."
},
"costWithSavings": {
"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": "Actual cost after commitments for the month."
}
}
}
},
"database": {
"type": "array",
"items": {
"type": "object",
"required": [
"month",
"esr",
"onDemandCost",
"costWithSavings"
],
"description": "One calendar-month aggregate for the organization. Money fields are wrapped\nobjects (`{amount, currency}`).\n",
"properties": {
"month": {
"type": "string",
"pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
"example": "2025-06"
},
"esr": {
"type": "number",
"format": "double",
"description": "Effective Savings Rate for the month (0–1)."
},
"onDemandCost": {
"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": "Eligible on-demand cost for the month."
},
"costWithSavings": {
"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": "Actual cost after commitments for the month."
}
}
}
}
}
},
"dailyCoverage": {
"type": "object",
"description": "Trailing 30 days of commitment coverage, grouped by SP type.",
"properties": {
"compute": {
"type": "array",
"items": {
"type": "object",
"required": [
"date"
],
"description": "One day of commitment-coverage breakdown. Money fields are wrapped objects\n(`{amount, currency}`).\n",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"onDemandCost": {
"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"
}
}
},
"savingsPlanCost": {
"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"
}
}
},
"reservedInstCost": {
"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"
}
}
},
"flexsaveCost": {
"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"
}
}
},
"spotCost": {
"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": "array",
"items": {
"type": "object",
"required": [
"date"
],
"description": "One day of commitment-coverage breakdown. Money fields are wrapped objects\n(`{amount, currency}`).\n",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"onDemandCost": {
"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"
}
}
},
"savingsPlanCost": {
"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"
}
}
},
"reservedInstCost": {
"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"
}
}
},
"flexsaveCost": {
"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"
}
}
},
"spotCost": {
"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"
}
}
}
}
}
}
}
}
}
}
]
}
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 status | Exit code | Error code | Meaning |
|---|---|---|---|
| 400 | 30 | VALIDATION_ERROR | The arguments or request body were rejected. Review the command's flags and payload. |
| 401 | 10 | AUTHENTICATION_FAILED | Not signed in, or the API token is invalid. Run dci login or check DCI_API_KEY. |
| 403 | 11 | PERMISSION_DENIED | The DoiT user or the active customer context does not have access. |
| 404 | 20 | RESOURCE_NOT_FOUND | The requested resource does not exist. Check the identifier argument. |
| 500, 503 | 40 | API_SERVER_ERROR | The API failed to process the request. Retryable; contact DoiT support if it persists. |
Aliases: getawsorganization