DataSourceAccount #
A DataSourceAccount is a resource that for routing cost data from a specific account to a workspace, project, service account.
Package : spaceone.api.cost_analysis.v1
DataSourceAccount #
DataSourceAccount Methods:
update #
Update a DataSourceAccount with the specified DataSourceAccount ID related to the DataSource.
POST /cost-analysis/v1/data-source-account/update
UpdateDataSourceAccountRequest
data_source_id (string)
Required
account_id (string)
Required
account_id is the unique identifier of each CSP account.(e.g. Azure Tenant ID)
workspace_id (string)
{
"data_source_id": "ds-faaa11aa1111",
"account_id": "111069360300",
"workspace_id": "ws-aaaa11aa1111"
}
reset #
Reset a DataSourceAccount state and linked workspace with the specified DataSourceAccount ID related to the DataSource.
POST /cost-analysis/v1/data-source-account/reset
data_source_id (string)
Required
data_source_id is the unique identifier of each data source.
account_id (string)
reset_sync (bool)
if sync_state is true, it will reset the sync state of the data source account.
{
"data_source_id": "ds-faaa11aa1111",
"account_id": "111069360300",
"sync_state": true
}
get #
Get a DataSourceAccount with the specified DataSourceAccount ID related to the DataSource.
POST /cost-analysis/v1/data-source-account/get
list #
POST /cost-analysis/v1/data-source-account/list
query (Query)
data_source_id (string)
account_id (string)
workspace_id (string)
project_id (string)
service_account_id (string)
{
"query": {}
}
analyze #
POST /cost-analysis/v1/data-source-account/analyze
stat #
POST /cost-analysis/v1/data-source-account/stat
Message #
DataSourceAccountAnalyzeQuery #
query (TimeSeriesAnalyzeQuery)
Required
data_source_id (string)
Required
account_id (string)
Required
workspace_id (string)
Required
DataSourceAccountInfo #
account_id (string)
Required
data_source_id (string)
Required
name (string)
Required
is_sync (bool)
Required
is_linked (bool)
Required
domain_id (string)
Required
workspace_id (string)
Required
v_workspace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
last_synced_at (string)
Required
DataSourceAccountQuery #
query (Query)
data_source_id (string)
account_id (string)
workspace_id (string)
project_id (string)
service_account_id (string)
DataSourceAccountRequest #
data_source_account_id (string)
Required
account_id (string)
Required
DataSourceAccountStatQuery #
query (StatisticsQuery)
Required
DataSourceAccountsInfo #
results (DataSourceAccountInfo)
Repeated
Required
total_count (int32)
Required
ResetDataSourceAccountRequest #
data_source_id (string)
Required
data_source_id is the unique identifier of each data source.
account_id (string)
reset_sync (bool)
if sync_state is true, it will reset the sync state of the data source account.
UpdateDataSourceAccountRequest #
data_source_id (string)
Required
account_id (string)
Required
account_id is the unique identifier of each CSP account.(e.g. Azure Tenant ID)
workspace_id (string)