Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.54 KB | None | 0 0
  1. /**
  2.  * VixDiskLibConnectParams - Connection setup parameters.
  3.  *
  4.  * vmxSpec is required for opening a virtual disk on a datastore through
  5.  * the Virtual Center or ESX server.
  6.  * vmxSpec is of the form:
  7.  *    <vmxPathName>?dcPath=<dcpath>&dsName=<dsname>
  8.  * where
  9.  *    vmxPathName is the fullpath for the VMX file,
  10.  *    dcpath is the inventory path of the datacenter and
  11.  *    dsname is the datastore name.
  12.  *
  13.  * Inventory path for the datacenter can be read off the Virtual Center
  14.  * client's inventory tree.
  15.  *
  16.  * Example VM spec:
  17.  *    "MyVm/MyVm.vmx?dcPath=Path/to/MyDatacenter&dsName=storage1"
  18.  */
  19. typedef struct {
  20.    char *vmxSpec;     // URL like spec of the VM.
  21.    char *serverName;  // Name or IP address of VC / ESX.
  22.    char *thumbPrint;  // SSL Certificate thumb print.
  23.    long privateUse;   // This value is ignored.
  24.    VixDiskLibCredType credType;
  25.  
  26.    union VixDiskLibCreds {
  27.       struct VixDiskLibUidPasswdCreds {
  28.          char *userName; // User id and password on the
  29.          char *password; // VC/ESX host.
  30.       } uid;
  31.       struct VixDiskLibSessionIdCreds { // Not supported in 1.0
  32.          char *cookie;
  33.          char *userName;
  34.          char *key;
  35.       } sessionId;
  36.       struct VixDiskLibTicketIdCreds *ticketId; // Internal use only.
  37.    } creds;
  38.  
  39.    uint32 port;        // port to use for authenticating with VC/ESXi host
  40.    uint32 nfcHostPort; // port to use for establishing NFC connection to ESXi host
  41.    char *vimApiVer;    // VIM API version to use, private
  42. } VixDiskLibConnectParams;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement