Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A module bay template of a device type or module type (dcim.modulebaytemplate).
From the official documentation:
A template for a module bay that will be created on all instantiations of the parent device type. See the module bay documentation for more detail.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getModuleBayTemplate({
name: "test-module_bay_template",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_module_bay_template(name="test-module_bay_template")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netbox.LookupModuleBayTemplate(ctx, &netbox.LookupModuleBayTemplateArgs{
Name: pulumi.StringRef("test-module_bay_template"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var test = Netbox.GetModuleBayTemplate.Invoke(new()
{
Name = "test-module_bay_template",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.NetboxFunctions;
import com.pulumi.netbox.inputs.GetModuleBayTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = NetboxFunctions.getModuleBayTemplate(GetModuleBayTemplateArgs.builder()
.name("test-module_bay_template")
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getModuleBayTemplate
arguments:
name: test-module_bay_template
Example coming soon!
Using getModuleBayTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getModuleBayTemplate(args: GetModuleBayTemplateArgs, opts?: InvokeOptions): Promise<GetModuleBayTemplateResult>
function getModuleBayTemplateOutput(args: GetModuleBayTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetModuleBayTemplateResult>def get_module_bay_template(id: Optional[float] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModuleBayTemplateResult
def get_module_bay_template_output(id: pulumi.Input[Optional[float]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetModuleBayTemplateResult]func LookupModuleBayTemplate(ctx *Context, args *LookupModuleBayTemplateArgs, opts ...InvokeOption) (*LookupModuleBayTemplateResult, error)
func LookupModuleBayTemplateOutput(ctx *Context, args *LookupModuleBayTemplateOutputArgs, opts ...InvokeOption) LookupModuleBayTemplateResultOutput> Note: This function is named LookupModuleBayTemplate in the Go SDK.
public static class GetModuleBayTemplate
{
public static Task<GetModuleBayTemplateResult> InvokeAsync(GetModuleBayTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetModuleBayTemplateResult> Invoke(GetModuleBayTemplateInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetModuleBayTemplateResult> Invoke(GetModuleBayTemplateInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetModuleBayTemplateResult> getModuleBayTemplate(GetModuleBayTemplateArgs args, InvokeOptions options)
public static Output<GetModuleBayTemplateResult> getModuleBayTemplate(GetModuleBayTemplateArgs args, InvokeOptions options)
public static Output<GetModuleBayTemplateResult> getModuleBayTemplate(GetModuleBayTemplateArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getModuleBayTemplate:getModuleBayTemplate
arguments:
# arguments dictionarydata "netbox_get_module_bay_template" "name" {
# arguments
}The following arguments are supported:
getModuleBayTemplate Result
The following output properties are available:
- Created string
- Description string
- Device
Type doubleId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Enabled bool
- Whether the module bay is enabled.
- Id double
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Module
Type doubleId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Name string
- Position string
- Identifier of the bay's position, substituted into the names of the module's components.
- Url string
- Created string
- Description string
- Device
Type float64Id - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Enabled bool
- Whether the module bay is enabled.
- Id float64
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Module
Type float64Id - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- Name string
- Position string
- Identifier of the bay's position, substituted into the names of the module's components.
- Url string
- created string
- description string
- device_
type_ numberid - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- enabled bool
- Whether the module bay is enabled.
- id number
- NetBox id.
- label string
- Physical label.
- last_
updated string - module_
type_ numberid - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name string
- position string
- Identifier of the bay's position, substituted into the names of the module's components.
- url string
- created String
- description String
- device
Type DoubleId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- enabled Boolean
- Whether the module bay is enabled.
- id Double
- NetBox id.
- label String
- Physical label.
- last
Updated String - module
Type DoubleId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name String
- position String
- Identifier of the bay's position, substituted into the names of the module's components.
- url String
- created string
- description string
- device
Type numberId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- enabled boolean
- Whether the module bay is enabled.
- id number
- NetBox id.
- label string
- Physical label.
- last
Updated string - module
Type numberId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name string
- position string
- Identifier of the bay's position, substituted into the names of the module's components.
- url string
- created str
- description str
- device_
type_ floatid - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- enabled bool
- Whether the module bay is enabled.
- id float
- NetBox id.
- label str
- Physical label.
- last_
updated str - module_
type_ floatid - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name str
- position str
- Identifier of the bay's position, substituted into the names of the module's components.
- url str
- created String
- description String
- device
Type NumberId - Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- enabled Boolean
- Whether the module bay is enabled.
- id Number
- NetBox id.
- label String
- Physical label.
- last
Updated String - module
Type NumberId - Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
- name String
- position String
- Identifier of the bay's position, substituted into the names of the module's components.
- url String
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger