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

SerialPorts interface

表示 SerialPorts 的接口。

方法

connect(string, string, string, string, string, SerialPortsConnectOptionalParams)

连接到目标资源的串行端口

create(string, string, string, string, string, SerialPort, SerialPortsCreateOptionalParams)

创建或更新串行端口

delete(string, string, string, string, string, SerialPortsDeleteOptionalParams)

删除串行端口

get(string, string, string, string, string, SerialPortsGetOptionalParams)

获取串行端口的配置设置

list(string, string, string, string, SerialPortsListOptionalParams)

列出父资源的所有已配置的串行端口

listBySubscriptions(SerialPortsListBySubscriptionsOptionalParams)

处理请求以列出订阅中的所有 SerialPort 资源。

方法详细信息

connect(string, string, string, string, string, SerialPortsConnectOptionalParams)

连接到目标资源的串行端口

function connect(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsConnectOptionalParams): Promise<SerialPortConnectResult>

参数

resourceGroupName

string

资源组的名称。

resourceProviderNamespace

string

资源提供程序的命名空间。

parentResourceType

string

父资源的资源类型。 例如:“virtualMachines”或“virtualMachineScaleSets”

parentResource

string

串行端口的父级的资源名称或从属路径。 例如:虚拟机的名称。

serialPort

string

要连接到的串行端口的名称。

options
SerialPortsConnectOptionalParams

选项参数。

返回

create(string, string, string, string, string, SerialPort, SerialPortsCreateOptionalParams)

创建或更新串行端口

function create(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, parameters: SerialPort, options?: SerialPortsCreateOptionalParams): Promise<SerialPort>

参数

resourceGroupName

string

资源组的名称。

resourceProviderNamespace

string

资源提供程序的命名空间。

parentResourceType

string

父资源的资源类型。 例如:“virtualMachines”或“virtualMachineScaleSets”

parentResource

string

串行端口的父级的资源名称或从属路径。 例如:虚拟机的名称。

serialPort

string

要创建的串行端口的名称。

parameters
SerialPort

提供用于创建串行端口的参数。

options
SerialPortsCreateOptionalParams

选项参数。

返回

Promise<SerialPort>

delete(string, string, string, string, string, SerialPortsDeleteOptionalParams)

删除串行端口

function delete(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

resourceProviderNamespace

string

资源提供程序的命名空间。

parentResourceType

string

父资源的资源类型。 例如:“virtualMachines”或“virtualMachineScaleSets”

parentResource

string

串行端口的父级的资源名称或从属路径。 例如:虚拟机的名称。

serialPort

string

要删除的串行端口的名称。

options
SerialPortsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, string, string, SerialPortsGetOptionalParams)

获取串行端口的配置设置

function get(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsGetOptionalParams): Promise<SerialPort>

参数

resourceGroupName

string

资源组的名称。

resourceProviderNamespace

string

资源提供程序的命名空间。

parentResourceType

string

父资源的资源类型。 例如:“virtualMachines”或“virtualMachineScaleSets”

parentResource

string

串行端口的父级的资源名称或从属路径。 例如:虚拟机的名称。

serialPort

string

要连接到的串行端口的名称。

options
SerialPortsGetOptionalParams

选项参数。

返回

Promise<SerialPort>

list(string, string, string, string, SerialPortsListOptionalParams)

列出父资源的所有已配置的串行端口

function list(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, options?: SerialPortsListOptionalParams): Promise<SerialPortListResult>

参数

resourceGroupName

string

资源组的名称。

resourceProviderNamespace

string

资源提供程序的命名空间。

parentResourceType

string

父资源的资源类型。 例如:“virtualMachines”或“virtualMachineScaleSets”

parentResource

string

串行端口的父级的资源名称或从属路径。 例如:虚拟机的名称。

options
SerialPortsListOptionalParams

选项参数。

返回

listBySubscriptions(SerialPortsListBySubscriptionsOptionalParams)

处理请求以列出订阅中的所有 SerialPort 资源。

function listBySubscriptions(options?: SerialPortsListBySubscriptionsOptionalParams): Promise<SerialPortListResult>

参数

返回