当前位置: 首页>>代码示例>>Python>>正文


Python executer.execute_soap函数代码示例

本文整理汇总了Python中pyvisdk.esxcli.executer.execute_soap函数的典型用法代码示例。如果您正苦于以下问题:Python execute_soap函数的具体用法?Python execute_soap怎么用?Python execute_soap使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了execute_soap函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get

 def get(self):
     '''
     Get global IP settings
     :returns: vim.EsxCLI.network.ip.get.IPInfo
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.network.ip.Get',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_network_ip.py

示例2: reload

 def reload(self):
     '''
     Reload the log daemon to apply any new configuration options
     :returns: boolean
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.system.syslog.Reload',
                         )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_system_syslog.py

示例3: list

 def list(self):
     '''
     List the VMFS extents available on the host.
     :returns: vim.EsxCLI.storage.vmfs.extent.list.FilesystemVMFSExtents[]
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.storage.vmfs.extent.List',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_storage_vmfs_extent.py

示例4: get

 def get(self):
     '''
     Obtain status information on the memory filesystem as a whole.
     :returns: vim.EsxCLI.system.visorfs.get.VisorfsStatus
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.system.visorfs.Get',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_system_visorfs.py

示例5: list

 def list(self):
     '''
     List the VMkernel UserWorld processes currently on the host.
     :returns: vim.EsxCLI.system.process.list.UserWorld[]
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.system.process.List',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_system_process.py

示例6: get

 def get(self):
     '''
     Disply the number of microseconds the system has been running.
     :returns: long
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.system.stats.uptime.Get',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_system_stats_uptime.py

示例7: list

 def list(self):
     '''
     This command will list the Physical NICs currently installed and loaded on the system.
     :returns: vim.EsxCLI.network.nic.list.Nic[]
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.network.nic.List',
                         )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_network_nic.py

示例8: get

 def get(self):
     '''
     Get the keyboard layout
     :returns: string
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.system.settings.keyboard.layout.Get',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_system_settings_keyboard_layout.py

示例9: list

 def list(self):
     '''
     List the NAS volumes currently known to the ESX host.
     :returns: vim.EsxCLI.storage.nfs.list.NasMount[]
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.storage.nfs.List',
                         )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_storage_nfs.py

示例10: install

 def install(self, depot, profile, dryrun=None, force=None, maintenancemode=None, noliveinstall=None, nosigcheck=None, oktoremove=None, proxy=None):
     '''
     Installs or applies an image profile from a depot to this host. This command completely replaces the installed image with the image defined by the new image profile, and may result in the loss of installed VIBs. The common vibs between host and image profile will be skipped. To preserve installed VIBs, use profile update instead. WARNING: If your installation requires a reboot, you need to disable HA first.
     :param depot: string[], Specifies full remote URLs of the depot index.xml or server file path pointing to an offline bundle .zip file.
     :param dryrun: boolean, Performs a dry-run only. Report the VIB-level operations that would be performed, but do not change anything in the system.
     :param force: boolean, Bypasses checks for package dependencies, conflicts, obsolescence, and acceptance levels. Really not recommended unless you know what you are doing. Use of this option will result in a warning being displayed in the vSphere Client.
     :param maintenancemode: boolean, Pretends that maintenance mode is in effect. Otherwise, installation will stop for live installs that require maintenance mode. This flag has no effect for reboot required remediations.
     :param noliveinstall: boolean, Forces an install to /altbootbank even if the VIBs are eligible for live installation or removal. Will cause installation to be skipped on PXE-booted hosts.
     :param nosigcheck: boolean, Bypasses acceptance level verification, including signing. Use of this option poses a large security risk and will result in a SECURITY ALERT warning being displayed in the vSphere Client.
     :param oktoremove: boolean, Allows the removal of installed VIBs as part of applying the image profile. If not specified, esxcli will error out if applying the image profile results in the removal of installed VIBs.
     :param profile: string, Specifies the name of the image profile to install.
     :param proxy: string, Specifies a proxy server to use for HTTP, FTP, and HTTPS connections. The format is proxy-url:port.
     :returns: vim.EsxCLI.software.profile.install.InstallationResult
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.software.profile.Install',
                         depot=depot,
                         dryrun=dryrun,
                         force=force,
                         maintenancemode=maintenancemode,
                         noliveinstall=noliveinstall,
                         nosigcheck=nosigcheck,
                         oktoremove=oktoremove,
                         profile=profile,
                         proxy=proxy,
                         )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:25,代码来源:ha_cli_handler_software_profile.py

