Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getIotDevice
Explore with Pulumi AI
Gets information about an IOT Device.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myDevice = scaleway.getIotDevice({
deviceId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
my_device = scaleway.get_iot_device(device_id="11111111-1111-1111-1111-111111111111")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.LookupIotDevice(ctx, &scaleway.LookupIotDeviceArgs{
DeviceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var myDevice = Scaleway.GetIotDevice.Invoke(new()
{
DeviceId = "11111111-1111-1111-1111-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetIotDeviceArgs;
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 myDevice = ScalewayFunctions.getIotDevice(GetIotDeviceArgs.builder()
.deviceId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
myDevice:
fn::invoke:
Function: scaleway:getIotDevice
Arguments:
deviceId: 11111111-1111-1111-1111-111111111111
Using getIotDevice
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 getIotDevice(args: GetIotDeviceArgs, opts?: InvokeOptions): Promise<GetIotDeviceResult>
function getIotDeviceOutput(args: GetIotDeviceOutputArgs, opts?: InvokeOptions): Output<GetIotDeviceResult>
def get_iot_device(device_id: Optional[str] = None,
hub_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIotDeviceResult
def get_iot_device_output(device_id: Optional[pulumi.Input[str]] = None,
hub_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIotDeviceResult]
func LookupIotDevice(ctx *Context, args *LookupIotDeviceArgs, opts ...InvokeOption) (*LookupIotDeviceResult, error)
func LookupIotDeviceOutput(ctx *Context, args *LookupIotDeviceOutputArgs, opts ...InvokeOption) LookupIotDeviceResultOutput
> Note: This function is named LookupIotDevice
in the Go SDK.
public static class GetIotDevice
{
public static Task<GetIotDeviceResult> InvokeAsync(GetIotDeviceArgs args, InvokeOptions? opts = null)
public static Output<GetIotDeviceResult> Invoke(GetIotDeviceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIotDeviceResult> getIotDevice(GetIotDeviceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getIotDevice:getIotDevice
arguments:
# arguments dictionary
The following arguments are supported:
getIotDevice Result
The following output properties are available:
- Allow
Insecure bool - Allow
Multiple boolConnections - Certificates
List<Pulumiverse.
Scaleway. Outputs. Get Iot Device Certificate> - Created
At string - Description string
- Hub
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Connected bool - Last
Activity stringAt - Message
Filters List<Pulumiverse.Scaleway. Outputs. Get Iot Device Message Filter> - Status string
- Updated
At string - Device
Id string - Name string
- Region string
- Allow
Insecure bool - Allow
Multiple boolConnections - Certificates
[]Get
Iot Device Certificate - Created
At string - Description string
- Hub
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Connected bool - Last
Activity stringAt - Message
Filters []GetIot Device Message Filter - Status string
- Updated
At string - Device
Id string - Name string
- Region string
- allow
Insecure Boolean - allow
Multiple BooleanConnections - certificates
List<Get
Iot Device Certificate> - created
At String - description String
- hub
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Connected Boolean - last
Activity StringAt - message
Filters List<GetIot Device Message Filter> - status String
- updated
At String - device
Id String - name String
- region String
- allow
Insecure boolean - allow
Multiple booleanConnections - certificates
Get
Iot Device Certificate[] - created
At string - description string
- hub
Id string - id string
- The provider-assigned unique ID for this managed resource.
- is
Connected boolean - last
Activity stringAt - message
Filters GetIot Device Message Filter[] - status string
- updated
At string - device
Id string - name string
- region string
- allow_
insecure bool - allow_
multiple_ boolconnections - certificates
Sequence[Get
Iot Device Certificate] - created_
at str - description str
- hub_
id str - id str
- The provider-assigned unique ID for this managed resource.
- is_
connected bool - last_
activity_ strat - message_
filters Sequence[GetIot Device Message Filter] - status str
- updated_
at str - device_
id str - name str
- region str
- allow
Insecure Boolean - allow
Multiple BooleanConnections - certificates List<Property Map>
- created
At String - description String
- hub
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Connected Boolean - last
Activity StringAt - message
Filters List<Property Map> - status String
- updated
At String - device
Id String - name String
- region String
Supporting Types
GetIotDeviceCertificate
GetIotDeviceMessageFilter
- Publishes
List<Pulumiverse.
Scaleway. Inputs. Get Iot Device Message Filter Publish> - Rule to restrict topics the device can publish to
- Subscribes
List<Pulumiverse.
Scaleway. Inputs. Get Iot Device Message Filter Subscribe> - Rule to restrict topics the device can subscribe to
- Publishes
[]Get
Iot Device Message Filter Publish - Rule to restrict topics the device can publish to
- Subscribes
[]Get
Iot Device Message Filter Subscribe - Rule to restrict topics the device can subscribe to
- publishes
List<Get
Iot Device Message Filter Publish> - Rule to restrict topics the device can publish to
- subscribes
List<Get
Iot Device Message Filter Subscribe> - Rule to restrict topics the device can subscribe to
- publishes
Get
Iot Device Message Filter Publish[] - Rule to restrict topics the device can publish to
- subscribes
Get
Iot Device Message Filter Subscribe[] - Rule to restrict topics the device can subscribe to
- publishes
Sequence[Get
Iot Device Message Filter Publish] - Rule to restrict topics the device can publish to
- subscribes
Sequence[Get
Iot Device Message Filter Subscribe] - Rule to restrict topics the device can subscribe to
- publishes List<Property Map>
- Rule to restrict topics the device can publish to
- subscribes List<Property Map>
- Rule to restrict topics the device can subscribe to
GetIotDeviceMessageFilterPublish
GetIotDeviceMessageFilterSubscribe
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.