netbox 4.0.0 published on Thursday, Jun 12, 2025 by e-breuninger
netbox.getPrefixes
Explore with Pulumi AI
netbox 4.0.0 published on Thursday, Jun 12, 2025 by e-breuninger
Using getPrefixes
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 getPrefixes(args: GetPrefixesArgs, opts?: InvokeOptions): Promise<GetPrefixesResult>
function getPrefixesOutput(args: GetPrefixesOutputArgs, opts?: InvokeOptions): Output<GetPrefixesResult>
def get_prefixes(filters: Optional[Sequence[GetPrefixesFilter]] = None,
id: Optional[str] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetPrefixesResult
def get_prefixes_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPrefixesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrefixesResult]
func GetPrefixes(ctx *Context, args *GetPrefixesArgs, opts ...InvokeOption) (*GetPrefixesResult, error)
func GetPrefixesOutput(ctx *Context, args *GetPrefixesOutputArgs, opts ...InvokeOption) GetPrefixesResultOutput
> Note: This function is named GetPrefixes
in the Go SDK.
public static class GetPrefixes
{
public static Task<GetPrefixesResult> InvokeAsync(GetPrefixesArgs args, InvokeOptions? opts = null)
public static Output<GetPrefixesResult> Invoke(GetPrefixesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrefixesResult> getPrefixes(GetPrefixesArgs args, InvokeOptions options)
public static Output<GetPrefixesResult> getPrefixes(GetPrefixesArgs args, InvokeOptions options)
fn::invoke:
function: netbox:index/getPrefixes:getPrefixes
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Prefixes Filter> - A list of filters to apply to the API query when requesting prefixes.
- Id string
- The ID of this resource.
- Limit double
- The limit of objects to return from the API lookup. Defaults to
0
.
- Filters
[]Get
Prefixes Filter - A list of filters to apply to the API query when requesting prefixes.
- Id string
- The ID of this resource.
- Limit float64
- The limit of objects to return from the API lookup. Defaults to
0
.
- filters
List<Get
Prefixes Filter> - A list of filters to apply to the API query when requesting prefixes.
- id String
- The ID of this resource.
- limit Double
- The limit of objects to return from the API lookup. Defaults to
0
.
- filters
Get
Prefixes Filter[] - A list of filters to apply to the API query when requesting prefixes.
- id string
- The ID of this resource.
- limit number
- The limit of objects to return from the API lookup. Defaults to
0
.
- filters
Sequence[Get
Prefixes Filter] - A list of filters to apply to the API query when requesting prefixes.
- id str
- The ID of this resource.
- limit float
- The limit of objects to return from the API lookup. Defaults to
0
.
- filters List<Property Map>
- A list of filters to apply to the API query when requesting prefixes.
- id String
- The ID of this resource.
- limit Number
- The limit of objects to return from the API lookup. Defaults to
0
.
getPrefixes Result
The following output properties are available:
- Id string
- The ID of this resource.
- Prefixes
List<Get
Prefixes Prefix> - Filters
List<Get
Prefixes Filter> - A list of filters to apply to the API query when requesting prefixes.
- Limit double
- The limit of objects to return from the API lookup. Defaults to
0
.
- Id string
- The ID of this resource.
- Prefixes
[]Get
Prefixes Prefix - Filters
[]Get
Prefixes Filter - A list of filters to apply to the API query when requesting prefixes.
- Limit float64
- The limit of objects to return from the API lookup. Defaults to
0
.
- id String
- The ID of this resource.
- prefixes
List<Get
Prefixes Prefix> - filters
List<Get
Prefixes Filter> - A list of filters to apply to the API query when requesting prefixes.
- limit Double
- The limit of objects to return from the API lookup. Defaults to
0
.
- id string
- The ID of this resource.
- prefixes
Get
Prefixes Prefix[] - filters
Get
Prefixes Filter[] - A list of filters to apply to the API query when requesting prefixes.
- limit number
- The limit of objects to return from the API lookup. Defaults to
0
.
- id str
- The ID of this resource.
- prefixes
Sequence[Get
Prefixes Prefix] - filters
Sequence[Get
Prefixes Filter] - A list of filters to apply to the API query when requesting prefixes.
- limit float
- The limit of objects to return from the API lookup. Defaults to
0
.
- id String
- The ID of this resource.
- prefixes List<Property Map>
- filters List<Property Map>
- A list of filters to apply to the API query when requesting prefixes.
- limit Number
- The limit of objects to return from the API lookup. Defaults to
0
.
Supporting Types
GetPrefixesFilter
GetPrefixesPrefix
- Description string
- Id double
- Location
Id double - Prefix string
- Region
Id double - Site
Group doubleId - Site
Id double - Status string
- List<string>
- Tenant
Id double - Vlan
Id double - Vlan
Vid double - Vrf
Id double
- Description string
- Id float64
- Location
Id float64 - Prefix string
- Region
Id float64 - Site
Group float64Id - Site
Id float64 - Status string
- []string
- Tenant
Id float64 - Vlan
Id float64 - Vlan
Vid float64 - Vrf
Id float64
- description String
- id Double
- location
Id Double - prefix String
- region
Id Double - site
Group DoubleId - site
Id Double - status String
- List<String>
- tenant
Id Double - vlan
Id Double - vlan
Vid Double - vrf
Id Double
- description string
- id number
- location
Id number - prefix string
- region
Id number - site
Group numberId - site
Id number - status string
- string[]
- tenant
Id number - vlan
Id number - vlan
Vid number - vrf
Id number
- description str
- id float
- location_
id float - prefix str
- region_
id float - site_
group_ floatid - site_
id float - status str
- Sequence[str]
- tenant_
id float - vlan_
id float - vlan_
vid float - vrf_
id float
- description String
- id Number
- location
Id Number - prefix String
- region
Id Number - site
Group NumberId - site
Id Number - status String
- List<String>
- tenant
Id Number - vlan
Id Number - vlan
Vid Number - vrf
Id Number
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netbox
Terraform Provider.
netbox 4.0.0 published on Thursday, Jun 12, 2025 by e-breuninger