UNPKG

@pulumi/scm

Version:

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

154 lines (153 loc) 4.83 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * TunnelInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up tunnel interface by its ID. * const scmTunnelIntfDs = scm.getTunnelInterface({ * id: "ddad1e64-0b64-41a4-b361-c6191169a8f1", * }); * export const scmTunnelInterfaceDataSourceResults = { * id: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.id), * name: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.name), * comment: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.comment), * ip: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.ips), * folder: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.folder), * }; * ``` */ export declare function getTunnelInterface(args: GetTunnelInterfaceArgs, opts?: pulumi.InvokeOptions): Promise<GetTunnelInterfaceResult>; /** * A collection of arguments for invoking getTunnelInterface. */ export interface GetTunnelInterfaceArgs { /** * 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; /** * L3 sub-interface 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 getTunnelInterface. */ export interface GetTunnelInterfaceResult { /** * Description */ readonly comment: string; /** * Default interface assignment */ readonly defaultValue: string; /** * 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; /** * Interface management profile */ readonly interfaceManagementProfile: string; /** * Tunnel Interface IP Parent */ readonly ips: outputs.GetTunnelInterfaceIp[]; /** * MTU */ readonly mtu: number; /** * L3 sub-interface name */ readonly name: 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; } /** * TunnelInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up tunnel interface by its ID. * const scmTunnelIntfDs = scm.getTunnelInterface({ * id: "ddad1e64-0b64-41a4-b361-c6191169a8f1", * }); * export const scmTunnelInterfaceDataSourceResults = { * id: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.id), * name: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.name), * comment: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.comment), * ip: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.ips), * folder: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.folder), * }; * ``` */ export declare function getTunnelInterfaceOutput(args: GetTunnelInterfaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTunnelInterfaceResult>; /** * A collection of arguments for invoking getTunnelInterface. */ export interface GetTunnelInterfaceOutputArgs { /** * 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>; /** * L3 sub-interface 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>; }