1. Packages
  2. Scaleway
  3. API Docs
  4. iot
  5. getDevice
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.iot.getDevice

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

Gets information about an IOT Device.

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>
Copy
def get_device(device_id: Optional[str] = None,
               hub_id: Optional[str] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDeviceResult
def get_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[GetDeviceResult]
Copy
func LookupDevice(ctx *Context, args *LookupDeviceArgs, opts ...InvokeOption) (*LookupDeviceResult, error)
func LookupDeviceOutput(ctx *Context, args *LookupDeviceOutputArgs, opts ...InvokeOption) LookupDeviceResultOutput
Copy

> Note: This function is named LookupDevice 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)
}
Copy
public static CompletableFuture<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
public static Output<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:iot/getDevice:getDevice
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DeviceId string
The device ID. Only one of the name and device_id should be specified.
HubId string
The hub ID.
Name string
The name of the Hub. Only one of the name and device_id should be specified.
Region string
region) The region in which the hub exists.
DeviceId string
The device ID. Only one of the name and device_id should be specified.
HubId string
The hub ID.
Name string
The name of the Hub. Only one of the name and device_id should be specified.
Region string
region) The region in which the hub exists.
deviceId String
The device ID. Only one of the name and device_id should be specified.
hubId String
The hub ID.
name String
The name of the Hub. Only one of the name and device_id should be specified.
region String
region) The region in which the hub exists.
deviceId string
The device ID. Only one of the name and device_id should be specified.
hubId string
The hub ID.
name string
The name of the Hub. Only one of the name and device_id should be specified.
region string
region) The region in which the hub exists.
device_id str
The device ID. Only one of the name and device_id should be specified.
hub_id str
The hub ID.
name str
The name of the Hub. Only one of the name and device_id should be specified.
region str
region) The region in which the hub exists.
deviceId String
The device ID. Only one of the name and device_id should be specified.
hubId String
The hub ID.
name String
The name of the Hub. Only one of the name and device_id should be specified.
region String
region) The region in which the hub exists.

getDevice Result

The following output properties are available:

AllowInsecure bool
AllowMultipleConnections bool
Certificates []GetDeviceCertificate
CreatedAt string
Description string
HubId string
Id string
The provider-assigned unique ID for this managed resource.
IsConnected bool
LastActivityAt string
MessageFilters []GetDeviceMessageFilter
Status string
UpdatedAt string
DeviceId string
Name string
Region string
allowInsecure Boolean
allowMultipleConnections Boolean
certificates List<GetDeviceCertificate>
createdAt String
description String
hubId String
id String
The provider-assigned unique ID for this managed resource.
isConnected Boolean
lastActivityAt String
messageFilters List<GetDeviceMessageFilter>
status String
updatedAt String
deviceId String
name String
region String
allowInsecure boolean
allowMultipleConnections boolean
certificates GetDeviceCertificate[]
createdAt string
description string
hubId string
id string
The provider-assigned unique ID for this managed resource.
isConnected boolean
lastActivityAt string
messageFilters GetDeviceMessageFilter[]
status string
updatedAt string
deviceId string
name string
region string
allowInsecure Boolean
allowMultipleConnections Boolean
certificates List<Property Map>
createdAt String
description String
hubId String
id String
The provider-assigned unique ID for this managed resource.
isConnected Boolean
lastActivityAt String
messageFilters List<Property Map>
status String
updatedAt String
deviceId String
name String
region String

Supporting Types

GetDeviceCertificate

Crt This property is required. string
X509 PEM encoded certificate of the device
Key This property is required. string
X509 PEM encoded key of the device
Crt This property is required. string
X509 PEM encoded certificate of the device
Key This property is required. string
X509 PEM encoded key of the device
crt This property is required. String
X509 PEM encoded certificate of the device
key This property is required. String
X509 PEM encoded key of the device
crt This property is required. string
X509 PEM encoded certificate of the device
key This property is required. string
X509 PEM encoded key of the device
crt This property is required. str
X509 PEM encoded certificate of the device
key This property is required. str
X509 PEM encoded key of the device
crt This property is required. String
X509 PEM encoded certificate of the device
key This property is required. String
X509 PEM encoded key of the device

GetDeviceMessageFilter

Publishes This property is required. List<Pulumiverse.Scaleway.Iot.Inputs.GetDeviceMessageFilterPublish>
Rule to restrict topics the device can publish to
Subscribes This property is required. List<Pulumiverse.Scaleway.Iot.Inputs.GetDeviceMessageFilterSubscribe>
Rule to restrict topics the device can subscribe to
Publishes This property is required. []GetDeviceMessageFilterPublish
Rule to restrict topics the device can publish to
Subscribes This property is required. []GetDeviceMessageFilterSubscribe
Rule to restrict topics the device can subscribe to
publishes This property is required. List<GetDeviceMessageFilterPublish>
Rule to restrict topics the device can publish to
subscribes This property is required. List<GetDeviceMessageFilterSubscribe>
Rule to restrict topics the device can subscribe to
publishes This property is required. GetDeviceMessageFilterPublish[]
Rule to restrict topics the device can publish to
subscribes This property is required. GetDeviceMessageFilterSubscribe[]
Rule to restrict topics the device can subscribe to
publishes This property is required. Sequence[GetDeviceMessageFilterPublish]
Rule to restrict topics the device can publish to
subscribes This property is required. Sequence[GetDeviceMessageFilterSubscribe]
Rule to restrict topics the device can subscribe to
publishes This property is required. List<Property Map>
Rule to restrict topics the device can publish to
subscribes This property is required. List<Property Map>
Rule to restrict topics the device can subscribe to

GetDeviceMessageFilterPublish

Policy This property is required. string
Publish message filter policy
Topics This property is required. List<string>
List of topics in the set
Policy This property is required. string
Publish message filter policy
Topics This property is required. []string
List of topics in the set
policy This property is required. String
Publish message filter policy
topics This property is required. List<String>
List of topics in the set
policy This property is required. string
Publish message filter policy
topics This property is required. string[]
List of topics in the set
policy This property is required. str
Publish message filter policy
topics This property is required. Sequence[str]
List of topics in the set
policy This property is required. String
Publish message filter policy
topics This property is required. List<String>
List of topics in the set

GetDeviceMessageFilterSubscribe

Policy This property is required. string
Subscribe message filter policy
Topics This property is required. List<string>
List of topics in the set
Policy This property is required. string
Subscribe message filter policy
Topics This property is required. []string
List of topics in the set
policy This property is required. String
Subscribe message filter policy
topics This property is required. List<String>
List of topics in the set
policy This property is required. string
Subscribe message filter policy
topics This property is required. string[]
List of topics in the set
policy This property is required. str
Subscribe message filter policy
topics This property is required. Sequence[str]
List of topics in the set
policy This property is required. String
Subscribe message filter policy
topics This property is required. List<String>
List of topics in the set

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse