azure-native.serialconsole.SerialPort
Explore with Pulumi AI
Represents the serial port of the parent resource.
Uses Azure REST API version 2018-05-01. In version 2.x of the Azure Native provider, it used API version 2018-05-01.
Create SerialPort Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SerialPort(name: string, args: SerialPortArgs, opts?: CustomResourceOptions);
@overload
def SerialPort(resource_name: str,
args: SerialPortArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SerialPort(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent_resource: Optional[str] = None,
parent_resource_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_provider_namespace: Optional[str] = None,
serial_port: Optional[str] = None,
state: Optional[SerialPortState] = None)
func NewSerialPort(ctx *Context, name string, args SerialPortArgs, opts ...ResourceOption) (*SerialPort, error)
public SerialPort(string name, SerialPortArgs args, CustomResourceOptions? opts = null)
public SerialPort(String name, SerialPortArgs args)
public SerialPort(String name, SerialPortArgs args, CustomResourceOptions options)
type: azure-native:serialconsole:SerialPort
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SerialPortArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. SerialPortArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SerialPortArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SerialPortArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. SerialPortArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serialPortResource = new AzureNative.SerialConsole.SerialPort("serialPortResource", new()
{
ParentResource = "string",
ParentResourceType = "string",
ResourceGroupName = "string",
ResourceProviderNamespace = "string",
SerialPort = "string",
State = AzureNative.SerialConsole.SerialPortState.Enabled,
});
example, err := serialconsole.NewSerialPort(ctx, "serialPortResource", &serialconsole.SerialPortArgs{
ParentResource: pulumi.String("string"),
ParentResourceType: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ResourceProviderNamespace: pulumi.String("string"),
SerialPort: pulumi.String("string"),
State: serialconsole.SerialPortStateEnabled,
})
var serialPortResource = new SerialPort("serialPortResource", SerialPortArgs.builder()
.parentResource("string")
.parentResourceType("string")
.resourceGroupName("string")
.resourceProviderNamespace("string")
.serialPort("string")
.state("enabled")
.build());
serial_port_resource = azure_native.serialconsole.SerialPort("serialPortResource",
parent_resource="string",
parent_resource_type="string",
resource_group_name="string",
resource_provider_namespace="string",
serial_port="string",
state=azure_native.serialconsole.SerialPortState.ENABLED)
const serialPortResource = new azure_native.serialconsole.SerialPort("serialPortResource", {
parentResource: "string",
parentResourceType: "string",
resourceGroupName: "string",
resourceProviderNamespace: "string",
serialPort: "string",
state: azure_native.serialconsole.SerialPortState.Enabled,
});
type: azure-native:serialconsole:SerialPort
properties:
parentResource: string
parentResourceType: string
resourceGroupName: string
resourceProviderNamespace: string
serialPort: string
state: enabled
SerialPort Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SerialPort resource accepts the following input properties:
- Parent
Resource This property is required. Changes to this property will trigger replacement.
- The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
- Parent
Resource Type This property is required. Changes to this property will trigger replacement.
- The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Resource
Provider Namespace This property is required. Changes to this property will trigger replacement.
- The namespace of the resource provider.
- Serial
Port Changes to this property will trigger replacement.
- The name of the serial port to create.
- State
Pulumi.
Azure Native. Serial Console. Serial Port State - Specifies whether the port is enabled for a serial console connection.
- Parent
Resource This property is required. Changes to this property will trigger replacement.
- The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
- Parent
Resource Type This property is required. Changes to this property will trigger replacement.
- The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Resource
Provider Namespace This property is required. Changes to this property will trigger replacement.
- The namespace of the resource provider.
- Serial
Port Changes to this property will trigger replacement.
- The name of the serial port to create.
- State
Serial
Port State Enum - Specifies whether the port is enabled for a serial console connection.
- parent
Resource This property is required. Changes to this property will trigger replacement.
- The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
- parent
Resource Type This property is required. Changes to this property will trigger replacement.
- The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- resource
Provider Namespace This property is required. Changes to this property will trigger replacement.
- The namespace of the resource provider.
- serial
Port Changes to this property will trigger replacement.
- The name of the serial port to create.
- state
Serial
Port State - Specifies whether the port is enabled for a serial console connection.
- parent
Resource This property is required. Changes to this property will trigger replacement.
- The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
- parent
Resource Type This property is required. Changes to this property will trigger replacement.
- The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- resource
Provider Namespace This property is required. Changes to this property will trigger replacement.
- The namespace of the resource provider.
- serial
Port Changes to this property will trigger replacement.
- The name of the serial port to create.
- state
Serial
Port State - Specifies whether the port is enabled for a serial console connection.
- parent_
resource This property is required. Changes to this property will trigger replacement.
- The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
- parent_
resource_ type This property is required. Changes to this property will trigger replacement.
- The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- resource_
provider_ namespace This property is required. Changes to this property will trigger replacement.
- The namespace of the resource provider.
- serial_
port Changes to this property will trigger replacement.
- The name of the serial port to create.
- state
Serial
Port State - Specifies whether the port is enabled for a serial console connection.
- parent
Resource This property is required. Changes to this property will trigger replacement.
- The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
- parent
Resource Type This property is required. Changes to this property will trigger replacement.
- The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- resource
Provider Namespace This property is required. Changes to this property will trigger replacement.
- The namespace of the resource provider.
- serial
Port Changes to this property will trigger replacement.
- The name of the serial port to create.
- state "enabled" | "disabled"
- Specifies whether the port is enabled for a serial console connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the SerialPort resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- Type string
- Resource type
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- Type string
- Resource type
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- type String
- Resource type
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name
- type string
- Resource type
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name
- type str
- Resource type
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- type String
- Resource type
Supporting Types
SerialPortState, SerialPortStateArgs
- Enabled
- enabled
- Disabled
- disabled
- Serial
Port State Enabled - enabled
- Serial
Port State Disabled - disabled
- Enabled
- enabled
- Disabled
- disabled
- Enabled
- enabled
- Disabled
- disabled
- ENABLED
- enabled
- DISABLED
- disabled
- "enabled"
- enabled
- "disabled"
- disabled
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:serialconsole:SerialPort 0 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0