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

    Lists power_port_template objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getPowerPortTemplates({
        filters: [{
            name: "name",
            value: "test-power_port_template",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_power_port_templates(filters=[{
        "name": "name",
        "value": "test-power_port_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.GetPowerPortTemplates(ctx, &netbox.GetPowerPortTemplatesArgs{
    			Filters: []netbox.GetPowerPortTemplatesFilter{
    				{
    					Name:  "name",
    					Value: "test-power_port_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.GetPowerPortTemplates.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetPowerPortTemplatesFilterInputArgs
                {
                    Name = "name",
                    Value = "test-power_port_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.GetPowerPortTemplatesArgs;
    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.getPowerPortTemplates(GetPowerPortTemplatesArgs.builder()
                .filters(GetPowerPortTemplatesFilterArgs.builder()
                    .name("name")
                    .value("test-power_port_template")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getPowerPortTemplates
          arguments:
            filters:
              - name: name
                value: test-power_port_template
    
    Example coming soon!
    

    Using getPowerPortTemplates

    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 getPowerPortTemplates(args: GetPowerPortTemplatesArgs, opts?: InvokeOptions): Promise<GetPowerPortTemplatesResult>
    function getPowerPortTemplatesOutput(args: GetPowerPortTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetPowerPortTemplatesResult>
    def get_power_port_templates(filters: Optional[Sequence[GetPowerPortTemplatesFilter]] = None,
                                 limit: Optional[float] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetPowerPortTemplatesResult
    def get_power_port_templates_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetPowerPortTemplatesFilterArgs]]]] = None,
                                 limit: pulumi.Input[Optional[float]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetPowerPortTemplatesResult]
    func GetPowerPortTemplates(ctx *Context, args *GetPowerPortTemplatesArgs, opts ...InvokeOption) (*GetPowerPortTemplatesResult, error)
    func GetPowerPortTemplatesOutput(ctx *Context, args *GetPowerPortTemplatesOutputArgs, opts ...InvokeOption) GetPowerPortTemplatesResultOutput

    > Note: This function is named GetPowerPortTemplates in the Go SDK.

    public static class GetPowerPortTemplates 
    {
        public static Task<GetPowerPortTemplatesResult> InvokeAsync(GetPowerPortTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetPowerPortTemplatesResult> Invoke(GetPowerPortTemplatesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPowerPortTemplatesResult> Invoke(GetPowerPortTemplatesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPowerPortTemplatesResult> getPowerPortTemplates(GetPowerPortTemplatesArgs args, InvokeOptions options)
    public static Output<GetPowerPortTemplatesResult> getPowerPortTemplates(GetPowerPortTemplatesArgs args, InvokeOptions options)
    public static Output<GetPowerPortTemplatesResult> getPowerPortTemplates(GetPowerPortTemplatesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getPowerPortTemplates:getPowerPortTemplates
      arguments:
        # arguments dictionary
    data "netbox_get_power_port_templates" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetPowerPortTemplatesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetPowerPortTemplatesFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetPowerPortTemplatesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetPowerPortTemplatesFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetPowerPortTemplatesFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getPowerPortTemplates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PowerPortTemplates List<GetPowerPortTemplatesPowerPortTemplate>
    The matching powerporttemplates.
    Filters List<GetPowerPortTemplatesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Id string
    The provider-assigned unique ID for this managed resource.
    PowerPortTemplates []GetPowerPortTemplatesPowerPortTemplate
    The matching powerporttemplates.
    Filters []GetPowerPortTemplatesFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    power_port_templates list(object)
    The matching powerporttemplates.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    powerPortTemplates List<GetPowerPortTemplatesPowerPortTemplate>
    The matching powerporttemplates.
    filters List<GetPowerPortTemplatesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    powerPortTemplates GetPowerPortTemplatesPowerPortTemplate[]
    The matching powerporttemplates.
    filters GetPowerPortTemplatesFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id str
    The provider-assigned unique ID for this managed resource.
    power_port_templates Sequence[GetPowerPortTemplatesPowerPortTemplate]
    The matching powerporttemplates.
    filters Sequence[GetPowerPortTemplatesFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    powerPortTemplates List<Property Map>
    The matching powerporttemplates.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, moduletypeid, moduletypeidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, type, typeempty, typeic, typeie, typeiew, typeiregex, typeisw, typen, typenic, typenie, typeniew, typenisw, type__regex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetPowerPortTemplatesFilter

    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name str
    Name of the query filter (the API list parameter).
    value str
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.

    GetPowerPortTemplatesPowerPortTemplate

    AllocatedDraw double
    Allocated power draw in watts. Must be a whole number.
    Created string
    Description string
    DeviceTypeId double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MaximumDraw double
    Maximum power draw in watts. Must be a whole number.
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    Type string
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port type choices).
    Url string
    AllocatedDraw float64
    Allocated power draw in watts. Must be a whole number.
    Created string
    Description string
    DeviceTypeId float64
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MaximumDraw float64
    Maximum power draw in watts. Must be a whole number.
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    Type string
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port type choices).
    Url string
    allocated_draw number
    Allocated power draw in watts. Must be a whole number.
    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.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    maximum_draw number
    Maximum power draw in watts. Must be a whole number.
    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
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port type choices).
    url string
    allocatedDraw Double
    Allocated power draw in watts. Must be a whole number.
    created String
    description String
    deviceTypeId Double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    maximumDraw Double
    Maximum power draw in watts. Must be a whole number.
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    type String
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port type choices).
    url String
    allocatedDraw number
    Allocated power draw in watts. Must be a whole number.
    created string
    description string
    deviceTypeId number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    maximumDraw number
    Maximum power draw in watts. Must be a whole number.
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    type string
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port type choices).
    url string
    allocated_draw float
    Allocated power draw in watts. Must be a whole number.
    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.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    maximum_draw float
    Maximum power draw in watts. Must be a whole number.
    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
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port type choices).
    url str
    allocatedDraw Number
    Allocated power draw in watts. Must be a whole number.
    created String
    description String
    deviceTypeId Number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    maximumDraw Number
    Maximum power draw in watts. Must be a whole number.
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    type String
    Port type as its NetBox slug, e.g. iec-60320-c14, nema-5-15p, cs8365c (any of NetBox's power port 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