Skip to main content

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.

FieldTypeDescription
itemsarray of object
items[].resellerPmaAccountIdstring12-digit AWS account ID of the reseller's program management account.
items[].dpmaIdstring
items[].handshakeIdstring
items[].handshakeStatestringAWS Organizations Handshake State value, lowercased. One of: "requested", "open", "canceled", "accepted", "declined", "expired".
items[].statusstringOne of: "handshake_pending", "cur_export_waiting", "active", "declined", "canceled", "expired".
items[].regionstringInherited from the parent DPMA root; the reseller node itself carries no region metadata.
items[].iamStatusstringInherited from the parent DPMA root; the reseller node itself carries no IAM metadata.
items[].lastRefreshTimestring (date-time)Inherited from the parent DPMA root. null if never refreshed.
items[].effectiveTimestring (date-time)When the handshake reached a terminal state. null until then.
items[].createdAtstring (date-time)
items[].handshakeStatusobjectPer-AWS-Organizations-handshake-state counts across all tenants mapped to a PMA.
items[].handshakeStatus.totalinteger
items[].handshakeStatus.requestedinteger
items[].handshakeStatus.openinteger
items[].handshakeStatus.acceptedinteger
items[].handshakeStatus.declinedinteger
items[].handshakeStatus.canceledinteger
items[].handshakeStatus.expiredinteger
items[].tenantsarray of object
items[].tenants[].ecAccountIdstring12-digit AWS account ID of the end-customer account.
items[].tenants[].ecCustomerIdstringDoiT customer ID the end-customer account is mapped to.
items[].tenants[].statusstringOne of: "pending", "cur_export_waiting", "active", "canceled", "declined", "expired", "revoked".
items[].tenants[].handshakeStatestringAWS Organizations Handshake State value, lowercased. One of: "requested", "open", "canceled", "accepted", "declined", "expired".
items[].tenants[].billSourceTypestring
items[].tenants[].effectiveTimestring (date-time)When the handshake reached a terminal state. null until then.
items[].tenants[].createdAtstring (date-time)
items[].tenants[].lastRefreshTimestring (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 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.
50040API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listbillingtransferreselleraccountswithtenants