1. Packages
  2. Yandex
  3. API Docs
  4. getIotCoreDevice
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getIotCoreDevice

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Get information about a Yandex IoT Core device. For more information about IoT Core, see Yandex.Cloud IoT Device.

    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const myDevice = pulumi.output(yandex.getIotCoreDevice({
        deviceId: "are1sampleregistry11",
    }));
    
    import pulumi
    import pulumi_yandex as yandex
    
    my_device = yandex.get_iot_core_device(device_id="are1sampleregistry11")
    
    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var myDevice = Output.Create(Yandex.GetIotCoreDevice.InvokeAsync(new Yandex.GetIotCoreDeviceArgs
            {
                DeviceId = "are1sampleregistry11",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		opt0 := "are1sampleregistry11"
    		_, err := yandex.LookupIotCoreDevice(ctx, &GetIotCoreDeviceArgs{
    			DeviceId: &opt0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    This data source is used to define Yandex.Cloud IoT Device that can be used by other resources.

    Using getIotCoreDevice

    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 getIotCoreDevice(args: GetIotCoreDeviceArgs, opts?: InvokeOptions): Promise<GetIotCoreDeviceResult>
    function getIotCoreDeviceOutput(args: GetIotCoreDeviceOutputArgs, opts?: InvokeOptions): Output<GetIotCoreDeviceResult>
    def get_iot_core_device(device_id: Optional[str] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetIotCoreDeviceResult
    def get_iot_core_device_output(device_id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetIotCoreDeviceResult]
    func LookupIotCoreDevice(ctx *Context, args *LookupIotCoreDeviceArgs, opts ...InvokeOption) (*LookupIotCoreDeviceResult, error)
    func LookupIotCoreDeviceOutput(ctx *Context, args *LookupIotCoreDeviceOutputArgs, opts ...InvokeOption) LookupIotCoreDeviceResultOutput

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

    public static class GetIotCoreDevice 
    {
        public static Task<GetIotCoreDeviceResult> InvokeAsync(GetIotCoreDeviceArgs args, InvokeOptions? opts = null)
        public static Output<GetIotCoreDeviceResult> Invoke(GetIotCoreDeviceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIotCoreDeviceResult> getIotCoreDevice(GetIotCoreDeviceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getIotCoreDevice:getIotCoreDevice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DeviceId string
    IoT Core Device id used to define device
    Name string
    IoT Core Device name used to define device
    DeviceId string
    IoT Core Device id used to define device
    Name string
    IoT Core Device name used to define device
    deviceId String
    IoT Core Device id used to define device
    name String
    IoT Core Device name used to define device
    deviceId string
    IoT Core Device id used to define device
    name string
    IoT Core Device name used to define device
    device_id str
    IoT Core Device id used to define device
    name str
    IoT Core Device name used to define device
    deviceId String
    IoT Core Device id used to define device
    name String
    IoT Core Device name used to define device

    getIotCoreDevice Result

    The following output properties are available:

    Aliases Dictionary<string, string>
    A set of key/value aliases pairs to assign to the IoT Core Device
    Certificates List<string>
    A set of certificate's fingerprints for the IoT Core Device
    CreatedAt string
    Creation timestamp of the IoT Core Device
    Description string
    Description of the IoT Core Device
    Id string
    The provider-assigned unique ID for this managed resource.
    Passwords List<string>
    A set of passwords's id for the IoT Core Device
    RegistryId string
    IoT Core Registry ID for the IoT Core Device
    DeviceId string
    Name string
    Aliases map[string]string
    A set of key/value aliases pairs to assign to the IoT Core Device
    Certificates []string
    A set of certificate's fingerprints for the IoT Core Device
    CreatedAt string
    Creation timestamp of the IoT Core Device
    Description string
    Description of the IoT Core Device
    Id string
    The provider-assigned unique ID for this managed resource.
    Passwords []string
    A set of passwords's id for the IoT Core Device
    RegistryId string
    IoT Core Registry ID for the IoT Core Device
    DeviceId string
    Name string
    aliases Map<String,String>
    A set of key/value aliases pairs to assign to the IoT Core Device
    certificates List<String>
    A set of certificate's fingerprints for the IoT Core Device
    createdAt String
    Creation timestamp of the IoT Core Device
    description String
    Description of the IoT Core Device
    id String
    The provider-assigned unique ID for this managed resource.
    passwords List<String>
    A set of passwords's id for the IoT Core Device
    registryId String
    IoT Core Registry ID for the IoT Core Device
    deviceId String
    name String
    aliases {[key: string]: string}
    A set of key/value aliases pairs to assign to the IoT Core Device
    certificates string[]
    A set of certificate's fingerprints for the IoT Core Device
    createdAt string
    Creation timestamp of the IoT Core Device
    description string
    Description of the IoT Core Device
    id string
    The provider-assigned unique ID for this managed resource.
    passwords string[]
    A set of passwords's id for the IoT Core Device
    registryId string
    IoT Core Registry ID for the IoT Core Device
    deviceId string
    name string
    aliases Mapping[str, str]
    A set of key/value aliases pairs to assign to the IoT Core Device
    certificates Sequence[str]
    A set of certificate's fingerprints for the IoT Core Device
    created_at str
    Creation timestamp of the IoT Core Device
    description str
    Description of the IoT Core Device
    id str
    The provider-assigned unique ID for this managed resource.
    passwords Sequence[str]
    A set of passwords's id for the IoT Core Device
    registry_id str
    IoT Core Registry ID for the IoT Core Device
    device_id str
    name str
    aliases Map<String>
    A set of key/value aliases pairs to assign to the IoT Core Device
    certificates List<String>
    A set of certificate's fingerprints for the IoT Core Device
    createdAt String
    Creation timestamp of the IoT Core Device
    description String
    Description of the IoT Core Device
    id String
    The provider-assigned unique ID for this managed resource.
    passwords List<String>
    A set of passwords's id for the IoT Core Device
    registryId String
    IoT Core Registry ID for the IoT Core Device
    deviceId String
    name String

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi