To use this cli, we need to first Install Nodejs, then run the following command.
npm i -g namirasoft-cost-api-v1
Returns the application health status
ns-cost healthz get
Returns the application metrics
ns-cost metrics get
Returns the value list of a given table and column
ns-cost value list {table} {column} {search} {field_id} {limit}
Returns the BillWatch cost hourly estimation for an AWS Watch
ns-cost billwatchaws estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for bill watch aws
ns-cost billwatchaws _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the BillWatch cost hourly estimation for an Azure Watch
ns-cost billwatchazure estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for bill watch azure
ns-cost billwatchazure _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the BillWatch cost hourly estimation for an GCP Watch
ns-cost billwatchgcp estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for bill watch gcp
ns-cost billwatchgcp _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the Field cost hourly estimation for a category
ns-cost fieldcategory estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for field category
ns-cost fieldcategory _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the Field cost hourly estimation for Field
ns-cost fieldfield estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for field field
ns-cost fieldfield _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the log cost hourly estimation for log group
ns-cost logloggroup estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for log log group
ns-cost logloggroup _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the log cost read estimation for log group
ns-cost logloggroup estimateread
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new read cost for a user_id for log log group
ns-cost logloggroup _createforread {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the Secret cost hourly estimation for Secret
ns-cost secretsecret estimaterecord
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new record cost for a user_id for secret secret
ns-cost secretsecret _createforrecord {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the Secret cost read estimation for Secret
ns-cost secretsecret estimateread
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--trial_started_at (DateTime)
--count (Integer)
Creates a new read cost for a user_id for secret secret
ns-cost secretsecret _createforread {user_id}
--period (Object)
--total_count (Integer)
--number (Integer)
--total_value (Integer)
--value (Integer)
--active (Boolean)
--workspace_id (String)
--resource_id (String)
Returns the cost list
ns-cost cost list {filters} {page} {size} {sorts}
Returns the cost grouped list
ns-cost cost grouped
--start_date (DateTime)
--end_date (DateTime)
--granularity (Enum)
--dimension (Enum)
--filter_workspace_ids (Array)
--filter_product_ids (Array)
--filter_sales_item_ids (Array)
--filter_offer_ids (Array)
--filter_offer_item_ids (Array)
--filter_resource_entities (Array)
--filter_resource_ids (Array)
--filter_usage_names (Array)
Returns the resource entity list for an user
ns-cost cost resourceentitylist {filters} {page} {size} {sorts}
Returns the resource id list for an user and an entity
ns-cost cost resourceidlist {entity} {filters} {page} {size} {sorts}
{  "name": "EstimationOption",  "type": "Object",  "required": true}
{  "name": "Estimation",  "type": "Object",  "required": true}
{  "name": "CalculationOption",  "type": "Object",  "required": true}
{  "name": "Cost",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true    },    "user_id": {      "type": "String",      "required": true    },    "workspace_id": {      "type": "String",      "required": true    },    "product_id": {      "type": "String",      "required": true    },    "sales_item_id": {      "type": "String",      "required": true    },    "offer_id": {      "type": "String",      "required": true    },    "offer_item_id": {      "type": "String",      "required": true    },    "resource_entity": {      "type": "String",      "required": true    },    "resource_id": {      "type": "String",      "required": true    },    "usage_name": {      "type": "String",      "required": true    },    "usage_value": {      "type": "Double",      "required": true    },    "usage_unit": {      "type": "String",      "required": true    },    "period_start": {      "type": "DateTime",      "required": true    },    "period_end": {      "type": "DateTime",      "required": true    },    "amount": {      "type": "Double",      "required": true    },    "currency": {      "type": "String",      "required": true    },    "description": {      "type": "String",      "required": true    },    "created_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "GroupedResponse",  "type": "Object",  "required": true,  "fields": {    "period": {      "type": "DateTime",      "required": true    },    "dimension": {      "type": "String",      "required": true    },    "total_count": {      "type": "Money",      "required": true,      "precision": 2    },    "total_amount": {      "type": "Money",      "required": true,      "precision": 2    }  }}
Hour
Day
Week
Month
NONE
WORKSPACE
PRODUCT
SALES_ITEM
OFFER
OFFER_ITEM
RESOURCE_ENTITY
RESOURCE_ID
USAGE_NAME
©Copyright 2010 to 2025 Namira Software Corporation. All rights reserved.