1. Packages
  2. Nutanix
  3. API Docs
  4. getRouteTablesV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.getRouteTablesV2

Explore with Pulumi AI

Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

Provides Nutanix datasource to List route tables.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";

const all_tables = nutanix.getRouteTablesV2({});
const route_tables_with_filter = nutanix.getRouteTablesV2({
    filter: "vpcReference eq '<vpc_uuid>'",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

all_tables = nutanix.get_route_tables_v2()
route_tables_with_filter = nutanix.get_route_tables_v2(filter="vpcReference eq '<vpc_uuid>'")
Copy
package main

import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.GetRouteTablesV2(ctx, &nutanix.GetRouteTablesV2Args{}, nil)
		if err != nil {
			return err
		}
		_, err = nutanix.GetRouteTablesV2(ctx, &nutanix.GetRouteTablesV2Args{
			Filter: pulumi.StringRef("vpcReference eq '<vpc_uuid>'"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;

return await Deployment.RunAsync(() => 
{
    var all_tables = Nutanix.GetRouteTablesV2.Invoke();

    var route_tables_with_filter = Nutanix.GetRouteTablesV2.Invoke(new()
    {
        Filter = "vpcReference eq '<vpc_uuid>'",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetRouteTablesV2Args;
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 all-tables = NutanixFunctions.getRouteTablesV2();

        final var route-tables-with-filter = NutanixFunctions.getRouteTablesV2(GetRouteTablesV2Args.builder()
            .filter("vpcReference eq '<vpc_uuid>'")
            .build());

    }
}
Copy
variables:
  all-tables:
    fn::invoke:
      function: nutanix:getRouteTablesV2
      arguments: {}
  route-tables-with-filter:
    fn::invoke:
      function: nutanix:getRouteTablesV2
      arguments:
        filter: vpcReference eq '<vpc_uuid>'
Copy

Using getRouteTablesV2

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 getRouteTablesV2(args: GetRouteTablesV2Args, opts?: InvokeOptions): Promise<GetRouteTablesV2Result>
function getRouteTablesV2Output(args: GetRouteTablesV2OutputArgs, opts?: InvokeOptions): Output<GetRouteTablesV2Result>
Copy
def get_route_tables_v2(filter: Optional[str] = None,
                        limit: Optional[int] = None,
                        order_by: Optional[str] = None,
                        page: Optional[int] = None,
                        opts: Optional[InvokeOptions] = None) -> GetRouteTablesV2Result
def get_route_tables_v2_output(filter: Optional[pulumi.Input[str]] = None,
                        limit: Optional[pulumi.Input[int]] = None,
                        order_by: Optional[pulumi.Input[str]] = None,
                        page: Optional[pulumi.Input[int]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetRouteTablesV2Result]
Copy
func GetRouteTablesV2(ctx *Context, args *GetRouteTablesV2Args, opts ...InvokeOption) (*GetRouteTablesV2Result, error)
func GetRouteTablesV2Output(ctx *Context, args *GetRouteTablesV2OutputArgs, opts ...InvokeOption) GetRouteTablesV2ResultOutput
Copy

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

public static class GetRouteTablesV2 
{
    public static Task<GetRouteTablesV2Result> InvokeAsync(GetRouteTablesV2Args args, InvokeOptions? opts = null)
    public static Output<GetRouteTablesV2Result> Invoke(GetRouteTablesV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRouteTablesV2Result> getRouteTablesV2(GetRouteTablesV2Args args, InvokeOptions options)
public static Output<GetRouteTablesV2Result> getRouteTablesV2(GetRouteTablesV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getRouteTablesV2:getRouteTablesV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
A URL query parameter that allows clients to filter a collection of resources.

  • The filter can be applied to the following fields:
  • externalRoutingDomainReference
  • vpcReference
Limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
OrderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default

  • The orderby can be applied to the following fields:
  • vpcReference
Page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
Filter string
A URL query parameter that allows clients to filter a collection of resources.

  • The filter can be applied to the following fields:
  • externalRoutingDomainReference
  • vpcReference
Limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
OrderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default

  • The orderby can be applied to the following fields:
  • vpcReference
Page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
filter String
A URL query parameter that allows clients to filter a collection of resources.

  • The filter can be applied to the following fields:
  • externalRoutingDomainReference
  • vpcReference
limit Integer
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy String
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default

  • The orderby can be applied to the following fields:
  • vpcReference
page Integer
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
filter string
A URL query parameter that allows clients to filter a collection of resources.

  • The filter can be applied to the following fields:
  • externalRoutingDomainReference
  • vpcReference
limit number
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default

  • The orderby can be applied to the following fields:
  • vpcReference
page number
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
filter str
A URL query parameter that allows clients to filter a collection of resources.

  • The filter can be applied to the following fields:
  • externalRoutingDomainReference
  • vpcReference
limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
order_by str
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default

  • The orderby can be applied to the following fields:
  • vpcReference
page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
filter String
A URL query parameter that allows clients to filter a collection of resources.

  • The filter can be applied to the following fields:
  • externalRoutingDomainReference
  • vpcReference
limit Number
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy String
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default

  • The orderby can be applied to the following fields:
  • vpcReference
page Number
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.

getRouteTablesV2 Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
RouteTables List<PiersKarsenbarg.Nutanix.Outputs.GetRouteTablesV2RouteTable>
Filter string
Limit int
OrderBy string
Page int
Id string
The provider-assigned unique ID for this managed resource.
RouteTables []GetRouteTablesV2RouteTable
Filter string
Limit int
OrderBy string
Page int
id String
The provider-assigned unique ID for this managed resource.
routeTables List<GetRouteTablesV2RouteTable>
filter String
limit Integer
orderBy String
page Integer
id string
The provider-assigned unique ID for this managed resource.
routeTables GetRouteTablesV2RouteTable[]
filter string
limit number
orderBy string
page number
id str
The provider-assigned unique ID for this managed resource.
route_tables Sequence[GetRouteTablesV2RouteTable]
filter str
limit int
order_by str
page int
id String
The provider-assigned unique ID for this managed resource.
routeTables List<Property Map>
filter String
limit Number
orderBy String
page Number

Supporting Types

GetRouteTablesV2RouteTable

ExtId This property is required. string
Route UUID
ExternalRoutingDomainReference This property is required. string
External routing domain associated with this route table.
Links This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetRouteTablesV2RouteTableLink>
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
Metadatas This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetRouteTablesV2RouteTableMetadata>
Metadata associated with this resource.
TenantId This property is required. string
A globally unique identifier that represents the tenant that owns this entity
VpcReference This property is required. string
VPC reference.
ExtId This property is required. string
Route UUID
ExternalRoutingDomainReference This property is required. string
External routing domain associated with this route table.
Links This property is required. []GetRouteTablesV2RouteTableLink
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
Metadatas This property is required. []GetRouteTablesV2RouteTableMetadata
Metadata associated with this resource.
TenantId This property is required. string
A globally unique identifier that represents the tenant that owns this entity
VpcReference This property is required. string
VPC reference.
extId This property is required. String
Route UUID
externalRoutingDomainReference This property is required. String
External routing domain associated with this route table.
links This property is required. List<GetRouteTablesV2RouteTableLink>
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
metadatas This property is required. List<GetRouteTablesV2RouteTableMetadata>
Metadata associated with this resource.
tenantId This property is required. String
A globally unique identifier that represents the tenant that owns this entity
vpcReference This property is required. String
VPC reference.
extId This property is required. string
Route UUID
externalRoutingDomainReference This property is required. string
External routing domain associated with this route table.
links This property is required. GetRouteTablesV2RouteTableLink[]
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
metadatas This property is required. GetRouteTablesV2RouteTableMetadata[]
Metadata associated with this resource.
tenantId This property is required. string
A globally unique identifier that represents the tenant that owns this entity
vpcReference This property is required. string
VPC reference.
ext_id This property is required. str
Route UUID
external_routing_domain_reference This property is required. str
External routing domain associated with this route table.
links This property is required. Sequence[GetRouteTablesV2RouteTableLink]
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
metadatas This property is required. Sequence[GetRouteTablesV2RouteTableMetadata]
Metadata associated with this resource.
tenant_id This property is required. str
A globally unique identifier that represents the tenant that owns this entity
vpc_reference This property is required. str
VPC reference.
extId This property is required. String
Route UUID
externalRoutingDomainReference This property is required. String
External routing domain associated with this route table.
links This property is required. List<Property Map>
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
metadatas This property is required. List<Property Map>
Metadata associated with this resource.
tenantId This property is required. String
A globally unique identifier that represents the tenant that owns this entity
vpcReference This property is required. String
VPC reference.
Href This property is required. string
Rel This property is required. string
Href This property is required. string
Rel This property is required. string
href This property is required. String
rel This property is required. String
href This property is required. string
rel This property is required. string
href This property is required. str
rel This property is required. str
href This property is required. String
rel This property is required. String

GetRouteTablesV2RouteTableMetadata

CategoryIds This property is required. List<string>
A list of globally unique identifiers that represent all the categories the resource is associated with.
OwnerReferenceId This property is required. string
A globally unique identifier that represents the owner of this resource.
OwnerUserName This property is required. string
The userName of the owner of this resource.
ProjectName This property is required. string
The name of the project this resource belongs to.
ProjectReferenceId This property is required. string
A globally unique identifier that represents the project this resource belongs to.
CategoryIds This property is required. []string
A list of globally unique identifiers that represent all the categories the resource is associated with.
OwnerReferenceId This property is required. string
A globally unique identifier that represents the owner of this resource.
OwnerUserName This property is required. string
The userName of the owner of this resource.
ProjectName This property is required. string
The name of the project this resource belongs to.
ProjectReferenceId This property is required. string
A globally unique identifier that represents the project this resource belongs to.
categoryIds This property is required. List<String>
A list of globally unique identifiers that represent all the categories the resource is associated with.
ownerReferenceId This property is required. String
A globally unique identifier that represents the owner of this resource.
ownerUserName This property is required. String
The userName of the owner of this resource.
projectName This property is required. String
The name of the project this resource belongs to.
projectReferenceId This property is required. String
A globally unique identifier that represents the project this resource belongs to.
categoryIds This property is required. string[]
A list of globally unique identifiers that represent all the categories the resource is associated with.
ownerReferenceId This property is required. string
A globally unique identifier that represents the owner of this resource.
ownerUserName This property is required. string
The userName of the owner of this resource.
projectName This property is required. string
The name of the project this resource belongs to.
projectReferenceId This property is required. string
A globally unique identifier that represents the project this resource belongs to.
category_ids This property is required. Sequence[str]
A list of globally unique identifiers that represent all the categories the resource is associated with.
owner_reference_id This property is required. str
A globally unique identifier that represents the owner of this resource.
owner_user_name This property is required. str
The userName of the owner of this resource.
project_name This property is required. str
The name of the project this resource belongs to.
project_reference_id This property is required. str
A globally unique identifier that represents the project this resource belongs to.
categoryIds This property is required. List<String>
A list of globally unique identifiers that represent all the categories the resource is associated with.
ownerReferenceId This property is required. String
A globally unique identifier that represents the owner of this resource.
ownerUserName This property is required. String
The userName of the owner of this resource.
projectName This property is required. String
The name of the project this resource belongs to.
projectReferenceId This property is required. String
A globally unique identifier that represents the project this resource belongs to.

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg