UNPKG

@pulumi/scm

Version:

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

158 lines (157 loc) 5.04 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * LoopbackInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up loopback interface by its ID. * const scmLoopbackIntfDs = scm.getLoopbackInterface({ * id: "ddad1e64-0b64-41a4-b361-c6199769a8f1", * }); * export const scmLoopbackInterfaceDataSourceResults = { * id: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.id), * name: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.name), * comment: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.comment), * ip: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.ips), * folder: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.folder), * }; * ``` */ export declare function getLoopbackInterface(args: GetLoopbackInterfaceArgs, opts?: pulumi.InvokeOptions): Promise<GetLoopbackInterfaceResult>; /** * A collection of arguments for invoking getLoopbackInterface. */ export interface GetLoopbackInterfaceArgs { /** * 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; /** * Loopback 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 getLoopbackInterface. */ export interface GetLoopbackInterfaceResult { /** * 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; /** * Loopback IP Parent */ readonly ips: outputs.GetLoopbackInterfaceIp[]; /** * Loopback IPv6 Configuration */ readonly ipv6: outputs.GetLoopbackInterfaceIpv6; /** * MTU */ readonly mtu: number; /** * Loopback 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; } /** * LoopbackInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up loopback interface by its ID. * const scmLoopbackIntfDs = scm.getLoopbackInterface({ * id: "ddad1e64-0b64-41a4-b361-c6199769a8f1", * }); * export const scmLoopbackInterfaceDataSourceResults = { * id: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.id), * name: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.name), * comment: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.comment), * ip: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.ips), * folder: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.folder), * }; * ``` */ export declare function getLoopbackInterfaceOutput(args: GetLoopbackInterfaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLoopbackInterfaceResult>; /** * A collection of arguments for invoking getLoopbackInterface. */ export interface GetLoopbackInterfaceOutputArgs { /** * 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>; /** * Loopback 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>; }