scaleuptechnologies.idoit.idoit_cat_storage_device module – Create or update a storage_device category to an object

Note

This module is part of the scaleuptechnologies.idoit collection (version 0.20.0).

To install it, use: ansible-galaxy collection install scaleuptechnologies.idoit.

To use it in a playbook, specify: scaleuptechnologies.idoit.idoit_cat_storage_device.

Synopsis

  • Adds C__CATG__STORAGE_DEVICE category to an object if not there or update values

Parameters

Parameter

Comments

capacity

float

Capacity of the device

controller_id

integer

Id of the controller

description

string

Description

firmware

string

Firmware

id

integer

i-doit category id to update

idoit

dictionary / required

i-doit credentials

api_key

string / required

The API Key for i-doit.

api_log

boolean

Return an api log of the i-doit api.

Choices:

  • false ← (default)

  • true

jrpc_url

string / required

The Json RPC Url to i-doit.

password

string / required

The password for the user.

user

string / required

The username to login in i-doit.

manufacturer

string

Name of Manufactuerer of the device, if not there it will be created

manufacturer_id

integer

Id of Manufactuerer of the device

model

string

Model of the device, if not there it will be created

model_id

integer

Id of Model of the device

obj_id

integer / required

i-doit object id

search_by_fields

list / elements=string

field names to compare to find a category to update. Please note, Dialog-Fields can only searched by id

serial

string

Serial number

state

string

State of the category

Choices:

  • "present" ← (default)

  • "absent"

  • "merge"

title

string

Title

type

string

Type of the Device like CD/DVD-ROM, Floppy Drive, Hard Drive, SSD, ..

type_id

integer

Id of the type

unit

string

Memory unit of the capacity like B, KB, MB, TB, GB

unit_id

integer

Id of the memory unit

Examples

- name: Set a new Disk
  scaleuptechnologies.idoit.idoit_cat_storage_device:
    capacity: 250
    firmware: 21.3.4-0001
    idoit: '{{ idoit_access }}'
    manufacturer: Samsung
    model: SM2300
    obj_id: 1320
    title: Slot 1,2
    type: SSD
    unit: GB

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

changed

boolean

Are there changes?

Returned: always

data

complex

New data

Returned: success

Sample: {"description": "", "firmware": "", "manufacturer_id": 5, "model_id": 22, "product_id": "", "serial": "Test 42", "service_tag": "CZJ037040C"}

id

integer

Category Id of the saved category

Returned: success

return

complex

I-Doit API Result

Returned: success

Authors

  • Sven Anders (during work by ScaleUp Technologies) (@tabacha)