1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getPowerOutletTemplate
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

netbox.getPowerOutletTemplate

netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 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(feed_leg: Optional[str] = None,
                                  id: Optional[float] = None,
                                  module_type_id: Optional[float] = None,
                                  name: Optional[str] = None,
                                  type: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPowerOutletTemplateResult
    def get_power_outlet_template_output(feed_leg: pulumi.Input[Optional[str]] = None,
                                  id: pulumi.Input[Optional[float]] = None,
                                  module_type_id: pulumi.Input[Optional[float]] = None,
                                  name: 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 dictionary
    data "netbox_get_power_outlet_template" "name" {
        # arguments
    }

    The following arguments are supported:

    FeedLeg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    Id double
    NetBox id.
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    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).
    FeedLeg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    Id float64
    NetBox id.
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    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).
    feed_leg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id number
    NetBox id.
    module_type_id number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    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).
    feedLeg String
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id Double
    NetBox id.
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    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).
    feedLeg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id number
    NetBox id.
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    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).
    feed_leg str
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id float
    NetBox id.
    module_type_id float
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name str
    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).
    feedLeg String
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id Number
    NetBox id.
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    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:

    ColorHex string
    RGB color in hex (e.g. ff0000).
    Created string
    Description string
    DeviceTypeId double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    FeedLeg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    PowerPortId double
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    PowerPortTemplateId double
    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
    ColorHex string
    RGB color in hex (e.g. ff0000).
    Created string
    Description string
    DeviceTypeId float64
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    FeedLeg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    PowerPortId float64
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    PowerPortTemplateId float64
    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_hex string
    RGB color in hex (e.g. ff0000).
    created string
    description string
    device_type_id number
    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_id number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    power_port_id number
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    power_port_template_id number
    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
    colorHex String
    RGB color in hex (e.g. ff0000).
    created String
    description String
    deviceTypeId Double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    feedLeg String
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    powerPortId Double
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    powerPortTemplateId Double
    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
    colorHex string
    RGB color in hex (e.g. ff0000).
    created string
    description string
    deviceTypeId number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    feedLeg string
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    powerPortId number
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    powerPortTemplateId number
    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_hex str
    RGB color in hex (e.g. ff0000).
    created str
    description str
    device_type_id float
    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_id float
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name str
    power_port_id float
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    power_port_template_id float
    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
    colorHex String
    RGB color in hex (e.g. ff0000).
    created String
    description String
    deviceTypeId Number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    feedLeg String
    Phase of the upstream feed this outlet is mapped to. One of: A, B, C.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    powerPortId Number
    Deprecated alias of powerporttemplate_id.

    Deprecated: Deprecated

    powerPortTemplateId Number
    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

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial