你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachineRunCommandsOperations 类

警告

请勿直接实例化此类。

相反,应通过以下方式访问以下操作:

ComputeManagementClient's

<xref:virtual_machine_run_commands> 属性。

继承
builtins.object
VirtualMachineRunCommandsOperations

构造函数

VirtualMachineRunCommandsOperations(*args, **kwargs)

方法

get

获取某个位置中订阅的特定运行命令。

list

列出某个位置中订阅的所有可用运行命令。

get

获取某个位置中订阅的特定运行命令。

get(location: str, command_id: str, **kwargs: Any) -> RunCommandDocument

参数

location
str
必需

查询运行命令的位置。 必需。

command_id
str
必需

命令 ID。必需。

cls
callable

将传递直接响应的自定义类型或函数

返回

RunCommandDocument 或 cls 的结果 (响应)

返回类型

例外

list

列出某个位置中订阅的所有可用运行命令。

list(location: str, **kwargs: Any) -> Iterable[RunCommandDocumentBase]

参数

location
str
必需

查询运行命令的位置。 必需。

cls
callable

将传递直接响应的自定义类型或函数

返回

迭代器,如 RunCommandDocumentBase 的实例或 cls 的结果 (响应)

返回类型

例外

属性

models

models = <module 'azure.mgmt.compute.v2017_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2017_12_01\\models\\__init__.py'>