UNPKG

@pulumi/scm

Version:

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

142 lines (141 loc) 4.61 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 { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: string; /** * UUID of the resource */ id: string; /** * Name */ name?: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: string; } /** * A collection of values returned by getLogicalRouter. */ export interface GetLogicalRouterResult { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly device: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: string; /** * UUID of the resource */ readonly id: string; /** * Name */ readonly name: string; /** * Routing stack */ readonly routingStack: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: string; readonly tfid: string; /** * Vrf */ 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 { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * UUID of the resource */ id: pulumi.Input<string>; /** * Name */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; }