1. Packages
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. PowerPortTemplate
Viewing docs for netbox 5.7.0
published on Wednesday, Jul 15, 2026 by e-breuninger
Viewing docs for netbox 5.7.0
published on Wednesday, Jul 15, 2026 by e-breuninger

    From the official documentation:

    A template for a power port that will be created on all instantiations of the parent device type. See the power port documentation for more detail.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Manufacturer("test", {name: "Cisco"});
    const testModuleType = new netbox.ModuleType("test", {
        manufacturerId: test.manufacturerId,
        model: "PWR-C1-715WAC-P",
        partNumber: "PWR-C1-715WAC-P",
    });
    const testPowerPortTemplate = new netbox.PowerPortTemplate("test", {
        name: "PSU-1",
        label: "715W AC power supply",
        moduleTypeId: testModuleType.moduleTypeId,
        type: "iec-60320-c16",
        maximumDraw: 715,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Manufacturer("test", name="Cisco")
    test_module_type = netbox.ModuleType("test",
        manufacturer_id=test.manufacturer_id,
        model="PWR-C1-715WAC-P",
        part_number="PWR-C1-715WAC-P")
    test_power_port_template = netbox.PowerPortTemplate("test",
        name="PSU-1",
        label="715W AC power supply",
        module_type_id=test_module_type.module_type_id,
        type="iec-60320-c16",
        maximum_draw=715)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v5/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := netbox.NewManufacturer(ctx, "test", &netbox.ManufacturerArgs{
    			Name: pulumi.String("Cisco"),
    		})
    		if err != nil {
    			return err
    		}
    		testModuleType, err := netbox.NewModuleType(ctx, "test", &netbox.ModuleTypeArgs{
    			ManufacturerId: test.ManufacturerId,
    			Model:          pulumi.String("PWR-C1-715WAC-P"),
    			PartNumber:     pulumi.String("PWR-C1-715WAC-P"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewPowerPortTemplate(ctx, "test", &netbox.PowerPortTemplateArgs{
    			Name:         pulumi.String("PSU-1"),
    			Label:        pulumi.String("715W AC power supply"),
    			ModuleTypeId: testModuleType.ModuleTypeId,
    			Type:         pulumi.String("iec-60320-c16"),
    			MaximumDraw:  pulumi.Float64(715),
    		})
    		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 = new Netbox.Manufacturer("test", new()
        {
            Name = "Cisco",
        });
    
        var testModuleType = new Netbox.ModuleType("test", new()
        {
            ManufacturerId = test.ManufacturerId,
            Model = "PWR-C1-715WAC-P",
            PartNumber = "PWR-C1-715WAC-P",
        });
    
        var testPowerPortTemplate = new Netbox.PowerPortTemplate("test", new()
        {
            Name = "PSU-1",
            Label = "715W AC power supply",
            ModuleTypeId = testModuleType.ModuleTypeId,
            Type = "iec-60320-c16",
            MaximumDraw = 715,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.Manufacturer;
    import com.pulumi.netbox.ManufacturerArgs;
    import com.pulumi.netbox.ModuleType;
    import com.pulumi.netbox.ModuleTypeArgs;
    import com.pulumi.netbox.PowerPortTemplate;
    import com.pulumi.netbox.PowerPortTemplateArgs;
    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) {
            var test = new Manufacturer("test", ManufacturerArgs.builder()
                .name("Cisco")
                .build());
    
            var testModuleType = new ModuleType("testModuleType", ModuleTypeArgs.builder()
                .manufacturerId(test.manufacturerId())
                .model("PWR-C1-715WAC-P")
                .partNumber("PWR-C1-715WAC-P")
                .build());
    
            var testPowerPortTemplate = new PowerPortTemplate("testPowerPortTemplate", PowerPortTemplateArgs.builder()
                .name("PSU-1")
                .label("715W AC power supply")
                .moduleTypeId(testModuleType.moduleTypeId())
                .type("iec-60320-c16")
                .maximumDraw(715.0)
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Manufacturer
        properties:
          name: Cisco
      testModuleType:
        type: netbox:ModuleType
        name: test
        properties:
          manufacturerId: ${test.manufacturerId}
          model: PWR-C1-715WAC-P
          partNumber: PWR-C1-715WAC-P
      testPowerPortTemplate:
        type: netbox:PowerPortTemplate
        name: test
        properties:
          name: PSU-1
          label: 715W AC power supply
          moduleTypeId: ${testModuleType.moduleTypeId}
          type: iec-60320-c16
          maximumDraw: 715
    
    Example coming soon!
    

    Create PowerPortTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PowerPortTemplate(name: string, args?: PowerPortTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def PowerPortTemplate(resource_name: str,
                          args: Optional[PowerPortTemplateArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PowerPortTemplate(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          allocated_draw: Optional[float] = None,
                          description: Optional[str] = None,
                          device_type_id: Optional[float] = None,
                          label: Optional[str] = None,
                          maximum_draw: Optional[float] = None,
                          module_type_id: Optional[float] = None,
                          name: Optional[str] = None,
                          power_port_template_id: Optional[str] = None,
                          type: Optional[str] = None)
    func NewPowerPortTemplate(ctx *Context, name string, args *PowerPortTemplateArgs, opts ...ResourceOption) (*PowerPortTemplate, error)
    public PowerPortTemplate(string name, PowerPortTemplateArgs? args = null, CustomResourceOptions? opts = null)
    public PowerPortTemplate(String name, PowerPortTemplateArgs args)
    public PowerPortTemplate(String name, PowerPortTemplateArgs args, CustomResourceOptions options)
    
    type: netbox:PowerPortTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_power_port_template" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PowerPortTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PowerPortTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PowerPortTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PowerPortTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PowerPortTemplateArgs
    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 powerPortTemplateResource = new Netbox.PowerPortTemplate("powerPortTemplateResource", new()
    {
        AllocatedDraw = 0,
        Description = "string",
        DeviceTypeId = 0,
        Label = "string",
        MaximumDraw = 0,
        ModuleTypeId = 0,
        Name = "string",
        PowerPortTemplateId = "string",
        Type = "string",
    });
    
    example, err := netbox.NewPowerPortTemplate(ctx, "powerPortTemplateResource", &netbox.PowerPortTemplateArgs{
    	AllocatedDraw:       pulumi.Float64(0),
    	Description:         pulumi.String("string"),
    	DeviceTypeId:        pulumi.Float64(0),
    	Label:               pulumi.String("string"),
    	MaximumDraw:         pulumi.Float64(0),
    	ModuleTypeId:        pulumi.Float64(0),
    	Name:                pulumi.String("string"),
    	PowerPortTemplateId: pulumi.String("string"),
    	Type:                pulumi.String("string"),
    })
    
    resource "netbox_power_port_template" "powerPortTemplateResource" {
      lifecycle {
        create_before_destroy = true
      }
      allocated_draw         = 0
      description            = "string"
      device_type_id         = 0
      label                  = "string"
      maximum_draw           = 0
      module_type_id         = 0
      name                   = "string"
      power_port_template_id = "string"
      type                   = "string"
    }
    
    var powerPortTemplateResource = new PowerPortTemplate("powerPortTemplateResource", PowerPortTemplateArgs.builder()
        .allocatedDraw(0.0)
        .description("string")
        .deviceTypeId(0.0)
        .label("string")
        .maximumDraw(0.0)
        .moduleTypeId(0.0)
        .name("string")
        .powerPortTemplateId("string")
        .type("string")
        .build());
    
    power_port_template_resource = netbox.PowerPortTemplate("powerPortTemplateResource",
        allocated_draw=float(0),
        description="string",
        device_type_id=float(0),
        label="string",
        maximum_draw=float(0),
        module_type_id=float(0),
        name="string",
        power_port_template_id="string",
        type="string")
    
    const powerPortTemplateResource = new netbox.PowerPortTemplate("powerPortTemplateResource", {
        allocatedDraw: 0,
        description: "string",
        deviceTypeId: 0,
        label: "string",
        maximumDraw: 0,
        moduleTypeId: 0,
        name: "string",
        powerPortTemplateId: "string",
        type: "string",
    });
    
    type: netbox:PowerPortTemplate
    properties:
        allocatedDraw: 0
        description: string
        deviceTypeId: 0
        label: string
        maximumDraw: 0
        moduleTypeId: 0
        name: string
        powerPortTemplateId: string
        type: string
    

    PowerPortTemplate 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 PowerPortTemplate resource accepts the following input properties:

    AllocatedDraw double
    Allocated power draw in watts.
    Description string
    DeviceTypeId double
    Exactly one of device_type_id or module_type_id must be given.
    Label string
    MaximumDraw double
    Maximum power draw in watts.
    ModuleTypeId double
    Exactly one of device_type_id or module_type_id must be given.
    Name string
    PowerPortTemplateId string
    The ID of this resource.
    Type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    AllocatedDraw float64
    Allocated power draw in watts.
    Description string
    DeviceTypeId float64
    Exactly one of device_type_id or module_type_id must be given.
    Label string
    MaximumDraw float64
    Maximum power draw in watts.
    ModuleTypeId float64
    Exactly one of device_type_id or module_type_id must be given.
    Name string
    PowerPortTemplateId string
    The ID of this resource.
    Type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocated_draw number
    Allocated power draw in watts.
    description string
    device_type_id number
    Exactly one of device_type_id or module_type_id must be given.
    label string
    maximum_draw number
    Maximum power draw in watts.
    module_type_id number
    Exactly one of device_type_id or module_type_id must be given.
    name string
    power_port_template_id string
    The ID of this resource.
    type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocatedDraw Double
    Allocated power draw in watts.
    description String
    deviceTypeId Double
    Exactly one of device_type_id or module_type_id must be given.
    label String
    maximumDraw Double
    Maximum power draw in watts.
    moduleTypeId Double
    Exactly one of device_type_id or module_type_id must be given.
    name String
    powerPortTemplateId String
    The ID of this resource.
    type String
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocatedDraw number
    Allocated power draw in watts.
    description string
    deviceTypeId number
    Exactly one of device_type_id or module_type_id must be given.
    label string
    maximumDraw number
    Maximum power draw in watts.
    moduleTypeId number
    Exactly one of device_type_id or module_type_id must be given.
    name string
    powerPortTemplateId string
    The ID of this resource.
    type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocated_draw float
    Allocated power draw in watts.
    description str
    device_type_id float
    Exactly one of device_type_id or module_type_id must be given.
    label str
    maximum_draw float
    Maximum power draw in watts.
    module_type_id float
    Exactly one of device_type_id or module_type_id must be given.
    name str
    power_port_template_id str
    The ID of this resource.
    type str
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocatedDraw Number
    Allocated power draw in watts.
    description String
    deviceTypeId Number
    Exactly one of device_type_id or module_type_id must be given.
    label String
    maximumDraw Number
    Maximum power draw in watts.
    moduleTypeId Number
    Exactly one of device_type_id or module_type_id must be given.
    name String
    powerPortTemplateId String
    The ID of this resource.
    type String
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PowerPortTemplate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing PowerPortTemplate Resource

    Get an existing PowerPortTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PowerPortTemplateState, opts?: CustomResourceOptions): PowerPortTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allocated_draw: Optional[float] = None,
            description: Optional[str] = None,
            device_type_id: Optional[float] = None,
            label: Optional[str] = None,
            maximum_draw: Optional[float] = None,
            module_type_id: Optional[float] = None,
            name: Optional[str] = None,
            power_port_template_id: Optional[str] = None,
            type: Optional[str] = None) -> PowerPortTemplate
    func GetPowerPortTemplate(ctx *Context, name string, id IDInput, state *PowerPortTemplateState, opts ...ResourceOption) (*PowerPortTemplate, error)
    public static PowerPortTemplate Get(string name, Input<string> id, PowerPortTemplateState? state, CustomResourceOptions? opts = null)
    public static PowerPortTemplate get(String name, Output<String> id, PowerPortTemplateState state, CustomResourceOptions options)
    resources:  _:    type: netbox:PowerPortTemplate    get:      id: ${id}
    import {
      to = netbox_power_port_template.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllocatedDraw double
    Allocated power draw in watts.
    Description string
    DeviceTypeId double
    Exactly one of device_type_id or module_type_id must be given.
    Label string
    MaximumDraw double
    Maximum power draw in watts.
    ModuleTypeId double
    Exactly one of device_type_id or module_type_id must be given.
    Name string
    PowerPortTemplateId string
    The ID of this resource.
    Type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    AllocatedDraw float64
    Allocated power draw in watts.
    Description string
    DeviceTypeId float64
    Exactly one of device_type_id or module_type_id must be given.
    Label string
    MaximumDraw float64
    Maximum power draw in watts.
    ModuleTypeId float64
    Exactly one of device_type_id or module_type_id must be given.
    Name string
    PowerPortTemplateId string
    The ID of this resource.
    Type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocated_draw number
    Allocated power draw in watts.
    description string
    device_type_id number
    Exactly one of device_type_id or module_type_id must be given.
    label string
    maximum_draw number
    Maximum power draw in watts.
    module_type_id number
    Exactly one of device_type_id or module_type_id must be given.
    name string
    power_port_template_id string
    The ID of this resource.
    type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocatedDraw Double
    Allocated power draw in watts.
    description String
    deviceTypeId Double
    Exactly one of device_type_id or module_type_id must be given.
    label String
    maximumDraw Double
    Maximum power draw in watts.
    moduleTypeId Double
    Exactly one of device_type_id or module_type_id must be given.
    name String
    powerPortTemplateId String
    The ID of this resource.
    type String
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocatedDraw number
    Allocated power draw in watts.
    description string
    deviceTypeId number
    Exactly one of device_type_id or module_type_id must be given.
    label string
    maximumDraw number
    Maximum power draw in watts.
    moduleTypeId number
    Exactly one of device_type_id or module_type_id must be given.
    name string
    powerPortTemplateId string
    The ID of this resource.
    type string
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocated_draw float
    Allocated power draw in watts.
    description str
    device_type_id float
    Exactly one of device_type_id or module_type_id must be given.
    label str
    maximum_draw float
    Maximum power draw in watts.
    module_type_id float
    Exactly one of device_type_id or module_type_id must be given.
    name str
    power_port_template_id str
    The ID of this resource.
    type str
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].
    allocatedDraw Number
    Allocated power draw in watts.
    description String
    deviceTypeId Number
    Exactly one of device_type_id or module_type_id must be given.
    label String
    maximumDraw Number
    Maximum power draw in watts.
    moduleTypeId Number
    Exactly one of device_type_id or module_type_id must be given.
    name String
    powerPortTemplateId String
    The ID of this resource.
    type String
    One of [iec-60320-c6, iec-60320-c8, iec-60320-c14, iec-60320-c16, iec-60320-c20, iec-60320-c22, iec-60309-p-n-e-4h, iec-60309-p-n-e-6h, iec-60309-p-n-e-9h, iec-60309-2p-e-4h, iec-60309-2p-e-6h, iec-60309-2p-e-9h, iec-60309-3p-e-4h, iec-60309-3p-e-6h, iec-60309-3p-e-9h, iec-60309-3p-n-e-4h, iec-60309-3p-n-e-6h, iec-60309-3p-n-e-9h, nema-1-15p, nema-5-15p, nema-5-20p, nema-5-30p, nema-5-50p, nema-6-15p, nema-6-20p, nema-6-30p, nema-6-50p, nema-10-30p, nema-10-50p, nema-14-20p, nema-14-30p, nema-14-50p, nema-14-60p, nema-15-15p, nema-15-20p, nema-15-30p, nema-15-50p, nema-15-60p, nema-l1-15p, nema-l5-15p, nema-l5-20p, nema-l5-30p, nema-l5-50p, nema-l6-15p, nema-l6-20p, nema-l6-30p, nema-l6-50p, nema-l10-30p, nema-l14-20p, nema-l14-30p, nema-l14-50p, nema-l14-60p, nema-l15-20p, nema-l15-30p, nema-l15-50p, nema-l15-60p, nema-l21-20p, nema-l21-30p, nema-l22-30p, cs6361c, cs6365c, cs8165c, cs8265c, cs8365c, cs8465c, ita-c, ita-e, ita-f, ita-ef, ita-g, ita-h, ita-i, ita-j, ita-k, ita-l, ita-m, ita-n, ita-o, usb-a, usb-b, usb-c, usb-mini-a, usb-mini-b, usb-micro-a, usb-micro-b, usb-micro-ab, usb-3-b, usb-3-micro-b, dc-terminal, saf-d-grid, neutrik-powercon-20, neutrik-powercon-32, neutrik-powercon-true1, neutrik-powercon-true1-top, ubiquiti-smartpower, hardwired, other].

    Package Details

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial