SerialPorts interface
表示 SerialPorts 的介面。
方法
方法詳細資料
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
選項參數。
傳回
Promise<SerialPortConnectResult>
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
選項參數。
傳回
Promise<SerialPortListResult>
listBySubscriptions(SerialPortsListBySubscriptionsOptionalParams)
處理要求以列出訂用帳戶中的所有 SerialPort 資源。
function listBySubscriptions(options?: SerialPortsListBySubscriptionsOptionalParams): Promise<SerialPortListResult>
參數
選項參數。
傳回
Promise<SerialPortListResult>