cloudforet-apis
  • README
  • content
    • en
      • Cloudforet API Documentation
      • board
        • _index
        • v1
          • Board
          • Post
          • v1
      • config
        • _index
        • v1
          • DomainConfig
          • PublicConfig
          • UserConfig
          • WorkspaceConfig
          • v1
      • core
        • _index
        • v1
          • Handler
          • Query
          • ServerInfo
          • v1
        • v2
          • Handler
          • Plugin
          • Query
          • v2
      • cost_analysis
        • _index
        • plugin
          • Cost
          • DataSource
          • Job
          • plugin
        • v1
          • Budget
          • BudgetUsage
          • Cost
          • CostQuerySet
          • CostReport
          • CostReportConfig
          • CostReportData
          • CustomWidget
          • DataSource
          • DataSourceAccount
          • DataSourceRule
          • ExchangeRate
          • Job
          • JobTask
          • PublicDashboard
          • Schedule
          • UnifiedCost
          • UserDashboard
          • v1
      • dashboard
        • _index
        • v1
          • CustomWidget
          • Dashboard
          • DomainDashboard
          • PrivateDashboard
          • PrivateDataTable
          • PrivateFolder
          • PrivateWidget
          • ProjectDashboard
          • PublicDashboard
          • PublicDataTable
          • PublicFolder
          • PublicWidget
          • v1
      • file_manager
        • _index
        • v1
          • File
          • PublicFile
          • v1
      • identity
        • _index
        • plugin
          • AccountCollector
          • Auth
          • ExternalAuth
          • plugin
        • v1
          • ApiKey
          • Authorization
          • Domain
          • DomainOwner
          • Endpoint
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • ServiceAccount
          • Token
          • User
          • v1
        • v2
          • Agent
          • ApiKey
          • App
          • Authorization
          • Domain
          • Endpoint
          • ExternalAuth
          • Job
          • Package
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • Schema
          • ServiceAccount
          • System
          • Token
          • TrustedAccount
          • TrustedServiceAccount
          • User
          • UserGroup
          • UserProfile
          • Workspace
          • WorkspaceGroup
          • WorkspaceGroupDetails
          • WorkspaceGroupUser
          • WorkspaceUser
          • v2
      • inventory
        • _index
        • plugin
          • Collector
          • Job
          • plugin
        • v1
          • ChangeHistory
          • CloudService
          • CloudServiceQuerySet
          • CloudServiceReport
          • CloudServiceStats
          • CloudServiceType
          • Collector
          • CollectorRule
          • Job
          • JobTask
          • Metric
          • MetricData
          • MetricExample
          • Namespace
          • Note
          • Region
          • ResourceGroup
          • v1
        • v2
          • Region
          • v2
      • monitoring
        • _index
        • plugin
          • DataSource
          • Event
          • Log
          • Metric
          • Webhook
          • plugin
        • v1
          • Alert
          • DataSource
          • EscalationPolicy
          • Event
          • EventRule
          • Log
          • MaintenanceWindow
          • Metric
          • Note
          • ProjectAlertConfig
          • Webhook
          • v1
      • mzc_service_api
        • _index
        • v1
          • Contract
          • Offering
          • Organization
          • v1
      • notification
        • _index
        • plugin
          • Notification
          • Protocol
          • plugin
        • v1
          • Notification
          • NotificationUsage
          • ProjectChannel
          • Protocol
          • Quota
          • UserChannel
          • v1
      • opsflow
        • _index
        • v1
          • Comment
          • Event
          • Task
          • TaskCategory
          • TaskType
          • v1
      • plugin
        • _index
        • v1
          • Plugin
          • Supervisor
          • v1
      • repository
        • _index
        • v1
          • DashboardTemplate
          • Plugin
          • Policy
          • Repository
          • Schema
          • v1
        • v2
          • Common
          • Provider
          • RemoteRepository
          • Schema
          • v2
      • sample
        • _index
        • v1
          • Helloworld
          • v1
      • search
        • _index
        • v1
          • Resource
          • v1
      • secret
        • _index
        • v1
          • Secret
          • SecretGroup
          • TrustedSecret
          • UserSecret
          • v1
      • statistics
        • _index
        • plugin
          • Storage
          • plugin
        • v1
          • History
          • Resource
          • Schedule
          • Storage
          • v1
Powered by GitBook
On this page
  • DataSourceAccount
  • update
  • reset
  • get
  • list
  • analyze
  • stat
  • Message
  • DataSourceAccountAnalyzeQuery
  • DataSourceAccountInfo
  • DataSourceAccountQuery
  • DataSourceAccountRequest
  • DataSourceAccountStatQuery
  • DataSourceAccountsInfo
  • ResetDataSourceAccountRequest
  • UpdateDataSourceAccountRequest
  1. content
  2. en
  3. cost_analysis
  4. v1

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:

Method
Request
Response

update

Update a DataSourceAccount with the specified DataSourceAccount ID related to the DataSource.

POST /cost-analysis/v1/data-source-account/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

  • 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)

{{< highlight json >}} { "data_source_id": "ds-faaa11aa1111", "account_id": "111069360300", "workspace_id": "ws-aaaa11aa1111" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

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

{{< tabs " reset " >}}

{{< tab "Request Example" >}}

  • 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.

{{< highlight json >}} { "data_source_id": "ds-faaa11aa1111", "account_id": "111069360300", "sync_state": true } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

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

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • query (Query)

  • data_source_id (string)

  • account_id (string)

  • workspace_id (string)

  • project_id (string)

  • service_account_id (string)

{{< highlight json >}} { "query": {} } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

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)

PreviousDataSourceNextDataSourceRule

Last updated 6 months ago

UpdateDataSourceAccountRequest
ResetDataSourceAccountRequest
DataSourceAccountQuery
update
UpdateDataSourceAccountRequest
DataSourceAccountInfo
reset
ResetDataSourceAccountRequest
Empty
get
DataSourceAccountRequest
DataSourceAccountInfo
list
DataSourceAccountQuery
DataSourceAccountsInfo
analyze
DataSourceAccountAnalyzeQuery
Struct
stat
DataSourceAccountStatQuery
Struct