@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets the configured settings for a serial port
*
* Uses Azure REST API version 2018-05-01.
*/
export declare function getSerialPort(args: GetSerialPortArgs, opts?: pulumi.InvokeOptions): Promise<GetSerialPortResult>;
export interface GetSerialPortArgs {
/**
* The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
*/
parentResource: string;
/**
* The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
*/
parentResourceType: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
/**
* The namespace of the resource provider.
*/
resourceProviderNamespace: string;
/**
* The name of the serial port to connect to.
*/
serialPort: string;
}
/**
* Represents the serial port of the parent resource.
*/
export interface GetSerialPortResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Resource Id
*/
readonly id: string;
/**
* Resource name
*/
readonly name: string;
/**
* Specifies whether the port is enabled for a serial console connection.
*/
readonly state?: string;
/**
* Resource type
*/
readonly type: string;
}
/**
* Gets the configured settings for a serial port
*
* Uses Azure REST API version 2018-05-01.
*/
export declare function getSerialPortOutput(args: GetSerialPortOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSerialPortResult>;
export interface GetSerialPortOutputArgs {
/**
* The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
*/
parentResource: pulumi.Input<string>;
/**
* The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
*/
parentResourceType: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The namespace of the resource provider.
*/
resourceProviderNamespace: pulumi.Input<string>;
/**
* The name of the serial port to connect to.
*/
serialPort: pulumi.Input<string>;
}