1. Packages
  2. Packages
  3. Strata Cloud Manager Provider
  4. API Docs
  5. getDevice
Viewing docs for Strata Cloud Manager v1.0.6
published on Saturday, Apr 25, 2026 by Pulumi
scm logo
Viewing docs for Strata Cloud Manager v1.0.6
published on Saturday, Apr 25, 2026 by Pulumi

    Device data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Look up a device by id
    const myDevice = scm.getDevice({
        id: "007099000023642",
    });
    export const scmDeviceOutput = {
        id: myDevice.then(myDevice => myDevice.id),
        name: myDevice.then(myDevice => myDevice.name),
        hostname: myDevice.then(myDevice => myDevice.hostname),
        model: myDevice.then(myDevice => myDevice.model),
        family: myDevice.then(myDevice => myDevice.family),
        folder: myDevice.then(myDevice => myDevice.folder),
        isConnected: myDevice.then(myDevice => myDevice.isConnected),
        softwareVersion: myDevice.then(myDevice => myDevice.softwareVersion),
        ipAddress: myDevice.then(myDevice => myDevice.ipAddress),
        macAddress: myDevice.then(myDevice => myDevice.macAddress),
        uptime: myDevice.then(myDevice => myDevice.uptime),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    # Look up a device by id
    my_device = scm.get_device(id="007099000023642")
    pulumi.export("scmDeviceOutput", {
        "id": my_device.id,
        "name": my_device.name,
        "hostname": my_device.hostname,
        "model": my_device.model,
        "family": my_device.family,
        "folder": my_device.folder,
        "isConnected": my_device.is_connected,
        "softwareVersion": my_device.software_version,
        "ipAddress": my_device.ip_address,
        "macAddress": my_device.mac_address,
        "uptime": my_device.uptime,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Look up a device by id
    		myDevice, err := scm.GetDevice(ctx, &scm.GetDeviceArgs{
    			Id: "007099000023642",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmDeviceOutput", pulumi.Map{
    			"id":              myDevice.Id,
    			"name":            myDevice.Name,
    			"hostname":        myDevice.Hostname,
    			"model":           myDevice.Model,
    			"family":          myDevice.Family,
    			"folder":          myDevice.Folder,
    			"isConnected":     myDevice.IsConnected,
    			"softwareVersion": myDevice.SoftwareVersion,
    			"ipAddress":       myDevice.IpAddress,
    			"macAddress":      myDevice.MacAddress,
    			"uptime":          myDevice.Uptime,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Look up a device by id
        var myDevice = Scm.Index.GetDevice.Invoke(new()
        {
            Id = "007099000023642",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmDeviceOutput"] = 
            {
                { "id", myDevice.Apply(getDeviceResult => getDeviceResult.Id) },
                { "name", myDevice.Apply(getDeviceResult => getDeviceResult.Name) },
                { "hostname", myDevice.Apply(getDeviceResult => getDeviceResult.Hostname) },
                { "model", myDevice.Apply(getDeviceResult => getDeviceResult.Model) },
                { "family", myDevice.Apply(getDeviceResult => getDeviceResult.Family) },
                { "folder", myDevice.Apply(getDeviceResult => getDeviceResult.Folder) },
                { "isConnected", myDevice.Apply(getDeviceResult => getDeviceResult.IsConnected) },
                { "softwareVersion", myDevice.Apply(getDeviceResult => getDeviceResult.SoftwareVersion) },
                { "ipAddress", myDevice.Apply(getDeviceResult => getDeviceResult.IpAddress) },
                { "macAddress", myDevice.Apply(getDeviceResult => getDeviceResult.MacAddress) },
                { "uptime", myDevice.Apply(getDeviceResult => getDeviceResult.Uptime) },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetDeviceArgs;
    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) {
            // Look up a device by id
            final var myDevice = ScmFunctions.getDevice(GetDeviceArgs.builder()
                .id("007099000023642")
                .build());
    
            ctx.export("scmDeviceOutput", Map.ofEntries(
                Map.entry("id", myDevice.id()),
                Map.entry("name", myDevice.name()),
                Map.entry("hostname", myDevice.hostname()),
                Map.entry("model", myDevice.model()),
                Map.entry("family", myDevice.family()),
                Map.entry("folder", myDevice.folder()),
                Map.entry("isConnected", myDevice.isConnected()),
                Map.entry("softwareVersion", myDevice.softwareVersion()),
                Map.entry("ipAddress", myDevice.ipAddress()),
                Map.entry("macAddress", myDevice.macAddress()),
                Map.entry("uptime", myDevice.uptime())
            ));
        }
    }
    
    variables:
      # Look up a device by id
      myDevice:
        fn::invoke:
          function: scm:getDevice
          arguments:
            id: '007099000023642'
    outputs:
      # Output the details of the found device
      scmDeviceOutput:
        id: ${myDevice.id}
        name: ${myDevice.name}
        hostname: ${myDevice.hostname}
        model: ${myDevice.model}
        family: ${myDevice.family}
        folder: ${myDevice.folder}
        isConnected: ${myDevice.isConnected}
        softwareVersion: ${myDevice.softwareVersion}
        ipAddress: ${myDevice.ipAddress}
        macAddress: ${myDevice.macAddress}
        uptime: ${myDevice.uptime}
    

    Using getDevice

    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 getDevice(args: GetDeviceArgs, opts?: InvokeOptions): Promise<GetDeviceResult>
    function getDeviceOutput(args: GetDeviceOutputArgs, opts?: InvokeOptions): Output<GetDeviceResult>
    def get_device(folder: Optional[str] = None,
                   id: Optional[str] = None,
                   name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDeviceResult
    def get_device_output(folder: Optional[pulumi.Input[str]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetDeviceResult]
    func GetDevice(ctx *Context, args *GetDeviceArgs, opts ...InvokeOption) (*GetDeviceResult, error)
    func GetDeviceOutput(ctx *Context, args *GetDeviceOutputArgs, opts ...InvokeOption) GetDeviceResultOutput

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

    public static class GetDevice 
    {
        public static Task<GetDeviceResult> InvokeAsync(GetDeviceArgs args, InvokeOptions? opts = null)
        public static Output<GetDeviceResult> Invoke(GetDeviceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
    public static Output<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getDevice:getDevice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the device
    Folder string
    The folder containing the device
    Name string
    The name of the device
    Id string
    The UUID of the device
    Folder string
    The folder containing the device
    Name string
    The name of the device
    id String
    The UUID of the device
    folder String
    The folder containing the device
    name String
    The name of the device
    id string
    The UUID of the device
    folder string
    The folder containing the device
    name string
    The name of the device
    id str
    The UUID of the device
    folder str
    The folder containing the device
    name str
    The name of the device
    id String
    The UUID of the device
    folder String
    The folder containing the device
    name String
    The name of the device

    getDevice Result

    The following output properties are available:

    AntiVirusVersion string
    Anti virus version
    AppReleaseDate string
    App release date
    AppVersion string
    App version
    AvReleaseDate string
    Av release date
    AvailableLicensesses List<GetDeviceAvailableLicensess>
    Available licensess
    ConnectedSince string
    Connected since
    Description string
    The description of the device
    DevCertDetail string
    Dev cert detail
    DevCertExpiryDate string
    Dev cert expiry date
    DisplayName string
    The display name of the device
    Family string
    The product family of the device
    Folder string
    The folder containing the device
    GpClientVerion string
    Gp client verion
    GpDataVersion string
    Gp data version
    HaPeerSerial string
    Ha peer serial
    HaPeerState string
    Ha peer state
    HaState string
    Ha state
    Hostname string
    The hostname of the device
    Id string
    The UUID of the device
    InstalledLicenses List<GetDeviceInstalledLicense>
    Installed licenses
    IotReleaseDate string
    Iot release date
    IotVersion string
    Iot version
    IpAddress string
    The IPv4 address of the device
    IpV6Address string
    Ip v6 address
    IsConnected bool
    Is connected
    Labels List<string>
    Labels assigned to the device
    LicenseMatch bool
    License match
    LogDbVersion string
    Log db version
    MacAddress string
    The MAC address of the device
    Model string
    The model of the device
    Name string
    The name of the device
    Snippets List<string>
    Snippets associated with the device
    SoftwareVersion string
    Software version
    Tfid string
    The Terraform ID.
    ThreatReleaseDate string
    Threat release date
    ThreatVersion string
    Threat version
    Uptime string
    Uptime
    UrlDbType string
    Url db type
    UrlDbVer string
    Url db ver
    VmState string
    Vm state
    WfReleaseDate string
    Wf release date
    WfVer string
    Wf ver
    AntiVirusVersion string
    Anti virus version
    AppReleaseDate string
    App release date
    AppVersion string
    App version
    AvReleaseDate string
    Av release date
    AvailableLicensesses []GetDeviceAvailableLicensess
    Available licensess
    ConnectedSince string
    Connected since
    Description string
    The description of the device
    DevCertDetail string
    Dev cert detail
    DevCertExpiryDate string
    Dev cert expiry date
    DisplayName string
    The display name of the device
    Family string
    The product family of the device
    Folder string
    The folder containing the device
    GpClientVerion string
    Gp client verion
    GpDataVersion string
    Gp data version
    HaPeerSerial string
    Ha peer serial
    HaPeerState string
    Ha peer state
    HaState string
    Ha state
    Hostname string
    The hostname of the device
    Id string
    The UUID of the device
    InstalledLicenses []GetDeviceInstalledLicense
    Installed licenses
    IotReleaseDate string
    Iot release date
    IotVersion string
    Iot version
    IpAddress string
    The IPv4 address of the device
    IpV6Address string
    Ip v6 address
    IsConnected bool
    Is connected
    Labels []string
    Labels assigned to the device
    LicenseMatch bool
    License match
    LogDbVersion string
    Log db version
    MacAddress string
    The MAC address of the device
    Model string
    The model of the device
    Name string
    The name of the device
    Snippets []string
    Snippets associated with the device
    SoftwareVersion string
    Software version
    Tfid string
    The Terraform ID.
    ThreatReleaseDate string
    Threat release date
    ThreatVersion string
    Threat version
    Uptime string
    Uptime
    UrlDbType string
    Url db type
    UrlDbVer string
    Url db ver
    VmState string
    Vm state
    WfReleaseDate string
    Wf release date
    WfVer string
    Wf ver
    antiVirusVersion String
    Anti virus version
    appReleaseDate String
    App release date
    appVersion String
    App version
    avReleaseDate String
    Av release date
    availableLicensesses List<GetDeviceAvailableLicensess>
    Available licensess
    connectedSince String
    Connected since
    description String
    The description of the device
    devCertDetail String
    Dev cert detail
    devCertExpiryDate String
    Dev cert expiry date
    displayName String
    The display name of the device
    family String
    The product family of the device
    folder String
    The folder containing the device
    gpClientVerion String
    Gp client verion
    gpDataVersion String
    Gp data version
    haPeerSerial String
    Ha peer serial
    haPeerState String
    Ha peer state
    haState String
    Ha state
    hostname String
    The hostname of the device
    id String
    The UUID of the device
    installedLicenses List<GetDeviceInstalledLicense>
    Installed licenses
    iotReleaseDate String
    Iot release date
    iotVersion String
    Iot version
    ipAddress String
    The IPv4 address of the device
    ipV6Address String
    Ip v6 address
    isConnected Boolean
    Is connected
    labels List<String>
    Labels assigned to the device
    licenseMatch Boolean
    License match
    logDbVersion String
    Log db version
    macAddress String
    The MAC address of the device
    model String
    The model of the device
    name String
    The name of the device
    snippets List<String>
    Snippets associated with the device
    softwareVersion String
    Software version
    tfid String
    The Terraform ID.
    threatReleaseDate String
    Threat release date
    threatVersion String
    Threat version
    uptime String
    Uptime
    urlDbType String
    Url db type
    urlDbVer String
    Url db ver
    vmState String
    Vm state
    wfReleaseDate String
    Wf release date
    wfVer String
    Wf ver
    antiVirusVersion string
    Anti virus version
    appReleaseDate string
    App release date
    appVersion string
    App version
    avReleaseDate string
    Av release date
    availableLicensesses GetDeviceAvailableLicensess[]
    Available licensess
    connectedSince string
    Connected since
    description string
    The description of the device
    devCertDetail string
    Dev cert detail
    devCertExpiryDate string
    Dev cert expiry date
    displayName string
    The display name of the device
    family string
    The product family of the device
    folder string
    The folder containing the device
    gpClientVerion string
    Gp client verion
    gpDataVersion string
    Gp data version
    haPeerSerial string
    Ha peer serial
    haPeerState string
    Ha peer state
    haState string
    Ha state
    hostname string
    The hostname of the device
    id string
    The UUID of the device
    installedLicenses GetDeviceInstalledLicense[]
    Installed licenses
    iotReleaseDate string
    Iot release date
    iotVersion string
    Iot version
    ipAddress string
    The IPv4 address of the device
    ipV6Address string
    Ip v6 address
    isConnected boolean
    Is connected
    labels string[]
    Labels assigned to the device
    licenseMatch boolean
    License match
    logDbVersion string
    Log db version
    macAddress string
    The MAC address of the device
    model string
    The model of the device
    name string
    The name of the device
    snippets string[]
    Snippets associated with the device
    softwareVersion string
    Software version
    tfid string
    The Terraform ID.
    threatReleaseDate string
    Threat release date
    threatVersion string
    Threat version
    uptime string
    Uptime
    urlDbType string
    Url db type
    urlDbVer string
    Url db ver
    vmState string
    Vm state
    wfReleaseDate string
    Wf release date
    wfVer string
    Wf ver
    anti_virus_version str
    Anti virus version
    app_release_date str
    App release date
    app_version str
    App version
    av_release_date str
    Av release date
    available_licensesses Sequence[GetDeviceAvailableLicensess]
    Available licensess
    connected_since str
    Connected since
    description str
    The description of the device
    dev_cert_detail str
    Dev cert detail
    dev_cert_expiry_date str
    Dev cert expiry date
    display_name str
    The display name of the device
    family str
    The product family of the device
    folder str
    The folder containing the device
    gp_client_verion str
    Gp client verion
    gp_data_version str
    Gp data version
    ha_peer_serial str
    Ha peer serial
    ha_peer_state str
    Ha peer state
    ha_state str
    Ha state
    hostname str
    The hostname of the device
    id str
    The UUID of the device
    installed_licenses Sequence[GetDeviceInstalledLicense]
    Installed licenses
    iot_release_date str
    Iot release date
    iot_version str
    Iot version
    ip_address str
    The IPv4 address of the device
    ip_v6_address str
    Ip v6 address
    is_connected bool
    Is connected
    labels Sequence[str]
    Labels assigned to the device
    license_match bool
    License match
    log_db_version str
    Log db version
    mac_address str
    The MAC address of the device
    model str
    The model of the device
    name str
    The name of the device
    snippets Sequence[str]
    Snippets associated with the device
    software_version str
    Software version
    tfid str
    The Terraform ID.
    threat_release_date str
    Threat release date
    threat_version str
    Threat version
    uptime str
    Uptime
    url_db_type str
    Url db type
    url_db_ver str
    Url db ver
    vm_state str
    Vm state
    wf_release_date str
    Wf release date
    wf_ver str
    Wf ver
    antiVirusVersion String
    Anti virus version
    appReleaseDate String
    App release date
    appVersion String
    App version
    avReleaseDate String
    Av release date
    availableLicensesses List<Property Map>
    Available licensess
    connectedSince String
    Connected since
    description String
    The description of the device
    devCertDetail String
    Dev cert detail
    devCertExpiryDate String
    Dev cert expiry date
    displayName String
    The display name of the device
    family String
    The product family of the device
    folder String
    The folder containing the device
    gpClientVerion String
    Gp client verion
    gpDataVersion String
    Gp data version
    haPeerSerial String
    Ha peer serial
    haPeerState String
    Ha peer state
    haState String
    Ha state
    hostname String
    The hostname of the device
    id String
    The UUID of the device
    installedLicenses List<Property Map>
    Installed licenses
    iotReleaseDate String
    Iot release date
    iotVersion String
    Iot version
    ipAddress String
    The IPv4 address of the device
    ipV6Address String
    Ip v6 address
    isConnected Boolean
    Is connected
    labels List<String>
    Labels assigned to the device
    licenseMatch Boolean
    License match
    logDbVersion String
    Log db version
    macAddress String
    The MAC address of the device
    model String
    The model of the device
    name String
    The name of the device
    snippets List<String>
    Snippets associated with the device
    softwareVersion String
    Software version
    tfid String
    The Terraform ID.
    threatReleaseDate String
    Threat release date
    threatVersion String
    Threat version
    uptime String
    Uptime
    urlDbType String
    Url db type
    urlDbVer String
    Url db ver
    vmState String
    Vm state
    wfReleaseDate String
    Wf release date
    wfVer String
    Wf ver

    Supporting Types

    GetDeviceAvailableLicensess

    Authcode string
    Authcode
    Expires string
    Expires
    Feature string
    Feature
    Issued string
    Issued
    Authcode string
    Authcode
    Expires string
    Expires
    Feature string
    Feature
    Issued string
    Issued
    authcode String
    Authcode
    expires String
    Expires
    feature String
    Feature
    issued String
    Issued
    authcode string
    Authcode
    expires string
    Expires
    feature string
    Feature
    issued string
    Issued
    authcode str
    Authcode
    expires str
    Expires
    feature str
    Feature
    issued str
    Issued
    authcode String
    Authcode
    expires String
    Expires
    feature String
    Feature
    issued String
    Issued

    GetDeviceInstalledLicense

    Authcode string
    Authcode
    Expired string
    Expired
    Expires string
    Expires
    Feature string
    Feature
    Issued string
    Issued
    Authcode string
    Authcode
    Expired string
    Expired
    Expires string
    Expires
    Feature string
    Feature
    Issued string
    Issued
    authcode String
    Authcode
    expired String
    Expired
    expires String
    Expires
    feature String
    Feature
    issued String
    Issued
    authcode string
    Authcode
    expired string
    Expired
    expires string
    Expires
    feature string
    Feature
    issued string
    Issued
    authcode str
    Authcode
    expired str
    Expired
    expires str
    Expires
    feature str
    Feature
    issued str
    Issued
    authcode String
    Authcode
    expired String
    Expired
    expires String
    Expires
    feature String
    Feature
    issued String
    Issued

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Viewing docs for Strata Cloud Manager v1.0.6
    published on Saturday, Apr 25, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.