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
  • JobTask
  • delete
  • get
  • list
  • stat
  • Message
  • ErrorInfo
  • JobTaskInfo
  • JobTaskQuery
  • JobTaskRequest
  • JobTaskStatQuery
  • JobTasksInfo
  1. content
  2. en
  3. inventory
  4. v1

JobTask

PreviousJobNextMetric

Last updated 1 year ago

A JobTask is a unit for collecting external cloud resources. The resource belongs to a specific service account.

Package : spaceone.api.inventory.v1

JobTask

JobTask Methods:

Method
Request
Response

delete

Deletes a specific JobTask. You must specify the job_task_id of the JobTask to delete.

POST /inventory/v1/job-task/delete

{{< tabs " delete " >}}

{{< tab "Request Example" >}}

  • job_task_id (string) Required

{{< highlight json >}} { "job_task_id": "job-task-123456789012", } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

Gets a specific JobTask. Prints detailed information about the JobTask, including its state, updated or failure counts, and error log.

POST /inventory/v1/job-task/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • job_task_id (string) Required

{{< highlight json >}} { "job_task_id": "job-task-123456789012", } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • job_task_id (string) Required

  • status (JobTaskStatus) Required

  • provider (string) Required

  • created_count (int32) Required

  • updated_count (int32) Required

  • failure_count (int32) Required

  • deleted_count (int32) Required

  • disconnected_count (int32) Required

  • errors (ErrorInfo) Repeated Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • service_account_id (string) Required

  • job_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • started_at (string) Required

  • finished_at (string) Required

{{< highlight json >}} { "job_task_id": "job-task-123456789012", "status": "FAILURE", "updated_count": 199, "failure_count": 1, "errors": [ { "error_code": "ERROR_PLUGIN", "message": "{"tags": ["Could not interpret the value as a list"]}", "additional": { "domain_id": "domain-123456789012", "resource_id": "eventarc-us-central1-function", "resource_type": "inventory.CloudService", "cloud_service_group": "Pub/Sub", "cloud_service_type": "Subscription", "provider": "google_cloud" } } ], "job_id": "job-123456789012", "secret_id": "secret-123456789012", "provider": "google_cloud", "service_account_id": "sa-123456789012", "project_id": "project-123456789012", "domain_id": "domain-123456789012", "created_at": "2022-01-01T11:00:02.588Z", "started_at": "2022-01-01T11:00:02.819Z", "finished_at": "2022-01-01T11:00:34.398Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

Gets a list of all JobTasks in a specific Job. You can use a query to get a filtered list of JobTasks.

POST /inventory/v1/job-task/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • query (Query)

  • job_task_id (string)

  • status (JobTaskStatus)

  • provider (string)

  • workspace_id (string)

  • project_id (string)

  • service_account_id (string)

  • job_id (string)

  • secret_id (string)

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

{{< tab "Response Example" >}}

  • results (JobTaskInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "results": [ { "job_task_id": "job_task-69b301d0fbfc", "status": "SUCCESS", "updated_count": 55, "job_id": "job-587a3d3b4db3", "secret_id": "secret-957e407bfc15", "provider": "aws", "service_account_id": "sa-a41ff4765671", "project_id": "project-77dffd3f7cd3", "domain_id": "domain-58010aa2e451", "created_at": "2022-06-17T08:00:00.680Z", "started_at": "2022-06-17T08:00:00.914Z", "finished_at": "2022-06-17T08:05:48.933Z" }, { "job_task_id": "job_task-c5077338cf23", "status": "SUCCESS", "updated_count": 1921, "job_id": "job-587a3d3b4db3", "secret_id": "secret-1cd7417c1889", "provider": "aws", "service_account_id": "sa-5e186fcc7c91", "project_id": "project-18655561c535", "domain_id": "domain-58010aa2e451", "created_at": "2022-06-17T08:00:00.582Z", "started_at": "2022-06-17T08:00:00.814Z", "finished_at": "2022-06-17T08:07:31.995Z" } ], "total_count": 4839 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /inventory/v1/job-task/stat

Message

ErrorInfo

  • error_code (string) Required

  • message (string) Required

  • additional (Struct) Required

JobTaskInfo

  • job_task_id (string) Required

  • status (JobTaskStatus) Required

  • provider (string) Required

  • created_count (int32) Required

  • updated_count (int32) Required

  • failure_count (int32) Required

  • deleted_count (int32) Required

  • disconnected_count (int32) Required

  • errors (ErrorInfo) Repeated Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • service_account_id (string) Required

  • job_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • started_at (string) Required

  • finished_at (string) Required

JobTaskQuery

  • query (Query)

  • job_task_id (string)

  • status (JobTaskStatus)

  • provider (string)

  • workspace_id (string)

  • project_id (string)

  • service_account_id (string)

  • job_id (string)

  • secret_id (string)

JobTaskRequest

  • job_task_id (string) Required

JobTaskStatQuery

  • query (StatisticsQuery) Required

JobTasksInfo

  • results (JobTaskInfo) Repeated Required

  • total_count (int32) Required

JobTaskRequest
JobTaskRequest
JobTaskQuery
JobTaskInfo
JobTasksInfo
delete
JobTaskRequest
Empty
get
JobTaskRequest
JobTaskInfo
list
JobTaskQuery
JobTasksInfo
stat
JobTaskStatQuery
Struct