Skip to main content
ONTAP tools for VMware vSphere 10.1
È disponibile una versione più recente di questo prodotto.
La versione in lingua italiana fornita proviene da una traduzione automatica. Per eventuali incoerenze, fare riferimento alla versione in lingua inglese.

Montare e smontare un datastore vVols

Collaboratori

È possibile montare un datastore di volumi virtuali VMware (vVol) su uno o più host aggiuntivi per fornire accesso allo storage a host aggiuntivi. È possibile smontare il datastore vVol utilizzando le API.

Utilizzare la seguente API per montare o smontare un datastore vVol. È necessario passare x-auth per l'API. È possibile generare questo x-auth dalla nuova API aggiunta in Auth in Swagger.

/virtualization/api/v1/auth/vcenter-login
PATCH
/virtualization/api/v1/vcenters/{vcguid}/vvols/datastores/{moref}/hosts

Ottieni moref del datastore vVol da vCenter.

Corpo della richiesta

{
  "operation": "mount",
  "morefs": [
    "host-7044"
  ],
}

Esempi: * Montare su un host aggiuntivo

Utilizzare la seguente API per il montaggio su host aggiuntivo:

/api/v1/vcenters/cdded9ad-6bsd-4c9e-b44g-691250bfe2df/vvols/datastores/datastore-24/hosts

     Request Body
     {
      "operation": "mount",
      "morefs": ["host-13"],
     }
  • Smontare su un host aggiuntivo

Utilizzare la seguente API per smontare l'host aggiuntivo:

/api/v1/vcenters/cdded9ad-6bsd-4c9e-b44g-691250bfe2df/vvols/datastores/datastore-24/hosts

     Request Body
     {
      "operation": "unmount",
      "morefs": ["host-13"],
     }