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>
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]
func GetLocations(ctx *Context, args *GetLocationsArgs, opts ...InvokeOption) (*GetLocationsResult, error)
func GetLocationsOutput(ctx *Context, args *GetLocationsOutputArgs, opts ...InvokeOption) GetLocationsResultOutput
> 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)
}
public static CompletableFuture<GetLocationsResult> getLocations(GetLocationsArgs args, InvokeOptions options)
public static Output<GetLocationsResult> getLocations(GetLocationsArgs args, InvokeOptions options)
fn::invoke:
function: netbox:index/getLocations:getLocations
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Locations Filter> - 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
. - List<string>
- A list of tags to filter on.
- Filters
[]Get
Locations Filter - 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
. - []string
- A list of tags to filter on.
- filters
List<Get
Locations Filter> - 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
. - List<String>
- A list of tags to filter on.
- filters
Get
Locations Filter[] - 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
. - string[]
- A list of tags to filter on.
- filters
Sequence[Get
Locations Filter] - 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
. - 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
. - 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<Get
Locations Location> - Filters
List<Get
Locations Filter> - 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
. - List<string>
- A list of tags to filter on.
- Id string
- The ID of this resource.
- Locations
[]Get
Locations Location - Filters
[]Get
Locations Filter - 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
. - []string
- A list of tags to filter on.
- id String
- The ID of this resource.
- locations
List<Get
Locations Location> - filters
List<Get
Locations Filter> - 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
. - List<String>
- A list of tags to filter on.
- id string
- The ID of this resource.
- locations
Get
Locations Location[] - filters
Get
Locations Filter[] - 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
. - string[]
- A list of tags to filter on.
- id str
- The ID of this resource.
- locations
Sequence[Get
Locations Location] - filters
Sequence[Get
Locations Filter] - 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
. - 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
. - List<String>
- A list of tags to filter on.
Supporting Types
GetLocationsFilter
GetLocationsLocation
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