Create a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters)
| Return value | ||
| type | description | |
| SR | The reference of the newly created Storage Repository. | |
| Parameters | ||
| name | type | description |
| session_id | session | valid session reference |
| host | host | The host to create/make the SR on |
| device_config | Map[string,string] | The device config string that will be passed to backend SR driver |
| physical_size | int | The physical size of the new storage repository |
| name_label | string | The name of the new storage repository |
| name_description | string | The description of the new storage repository |
| type | string | The type of the SR; used to specify the SR backend driver to use |
| content_type | string | The type of the new SRs content, if required (e.g. ISOs) |
| shared | bool | True if the SR (is capable of) being shared by multiple hosts |
| sm_config | Map[string,string] | Storage backend specific configuration options |
| Errors | ||
| name | arguments | description |
| SR_UNKNOWN_DRIVER | driver | The SR could not be connected because the driver was not recognised. |
- Message has both a synchronous and asynchronous version
- This is a custom message