1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getVlanTranslationRules
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    Lists vlan_translation_rule objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getVlanTranslationRules({
        limit: 10,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_vlan_translation_rules(limit=10)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.GetVlanTranslationRules(ctx, &netbox.GetVlanTranslationRulesArgs{
    			Limit: pulumi.Float64Ref(10),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Netbox.GetVlanTranslationRules.Invoke(new()
        {
            Limit = 10,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetVlanTranslationRulesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = NetboxFunctions.getVlanTranslationRules(GetVlanTranslationRulesArgs.builder()
                .limit(10)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getVlanTranslationRules
          arguments:
            limit: 10
    
    Example coming soon!
    

    Using getVlanTranslationRules

    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 getVlanTranslationRules(args: GetVlanTranslationRulesArgs, opts?: InvokeOptions): Promise<GetVlanTranslationRulesResult>
    function getVlanTranslationRulesOutput(args: GetVlanTranslationRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetVlanTranslationRulesResult>
    def get_vlan_translation_rules(filters: Optional[Sequence[GetVlanTranslationRulesFilter]] = None,
                                   limit: Optional[float] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetVlanTranslationRulesResult
    def get_vlan_translation_rules_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetVlanTranslationRulesFilterArgs]]]] = None,
                                   limit: pulumi.Input[Optional[float]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetVlanTranslationRulesResult]
    func GetVlanTranslationRules(ctx *Context, args *GetVlanTranslationRulesArgs, opts ...InvokeOption) (*GetVlanTranslationRulesResult, error)
    func GetVlanTranslationRulesOutput(ctx *Context, args *GetVlanTranslationRulesOutputArgs, opts ...InvokeOption) GetVlanTranslationRulesResultOutput

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

    public static class GetVlanTranslationRules 
    {
        public static Task<GetVlanTranslationRulesResult> InvokeAsync(GetVlanTranslationRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetVlanTranslationRulesResult> Invoke(GetVlanTranslationRulesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVlanTranslationRulesResult> Invoke(GetVlanTranslationRulesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVlanTranslationRulesResult> getVlanTranslationRules(GetVlanTranslationRulesArgs args, InvokeOptions options)
    public static Output<GetVlanTranslationRulesResult> getVlanTranslationRules(GetVlanTranslationRulesArgs args, InvokeOptions options)
    public static Output<GetVlanTranslationRulesResult> getVlanTranslationRules(GetVlanTranslationRulesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getVlanTranslationRules:getVlanTranslationRules
      arguments:
        # arguments dictionary
    data "netbox_get_vlan_translation_rules" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetVlanTranslationRulesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetVlanTranslationRulesFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetVlanTranslationRulesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetVlanTranslationRulesFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetVlanTranslationRulesFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getVlanTranslationRules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VlanTranslationRules List<GetVlanTranslationRulesVlanTranslationRule>
    The matching vlantranslationrules.
    Filters List<GetVlanTranslationRulesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Id string
    The provider-assigned unique ID for this managed resource.
    VlanTranslationRules []GetVlanTranslationRulesVlanTranslationRule
    The matching vlantranslationrules.
    Filters []GetVlanTranslationRulesFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    vlan_translation_rules list(object)
    The matching vlantranslationrules.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    vlanTranslationRules List<GetVlanTranslationRulesVlanTranslationRule>
    The matching vlantranslationrules.
    filters List<GetVlanTranslationRulesFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    vlanTranslationRules GetVlanTranslationRulesVlanTranslationRule[]
    The matching vlantranslationrules.
    filters GetVlanTranslationRulesFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id str
    The provider-assigned unique ID for this managed resource.
    vlan_translation_rules Sequence[GetVlanTranslationRulesVlanTranslationRule]
    The matching vlantranslationrules.
    filters Sequence[GetVlanTranslationRulesFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    vlanTranslationRules List<Property Map>
    The matching vlantranslationrules.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, localvid, localvidempty, local_vidgt, local_vidgte, local_vidlt, local_vidlte, local_vidn, policyid, policyidn, remotevid, remotevidempty, remote_vidgt, remote_vidgte, remote_vidlt, remote_vidlte, remote_vid__n. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetVlanTranslationRulesFilter

    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name str
    Name of the query filter (the API list parameter).
    value str
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.

    GetVlanTranslationRulesVlanTranslationRule

    Description string
    Id double
    NetBox id.
    LocalVid double
    VLAN id on the local side (1-4094). Must be a whole number.
    RemoteVid double
    VLAN id on the remote side (1-4094). Must be a whole number.
    Url string
    VlanTranslationPolicyId double
    Id of the translation policy the rule belongs to.
    Description string
    Id float64
    NetBox id.
    LocalVid float64
    VLAN id on the local side (1-4094). Must be a whole number.
    RemoteVid float64
    VLAN id on the remote side (1-4094). Must be a whole number.
    Url string
    VlanTranslationPolicyId float64
    Id of the translation policy the rule belongs to.
    description string
    id number
    NetBox id.
    local_vid number
    VLAN id on the local side (1-4094). Must be a whole number.
    remote_vid number
    VLAN id on the remote side (1-4094). Must be a whole number.
    url string
    vlan_translation_policy_id number
    Id of the translation policy the rule belongs to.
    description String
    id Double
    NetBox id.
    localVid Double
    VLAN id on the local side (1-4094). Must be a whole number.
    remoteVid Double
    VLAN id on the remote side (1-4094). Must be a whole number.
    url String
    vlanTranslationPolicyId Double
    Id of the translation policy the rule belongs to.
    description string
    id number
    NetBox id.
    localVid number
    VLAN id on the local side (1-4094). Must be a whole number.
    remoteVid number
    VLAN id on the remote side (1-4094). Must be a whole number.
    url string
    vlanTranslationPolicyId number
    Id of the translation policy the rule belongs to.
    description str
    id float
    NetBox id.
    local_vid float
    VLAN id on the local side (1-4094). Must be a whole number.
    remote_vid float
    VLAN id on the remote side (1-4094). Must be a whole number.
    url str
    vlan_translation_policy_id float
    Id of the translation policy the rule belongs to.
    description String
    id Number
    NetBox id.
    localVid Number
    VLAN id on the local side (1-4094). Must be a whole number.
    remoteVid Number
    VLAN id on the remote side (1-4094). Must be a whole number.
    url String
    vlanTranslationPolicyId Number
    Id of the translation policy the rule belongs to.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial