UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

97 lines (96 loc) 3 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * LogicalRouter data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the logical router by its ID. * const scmLogicalRouterDs = scm.getLogicalRouter({ * id: "b7c6f00b-b20e-4073-af1c-1f42863a5983", * }); * export const scmLogicalRouterDataSourceOutput = { * id: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.id), * name: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.name), * routingStack: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.routingStack), * vrf: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.vrves), * folder: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.folder), * }; * ``` */ export declare function getLogicalRouter(args: GetLogicalRouterArgs, opts?: pulumi.InvokeOptions): Promise<GetLogicalRouterResult>; /** * A collection of arguments for invoking getLogicalRouter. */ export interface GetLogicalRouterArgs { /** * UUID of the resource */ id: string; /** * Name */ name?: string; } /** * A collection of values returned by getLogicalRouter. */ export interface GetLogicalRouterResult { /** * The device in which the resource is defined */ readonly device: string; readonly folder: string; /** * UUID of the resource */ readonly id: string; /** * Name */ readonly name: string; readonly routingStack: string; readonly snippet: string; readonly tfid: string; readonly vrves: outputs.GetLogicalRouterVrf[]; } /** * LogicalRouter data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the logical router by its ID. * const scmLogicalRouterDs = scm.getLogicalRouter({ * id: "b7c6f00b-b20e-4073-af1c-1f42863a5983", * }); * export const scmLogicalRouterDataSourceOutput = { * id: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.id), * name: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.name), * routingStack: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.routingStack), * vrf: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.vrves), * folder: scmLogicalRouterDs.then(scmLogicalRouterDs => scmLogicalRouterDs.folder), * }; * ``` */ export declare function getLogicalRouterOutput(args: GetLogicalRouterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLogicalRouterResult>; /** * A collection of arguments for invoking getLogicalRouter. */ export interface GetLogicalRouterOutputArgs { /** * UUID of the resource */ id: pulumi.Input<string>; /** * Name */ name?: pulumi.Input<string>; }