1. Packages
  2. Netbox Provider
  3. API Docs
  4. getDevicePowerPorts
netbox 4.0.0 published on Thursday, Jun 12, 2025 by e-breuninger

netbox.getDevicePowerPorts

Explore with Pulumi AI

netbox logo
netbox 4.0.0 published on Thursday, Jun 12, 2025 by e-breuninger

    Using getDevicePowerPorts

    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 getDevicePowerPorts(args: GetDevicePowerPortsArgs, opts?: InvokeOptions): Promise<GetDevicePowerPortsResult>
    function getDevicePowerPortsOutput(args: GetDevicePowerPortsOutputArgs, opts?: InvokeOptions): Output<GetDevicePowerPortsResult>
    def get_device_power_ports(filters: Optional[Sequence[GetDevicePowerPortsFilter]] = None,
                               id: Optional[str] = None,
                               limit: Optional[float] = None,
                               name_regex: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDevicePowerPortsResult
    def get_device_power_ports_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDevicePowerPortsFilterArgs]]]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               limit: Optional[pulumi.Input[float]] = None,
                               name_regex: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDevicePowerPortsResult]
    func GetDevicePowerPorts(ctx *Context, args *GetDevicePowerPortsArgs, opts ...InvokeOption) (*GetDevicePowerPortsResult, error)
    func GetDevicePowerPortsOutput(ctx *Context, args *GetDevicePowerPortsOutputArgs, opts ...InvokeOption) GetDevicePowerPortsResultOutput

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

    public static class GetDevicePowerPorts 
    {
        public static Task<GetDevicePowerPortsResult> InvokeAsync(GetDevicePowerPortsArgs args, InvokeOptions? opts = null)
        public static Output<GetDevicePowerPortsResult> Invoke(GetDevicePowerPortsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDevicePowerPortsResult> getDevicePowerPorts(GetDevicePowerPortsArgs args, InvokeOptions options)
    public static Output<GetDevicePowerPortsResult> getDevicePowerPorts(GetDevicePowerPortsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: netbox:index/getDevicePowerPorts:getDevicePowerPorts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetDevicePowerPortsFilter>
    Id string
    The ID of this resource.
    Limit double
    NameRegex string
    Filters []GetDevicePowerPortsFilter
    Id string
    The ID of this resource.
    Limit float64
    NameRegex string
    filters List<GetDevicePowerPortsFilter>
    id String
    The ID of this resource.
    limit Double
    nameRegex String
    filters GetDevicePowerPortsFilter[]
    id string
    The ID of this resource.
    limit number
    nameRegex string
    filters List<Property Map>
    id String
    The ID of this resource.
    limit Number
    nameRegex String

    getDevicePowerPorts Result

    The following output properties are available:

    id String
    The ID of this resource.
    powerPorts List<Property Map>
    filters List<Property Map>
    limit Number
    nameRegex String

    Supporting Types

    GetDevicePowerPortsFilter

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    GetDevicePowerPortsPowerPort

    AllocatedDraw double
    Description string
    DeviceId double
    Id double
    MaximumDraw double
    ModuleId double
    Name string
    TagIds List<double>
    Type string
    AllocatedDraw float64
    Description string
    DeviceId float64
    Id float64
    MaximumDraw float64
    ModuleId float64
    Name string
    TagIds []float64
    Type string
    allocatedDraw Double
    description String
    deviceId Double
    id Double
    maximumDraw Double
    moduleId Double
    name String
    tagIds List<Double>
    type String
    allocatedDraw number
    description string
    deviceId number
    id number
    maximumDraw number
    moduleId number
    name string
    tagIds number[]
    type string
    allocated_draw float
    description str
    device_id float
    id float
    maximum_draw float
    module_id float
    name str
    tag_ids Sequence[float]
    type str
    allocatedDraw Number
    description String
    deviceId Number
    id Number
    maximumDraw Number
    moduleId Number
    name String
    tagIds List<Number>
    type String

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox logo
    netbox 4.0.0 published on Thursday, Jun 12, 2025 by e-breuninger