ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getTgRouteReports
Explore with Pulumi AI
Retrieve information of an existing IBM Cloud infrastructure transit gateway route reports as a read only data source. For more information about Transit Gateway Route Reports, see generating and viewing a route report.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const tgRouteReports = ibm.getTgRouteReports({
gateway: ibm_tg_gateway.new_tg_gw.id,
});
import pulumi
import pulumi_ibm as ibm
tg_route_reports = ibm.get_tg_route_reports(gateway=ibm_tg_gateway["new_tg_gw"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetTgRouteReports(ctx, &ibm.GetTgRouteReportsArgs{
Gateway: ibm_tg_gateway.New_tg_gw.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var tgRouteReports = Ibm.GetTgRouteReports.Invoke(new()
{
Gateway = ibm_tg_gateway.New_tg_gw.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetTgRouteReportsArgs;
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 tgRouteReports = IbmFunctions.getTgRouteReports(GetTgRouteReportsArgs.builder()
.gateway(ibm_tg_gateway.new_tg_gw().id())
.build());
}
}
variables:
tgRouteReports:
fn::invoke:
function: ibm:getTgRouteReports
arguments:
gateway: ${ibm_tg_gateway.new_tg_gw.id}
Using getTgRouteReports
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 getTgRouteReports(args: GetTgRouteReportsArgs, opts?: InvokeOptions): Promise<GetTgRouteReportsResult>
function getTgRouteReportsOutput(args: GetTgRouteReportsOutputArgs, opts?: InvokeOptions): Output<GetTgRouteReportsResult>
def get_tg_route_reports(gateway: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTgRouteReportsResult
def get_tg_route_reports_output(gateway: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTgRouteReportsResult]
func GetTgRouteReports(ctx *Context, args *GetTgRouteReportsArgs, opts ...InvokeOption) (*GetTgRouteReportsResult, error)
func GetTgRouteReportsOutput(ctx *Context, args *GetTgRouteReportsOutputArgs, opts ...InvokeOption) GetTgRouteReportsResultOutput
> Note: This function is named GetTgRouteReports
in the Go SDK.
public static class GetTgRouteReports
{
public static Task<GetTgRouteReportsResult> InvokeAsync(GetTgRouteReportsArgs args, InvokeOptions? opts = null)
public static Output<GetTgRouteReportsResult> Invoke(GetTgRouteReportsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTgRouteReportsResult> getTgRouteReports(GetTgRouteReportsArgs args, InvokeOptions options)
public static Output<GetTgRouteReportsResult> getTgRouteReports(GetTgRouteReportsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getTgRouteReports:getTgRouteReports
arguments:
# arguments dictionary
The following arguments are supported:
getTgRouteReports Result
The following output properties are available:
- Gateway string
- Id string
- (String) The unique identifier for the transit gateway connection
- Route
Reports List<GetTg Route Reports Route Report> - (String) List of all route reports for the transit gateway
- Gateway string
- Id string
- (String) The unique identifier for the transit gateway connection
- Route
Reports []GetTg Route Reports Route Report - (String) List of all route reports for the transit gateway
- gateway String
- id String
- (String) The unique identifier for the transit gateway connection
- route
Reports List<GetTg Route Reports Route Report> - (String) List of all route reports for the transit gateway
- gateway string
- id string
- (String) The unique identifier for the transit gateway connection
- route
Reports GetTg Route Reports Route Report[] - (String) List of all route reports for the transit gateway
- gateway str
- id str
- (String) The unique identifier for the transit gateway connection
- route_
reports Sequence[GetTg Route Reports Route Report] - (String) List of all route reports for the transit gateway
- gateway String
- id String
- (String) The unique identifier for the transit gateway connection
- route
Reports List<Property Map> - (String) List of all route reports for the transit gateway
Supporting Types
GetTgRouteReportsRouteReport
- Connections
List<Get
Tg Route Reports Route Report Connection> - (String) A list of connections in the gateway
- Created
At string - (Timestamp) The date and time resource is created.
- Id string
- (String) The unique identifier for the transit gateway connection
- Overlapping
Routes List<GetTg Route Reports Route Report Overlapping Route> - (String) A list of overlapping routes in the gateway
- Status string
- (String) The route report status.
- Updated
At string - (Timestamp) The date and time resource is last updated.
- Connections
[]Get
Tg Route Reports Route Report Connection - (String) A list of connections in the gateway
- Created
At string - (Timestamp) The date and time resource is created.
- Id string
- (String) The unique identifier for the transit gateway connection
- Overlapping
Routes []GetTg Route Reports Route Report Overlapping Route - (String) A list of overlapping routes in the gateway
- Status string
- (String) The route report status.
- Updated
At string - (Timestamp) The date and time resource is last updated.
- connections
List<Get
Tg Route Reports Route Report Connection> - (String) A list of connections in the gateway
- created
At String - (Timestamp) The date and time resource is created.
- id String
- (String) The unique identifier for the transit gateway connection
- overlapping
Routes List<GetTg Route Reports Route Report Overlapping Route> - (String) A list of overlapping routes in the gateway
- status String
- (String) The route report status.
- updated
At String - (Timestamp) The date and time resource is last updated.
- connections
Get
Tg Route Reports Route Report Connection[] - (String) A list of connections in the gateway
- created
At string - (Timestamp) The date and time resource is created.
- id string
- (String) The unique identifier for the transit gateway connection
- overlapping
Routes GetTg Route Reports Route Report Overlapping Route[] - (String) A list of overlapping routes in the gateway
- status string
- (String) The route report status.
- updated
At string - (Timestamp) The date and time resource is last updated.
- connections
Sequence[Get
Tg Route Reports Route Report Connection] - (String) A list of connections in the gateway
- created_
at str - (Timestamp) The date and time resource is created.
- id str
- (String) The unique identifier for the transit gateway connection
- overlapping_
routes Sequence[GetTg Route Reports Route Report Overlapping Route] - (String) A list of overlapping routes in the gateway
- status str
- (String) The route report status.
- updated_
at str - (Timestamp) The date and time resource is last updated.
- connections List<Property Map>
- (String) A list of connections in the gateway
- created
At String - (Timestamp) The date and time resource is created.
- id String
- (String) The unique identifier for the transit gateway connection
- overlapping
Routes List<Property Map> - (String) A list of overlapping routes in the gateway
- status String
- (String) The route report status.
- updated
At String - (Timestamp) The date and time resource is last updated.
GetTgRouteReportsRouteReportConnection
- Bgps
List<Get
Tg Route Reports Route Report Connection Bgp> - (String) A list of the connection's bgps
Nested scheme for
bgps
: - Id string
- (String) The unique identifier for the transit gateway connection
- Name string
- (String) The user-defined name for the transit gateway connection.
- Routes
List<Get
Tg Route Reports Route Report Connection Route> - (String) A list of the connection's routes
- Type string
- (String) The connection type
- Bgps
[]Get
Tg Route Reports Route Report Connection Bgp - (String) A list of the connection's bgps
Nested scheme for
bgps
: - Id string
- (String) The unique identifier for the transit gateway connection
- Name string
- (String) The user-defined name for the transit gateway connection.
- Routes
[]Get
Tg Route Reports Route Report Connection Route - (String) A list of the connection's routes
- Type string
- (String) The connection type
- bgps
List<Get
Tg Route Reports Route Report Connection Bgp> - (String) A list of the connection's bgps
Nested scheme for
bgps
: - id String
- (String) The unique identifier for the transit gateway connection
- name String
- (String) The user-defined name for the transit gateway connection.
- routes
List<Get
Tg Route Reports Route Report Connection Route> - (String) A list of the connection's routes
- type String
- (String) The connection type
- bgps
Get
Tg Route Reports Route Report Connection Bgp[] - (String) A list of the connection's bgps
Nested scheme for
bgps
: - id string
- (String) The unique identifier for the transit gateway connection
- name string
- (String) The user-defined name for the transit gateway connection.
- routes
Get
Tg Route Reports Route Report Connection Route[] - (String) A list of the connection's routes
- type string
- (String) The connection type
- bgps
Sequence[Get
Tg Route Reports Route Report Connection Bgp] - (String) A list of the connection's bgps
Nested scheme for
bgps
: - id str
- (String) The unique identifier for the transit gateway connection
- name str
- (String) The user-defined name for the transit gateway connection.
- routes
Sequence[Get
Tg Route Reports Route Report Connection Route] - (String) A list of the connection's routes
- type str
- (String) The connection type
- bgps List<Property Map>
- (String) A list of the connection's bgps
Nested scheme for
bgps
: - id String
- (String) The unique identifier for the transit gateway connection
- name String
- (String) The user-defined name for the transit gateway connection.
- routes List<Property Map>
- (String) A list of the connection's routes
- type String
- (String) The connection type
GetTgRouteReportsRouteReportConnectionBgp
- As
Path string - (String) The bgp AS path
- Is
Used bool - (Bool) Indicates whether the current route is used or not
- Local
Preference string - (String) The local preference
- Prefix string
- (String) The overlapping prefix
- As
Path string - (String) The bgp AS path
- Is
Used bool - (Bool) Indicates whether the current route is used or not
- Local
Preference string - (String) The local preference
- Prefix string
- (String) The overlapping prefix
- as
Path String - (String) The bgp AS path
- is
Used Boolean - (Bool) Indicates whether the current route is used or not
- local
Preference String - (String) The local preference
- prefix String
- (String) The overlapping prefix
- as
Path string - (String) The bgp AS path
- is
Used boolean - (Bool) Indicates whether the current route is used or not
- local
Preference string - (String) The local preference
- prefix string
- (String) The overlapping prefix
- as_
path str - (String) The bgp AS path
- is_
used bool - (Bool) Indicates whether the current route is used or not
- local_
preference str - (String) The local preference
- prefix str
- (String) The overlapping prefix
- as
Path String - (String) The bgp AS path
- is
Used Boolean - (Bool) Indicates whether the current route is used or not
- local
Preference String - (String) The local preference
- prefix String
- (String) The overlapping prefix
GetTgRouteReportsRouteReportConnectionRoute
- Prefix string
- (String) The overlapping prefix
- Prefix string
- (String) The overlapping prefix
- prefix String
- (String) The overlapping prefix
- prefix string
- (String) The overlapping prefix
- prefix str
- (String) The overlapping prefix
- prefix String
- (String) The overlapping prefix
GetTgRouteReportsRouteReportOverlappingRoute
- Routes
List<Get
Tg Route Reports Route Report Overlapping Route Route> - (String) A list of the connection's routes
- Routes
[]Get
Tg Route Reports Route Report Overlapping Route Route - (String) A list of the connection's routes
- routes
List<Get
Tg Route Reports Route Report Overlapping Route Route> - (String) A list of the connection's routes
- routes
Get
Tg Route Reports Route Report Overlapping Route Route[] - (String) A list of the connection's routes
- routes
Sequence[Get
Tg Route Reports Route Report Overlapping Route Route] - (String) A list of the connection's routes
- routes List<Property Map>
- (String) A list of the connection's routes
GetTgRouteReportsRouteReportOverlappingRouteRoute
- Connection
Id string - (String) The unique identifier for the transit gateway connection
- Prefix string
- (String) The overlapping prefix
- Connection
Id string - (String) The unique identifier for the transit gateway connection
- Prefix string
- (String) The overlapping prefix
- connection
Id String - (String) The unique identifier for the transit gateway connection
- prefix String
- (String) The overlapping prefix
- connection
Id string - (String) The unique identifier for the transit gateway connection
- prefix string
- (String) The overlapping prefix
- connection_
id str - (String) The unique identifier for the transit gateway connection
- prefix str
- (String) The overlapping prefix
- connection
Id String - (String) The unique identifier for the transit gateway connection
- prefix String
- (String) The overlapping prefix
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.