1. Packages
  2. Netbox Provider
  3. API Docs
  4. getRacks
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

netbox.getRacks

Explore with Pulumi AI

netbox logo
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

    Using getRacks

    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 getRacks(args: GetRacksArgs, opts?: InvokeOptions): Promise<GetRacksResult>
    function getRacksOutput(args: GetRacksOutputArgs, opts?: InvokeOptions): Output<GetRacksResult>
    def get_racks(filters: Optional[Sequence[GetRacksFilter]] = None,
                  id: Optional[str] = None,
                  limit: Optional[float] = None,
                  opts: Optional[InvokeOptions] = None) -> GetRacksResult
    def get_racks_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRacksFilterArgs]]]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  limit: Optional[pulumi.Input[float]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetRacksResult]
    func GetRacks(ctx *Context, args *GetRacksArgs, opts ...InvokeOption) (*GetRacksResult, error)
    func GetRacksOutput(ctx *Context, args *GetRacksOutputArgs, opts ...InvokeOption) GetRacksResultOutput

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

    public static class GetRacks 
    {
        public static Task<GetRacksResult> InvokeAsync(GetRacksArgs args, InvokeOptions? opts = null)
        public static Output<GetRacksResult> Invoke(GetRacksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRacksResult> getRacks(GetRacksArgs args, InvokeOptions options)
    public static Output<GetRacksResult> getRacks(GetRacksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: netbox:index/getRacks:getRacks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetRacksFilter>
    Id string
    The ID of this resource.
    Limit double
    Defaults to 0.
    Filters []GetRacksFilter
    Id string
    The ID of this resource.
    Limit float64
    Defaults to 0.
    filters List<GetRacksFilter>
    id String
    The ID of this resource.
    limit Double
    Defaults to 0.
    filters GetRacksFilter[]
    id string
    The ID of this resource.
    limit number
    Defaults to 0.
    filters Sequence[GetRacksFilter]
    id str
    The ID of this resource.
    limit float
    Defaults to 0.
    filters List<Property Map>
    id String
    The ID of this resource.
    limit Number
    Defaults to 0.

    getRacks Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Racks List<GetRacksRack>
    Filters List<GetRacksFilter>
    Limit double
    Defaults to 0.
    Id string
    The ID of this resource.
    Racks []GetRacksRack
    Filters []GetRacksFilter
    Limit float64
    Defaults to 0.
    id String
    The ID of this resource.
    racks List<GetRacksRack>
    filters List<GetRacksFilter>
    limit Double
    Defaults to 0.
    id string
    The ID of this resource.
    racks GetRacksRack[]
    filters GetRacksFilter[]
    limit number
    Defaults to 0.
    id str
    The ID of this resource.
    racks Sequence[GetRacksRack]
    filters Sequence[GetRacksFilter]
    limit float
    Defaults to 0.
    id String
    The ID of this resource.
    racks List<Property Map>
    filters List<Property Map>
    limit Number
    Defaults to 0.

    Supporting Types

    GetRacksFilter

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

    GetRacksRack

    AssetTag string
    Comments string
    CustomFields Dictionary<string, string>
    DescUnits bool
    Description string
    FacilityId string
    Id double
    LocationId double
    MaxWeight double
    MountingDepth double
    Name string
    OuterDepth double
    OuterUnit string
    OuterWidth double
    RoleId double
    Serial string
    SiteId double
    Status string
    Tags List<string>
    TenantId double
    TypeId double
    UHeight double
    Weight double
    WeightUnit string
    Width double
    AssetTag string
    Comments string
    CustomFields map[string]string
    DescUnits bool
    Description string
    FacilityId string
    Id float64
    LocationId float64
    MaxWeight float64
    MountingDepth float64
    Name string
    OuterDepth float64
    OuterUnit string
    OuterWidth float64
    RoleId float64
    Serial string
    SiteId float64
    Status string
    Tags []string
    TenantId float64
    TypeId float64
    UHeight float64
    Weight float64
    WeightUnit string
    Width float64
    assetTag String
    comments String
    customFields Map<String,String>
    descUnits Boolean
    description String
    facilityId String
    id Double
    locationId Double
    maxWeight Double
    mountingDepth Double
    name String
    outerDepth Double
    outerUnit String
    outerWidth Double
    roleId Double
    serial String
    siteId Double
    status String
    tags List<String>
    tenantId Double
    typeId Double
    uHeight Double
    weight Double
    weightUnit String
    width Double
    assetTag string
    comments string
    customFields {[key: string]: string}
    descUnits boolean
    description string
    facilityId string
    id number
    locationId number
    maxWeight number
    mountingDepth number
    name string
    outerDepth number
    outerUnit string
    outerWidth number
    roleId number
    serial string
    siteId number
    status string
    tags string[]
    tenantId number
    typeId number
    uHeight number
    weight number
    weightUnit string
    width number
    asset_tag str
    comments str
    custom_fields Mapping[str, str]
    desc_units bool
    description str
    facility_id str
    id float
    location_id float
    max_weight float
    mounting_depth float
    name str
    outer_depth float
    outer_unit str
    outer_width float
    role_id float
    serial str
    site_id float
    status str
    tags Sequence[str]
    tenant_id float
    type_id float
    u_height float
    weight float
    weight_unit str
    width float
    assetTag String
    comments String
    customFields Map<String>
    descUnits Boolean
    description String
    facilityId String
    id Number
    locationId Number
    maxWeight Number
    mountingDepth Number
    name String
    outerDepth Number
    outerUnit String
    outerWidth Number
    roleId Number
    serial String
    siteId Number
    status String
    tags List<String>
    tenantId Number
    typeId Number
    uHeight Number
    weight Number
    weightUnit String
    width Number

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox logo
    netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger