共用方式為


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
必要

命令識別碼。必要。

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'>