UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

104 lines (103 loc) 4.05 kB
import * as pulumi from "@pulumi/pulumi"; /** * From the [official documentation](https://docs.netbox.dev/en/stable/models/dcim/interfacetemplate/): * * > A template for a network interface that will be created on all instantiations of the parent device type. See the interface documentation for more detail. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@natzka-oss/pulumi-netbox"; * * const test = new netbox.dcim.Manufacturer("test", {name: "my-manufacturer"}); * const testDeviceType = new netbox.dcim.DeviceType("test", { * model: "test-model", * slug: "test-model", * partNumber: "test-part-number", * manufacturerId: test.id, * }); * const testInterfaceTemplate = new netbox.dcim.InterfaceTemplate("test", { * name: "eth0", * description: "eth0 description", * label: "eth0 label", * deviceTypeId: testDeviceType.id, * type: "100base-tx", * mgmtOnly: true, * }); * ``` */ export declare class InterfaceTemplate extends pulumi.CustomResource { /** * Get an existing InterfaceTemplate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InterfaceTemplateState, opts?: pulumi.CustomResourceOptions): InterfaceTemplate; /** * Returns true if the given object is an instance of InterfaceTemplate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is InterfaceTemplate; readonly description: pulumi.Output<string | undefined>; /** * Exactly one of `deviceTypeId` or `moduleTypeId` must be given. */ readonly deviceTypeId: pulumi.Output<number | undefined>; readonly label: pulumi.Output<string | undefined>; readonly mgmtOnly: pulumi.Output<boolean | undefined>; /** * Exactly one of `deviceTypeId` or `moduleTypeId` must be given. */ readonly moduleTypeId: pulumi.Output<number | undefined>; readonly name: pulumi.Output<string>; readonly type: pulumi.Output<string>; /** * Create a InterfaceTemplate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: InterfaceTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InterfaceTemplate resources. */ export interface InterfaceTemplateState { description?: pulumi.Input<string>; /** * Exactly one of `deviceTypeId` or `moduleTypeId` must be given. */ deviceTypeId?: pulumi.Input<number>; label?: pulumi.Input<string>; mgmtOnly?: pulumi.Input<boolean>; /** * Exactly one of `deviceTypeId` or `moduleTypeId` must be given. */ moduleTypeId?: pulumi.Input<number>; name?: pulumi.Input<string>; type?: pulumi.Input<string>; } /** * The set of arguments for constructing a InterfaceTemplate resource. */ export interface InterfaceTemplateArgs { description?: pulumi.Input<string>; /** * Exactly one of `deviceTypeId` or `moduleTypeId` must be given. */ deviceTypeId?: pulumi.Input<number>; label?: pulumi.Input<string>; mgmtOnly?: pulumi.Input<boolean>; /** * Exactly one of `deviceTypeId` or `moduleTypeId` must be given. */ moduleTypeId?: pulumi.Input<number>; name?: pulumi.Input<string>; type: pulumi.Input<string>; }