Users Guide

Return Values
msg:
description: Overall status of the storage configuration operation.
returned: always
type: str
sample: "Successfully submitted create volume task."
task:
type: dict
description: Returns ID and URI of the created task.
returned: success
sample: {
"id": "JID_XXXXXXXXXXXXX",
"uri": "/redfish/v1/TaskService/Tasks/JID_XXXXXXXXXXXXX"
}
error_info:
type: dict
description: Details of a http error.
returned: on http error
sample: {
"error": {
"@Message.ExtendedInfo": [
{
"Message": "Unable to perform configuration operations because a
configuration job for the device already exists.",
"MessageArgs": [],
"MessageArgs@odata.count": 0,
"MessageId": "IDRAC.1.6.STOR023",
"RelatedProperties": [],
"RelatedProperties@odata.count": 0,
"Resolution": "Wait for the current job for the device to complete
or cancel the current job before attempting more configuration
operations on the device.",
"Severity": "Informational"
}
],
"code": "Base.1.2.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information"
}
}
Examples
- name: Create a volume with supported options.
redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
state: "present"
volume_type: "Mirrored"
name: "VD0"
controller_id: "RAID.Slot.1-1"
drives:
- Disk.Bay.5:Enclosure.Internal.0-1:RAID.Slot.1-1
- Disk.Bay.6:Enclosure.Internal.0-1:RAID.Slot.1-1
block_size_bytes: 512
capacity_bytes: 299439751168
optimum_io_size_bytes: 65536
encryption_types: NativeDriveEncryption
encrypted: true
- name: Create a volume with minimum options.
redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
state: "present"
controller_id: "RAID.Slot.1-1"
volume_type: "NonRedundant"
drives:
- Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
Modules for Redfish APIs
121