Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getIotCoreDevice
Explore with Pulumi AI
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:
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
- Created
At 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
- Registry
Id string - IoT Core Registry ID for the IoT Core Device
- Device
Id 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
- Created
At 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
- Registry
Id string - IoT Core Registry ID for the IoT Core Device
- Device
Id 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
- created
At 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
- registry
Id String - IoT Core Registry ID for the IoT Core Device
- device
Id 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
- created
At 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
- registry
Id string - IoT Core Registry ID for the IoT Core Device
- device
Id 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
- created
At 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
- registry
Id String - IoT Core Registry ID for the IoT Core Device
- device
Id 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.