Vsan Iscsi Target System Vsan Vit Add Iscsi Target
Adds iSCSI target to this cluster.
The alias in VsanIscsiTargetSpec
must be provided and unique.
If iqn provided, it should be unique, 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.
"VsanVitAddIscsiTargetRequestType Object"
: reference to cluster resource.
Required privileges: Host.Inventory.EditCluster
: reference to iSCSI target 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}/VsanVitAddIscsiTarget