UNPKG

@pulumi/scm

Version:

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

102 lines (101 loc) 3.39 kB
import * as pulumi from "@pulumi/pulumi"; /** * Layer2Subinterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up layer2 sub-interface by its ID. * const scmL2SubinterfaceDs = scm.getLayer2Subinterface({ * id: "88f730d1-6577-492b-88a6-73d4a513dc76", * }); * export const layer2SubinterfaceDataSourceResults = { * id: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.id), * name: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.name), * comment: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.comment), * vlanTag: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.vlanTag), * parentInterface: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.parentInterface), * folder: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.folder), * }; * ``` */ export declare function getLayer2Subinterface(args: GetLayer2SubinterfaceArgs, opts?: pulumi.InvokeOptions): Promise<GetLayer2SubinterfaceResult>; /** * A collection of arguments for invoking getLayer2Subinterface. */ export interface GetLayer2SubinterfaceArgs { /** * UUID of the resource */ id: string; /** * L2 sub-interface name */ name?: string; } /** * A collection of values returned by getLayer2Subinterface. */ export interface GetLayer2SubinterfaceResult { /** * Description */ readonly comment: string; /** * The device in which the resource is defined */ readonly device: string; readonly folder: string; /** * UUID of the resource */ readonly id: string; /** * L2 sub-interface name */ readonly name: string; readonly parentInterface: string; readonly snippet: string; readonly tfid: string; readonly vlanTag: string; } /** * Layer2Subinterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up layer2 sub-interface by its ID. * const scmL2SubinterfaceDs = scm.getLayer2Subinterface({ * id: "88f730d1-6577-492b-88a6-73d4a513dc76", * }); * export const layer2SubinterfaceDataSourceResults = { * id: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.id), * name: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.name), * comment: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.comment), * vlanTag: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.vlanTag), * parentInterface: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.parentInterface), * folder: scmL2SubinterfaceDs.then(scmL2SubinterfaceDs => scmL2SubinterfaceDs.folder), * }; * ``` */ export declare function getLayer2SubinterfaceOutput(args: GetLayer2SubinterfaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLayer2SubinterfaceResult>; /** * A collection of arguments for invoking getLayer2Subinterface. */ export interface GetLayer2SubinterfaceOutputArgs { /** * UUID of the resource */ id: pulumi.Input<string>; /** * L2 sub-interface name */ name?: pulumi.Input<string>; }