UNPKG

@pulumi/scm

Version:

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

184 lines (183 loc) 5.88 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * EthernetInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up ethernet interface by its ID. * const scmL3IntfStaticDs = scm.getEthernetInterface({ * id: "ddad1e64-0b64-41a4-b361-c6199769a8f2", * }); * export const ethernetInterfaceDataSourceResults = { * id: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.id), * name: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.name), * comment: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.comment), * layer3: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.layer3), * folder: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.folder), * }; * ``` */ export declare function getEthernetInterface(args: GetEthernetInterfaceArgs, opts?: pulumi.InvokeOptions): Promise<GetEthernetInterfaceResult>; /** * A collection of arguments for invoking getEthernetInterface. */ export interface GetEthernetInterfaceArgs { /** * 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; /** * 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 getEthernetInterface. */ export interface GetEthernetInterfaceResult { /** * Aggregate group * > ℹ️ **Note:** You must specify exactly one of `aggregateGroup`, `layer2`, `layer3`, and `tap`. */ readonly aggregateGroup: string; /** * Interface 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; /** * Map of sensitive values returned from the API. */ readonly encryptedValues: { [key: string]: 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; /** * Layer2 * > ℹ️ **Note:** You must specify exactly one of `aggregateGroup`, `layer2`, `layer3`, and `tap`. */ readonly layer2: outputs.GetEthernetInterfaceLayer2; /** * Ethernet Interface Layer 3 configuration * > ℹ️ **Note:** You must specify exactly one of `aggregateGroup`, `layer2`, `layer3`, and `tap`. */ readonly layer3: outputs.GetEthernetInterfaceLayer3; /** * Link duplex */ readonly linkDuplex: string; /** * Link speed */ readonly linkSpeed: string; /** * Link state */ readonly linkState: string; /** * Interface name */ readonly name: string; /** * Poe */ readonly poe: outputs.GetEthernetInterfacePoe; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: string; /** * Tap * > ℹ️ **Note:** You must specify exactly one of `aggregateGroup`, `layer2`, `layer3`, and `tap`. */ readonly tap: outputs.GetEthernetInterfaceTap; readonly tfid: string; } /** * EthernetInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up ethernet interface by its ID. * const scmL3IntfStaticDs = scm.getEthernetInterface({ * id: "ddad1e64-0b64-41a4-b361-c6199769a8f2", * }); * export const ethernetInterfaceDataSourceResults = { * id: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.id), * name: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.name), * comment: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.comment), * layer3: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.layer3), * folder: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.folder), * }; * ``` */ export declare function getEthernetInterfaceOutput(args: GetEthernetInterfaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEthernetInterfaceResult>; /** * A collection of arguments for invoking getEthernetInterface. */ export interface GetEthernetInterfaceOutputArgs { /** * 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>; /** * 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>; }