Vsan Iscsi Target System Vsan Vit Add Iscsi LUN
Adds iSCSI LUN to specified target.
If the target
cannot be found, a VsanFault exception is raised.
If the LUN id is provided, it should be in range [0, 255] and be unique in the specified target. The LUN size should be provided, its minimum size is 1MB, the maximum size is 62TB. If either of them is not met, a VsanFault will be raised. Some unhealthy status of the vSAN iSCSI service can also lead to this VsanFault exception, e.g., the unavailability of the home object.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case VsanIscsiTargetSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"VsanVitAddIscsiLUNRequestType Object"
: reference to cluster resource.
Required privileges: Host.Inventory.EditCluster
: target alias
: reference to iSCSI LUN specification.
The related task.
{
"0": "M",
"1": "o",
"2": "R",
"3": "e",
"4": "f",
"5": "T",
"6": "a",
"7": "s",
"8": "k",
"9": " ",
"10": "O",
"11": "b",
"12": "j",
"13": "e",
"14": "c",
"15": "t"
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanIscsiTargetSystem/{moId}/VsanVitAddIscsiLUN