Strata Cloud Manager v0.3.1 published on Thursday, Mar 13, 2025 by Pulumi
scm.getDevice
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = scm.getDevice({
    serial: "12345",
});
import pulumi
import pulumi_scm as scm
example = scm.get_device(serial="12345")
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 {
		_, err := scm.GetDevice(ctx, &scm.GetDeviceArgs{
			Serial: "12345",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() => 
{
    var example = Scm.GetDevice.Invoke(new()
    {
        Serial = "12345",
    });
});
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) {
        final var example = ScmFunctions.getDevice(GetDeviceArgs.builder()
            .serial("12345")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: scm:getDevice
      arguments:
        serial: '12345'
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(serial: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDeviceResult
def get_device_output(serial: 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:
- Serial string
- The Serial param.
- Serial string
- The Serial param.
- serial String
- The Serial param.
- serial string
- The Serial param.
- serial str
- The Serial param.
- serial String
- The Serial param.
getDevice Result
The following output properties are available:
- AntiVirus stringVersion 
- The AntiVirusVersion param.
- AppRelease stringDate 
- The AppReleaseDate param.
- AppVersion string
- The AppVersion param.
- AvRelease stringDate 
- The AvReleaseDate param.
- AvailableLicensesses List<GetDevice Available Licensess> 
- The AvailableLicensess param.
- ConnectedSince string
- The ConnectedSince param.
- DevCert stringDetail 
- The DevCertDetail param.
- DevCert stringExpiry Date 
- The DevCertExpiryDate param.
- Family string
- The Family param.
- GpClient stringVerion 
- The GpClientVerion param.
- GpData stringVersion 
- The GpDataVersion param.
- HaPeer stringSerial 
- The HaPeerSerial param.
- HaPeer stringState 
- The HaPeerState param.
- HaState string
- The HaState param.
- Hostname string
- The Hostname param.
- Id string
- The Id param.
- InstalledLicenses List<GetDevice Installed License> 
- The InstalledLicenses param.
- IotRelease stringDate 
- The IotReleaseDate param.
- IotVersion string
- The IotVersion param.
- IpAddress string
- The IpAddress param.
- IpV6Address string
- The IpV6Address param.
- IsConnected bool
- The IsConnected param.
- LicenseMatch bool
- The LicenseMatch param.
- LogDb stringVersion 
- The LogDbVersion param.
- MacAddress string
- The MacAddress param.
- Model string
- The Model param.
- Serial string
- The Serial param.
- SoftwareVersion string
- The SoftwareVersion param.
- Tfid string
- ThreatRelease stringDate 
- The ThreatReleaseDate param.
- ThreatVersion string
- The ThreatVersion param.
- Uptime string
- The Uptime param.
- UrlDb stringType 
- The UrlDbType param.
- UrlDb stringVer 
- The UrlDbVer param.
- VmState string
- The VmState param.
- WfRelease stringDate 
- The WfReleaseDate param.
- WfVer string
- The WfVer param.
- AntiVirus stringVersion 
- The AntiVirusVersion param.
- AppRelease stringDate 
- The AppReleaseDate param.
- AppVersion string
- The AppVersion param.
- AvRelease stringDate 
- The AvReleaseDate param.
- AvailableLicensesses []GetDevice Available Licensess 
- The AvailableLicensess param.
- ConnectedSince string
- The ConnectedSince param.
- DevCert stringDetail 
- The DevCertDetail param.
- DevCert stringExpiry Date 
- The DevCertExpiryDate param.
- Family string
- The Family param.
- GpClient stringVerion 
- The GpClientVerion param.
- GpData stringVersion 
- The GpDataVersion param.
- HaPeer stringSerial 
- The HaPeerSerial param.
- HaPeer stringState 
- The HaPeerState param.
- HaState string
- The HaState param.
- Hostname string
- The Hostname param.
- Id string
- The Id param.
- InstalledLicenses []GetDevice Installed License 
- The InstalledLicenses param.
- IotRelease stringDate 
- The IotReleaseDate param.
- IotVersion string
- The IotVersion param.
- IpAddress string
- The IpAddress param.
- IpV6Address string
- The IpV6Address param.
- IsConnected bool
- The IsConnected param.
- LicenseMatch bool
- The LicenseMatch param.
- LogDb stringVersion 
- The LogDbVersion param.
- MacAddress string
- The MacAddress param.
- Model string
- The Model param.
- Serial string
- The Serial param.
- SoftwareVersion string
- The SoftwareVersion param.
- Tfid string
- ThreatRelease stringDate 
- The ThreatReleaseDate param.
- ThreatVersion string
- The ThreatVersion param.
- Uptime string
- The Uptime param.
- UrlDb stringType 
- The UrlDbType param.
- UrlDb stringVer 
- The UrlDbVer param.
- VmState string
- The VmState param.
- WfRelease stringDate 
- The WfReleaseDate param.
- WfVer string
- The WfVer param.
- antiVirus StringVersion 
- The AntiVirusVersion param.
- appRelease StringDate 
- The AppReleaseDate param.
- appVersion String
- The AppVersion param.
- avRelease StringDate 
- The AvReleaseDate param.
- availableLicensesses List<GetDevice Available Licensess> 
- The AvailableLicensess param.
- connectedSince String
- The ConnectedSince param.
- devCert StringDetail 
- The DevCertDetail param.
- devCert StringExpiry Date 
- The DevCertExpiryDate param.
- family String
- The Family param.
- gpClient StringVerion 
- The GpClientVerion param.
- gpData StringVersion 
- The GpDataVersion param.
- haPeer StringSerial 
- The HaPeerSerial param.
- haPeer StringState 
- The HaPeerState param.
- haState String
- The HaState param.
- hostname String
- The Hostname param.
- id String
- The Id param.
- installedLicenses List<GetDevice Installed License> 
- The InstalledLicenses param.
- iotRelease StringDate 
- The IotReleaseDate param.
- iotVersion String
- The IotVersion param.
- ipAddress String
- The IpAddress param.
- ipV6Address String
- The IpV6Address param.
- isConnected Boolean
- The IsConnected param.
- licenseMatch Boolean
- The LicenseMatch param.
- logDb StringVersion 
- The LogDbVersion param.
- macAddress String
- The MacAddress param.
- model String
- The Model param.
- serial String
- The Serial param.
- softwareVersion String
- The SoftwareVersion param.
- tfid String
- threatRelease StringDate 
- The ThreatReleaseDate param.
- threatVersion String
- The ThreatVersion param.
- uptime String
- The Uptime param.
- urlDb StringType 
- The UrlDbType param.
- urlDb StringVer 
- The UrlDbVer param.
- vmState String
- The VmState param.
- wfRelease StringDate 
- The WfReleaseDate param.
- wfVer String
- The WfVer param.
- antiVirus stringVersion 
- The AntiVirusVersion param.
- appRelease stringDate 
- The AppReleaseDate param.
- appVersion string
- The AppVersion param.
- avRelease stringDate 
- The AvReleaseDate param.
- availableLicensesses GetDevice Available Licensess[] 
- The AvailableLicensess param.
- connectedSince string
- The ConnectedSince param.
- devCert stringDetail 
- The DevCertDetail param.
- devCert stringExpiry Date 
- The DevCertExpiryDate param.
- family string
- The Family param.
- gpClient stringVerion 
- The GpClientVerion param.
- gpData stringVersion 
- The GpDataVersion param.
- haPeer stringSerial 
- The HaPeerSerial param.
- haPeer stringState 
- The HaPeerState param.
- haState string
- The HaState param.
- hostname string
- The Hostname param.
- id string
- The Id param.
- installedLicenses GetDevice Installed License[] 
- The InstalledLicenses param.
- iotRelease stringDate 
- The IotReleaseDate param.
- iotVersion string
- The IotVersion param.
- ipAddress string
- The IpAddress param.
- ipV6Address string
- The IpV6Address param.
- isConnected boolean
- The IsConnected param.
- licenseMatch boolean
- The LicenseMatch param.
- logDb stringVersion 
- The LogDbVersion param.
- macAddress string
- The MacAddress param.
- model string
- The Model param.
- serial string
- The Serial param.
- softwareVersion string
- The SoftwareVersion param.
- tfid string
- threatRelease stringDate 
- The ThreatReleaseDate param.
- threatVersion string
- The ThreatVersion param.
- uptime string
- The Uptime param.
- urlDb stringType 
- The UrlDbType param.
- urlDb stringVer 
- The UrlDbVer param.
- vmState string
- The VmState param.
- wfRelease stringDate 
- The WfReleaseDate param.
- wfVer string
- The WfVer param.
- anti_virus_ strversion 
- The AntiVirusVersion param.
- app_release_ strdate 
- The AppReleaseDate param.
- app_version str
- The AppVersion param.
- av_release_ strdate 
- The AvReleaseDate param.
- available_licensesses Sequence[GetDevice Available Licensess] 
- The AvailableLicensess param.
- connected_since str
- The ConnectedSince param.
- dev_cert_ strdetail 
- The DevCertDetail param.
- dev_cert_ strexpiry_ date 
- The DevCertExpiryDate param.
- family str
- The Family param.
- gp_client_ strverion 
- The GpClientVerion param.
- gp_data_ strversion 
- The GpDataVersion param.
- ha_peer_ strserial 
- The HaPeerSerial param.
- ha_peer_ strstate 
- The HaPeerState param.
- ha_state str
- The HaState param.
- hostname str
- The Hostname param.
- id str
- The Id param.
- installed_licenses Sequence[GetDevice Installed License] 
- The InstalledLicenses param.
- iot_release_ strdate 
- The IotReleaseDate param.
- iot_version str
- The IotVersion param.
- ip_address str
- The IpAddress param.
- ip_v6_ straddress 
- The IpV6Address param.
- is_connected bool
- The IsConnected param.
- license_match bool
- The LicenseMatch param.
- log_db_ strversion 
- The LogDbVersion param.
- mac_address str
- The MacAddress param.
- model str
- The Model param.
- serial str
- The Serial param.
- software_version str
- The SoftwareVersion param.
- tfid str
- threat_release_ strdate 
- The ThreatReleaseDate param.
- threat_version str
- The ThreatVersion param.
- uptime str
- The Uptime param.
- url_db_ strtype 
- The UrlDbType param.
- url_db_ strver 
- The UrlDbVer param.
- vm_state str
- The VmState param.
- wf_release_ strdate 
- The WfReleaseDate param.
- wf_ver str
- The WfVer param.
- antiVirus StringVersion 
- The AntiVirusVersion param.
- appRelease StringDate 
- The AppReleaseDate param.
- appVersion String
- The AppVersion param.
- avRelease StringDate 
- The AvReleaseDate param.
- availableLicensesses List<Property Map>
- The AvailableLicensess param.
- connectedSince String
- The ConnectedSince param.
- devCert StringDetail 
- The DevCertDetail param.
- devCert StringExpiry Date 
- The DevCertExpiryDate param.
- family String
- The Family param.
- gpClient StringVerion 
- The GpClientVerion param.
- gpData StringVersion 
- The GpDataVersion param.
- haPeer StringSerial 
- The HaPeerSerial param.
- haPeer StringState 
- The HaPeerState param.
- haState String
- The HaState param.
- hostname String
- The Hostname param.
- id String
- The Id param.
- installedLicenses List<Property Map>
- The InstalledLicenses param.
- iotRelease StringDate 
- The IotReleaseDate param.
- iotVersion String
- The IotVersion param.
- ipAddress String
- The IpAddress param.
- ipV6Address String
- The IpV6Address param.
- isConnected Boolean
- The IsConnected param.
- licenseMatch Boolean
- The LicenseMatch param.
- logDb StringVersion 
- The LogDbVersion param.
- macAddress String
- The MacAddress param.
- model String
- The Model param.
- serial String
- The Serial param.
- softwareVersion String
- The SoftwareVersion param.
- tfid String
- threatRelease StringDate 
- The ThreatReleaseDate param.
- threatVersion String
- The ThreatVersion param.
- uptime String
- The Uptime param.
- urlDb StringType 
- The UrlDbType param.
- urlDb StringVer 
- The UrlDbVer param.
- vmState String
- The VmState param.
- wfRelease StringDate 
- The WfReleaseDate param.
- wfVer String
- The WfVer param.
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.
