1. Packages
  2. Netbox Provider
  3. API Docs
  4. getPlatform
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

netbox.getPlatform

Explore with Pulumi AI

netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";

const pANOS = netbox.getPlatform({
    name: "PANOS",
});
Copy
import pulumi
import pulumi_netbox as netbox

p_anos = netbox.get_platform(name="PANOS")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v3/netbox"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := netbox.LookupPlatform(ctx, &netbox.LookupPlatformArgs{
			Name: "PANOS",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;

return await Deployment.RunAsync(() => 
{
    var pANOS = Netbox.GetPlatform.Invoke(new()
    {
        Name = "PANOS",
    });

});
Copy
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.GetPlatformArgs;
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 pANOS = NetboxFunctions.getPlatform(GetPlatformArgs.builder()
            .name("PANOS")
            .build());

    }
}
Copy
variables:
  pANOS:
    fn::invoke:
      function: netbox:getPlatform
      arguments:
        name: PANOS
Copy

Using getPlatform

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 getPlatform(args: GetPlatformArgs, opts?: InvokeOptions): Promise<GetPlatformResult>
function getPlatformOutput(args: GetPlatformOutputArgs, opts?: InvokeOptions): Output<GetPlatformResult>
Copy
def get_platform(id: Optional[str] = None,
                 manufacturer_id: Optional[float] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetPlatformResult
def get_platform_output(id: Optional[pulumi.Input[str]] = None,
                 manufacturer_id: Optional[pulumi.Input[float]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetPlatformResult]
Copy
func LookupPlatform(ctx *Context, args *LookupPlatformArgs, opts ...InvokeOption) (*LookupPlatformResult, error)
func LookupPlatformOutput(ctx *Context, args *LookupPlatformOutputArgs, opts ...InvokeOption) LookupPlatformResultOutput
Copy

> Note: This function is named LookupPlatform in the Go SDK.

public static class GetPlatform 
{
    public static Task<GetPlatformResult> InvokeAsync(GetPlatformArgs args, InvokeOptions? opts = null)
    public static Output<GetPlatformResult> Invoke(GetPlatformInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPlatformResult> getPlatform(GetPlatformArgs args, InvokeOptions options)
public static Output<GetPlatformResult> getPlatform(GetPlatformArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: netbox:index/getPlatform:getPlatform
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Id string
The ID of this resource.
ManufacturerId double
Name This property is required. string
Id string
The ID of this resource.
ManufacturerId float64
name This property is required. String
id String
The ID of this resource.
manufacturerId Double
name This property is required. string
id string
The ID of this resource.
manufacturerId number
name This property is required. str
id str
The ID of this resource.
manufacturer_id float
name This property is required. String
id String
The ID of this resource.
manufacturerId Number

getPlatform Result

The following output properties are available:

Id string
The ID of this resource.
Name string
Slug string
ManufacturerId double
Id string
The ID of this resource.
Name string
Slug string
ManufacturerId float64
id String
The ID of this resource.
name String
slug String
manufacturerId Double
id string
The ID of this resource.
name string
slug string
manufacturerId number
id str
The ID of this resource.
name str
slug str
manufacturer_id float
id String
The ID of this resource.
name String
slug String
manufacturerId Number

Package Details

Repository
netbox e-breuninger/terraform-provider-netbox
License
Notes
This Pulumi package is based on the netbox Terraform Provider.
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger