1. Packages
  2. Equinix
  3. API Docs
  4. networkedge
  5. getDeviceType
Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix

equinix.networkedge.getDeviceType

Explore with Pulumi AI

equinix logo
Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix

    Use this data source to get Equinix Network Edge device type details. For further details, check supported Network Edge Vendors and Devices.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as equinix from "@pulumi/equinix";
    
    const ciscoRouter = equinix.networkedge.getDeviceType({
        category: "Router",
        metroCodes: [
            "DC",
            "SV",
        ],
        vendor: "Cisco",
    });
    
    import pulumi
    import pulumi_equinix as equinix
    
    cisco_router = equinix.networkedge.get_device_type(category="Router",
        metro_codes=[
            "DC",
            "SV",
        ],
        vendor="Cisco")
    
    package main
    
    import (
    	"github.com/equinix/pulumi-equinix/sdk/go/equinix/networkedge"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkedge.GetDeviceType(ctx, &networkedge.GetDeviceTypeArgs{
    			Category: pulumi.StringRef("Router"),
    			MetroCodes: []string{
    				"DC",
    				"SV",
    			},
    			Vendor: pulumi.StringRef("Cisco"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Equinix = Pulumi.Equinix;
    
    return await Deployment.RunAsync(() => 
    {
        var ciscoRouter = Equinix.NetworkEdge.GetDeviceType.Invoke(new()
        {
            Category = "Router",
            MetroCodes = new[]
            {
                "DC",
                "SV",
            },
            Vendor = "Cisco",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.equinix.networkedge.NetworkedgeFunctions;
    import com.pulumi.equinix.networkedge.inputs.GetDeviceTypeArgs;
    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 ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
                .category("Router")
                .metroCodes(            
                    "DC",
                    "SV")
                .vendor("Cisco")
                .build());
    
        }
    }
    
    variables:
      ciscoRouter:
        fn::invoke:
          Function: equinix:networkedge:getDeviceType
          Arguments:
            category: Router
            metroCodes:
              - DC
              - SV
            vendor: Cisco
    

    Using getDeviceType

    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 getDeviceType(args: GetDeviceTypeArgs, opts?: InvokeOptions): Promise<GetDeviceTypeResult>
    function getDeviceTypeOutput(args: GetDeviceTypeOutputArgs, opts?: InvokeOptions): Output<GetDeviceTypeResult>
    def get_device_type(category: Optional[str] = None,
                        metro_codes: Optional[Sequence[str]] = None,
                        name: Optional[str] = None,
                        vendor: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDeviceTypeResult
    def get_device_type_output(category: Optional[pulumi.Input[str]] = None,
                        metro_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        vendor: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDeviceTypeResult]
    func GetDeviceType(ctx *Context, args *GetDeviceTypeArgs, opts ...InvokeOption) (*GetDeviceTypeResult, error)
    func GetDeviceTypeOutput(ctx *Context, args *GetDeviceTypeOutputArgs, opts ...InvokeOption) GetDeviceTypeResultOutput

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

    public static class GetDeviceType 
    {
        public static Task<GetDeviceTypeResult> InvokeAsync(GetDeviceTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetDeviceTypeResult> Invoke(GetDeviceTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeviceTypeResult> getDeviceType(GetDeviceTypeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: equinix:networkedge/getDeviceType:getDeviceType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Category string
    Device type category. One of: Router, Firewall, SDWAN.
    MetroCodes List<string>
    List of metro codes where device type has to be available
    Name string
    Device type name.
    Vendor string
    Device type vendor i.e. Cisco, Juniper Networks, VERSA Networks.
    Category string
    Device type category. One of: Router, Firewall, SDWAN.
    MetroCodes []string
    List of metro codes where device type has to be available
    Name string
    Device type name.
    Vendor string
    Device type vendor i.e. Cisco, Juniper Networks, VERSA Networks.
    category String
    Device type category. One of: Router, Firewall, SDWAN.
    metroCodes List<String>
    List of metro codes where device type has to be available
    name String
    Device type name.
    vendor String
    Device type vendor i.e. Cisco, Juniper Networks, VERSA Networks.
    category string
    Device type category. One of: Router, Firewall, SDWAN.
    metroCodes string[]
    List of metro codes where device type has to be available
    name string
    Device type name.
    vendor string
    Device type vendor i.e. Cisco, Juniper Networks, VERSA Networks.
    category str
    Device type category. One of: Router, Firewall, SDWAN.
    metro_codes Sequence[str]
    List of metro codes where device type has to be available
    name str
    Device type name.
    vendor str
    Device type vendor i.e. Cisco, Juniper Networks, VERSA Networks.
    category String
    Device type category. One of: Router, Firewall, SDWAN.
    metroCodes List<String>
    List of metro codes where device type has to be available
    name String
    Device type name.
    vendor String
    Device type vendor i.e. Cisco, Juniper Networks, VERSA Networks.

    getDeviceType Result

    The following output properties are available:

    Category string
    Code string
    Device type short code, unique identifier of a network device type
    Description string
    Device type textual description
    Id string
    The provider-assigned unique ID for this managed resource.
    MetroCodes List<string>
    Name string
    Vendor string
    Category string
    Code string
    Device type short code, unique identifier of a network device type
    Description string
    Device type textual description
    Id string
    The provider-assigned unique ID for this managed resource.
    MetroCodes []string
    Name string
    Vendor string
    category String
    code String
    Device type short code, unique identifier of a network device type
    description String
    Device type textual description
    id String
    The provider-assigned unique ID for this managed resource.
    metroCodes List<String>
    name String
    vendor String
    category string
    code string
    Device type short code, unique identifier of a network device type
    description string
    Device type textual description
    id string
    The provider-assigned unique ID for this managed resource.
    metroCodes string[]
    name string
    vendor string
    category str
    code str
    Device type short code, unique identifier of a network device type
    description str
    Device type textual description
    id str
    The provider-assigned unique ID for this managed resource.
    metro_codes Sequence[str]
    name str
    vendor str
    category String
    code String
    Device type short code, unique identifier of a network device type
    description String
    Device type textual description
    id String
    The provider-assigned unique ID for this managed resource.
    metroCodes List<String>
    name String
    vendor String

    Package Details

    Repository
    equinix equinix/pulumi-equinix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the equinix Terraform Provider.
    equinix logo
    Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix