Vsan Iscsi Target System Vsan Vit Edit Iscsi LUN
Edits iSCSI LUN in specified target.
All properties in
VsanIscsiLUNSpec
can be changed.
If new LUN id is provided, it
should be in range [0, 255] and be unique in the specified target, if lunSize
is provided, it should be greater than existing size, i.e., LUNs are only
allowed to grow, if either of them are not met, a VsanFault exception will be
raised. If storagePolicy is provided, it is set by calling
SetVsanObjectPolicy
in VsanObjectSystem
.
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.
"VsanVitEditIscsiLUNRequestType Object"
: reference to cluster resource.
Required privileges: Host.Inventory.EditCluster
: iSCSI 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}/VsanVitEditIscsiLUN