Skip to main content

get-asset

dci get-asset id

Returns the full details of an asset specified by the asset id.

Output

OK - Asset details returned.

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

FieldTypeDescription
createTimeinteger (int64)The time when the asset was created, in milliseconds since the epoch.
idstringThe unique identifier of the asset.
namestringA human-readable label for the asset, typically combining the product name and domain or account ID.
quantityinteger (int64)The number of licenses or seats currently assigned to this asset.
typestringThe asset type, e.g. g-suite, office-365, google-cloud, amazon-web-services, or microsoft-azure.
urlstringA link to the asset details page in the DoiT console.
propertiesobjectAdditional properties associated with an asset, such as subscription and customer details.
properties.customerDomainstringThe primary domain of the customer associated with this asset.
properties.customerIDstringThe unique identifier of the customer in the reseller or partner portal.
properties.resellerstringThe reseller domain through which this asset was provisioned.
properties.subscriptionobjectSubscription details for a G Suite or Office 365 asset.
properties.subscription.billingMethodstringThe billing method, e.g. ONLINE or OFFLINE.
properties.subscription.creationTimeinteger (int64)The time when the subscription was created, in milliseconds since the epoch.
properties.subscription.idstringThe unique identifier of the subscription.
properties.subscription.planobjectPlan details for a subscription, indicating whether it is a commitment or flexible plan.
properties.subscription.plan.commitmentIntervalobjectThe start and end dates of an annual commitment term. Nested fields omitted — see the raw JSON schema.
properties.subscription.plan.isCommitmentPlanbooleanWhether this subscription is on an annual commitment plan (true) or a flexible plan (false).
properties.subscription.plan.planNamestringThe name of the plan, e.g. ANNUAL_MONTHLY_PAY, ANNUAL_YEARLY_PAY, FLEXIBLE, or TRIAL.
properties.subscription.purchaseOrderIDstringThe purchase order ID associated with this subscription, if any.
properties.subscription.renewalSettingsobjectSettings that control subscription renewal behavior at the end of a commitment term.
properties.subscription.renewalSettings.renewalTypestringThe type of renewal, e.g. AUTO_RENEW_MONTHLY_PAY, AUTO_RENEW_YEARLY_PAY, RENEW_CURRENT_USERS_MONTHLY_PAY, RENEW_CURRENT_USERS_YEARLY_PAY, SWITCH_TO_PAY_AS_YOU_GO, or CANCEL.
properties.subscription.resourceUIURLstringA URL to the subscription management page in the admin console.
properties.subscription.seatsobjectLicensing seat counts for a subscription.
properties.subscription.seats.licensedNumberOfSeatsinteger (int64)The number of seats that are currently in use or assigned to users.
properties.subscription.seats.maximumNumberOfSeatsinteger (int64)The maximum number of seats that can be used. Applies to flexible (non-commitment) plans.
properties.subscription.seats.numberOfSeatsinteger (int64)The number of committed seats. Applies to annual commitment plans.
properties.subscription.skuIDstringThe unique SKU identifier for the subscribed product.
properties.subscription.skuNamestringA human-readable name for the subscribed product SKU.
properties.subscription.statusstringThe current status of the subscription, e.g. ACTIVE, SUSPENDED, or PENDING.
Raw JSON schema
{
"type": "object",
"description": "Detailed information about a single asset, including subscription properties.",
"properties": {
"createTime": {
"type": "integer",
"description": "The time when the asset was created, in milliseconds since the epoch.",
"format": "int64"
},
"id": {
"type": "string",
"description": "The unique identifier of the asset."
},
"name": {
"type": "string",
"description": "A human-readable label for the asset, typically combining the product name and domain or account ID."
},
"quantity": {
"type": "integer",
"description": "The number of licenses or seats currently assigned to this asset.",
"format": "int64"
},
"type": {
"type": "string",
"description": "The asset type, e.g. g-suite, office-365, google-cloud, amazon-web-services, or microsoft-azure."
},
"url": {
"type": "string",
"description": "A link to the asset details page in the DoiT console."
},
"properties": {
"type": "object",
"description": "Additional properties associated with an asset, such as subscription and customer details.",
"properties": {
"customerDomain": {
"type": "string",
"description": "The primary domain of the customer associated with this asset."
},
"customerID": {
"type": "string",
"description": "The unique identifier of the customer in the reseller or partner portal."
},
"reseller": {
"type": "string",
"description": "The reseller domain through which this asset was provisioned."
},
"subscription": {
"type": "object",
"description": "Subscription details for a G Suite or Office 365 asset.",
"properties": {
"billingMethod": {
"type": "string",
"description": "The billing method, e.g. ONLINE or OFFLINE."
},
"creationTime": {
"type": "integer",
"description": "The time when the subscription was created, in milliseconds since the epoch.",
"format": "int64"
},
"id": {
"type": "string",
"description": "The unique identifier of the subscription."
},
"plan": {
"type": "object",
"description": "Plan details for a subscription, indicating whether it is a commitment or flexible plan.",
"properties": {
"commitmentInterval": {
"type": "object",
"description": "The start and end dates of an annual commitment term.",
"properties": {
"endTime": {
"type": "integer",
"description": "The end time of the commitment interval, in milliseconds since the epoch.",
"format": "int64"
},
"startTime": {
"type": "integer",
"description": "The start time of the commitment interval, in milliseconds since the epoch.",
"format": "int64"
}
}
},
"isCommitmentPlan": {
"type": "boolean",
"description": "Whether this subscription is on an annual commitment plan (true) or a flexible plan (false)."
},
"planName": {
"type": "string",
"description": "The name of the plan, e.g. ANNUAL_MONTHLY_PAY, ANNUAL_YEARLY_PAY, FLEXIBLE, or TRIAL."
}
}
},
"purchaseOrderID": {
"type": "string",
"description": "The purchase order ID associated with this subscription, if any."
},
"renewalSettings": {
"type": "object",
"description": "Settings that control subscription renewal behavior at the end of a commitment term.",
"properties": {
"renewalType": {
"type": "string",
"description": "The type of renewal, e.g. AUTO_RENEW_MONTHLY_PAY, AUTO_RENEW_YEARLY_PAY, RENEW_CURRENT_USERS_MONTHLY_PAY, RENEW_CURRENT_USERS_YEARLY_PAY, SWITCH_TO_PAY_AS_YOU_GO, or CANCEL."
}
}
},
"resourceUIURL": {
"type": "string",
"description": "A URL to the subscription management page in the admin console."
},
"seats": {
"type": "object",
"description": "Licensing seat counts for a subscription.",
"properties": {
"licensedNumberOfSeats": {
"type": "integer",
"description": "The number of seats that are currently in use or assigned to users.",
"format": "int64"
},
"maximumNumberOfSeats": {
"type": "integer",
"description": "The maximum number of seats that can be used. Applies to flexible (non-commitment) plans.",
"format": "int64"
},
"numberOfSeats": {
"type": "integer",
"description": "The number of committed seats. Applies to annual commitment plans.",
"format": "int64"
}
}
},
"skuID": {
"type": "string",
"description": "The unique SKU identifier for the subscribed product."
},
"skuName": {
"type": "string",
"description": "A human-readable name for the subscribed product SKU."
},
"status": {
"type": "string",
"description": "The current status of the subscription, e.g. ACTIVE, SUSPENDED, or PENDING."
}
}
}
}
}
}
}

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.
40420RESOURCE_NOT_FOUNDThe requested resource does not exist. Check the identifier argument.
50040API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: getasset