VirtualMachineRunCommands interface
表示 VirtualMachineRunCommands 的接口。
方法
方法详细信息
beginCreateOrUpdate(string, string, string, VirtualMachineRunCommand, VirtualMachineRunCommandsCreateOrUpdateOptionalParams)
用于创建或更新 run 命令的作。
function beginCreateOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineRunCommand>, VirtualMachineRunCommand>>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
应在其中创建或更新运行命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
- runCommand
- VirtualMachineRunCommand
提供给“创建虚拟机 RunCommand”作的参数。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<VirtualMachineRunCommand>, VirtualMachineRunCommand>>
beginCreateOrUpdateAndWait(string, string, string, VirtualMachineRunCommand, VirtualMachineRunCommandsCreateOrUpdateOptionalParams)
用于创建或更新 run 命令的作。
function beginCreateOrUpdateAndWait(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams): Promise<VirtualMachineRunCommand>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
应在其中创建或更新运行命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
- runCommand
- VirtualMachineRunCommand
提供给“创建虚拟机 RunCommand”作的参数。
选项参数。
返回
Promise<VirtualMachineRunCommand>
beginDelete(string, string, string, VirtualMachineRunCommandsDeleteOptionalParams)
用于删除 run 命令的作。
function beginDelete(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
应删除运行命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, VirtualMachineRunCommandsDeleteOptionalParams)
用于删除 run 命令的作。
function beginDeleteAndWait(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
应删除运行命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
选项参数。
返回
Promise<void>
beginUpdate(string, string, string, VirtualMachineRunCommandUpdate, VirtualMachineRunCommandsUpdateOptionalParams)
用于更新 run 命令的作。
function beginUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineRunCommand>, VirtualMachineRunCommand>>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
应更新运行命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
- runCommand
- VirtualMachineRunCommandUpdate
提供给更新虚拟机 RunCommand作的参数。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<VirtualMachineRunCommand>, VirtualMachineRunCommand>>
beginUpdateAndWait(string, string, string, VirtualMachineRunCommandUpdate, VirtualMachineRunCommandsUpdateOptionalParams)
用于更新 run 命令的作。
function beginUpdateAndWait(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams): Promise<VirtualMachineRunCommand>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
应更新运行命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
- runCommand
- VirtualMachineRunCommandUpdate
提供给更新虚拟机 RunCommand作的参数。
选项参数。
返回
Promise<VirtualMachineRunCommand>
get(string, string, VirtualMachineRunCommandsGetOptionalParams)
获取位置中订阅的特定运行命令。
function get(___location: string, commandId: string, options?: VirtualMachineRunCommandsGetOptionalParams): Promise<RunCommandDocument>
参数
- ___location
-
string
查询运行命令的位置。
- commandId
-
string
命令 ID。
选项参数。
返回
Promise<RunCommandDocument>
getByVirtualMachine(string, string, string, VirtualMachineRunCommandsGetByVirtualMachineOptionalParams)
用于获取 run 命令的作。
function getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams): Promise<VirtualMachineRunCommand>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
包含 run 命令的虚拟机的名称。
- runCommandName
-
string
虚拟机运行命令的名称。
返回
Promise<VirtualMachineRunCommand>
list(string, VirtualMachineRunCommandsListOptionalParams)
列出某个位置中订阅的所有可用运行命令。
function list(___location: string, options?: VirtualMachineRunCommandsListOptionalParams): PagedAsyncIterableIterator<RunCommandDocumentBase, RunCommandDocumentBase[], PageSettings>
参数
- ___location
-
string
查询运行命令的位置。
选项参数。
返回
listByVirtualMachine(string, string, VirtualMachineRunCommandsListByVirtualMachineOptionalParams)
获取虚拟机的所有运行命令的作。
function listByVirtualMachine(resourceGroupName: string, vmName: string, options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams): PagedAsyncIterableIterator<VirtualMachineRunCommand, VirtualMachineRunCommand[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。
- vmName
-
string
包含 run 命令的虚拟机的名称。