Skip to main content
With plerion tenant, you can retrieve tenant information including the organization name, risk score, and resource usage details.

Synopsis

plerion tenant <subcommand>

Subcommands

get

plerion tenant get
Returns tenant ID, organization ID, name, risk score, and timestamps.

get-usage

plerion tenant get-usage [--date <yyyy-MM-dd>]
Returns tenant usage details. Supports all output formats (table, json, yaml, text).
OptionTypeDescription
--datestringUsage date in yyyy-MM-dd format (defaults to today)

Examples

# Get tenant info as a table
plerion tenant get

# Get tenant info as JSON
plerion tenant get --output json

# Extract just the risk score
plerion tenant get --output json --query 'data.riskScore'

# Get usage details as a table
plerion tenant get-usage

# Get usage for a specific date
plerion tenant get-usage --date 2025-03-01 --output json

Output columns (get)

ColumnDescription
TENANT IDTenant ID
ORG IDOrganization ID
NAMETenant name
RISK SCORENumeric risk score
CREATED ATCreation timestamp
UPDATED ATUpdate timestamp

Output columns (get-usage)

ColumnDescription
ASSETSNumber of assets in the tenant
INTEGRATIONSNumber of integrations configured

Example output (JSON)

{
  "data": {
    "tenantId": "t-abc123",
    "organizationId": "org-xyz",
    "name": "Acme Corp",
    "riskScore": 7.2,
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-06-01T14:00:00Z"
  }
}