@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
147 lines (146 loc) • 5.01 kB
TypeScript
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 {
/**
* 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;
/**
* L2 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 getLayer2Subinterface.
*/
export interface GetLayer2SubinterfaceResult {
/**
* Description
*/
readonly comment: 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;
/**
* L2 sub-interface name
*/
readonly name: string;
/**
* Parent interface
*/
readonly parentInterface: 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;
/**
* VLAN tag
*/
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 {
/**
* 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>;
/**
* L2 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>;
}