示例11: list

 def list(self):
     '''
     List the keyboard layout
     :returns: vim.EsxCLI.system.settings.keyboard.layout.list.Layout[]
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.system.settings.keyboard.layout.List',
                         )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_system_settings_keyboard_layout.py

示例12: update

 def update(self, depot, profile, allowdowngrades=None, dryrun=None, force=None, maintenancemode=None, noliveinstall=None, nosigcheck=None, proxy=None):
     '''
     Updates the host with VIBs from an image profile in a depot. Installed VIBs may be upgraded (or downgraded if --allow-downgrades is specified), but they will not be removed. Any VIBs in the image profile which are not related to any installed VIBs will be added to the host. WARNING: If your installation requires a reboot, you need to disable HA first.
     :param allowdowngrades: boolean, If this option is specified, then the VIBs from the image profile which update, downgrade, or are new to the host will be installed. If the option is not specified, then the VIBs which update or are new to the host will be installed.
     :param depot: string[], Specifies full remote URLs of the depot index.xml or server file path pointing to an offline bundle .zip file.
     :param dryrun: boolean, Performs a dry-run only. Report the VIB-level operations that would be performed, but do not change anything in the system.
     :param force: boolean, Bypasses checks for package dependencies, conflicts, obsolescence, and acceptance levels. Really not recommended unless you know what you are doing. Use of this option will result in a warning being displayed in the vSphere Client.
     :param maintenancemode: boolean, Pretends that maintenance mode is in effect. Otherwise, installation will stop for live installs that require maintenance mode. This flag has no effect for reboot required remediations.
     :param noliveinstall: boolean, Forces an install to /altbootbank even if the VIBs are eligible for live installation or removal. Will cause installation to be skipped on PXE-booted hosts.
     :param nosigcheck: boolean, Bypasses acceptance level verification, including signing. Use of this option poses a large security risk and will result in a SECURITY ALERT warning being displayed in the vSphere Client.
     :param profile: string, Specifies the name of the image profile to update the host with.
     :param proxy: string, Specifies a proxy server to use for HTTP, FTP, and HTTPS connections. The format is proxy-url:port.
     :returns: vim.EsxCLI.software.profile.update.InstallationResult
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.software.profile.Update',
                         allowdowngrades=allowdowngrades,
                         depot=depot,
                         dryrun=dryrun,
                         force=force,
                         maintenancemode=maintenancemode,
                         noliveinstall=noliveinstall,
                         nosigcheck=nosigcheck,
                         profile=profile,
                         proxy=proxy,
                         )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:25,代码来源:ha_cli_handler_software_profile.py

示例13: set

    def set(self, portgroupname, activeuplinks=None, failback=None, failuredetection=None, loadbalancing=None, notifyswitches=None, standbyuplinks=None, usevswitch=None):
        '''
        Configure the Failover policy for a port group. These setting may potentially override virtual switch settings.
        :param activeuplinks: string, Configure the list of active adapters and their failover order. This list must be a comma seperated list of values with the uplink name and no spaces. Example:  --active-uplinks=vmnic0,vmnic3,vmnic7,vmnic1
        :param failback: boolean, Configure whether a NIC will be used immediately when it comes back in service after a failover
        :param failuredetection: string, Set the method of determining how a network outage is detected. 
    beacon: Detect failures based on active beaconing to the vswitch
    link: Detect failures based on the NIC link state

        :param loadbalancing: string, Set the load balancing policy for this policy. This can be one of the following options: 
    explicit: Always use the highest order uplink from the list of active adapters which pass failover criteria.
    iphash: Route based on hashing the src and destination IP addresses
    mac: Route based on the MAC address of the packet source.
    portid: Route based on the originating virtual port ID.

        :param notifyswitches: boolean, Indicate whether to send a notification to physical switches on failover
        :param portgroupname: string, The name of the port group to set failover policy for.
        :param standbyuplinks: string, Configure the list of standby adapters and their failover order. This list must be a comma seperated list of values with the uplink name and no spaces. Example:  --standby-uplinks=vmnic2,vmnic4,vmnic8,vmnic6,vmnic11
        :param usevswitch: boolean, Reset all values for this policy to use parent virtual switch's settings instead of overriding the settings for the port group. Using this in conjunction with other settings will first reset all of the fields to use the virtual switch setting and then apply the other options after the reset.
        :returns: boolean
        '''
        return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.network.vswitch.standard.portgroup.policy.failover.Set',
                            activeuplinks=activeuplinks,
                            failback=failback,
                            failuredetection=failuredetection,
                            loadbalancing=loadbalancing,
                            notifyswitches=notifyswitches,
                            portgroupname=portgroupname,
                            standbyuplinks=standbyuplinks,
                            usevswitch=usevswitch,
                            )
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:31,代码来源:ha_cli_handler_network_vswitch_standard_portgroup_policy_failover.py

示例14: get

 def get(self):
     '''
     Disply the current hardware clock time.
     :returns: string
     '''
     return execute_soap(self._client, self._host, self.moid, 'vim.EsxCLI.hardware.clock.Get',
                         )   
开发者ID:Infinidat,项目名称:pyvisdk,代码行数:7,代码来源:ha_cli_handler_hardware_clock.py

示例15: get

 def get(self, adapter):
     """
     Get the iSCSI parameters for the iSCSI Host Bus Adapter.
     :param adapter: string, The iSCSI adapter name.
     :returns: vim.EsxCLI.iscsi.adapter.param.get.iScsiParm[]
     """
     return execute_soap(self._client, self._host, self.moid, "vim.EsxCLI.iscsi.adapter.param.Get", adapter=adapter)
开发者ID:pombredanne,项目名称:toppatch,代码行数:7,代码来源:ha_cli_handler_iscsi_adapter_param.py


注:本文中的pyvisdk.esxcli.executer.execute_soap函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。