netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger
netbox.getDeviceType
Explore with Pulumi AI
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const ex1 = netbox.getDeviceType({
model: "7210 SAS-Sx 10/100GE",
});
const ex2 = netbox.getDeviceType({
slug: "7210-sas-sx-10-100GE",
});
const ex3 = netbox.getDeviceType({
manufacturer: "Nokia",
partNumber: "3HE11597AARB01",
});
import pulumi
import pulumi_netbox as netbox
ex1 = netbox.get_device_type(model="7210 SAS-Sx 10/100GE")
ex2 = netbox.get_device_type(slug="7210-sas-sx-10-100GE")
ex3 = netbox.get_device_type(manufacturer="Nokia",
part_number="3HE11597AARB01")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v3/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netbox.LookupDeviceType(ctx, &netbox.LookupDeviceTypeArgs{
Model: pulumi.StringRef("7210 SAS-Sx 10/100GE"),
}, nil)
if err != nil {
return err
}
_, err = netbox.LookupDeviceType(ctx, &netbox.LookupDeviceTypeArgs{
Slug: pulumi.StringRef("7210-sas-sx-10-100GE"),
}, nil)
if err != nil {
return err
}
_, err = netbox.LookupDeviceType(ctx, &netbox.LookupDeviceTypeArgs{
Manufacturer: pulumi.StringRef("Nokia"),
PartNumber: pulumi.StringRef("3HE11597AARB01"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var ex1 = Netbox.GetDeviceType.Invoke(new()
{
Model = "7210 SAS-Sx 10/100GE",
});
var ex2 = Netbox.GetDeviceType.Invoke(new()
{
Slug = "7210-sas-sx-10-100GE",
});
var ex3 = Netbox.GetDeviceType.Invoke(new()
{
Manufacturer = "Nokia",
PartNumber = "3HE11597AARB01",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.NetboxFunctions;
import com.pulumi.netbox.inputs.GetDeviceTypeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ex1 = NetboxFunctions.getDeviceType(GetDeviceTypeArgs.builder()
.model("7210 SAS-Sx 10/100GE")
.build());
final var ex2 = NetboxFunctions.getDeviceType(GetDeviceTypeArgs.builder()
.slug("7210-sas-sx-10-100GE")
.build());
final var ex3 = NetboxFunctions.getDeviceType(GetDeviceTypeArgs.builder()
.manufacturer("Nokia")
.partNumber("3HE11597AARB01")
.build());
}
}
variables:
ex1:
fn::invoke:
function: netbox:getDeviceType
arguments:
model: 7210 SAS-Sx 10/100GE
ex2:
fn::invoke:
function: netbox:getDeviceType
arguments:
slug: 7210-sas-sx-10-100GE
ex3:
fn::invoke:
function: netbox:getDeviceType
arguments:
manufacturer: Nokia
partNumber: 3HE11597AARB01
Using getDeviceType
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDeviceType(args: GetDeviceTypeArgs, opts?: InvokeOptions): Promise<GetDeviceTypeResult>
function getDeviceTypeOutput(args: GetDeviceTypeOutputArgs, opts?: InvokeOptions): Output<GetDeviceTypeResult>
def get_device_type(id: Optional[str] = None,
manufacturer: Optional[str] = None,
model: Optional[str] = None,
part_number: Optional[str] = None,
slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDeviceTypeResult
def get_device_type_output(id: Optional[pulumi.Input[str]] = None,
manufacturer: Optional[pulumi.Input[str]] = None,
model: Optional[pulumi.Input[str]] = None,
part_number: Optional[pulumi.Input[str]] = None,
slug: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeviceTypeResult]
func LookupDeviceType(ctx *Context, args *LookupDeviceTypeArgs, opts ...InvokeOption) (*LookupDeviceTypeResult, error)
func LookupDeviceTypeOutput(ctx *Context, args *LookupDeviceTypeOutputArgs, opts ...InvokeOption) LookupDeviceTypeResultOutput
> Note: This function is named LookupDeviceType
in the Go SDK.
public static class GetDeviceType
{
public static Task<GetDeviceTypeResult> InvokeAsync(GetDeviceTypeArgs args, InvokeOptions? opts = null)
public static Output<GetDeviceTypeResult> Invoke(GetDeviceTypeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeviceTypeResult> getDeviceType(GetDeviceTypeArgs args, InvokeOptions options)
public static Output<GetDeviceTypeResult> getDeviceType(GetDeviceTypeArgs args, InvokeOptions options)
fn::invoke:
function: netbox:index/getDeviceType:getDeviceType
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of this resource.
- Manufacturer string
- Model string
- Part
Number string - Slug string
- Id string
- The ID of this resource.
- Manufacturer string
- Model string
- Part
Number string - Slug string
- id String
- The ID of this resource.
- manufacturer String
- model String
- part
Number String - slug String
- id string
- The ID of this resource.
- manufacturer string
- model string
- part
Number string - slug string
- id str
- The ID of this resource.
- manufacturer str
- model str
- part_
number str - slug str
- id String
- The ID of this resource.
- manufacturer String
- model String
- part
Number String - slug String
getDeviceType Result
The following output properties are available:
- Id string
- The ID of this resource.
- Is
Full boolDepth - Manufacturer
Id double - UHeight double
- Manufacturer string
- Model string
- Part
Number string - Slug string
- Id string
- The ID of this resource.
- Is
Full boolDepth - Manufacturer
Id float64 - UHeight float64
- Manufacturer string
- Model string
- Part
Number string - Slug string
- id String
- The ID of this resource.
- is
Full BooleanDepth - manufacturer
Id Double - u
Height Double - manufacturer String
- model String
- part
Number String - slug String
- id string
- The ID of this resource.
- is
Full booleanDepth - manufacturer
Id number - u
Height number - manufacturer string
- model string
- part
Number string - slug string
- id str
- The ID of this resource.
- is_
full_ booldepth - manufacturer_
id float - u_
height float - manufacturer str
- model str
- part_
number str - slug str
- id String
- The ID of this resource.
- is
Full BooleanDepth - manufacturer
Id Number - u
Height Number - manufacturer String
- model String
- part
Number String - slug String
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netbox
Terraform Provider.
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger