Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
A power outlet template of a device type or module type (dcim.poweroutlettemplate).
From the official documentation:
A template for a power outlet that will be created on all instantiations of the parent device type. See the power outlet documentation for more detail.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getPowerOutletTemplate({
name: "test-power_outlet_template",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_power_outlet_template(name="test-power_outlet_template")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netbox.LookupPowerOutletTemplate(ctx, &netbox.LookupPowerOutletTemplateArgs{
Name: pulumi.StringRef("test-power_outlet_template"),
}, 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 test = Netbox.GetPowerOutletTemplate.Invoke(new()
{
Name = "test-power_outlet_template",
});
});
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.GetPowerOutletTemplateArgs;
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 test = NetboxFunctions.getPowerOutletTemplate(GetPowerOutletTemplateArgs.builder()
.name("test-power_outlet_template")
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getPowerOutletTemplate
arguments:
name: test-power_outlet_template
Example coming soon!
Using getPowerOutletTemplate
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 getPowerOutletTemplate(args: GetPowerOutletTemplateArgs, opts?: InvokeOptions): Promise<GetPowerOutletTemplateResult>
function getPowerOutletTemplateOutput(args: GetPowerOutletTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetPowerOutletTemplateResult>def get_power_outlet_template(color: Optional[str] = None,
created: Optional[str] = None,
description: Optional[str] = None,
device_type_id: Optional[float] = None,
feed_leg: Optional[str] = None,
id: Optional[float] = None,
label: Optional[str] = None,
last_updated: Optional[str] = None,
module_type_id: Optional[float] = None,
name: Optional[str] = None,
power_port_template_id: Optional[float] = None,
q: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPowerOutletTemplateResult
def get_power_outlet_template_output(color: pulumi.Input[Optional[str]] = None,
created: pulumi.Input[Optional[str]] = None,
description: pulumi.Input[Optional[str]] = None,
device_type_id: pulumi.Input[Optional[float]] = None,
feed_leg: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[float]] = None,
label: pulumi.Input[Optional[str]] = None,
last_updated: pulumi.Input[Optional[str]] = None,
module_type_id: pulumi.Input[Optional[float]] = None,
name: pulumi.Input[Optional[str]] = None,
power_port_template_id: pulumi.Input[Optional[float]] = None,
q: pulumi.Input[Optional[str]] = None,
type: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetPowerOutletTemplateResult]func LookupPowerOutletTemplate(ctx *Context, args *LookupPowerOutletTemplateArgs, opts ...InvokeOption) (*LookupPowerOutletTemplateResult, error)
func LookupPowerOutletTemplateOutput(ctx *Context, args *LookupPowerOutletTemplateOutputArgs, opts ...InvokeOption) LookupPowerOutletTemplateResultOutput> Note: This function is named LookupPowerOutletTemplate in the Go SDK.
public static class GetPowerOutletTemplate
{
public static Task<GetPowerOutletTemplateResult> InvokeAsync(GetPowerOutletTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetPowerOutletTemplateResult> Invoke(GetPowerOutletTemplateInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetPowerOutletTemplateResult> Invoke(GetPowerOutletTemplateInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetPowerOutletTemplateResult> getPowerOutletTemplate(GetPowerOutletTemplateArgs args, InvokeOptions options)
public static Output<GetPowerOutletTemplateResult> getPowerOutletTemplate(GetPowerOutletTemplateArgs args, InvokeOptions options)
public static Output<GetPowerOutletTemplateResult> getPowerOutletTemplate(GetPowerOutletTemplateArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getPowerOutletTemplate:getPowerOutletTemplate
arguments:
# arguments dictionarydata "netbox_get_power_outlet_template" "name" {
# arguments
}The following arguments are supported:
- Color string
- Color to match.
- Created string
- Description string
- Device
Type doubleId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Feed
Leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- Id double
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Module
Type doubleId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Name string
- Power
Port doubleTemplate Id - Id of the power port template this outlet draws from.
- Q string
- Search term, matched against the fields NetBox searches for this object type.
- Type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- Color string
- Color to match.
- Created string
- Description string
- Device
Type float64Id - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Feed
Leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- Id float64
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Module
Type float64Id - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Name string
- Power
Port float64Template Id - Id of the power port template this outlet draws from.
- Q string
- Search term, matched against the fields NetBox searches for this object type.
- Type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- color string
- Color to match.
- created string
- description string
- device_
type_ numberid - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed_
leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id number
- NetBox id.
- label string
- Physical label.
- last_
updated string - module_
type_ numberid - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name string
- power_
port_ numbertemplate_ id - Id of the power port template this outlet draws from.
- q string
- Search term, matched against the fields NetBox searches for this object type.
- type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- color String
- Color to match.
- created String
- description String
- device
Type DoubleId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed
Leg String - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id Double
- NetBox id.
- label String
- Physical label.
- last
Updated String - module
Type DoubleId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name String
- power
Port DoubleTemplate Id - Id of the power port template this outlet draws from.
- q String
- Search term, matched against the fields NetBox searches for this object type.
- type String
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- color string
- Color to match.
- created string
- description string
- device
Type numberId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed
Leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id number
- NetBox id.
- label string
- Physical label.
- last
Updated string - module
Type numberId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name string
- power
Port numberTemplate Id - Id of the power port template this outlet draws from.
- q string
- Search term, matched against the fields NetBox searches for this object type.
- type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- color str
- Color to match.
- created str
- description str
- device_
type_ floatid - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed_
leg str - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id float
- NetBox id.
- label str
- Physical label.
- last_
updated str - module_
type_ floatid - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name str
- power_
port_ floattemplate_ id - Id of the power port template this outlet draws from.
- q str
- Search term, matched against the fields NetBox searches for this object type.
- type str
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- color String
- Color to match.
- created String
- description String
- device
Type NumberId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed
Leg String - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id Number
- NetBox id.
- label String
- Physical label.
- last
Updated String - module
Type NumberId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name String
- power
Port NumberTemplate Id - Id of the power port template this outlet draws from.
- q String
- Search term, matched against the fields NetBox searches for this object type.
- type String
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
getPowerOutletTemplate Result
The following output properties are available:
- Color
Hex string - RGB color in hex (e.g. ff0000).
- Created string
- Description string
- Device
Type doubleId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Feed
Leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- Id double
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Module
Type doubleId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Name string
- Power
Port doubleId - Deprecated alias of powerporttemplate_id.
- Power
Port doubleTemplate Id - Id of the power port template this outlet draws from.
- Type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- Url string
- Color string
- Color to match.
- Q string
- Search term, matched against the fields NetBox searches for this object type.
- Color
Hex string - RGB color in hex (e.g. ff0000).
- Created string
- Description string
- Device
Type float64Id - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Feed
Leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- Id float64
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Module
Type float64Id - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Name string
- Power
Port float64Id - Deprecated alias of powerporttemplate_id.
- Power
Port float64Template Id - Id of the power port template this outlet draws from.
- Type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- Url string
- Color string
- Color to match.
- Q string
- Search term, matched against the fields NetBox searches for this object type.
- color_
hex string - RGB color in hex (e.g. ff0000).
- created string
- description string
- device_
type_ numberid - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed_
leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id number
- NetBox id.
- label string
- Physical label.
- last_
updated string - module_
type_ numberid - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name string
- power_
port_ numberid - Deprecated alias of powerporttemplate_id.
- power_
port_ numbertemplate_ id - Id of the power port template this outlet draws from.
- type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- url string
- color string
- Color to match.
- q string
- Search term, matched against the fields NetBox searches for this object type.
- color
Hex String - RGB color in hex (e.g. ff0000).
- created String
- description String
- device
Type DoubleId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed
Leg String - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id Double
- NetBox id.
- label String
- Physical label.
- last
Updated String - module
Type DoubleId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name String
- power
Port DoubleId - Deprecated alias of powerporttemplate_id.
- power
Port DoubleTemplate Id - Id of the power port template this outlet draws from.
- type String
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- url String
- color String
- Color to match.
- q String
- Search term, matched against the fields NetBox searches for this object type.
- color
Hex string - RGB color in hex (e.g. ff0000).
- created string
- description string
- device
Type numberId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed
Leg string - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id number
- NetBox id.
- label string
- Physical label.
- last
Updated string - module
Type numberId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name string
- power
Port numberId - Deprecated alias of powerporttemplate_id.
- power
Port numberTemplate Id - Id of the power port template this outlet draws from.
- type string
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- url string
- color string
- Color to match.
- q string
- Search term, matched against the fields NetBox searches for this object type.
- color_
hex str - RGB color in hex (e.g. ff0000).
- created str
- description str
- device_
type_ floatid - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed_
leg str - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id float
- NetBox id.
- label str
- Physical label.
- last_
updated str - module_
type_ floatid - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name str
- power_
port_ floatid - Deprecated alias of powerporttemplate_id.
- power_
port_ floattemplate_ id - Id of the power port template this outlet draws from.
- type str
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- url str
- color str
- Color to match.
- q str
- Search term, matched against the fields NetBox searches for this object type.
- color
Hex String - RGB color in hex (e.g. ff0000).
- created String
- description String
- device
Type NumberId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- feed
Leg String - Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
- id Number
- NetBox id.
- label String
- Physical label.
- last
Updated String - module
Type NumberId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name String
- power
Port NumberId - Deprecated alias of powerporttemplate_id.
- power
Port NumberTemplate Id - Id of the power port template this outlet draws from.
- type String
- Outlet type as its NetBox slug, e.g. iec-60320-c13, nema-5-15r, CS8364C (any of NetBox's power outlet type choices).
- url String
- color String
- Color to match.
- q String
- Search term, matched against the fields NetBox searches for this object type.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger