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

netbox.getLocations

Explore with Pulumi AI

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

Using getLocations

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 getLocations(args: GetLocationsArgs, opts?: InvokeOptions): Promise<GetLocationsResult>
function getLocationsOutput(args: GetLocationsOutputArgs, opts?: InvokeOptions): Output<GetLocationsResult>
Copy
def get_locations(filters: Optional[Sequence[GetLocationsFilter]] = None,
                  id: Optional[str] = None,
                  limit: Optional[float] = None,
                  tags: Optional[Sequence[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> GetLocationsResult
def get_locations_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLocationsFilterArgs]]]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  limit: Optional[pulumi.Input[float]] = None,
                  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetLocationsResult]
Copy
func GetLocations(ctx *Context, args *GetLocationsArgs, opts ...InvokeOption) (*GetLocationsResult, error)
func GetLocationsOutput(ctx *Context, args *GetLocationsOutputArgs, opts ...InvokeOption) GetLocationsResultOutput
Copy

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

public static class GetLocations 
{
    public static Task<GetLocationsResult> InvokeAsync(GetLocationsArgs args, InvokeOptions? opts = null)
    public static Output<GetLocationsResult> Invoke(GetLocationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLocationsResult> getLocations(GetLocationsArgs args, InvokeOptions options)
public static Output<GetLocationsResult> getLocations(GetLocationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: netbox:index/getLocations:getLocations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetLocationsFilter>
A list of filter to apply to the API query when requesting locations.
Id string
The ID of this resource.
Limit double
The limit of objects to return from the API lookup. Defaults to 0.
Tags List<string>
A list of tags to filter on.
Filters []GetLocationsFilter
A list of filter to apply to the API query when requesting locations.
Id string
The ID of this resource.
Limit float64
The limit of objects to return from the API lookup. Defaults to 0.
Tags []string
A list of tags to filter on.
filters List<GetLocationsFilter>
A list of filter to apply to the API query when requesting locations.
id String
The ID of this resource.
limit Double
The limit of objects to return from the API lookup. Defaults to 0.
tags List<String>
A list of tags to filter on.
filters GetLocationsFilter[]
A list of filter to apply to the API query when requesting locations.
id string
The ID of this resource.
limit number
The limit of objects to return from the API lookup. Defaults to 0.
tags string[]
A list of tags to filter on.
filters Sequence[GetLocationsFilter]
A list of filter to apply to the API query when requesting locations.
id str
The ID of this resource.
limit float
The limit of objects to return from the API lookup. Defaults to 0.
tags Sequence[str]
A list of tags to filter on.
filters List<Property Map>
A list of filter to apply to the API query when requesting locations.
id String
The ID of this resource.
limit Number
The limit of objects to return from the API lookup. Defaults to 0.
tags List<String>
A list of tags to filter on.

getLocations Result

The following output properties are available:

Id string
The ID of this resource.
Locations List<GetLocationsLocation>
Filters List<GetLocationsFilter>
A list of filter to apply to the API query when requesting locations.
Limit double
The limit of objects to return from the API lookup. Defaults to 0.
Tags List<string>
A list of tags to filter on.
Id string
The ID of this resource.
Locations []GetLocationsLocation
Filters []GetLocationsFilter
A list of filter to apply to the API query when requesting locations.
Limit float64
The limit of objects to return from the API lookup. Defaults to 0.
Tags []string
A list of tags to filter on.
id String
The ID of this resource.
locations List<GetLocationsLocation>
filters List<GetLocationsFilter>
A list of filter to apply to the API query when requesting locations.
limit Double
The limit of objects to return from the API lookup. Defaults to 0.
tags List<String>
A list of tags to filter on.
id string
The ID of this resource.
locations GetLocationsLocation[]
filters GetLocationsFilter[]
A list of filter to apply to the API query when requesting locations.
limit number
The limit of objects to return from the API lookup. Defaults to 0.
tags string[]
A list of tags to filter on.
id str
The ID of this resource.
locations Sequence[GetLocationsLocation]
filters Sequence[GetLocationsFilter]
A list of filter to apply to the API query when requesting locations.
limit float
The limit of objects to return from the API lookup. Defaults to 0.
tags Sequence[str]
A list of tags to filter on.
id String
The ID of this resource.
locations List<Property Map>
filters List<Property Map>
A list of filter to apply to the API query when requesting locations.
limit Number
The limit of objects to return from the API lookup. Defaults to 0.
tags List<String>
A list of tags to filter on.

Supporting Types

GetLocationsFilter

Name This property is required. string
The name of the field to filter on. Supported fields are: .
Value This property is required. string
The value to pass to the specified filter.
Name This property is required. string
The name of the field to filter on. Supported fields are: .
Value This property is required. string
The value to pass to the specified filter.
name This property is required. String
The name of the field to filter on. Supported fields are: .
value This property is required. String
The value to pass to the specified filter.
name This property is required. string
The name of the field to filter on. Supported fields are: .
value This property is required. string
The value to pass to the specified filter.
name This property is required. str
The name of the field to filter on. Supported fields are: .
value This property is required. str
The value to pass to the specified filter.
name This property is required. String
The name of the field to filter on. Supported fields are: .
value This property is required. String
The value to pass to the specified filter.

GetLocationsLocation

Description This property is required. string
Id This property is required. string
Name This property is required. string
ParentId This property is required. double
SiteId This property is required. double
Slug This property is required. string
Status This property is required. string
TenantId This property is required. double
Description This property is required. string
Id This property is required. string
Name This property is required. string
ParentId This property is required. float64
SiteId This property is required. float64
Slug This property is required. string
Status This property is required. string
TenantId This property is required. float64
description This property is required. String
id This property is required. String
name This property is required. String
parentId This property is required. Double
siteId This property is required. Double
slug This property is required. String
status This property is required. String
tenantId This property is required. Double
description This property is required. string
id This property is required. string
name This property is required. string
parentId This property is required. number
siteId This property is required. number
slug This property is required. string
status This property is required. string
tenantId This property is required. number
description This property is required. str
id This property is required. str
name This property is required. str
parent_id This property is required. float
site_id This property is required. float
slug This property is required. str
status This property is required. str
tenant_id This property is required. float
description This property is required. String
id This property is required. String
name This property is required. String
parentId This property is required. Number
siteId This property is required. Number
slug This property is required. String
status This property is required. String
tenantId This property is required. Number

Package Details

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