Viewing docs for Strata Cloud Manager v1.0.6
published on Saturday, Apr 25, 2026 by Pulumi
published on Saturday, Apr 25, 2026 by Pulumi
Viewing docs for Strata Cloud Manager v1.0.6
published on Saturday, Apr 25, 2026 by Pulumi
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 dictionaryThe following arguments are supported:
getDevice Result
The following output properties are available:
- Anti
Virus stringVersion - Anti virus version
- App
Release stringDate - App release date
- App
Version string - App version
- Av
Release stringDate - Av release date
- Available
Licensesses List<GetDevice Available Licensess> - Available licensess
- Connected
Since string - Connected since
- Description string
- The description of the device
- Dev
Cert stringDetail - Dev cert detail
- Dev
Cert stringExpiry Date - Dev cert expiry date
- Display
Name string - The display name of the device
- Family string
- The product family of the device
- Folder string
- The folder containing the device
- Gp
Client stringVerion - Gp client verion
- Gp
Data stringVersion - Gp data version
- Ha
Peer stringSerial - Ha peer serial
- Ha
Peer stringState - Ha peer state
- Ha
State string - Ha state
- Hostname string
- The hostname of the device
- Id string
- The UUID of the device
- Installed
Licenses List<GetDevice Installed License> - Installed licenses
- Iot
Release stringDate - Iot release date
- Iot
Version string - Iot version
- Ip
Address string - The IPv4 address of the device
- Ip
V6Address string - Ip v6 address
- Is
Connected bool - Is connected
- Labels List<string>
- Labels assigned to the device
- License
Match bool - License match
- Log
Db stringVersion - Log db version
- Mac
Address 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
- Software
Version string - Software version
- Tfid string
- The Terraform ID.
- Threat
Release stringDate - Threat release date
- Threat
Version string - Threat version
- Uptime string
- Uptime
- Url
Db stringType - Url db type
- Url
Db stringVer - Url db ver
- Vm
State string - Vm state
- Wf
Release stringDate - Wf release date
- Wf
Ver string - Wf ver
- Anti
Virus stringVersion - Anti virus version
- App
Release stringDate - App release date
- App
Version string - App version
- Av
Release stringDate - Av release date
- Available
Licensesses []GetDevice Available Licensess - Available licensess
- Connected
Since string - Connected since
- Description string
- The description of the device
- Dev
Cert stringDetail - Dev cert detail
- Dev
Cert stringExpiry Date - Dev cert expiry date
- Display
Name string - The display name of the device
- Family string
- The product family of the device
- Folder string
- The folder containing the device
- Gp
Client stringVerion - Gp client verion
- Gp
Data stringVersion - Gp data version
- Ha
Peer stringSerial - Ha peer serial
- Ha
Peer stringState - Ha peer state
- Ha
State string - Ha state
- Hostname string
- The hostname of the device
- Id string
- The UUID of the device
- Installed
Licenses []GetDevice Installed License - Installed licenses
- Iot
Release stringDate - Iot release date
- Iot
Version string - Iot version
- Ip
Address string - The IPv4 address of the device
- Ip
V6Address string - Ip v6 address
- Is
Connected bool - Is connected
- Labels []string
- Labels assigned to the device
- License
Match bool - License match
- Log
Db stringVersion - Log db version
- Mac
Address 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
- Software
Version string - Software version
- Tfid string
- The Terraform ID.
- Threat
Release stringDate - Threat release date
- Threat
Version string - Threat version
- Uptime string
- Uptime
- Url
Db stringType - Url db type
- Url
Db stringVer - Url db ver
- Vm
State string - Vm state
- Wf
Release stringDate - Wf release date
- Wf
Ver string - Wf ver
- anti
Virus StringVersion - Anti virus version
- app
Release StringDate - App release date
- app
Version String - App version
- av
Release StringDate - Av release date
- available
Licensesses List<GetDevice Available Licensess> - Available licensess
- connected
Since String - Connected since
- description String
- The description of the device
- dev
Cert StringDetail - Dev cert detail
- dev
Cert StringExpiry Date - Dev cert expiry date
- display
Name String - The display name of the device
- family String
- The product family of the device
- folder String
- The folder containing the device
- gp
Client StringVerion - Gp client verion
- gp
Data StringVersion - Gp data version
- ha
Peer StringSerial - Ha peer serial
- ha
Peer StringState - Ha peer state
- ha
State String - Ha state
- hostname String
- The hostname of the device
- id String
- The UUID of the device
- installed
Licenses List<GetDevice Installed License> - Installed licenses
- iot
Release StringDate - Iot release date
- iot
Version String - Iot version
- ip
Address String - The IPv4 address of the device
- ip
V6Address String - Ip v6 address
- is
Connected Boolean - Is connected
- labels List<String>
- Labels assigned to the device
- license
Match Boolean - License match
- log
Db StringVersion - Log db version
- mac
Address 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
- software
Version String - Software version
- tfid String
- The Terraform ID.
- threat
Release StringDate - Threat release date
- threat
Version String - Threat version
- uptime String
- Uptime
- url
Db StringType - Url db type
- url
Db StringVer - Url db ver
- vm
State String - Vm state
- wf
Release StringDate - Wf release date
- wf
Ver String - Wf ver
- anti
Virus stringVersion - Anti virus version
- app
Release stringDate - App release date
- app
Version string - App version
- av
Release stringDate - Av release date
- available
Licensesses GetDevice Available Licensess[] - Available licensess
- connected
Since string - Connected since
- description string
- The description of the device
- dev
Cert stringDetail - Dev cert detail
- dev
Cert stringExpiry Date - Dev cert expiry date
- display
Name string - The display name of the device
- family string
- The product family of the device
- folder string
- The folder containing the device
- gp
Client stringVerion - Gp client verion
- gp
Data stringVersion - Gp data version
- ha
Peer stringSerial - Ha peer serial
- ha
Peer stringState - Ha peer state
- ha
State string - Ha state
- hostname string
- The hostname of the device
- id string
- The UUID of the device
- installed
Licenses GetDevice Installed License[] - Installed licenses
- iot
Release stringDate - Iot release date
- iot
Version string - Iot version
- ip
Address string - The IPv4 address of the device
- ip
V6Address string - Ip v6 address
- is
Connected boolean - Is connected
- labels string[]
- Labels assigned to the device
- license
Match boolean - License match
- log
Db stringVersion - Log db version
- mac
Address 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
- software
Version string - Software version
- tfid string
- The Terraform ID.
- threat
Release stringDate - Threat release date
- threat
Version string - Threat version
- uptime string
- Uptime
- url
Db stringType - Url db type
- url
Db stringVer - Url db ver
- vm
State string - Vm state
- wf
Release stringDate - Wf release date
- wf
Ver string - Wf ver
- anti_
virus_ strversion - Anti virus version
- app_
release_ strdate - App release date
- app_
version str - App version
- av_
release_ strdate - Av release date
- available_
licensesses Sequence[GetDevice Available Licensess] - Available licensess
- connected_
since str - Connected since
- description str
- The description of the device
- dev_
cert_ strdetail - Dev cert detail
- dev_
cert_ strexpiry_ date - 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_ strverion - Gp client verion
- gp_
data_ strversion - Gp data version
- ha_
peer_ strserial - Ha peer serial
- ha_
peer_ strstate - 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[GetDevice Installed License] - Installed licenses
- iot_
release_ strdate - Iot release date
- iot_
version str - Iot version
- ip_
address str - The IPv4 address of the device
- ip_
v6_ straddress - Ip v6 address
- is_
connected bool - Is connected
- labels Sequence[str]
- Labels assigned to the device
- license_
match bool - License match
- log_
db_ strversion - 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_ strdate - Threat release date
- threat_
version str - Threat version
- uptime str
- Uptime
- url_
db_ strtype - Url db type
- url_
db_ strver - Url db ver
- vm_
state str - Vm state
- wf_
release_ strdate - Wf release date
- wf_
ver str - Wf ver
- anti
Virus StringVersion - Anti virus version
- app
Release StringDate - App release date
- app
Version String - App version
- av
Release StringDate - Av release date
- available
Licensesses List<Property Map> - Available licensess
- connected
Since String - Connected since
- description String
- The description of the device
- dev
Cert StringDetail - Dev cert detail
- dev
Cert StringExpiry Date - Dev cert expiry date
- display
Name String - The display name of the device
- family String
- The product family of the device
- folder String
- The folder containing the device
- gp
Client StringVerion - Gp client verion
- gp
Data StringVersion - Gp data version
- ha
Peer StringSerial - Ha peer serial
- ha
Peer StringState - Ha peer state
- ha
State String - Ha state
- hostname String
- The hostname of the device
- id String
- The UUID of the device
- installed
Licenses List<Property Map> - Installed licenses
- iot
Release StringDate - Iot release date
- iot
Version String - Iot version
- ip
Address String - The IPv4 address of the device
- ip
V6Address String - Ip v6 address
- is
Connected Boolean - Is connected
- labels List<String>
- Labels assigned to the device
- license
Match Boolean - License match
- log
Db StringVersion - Log db version
- mac
Address 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
- software
Version String - Software version
- tfid String
- The Terraform ID.
- threat
Release StringDate - Threat release date
- threat
Version String - Threat version
- uptime String
- Uptime
- url
Db StringType - Url db type
- url
Db StringVer - Url db ver
- vm
State String - Vm state
- wf
Release StringDate - Wf release date
- wf
Ver String - Wf ver
Supporting Types
GetDeviceAvailableLicensess
GetDeviceInstalledLicense
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
Viewing docs for Strata Cloud Manager v1.0.6
published on Saturday, Apr 25, 2026 by Pulumi
published on Saturday, Apr 25, 2026 by Pulumi
