Skip to content
Last updated

Collect Server Inventory

Overview

This job initiates a server inventory data collection job on directly managed or OneView managed servers.

Job Template IDResource TypeJob Parameters
d6595f1b-84e6-4587-ade5-656e2a5ea20dcompute-ops-mgmt/serverfilters is_reports_call

Create Job

A job can be created by issuing a POST to the /compute-ops-mgmt/v1/jobs endpoint with the correct payload for the job.

The following properties are used when creating a job:

PropertyJSON TypeDescriptionRequired?
jobTemplatestring (id)The durable Template ID of the jobYes
resourceTypestring (type)The TYPE of the resource the job will operate onYes
resourceIdstring (id)The ID of the resource the job will operate onYes
jobParamsobjectAny additional data required by the jobNo

If the job was created successfully, a 201 Created response is returned. The response includes the job resource which has a job resourceUri that you can use to track the progress of the job.

Job Parameters

This table summarizes the supported properties in jobParams.

PropertyJSON TypeValuesRequired?
filtersarrayList of inventory subresources to be requestedNo
is_reports_callbooleanPopulates inventory to roundup DBNo

Parameter properties

  • filters: This property is a list of inventory resources that should be collected from the server. An empty list will collect all inventory resources. The following case sensitive values are supported:
    • Chassis
    • Processor
    • memory
    • networkAdapters
    • localStorage
    • localStorageV2
    • devices
    • devicesV2
    • powerSupplies
    • fans
    • firmware
    • software
  • is_reports_call: This flag determines if the inventory should be made available to reports.
    • Default: false

Examples

Inventory request payload examples for creating this job.

Example 1

Collect complete inventory of a server.

{
  "jobTemplate": "d6595f1b-84e6-4587-ade5-656e2a5ea20d",
  "resourceType": "ccompute-ops-mgmt/server",
  "resourceId": "854361-001+2C201515GR",
  "jobParams": {
    "operationType": "GracefulShutdown"
  }
}

Example 2

Collect complete server inventory and make it available for reporting.

{
  "jobTemplate": "d6595f1b-84e6-4587-ade5-656e2a5ea20d",
  "resourceType": "ccompute-ops-mgmt/server",
  "resourceId": "854361-001+2C201515GR",
  "jobParams": {
    "is_reports_call": true
  }
}

Example 3

Collect server inventory for the provided subresources in the filters.

{
  "jobTemplate": "d6595f1b-84e6-4587-ade5-656e2a5ea20d",
  "resourceType": "ccompute-ops-mgmt/server",
  "resourceId": "854361-001+2C201515GR",
  "jobParams": {
    "filters": ["Chassis", "Processor", "memory", "networkAdapters"]
  }
}

Example 4

Collect server inventory for the provided subresources in the filters and also make it available for reporting.

{
  "jobTemplate": "d6595f1b-84e6-4587-ade5-656e2a5ea20d",
  "resourceType": "ccompute-ops-mgmt/server",
  "resourceId": "854361-001+2C201515GR",
  "jobParams": {
    "is_reports_call": true,
    "filters": ["devices", "powerSupplies", "fans", "firmware", "software"]
  }
}