list-billing-transfer-reseller-accounts-with-tenants
dci list-billing-transfer-reseller-accounts-with-tenants [flags]
Lists every reseller PMA node belonging to the calling reseller, each with the
end-customer tenants connected under it — the reseller-tier analog of
GET /billingtransfer/v1/programmanagementaccounts. region, iamStatus and
lastRefreshTime are inherited from the parent DPMA root; the reseller node itself
carries no IAM/region metadata of its own.
Flags
--include-revoked: (boolean default:false)
Output
OK
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 |
|---|---|---|
items | array of object | |
items[].resellerPmaAccountId | string | 12-digit AWS account ID of the reseller's program management account. |
items[].dpmaId | string | |
items[].handshakeId | string | |
items[].handshakeState | string | AWS Organizations Handshake State value, lowercased. One of: "requested", "open", "canceled", "accepted", "declined", "expired". |
items[].status | string | One of: "handshake_pending", "cur_export_waiting", "active", "declined", "canceled", "expired". |
items[].region | string | Inherited from the parent DPMA root; the reseller node itself carries no region metadata. |
items[].iamStatus | string | Inherited from the parent DPMA root; the reseller node itself carries no IAM metadata. |
items[].lastRefreshTime | string (date-time) | Inherited from the parent DPMA root. null if never refreshed. |
items[].effectiveTime | string (date-time) | When the handshake reached a terminal state. null until then. |
items[].createdAt | string (date-time) | |
items[].handshakeStatus | object | Per-AWS-Organizations-handshake-state counts across all tenants mapped to a PMA. |
items[].handshakeStatus.total | integer | |
items[].handshakeStatus.requested | integer | |
items[].handshakeStatus.open | integer | |
items[].handshakeStatus.accepted | integer | |
items[].handshakeStatus.declined | integer | |
items[].handshakeStatus.canceled | integer | |
items[].handshakeStatus.expired | integer | |
items[].tenants | array of object | |
items[].tenants[].ecAccountId | string | 12-digit AWS account ID of the end-customer account. |
items[].tenants[].ecCustomerId | string | DoiT customer ID the end-customer account is mapped to. |
items[].tenants[].status | string | One of: "pending", "cur_export_waiting", "active", "canceled", "declined", "expired", "revoked". |
items[].tenants[].handshakeState | string | AWS Organizations Handshake State value, lowercased. One of: "requested", "open", "canceled", "accepted", "declined", "expired". |
items[].tenants[].billSourceType | string | |
items[].tenants[].effectiveTime | string (date-time) | When the handshake reached a terminal state. null until then. |
items[].tenants[].createdAt | string (date-time) | |
items[].tenants[].lastRefreshTime | string (date-time) | When this mapping's status was last refreshed. null if never refreshed. |
Raw JSON schema
{
"type": "object",
"additionalProperties": false,
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"resellerPmaAccountId",
"dpmaId",
"handshakeId",
"handshakeState",
"status",
"region",
"iamStatus",
"createdAt",
"handshakeStatus",
"tenants"
],
"properties": {
"resellerPmaAccountId": {
"type": "string",
"description": "12-digit AWS account ID of the reseller's program management account.",
"example": "123456789012"
},
"dpmaId": {
"type": "string"
},
"handshakeId": {
"type": "string"
},
"handshakeState": {
"type": "string",
"description": "AWS Organizations Handshake `State` value, lowercased.",
"enum": [
"requested",
"open",
"canceled",
"accepted",
"declined",
"expired"
]
},
"status": {
"type": "string",
"enum": [
"handshake_pending",
"cur_export_waiting",
"active",
"declined",
"canceled",
"expired"
]
},
"region": {
"type": "string",
"description": "Inherited from the parent DPMA root; the reseller node itself carries no region metadata."
},
"iamStatus": {
"type": "string",
"description": "Inherited from the parent DPMA root; the reseller node itself carries no IAM metadata."
},
"lastRefreshTime": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Inherited from the parent DPMA root. `null` if never refreshed."
},
"effectiveTime": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When the handshake reached a terminal state. `null` until then."
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"handshakeStatus": {
"type": "object",
"description": "Per-AWS-Organizations-handshake-state counts across all tenants mapped to a PMA.",
"additionalProperties": false,
"required": [
"total",
"requested",
"open",
"accepted",
"declined",
"canceled",
"expired"
],
"properties": {
"total": {
"type": "integer"
},
"requested": {
"type": "integer"
},
"open": {
"type": "integer"
},
"accepted": {
"type": "integer"
},
"declined": {
"type": "integer"
},
"canceled": {
"type": "integer"
},
"expired": {
"type": "integer"
}
}
},
"tenants": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"ecAccountId",
"ecCustomerId",
"status",
"handshakeState",
"billSourceType",
"createdAt"
],
"properties": {
"ecAccountId": {
"type": "string",
"description": "12-digit AWS account ID of the end-customer account.",
"example": "123456789012"
},
"ecCustomerId": {
"type": "string",
"description": "DoiT customer ID the end-customer account is mapped to."
},
"status": {
"type": "string",
"enum": [
"pending",
"cur_export_waiting",
"active",
"canceled",
"declined",
"expired",
"revoked"
]
},
"handshakeState": {
"type": "string",
"description": "AWS Organizations Handshake `State` value, lowercased.",
"enum": [
"requested",
"open",
"canceled",
"accepted",
"declined",
"expired"
]
},
"billSourceType": {
"type": "string"
},
"effectiveTime": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When the handshake reached a terminal state. `null` until then."
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"lastRefreshTime": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When this mapping's status was last refreshed. `null` if never refreshed."
}
}
}
}
}
}
}
}
}
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. |
| 500 | 40 | API_SERVER_ERROR | The API failed to process the request. Retryable; contact DoiT support if it persists. |
Aliases: listbillingtransferreselleraccountswithtenants