Class GetOperatingSystem
Inheritance
System.Object
GetOperatingSystem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public static class GetOperatingSystem
Methods
View SourceInvokeAsync(GetOperatingSystemArgs, InvokeOptions)
Use this data source to get Packet Operating System image.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Packet = Pulumi.Packet;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Packet.GetOperatingSystem.InvokeAsync(new Packet.GetOperatingSystemArgs
{
Name = "Container Linux",
Distro = "coreos",
Version = "alpha",
ProvisionableOn = "c1.small.x86",
}));
var server = new Packet.Device("server", new Packet.DeviceArgs
{
Hostname = "tf.coreos2",
Plan = "c1.small.x86",
Facilities =
{
"ewr1",
},
OperatingSystem = example.Apply(example => example.Id),
BillingCycle = "hourly",
ProjectId = local.Project_id,
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetOperatingSystemResult> InvokeAsync(GetOperatingSystemArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOperatingSystemArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetOperatingSystemResult> |