emc-openstack / storops

Python storage management library for VNX and Unity.
Apache License 2.0
54 stars 29 forks source link

Unity: Check the functionality of binding a initiator to another host #309

Closed Murray-LIANG closed 4 years ago

Murray-LIANG commented 4 years ago

On Unisphere, there is a functionality of binding an initiator to another host.

Navigate to the Initiators page on Unisphere, double click the initiator and select another host.

The captured curl commands:

curl 'https://10.245.101.39/api/instances/hostInitiator/HostInitiator_21/action/modify?compact=true&visibility=Engineering&timeout=5' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'X-EMC-NO-REDIRECT: TRUE' \
  -H 'Accept-Language: en-US' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Cache-Control: no-cache' \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'EMC-CSRF-TOKEN: mWmYuFAtJdCu3Y1OjQ6sT/dCsP0YGjDIutio2QtKTqA2LrXUI5u0x3h+IOkcLV09sPLouoyVazF8GdnkeEow6M5BZRB0bDcTCHAF9HxSUTo=' \
  -H 'Origin: https://10.245.101.39' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Referer: https://10.245.101.39/index.html' \
  -H 'Cookie: MOD_AUTH_CAS_S=b96aa5b8f56f3230e4c544e6c2d6bb26b814efb2; mod_sec_emc=value1&WTTz65P%2FuZ0wLG8APspZvD5UnS3IqKaQWofS%2FUhHnZqKp0rnNBVqyArrxa08MRM1%0A&value3&1&value2&f2df3ea1057456e0489381439d77f2e006112bfcf61f65a0433b5a2efa25fc1c' \
  --data-binary '{"isIgnored":false,"chapUser":"","chapSecret":"","host":{"id":"Host_17"}}' \
  --compressed \
  --insecure
Murray-LIANG commented 4 years ago

It's supported by initiator.modify(host).