Scaleway

v1.4.0 published on Monday, Nov 28, 2022 by lbrlabs

getIotHub

Gets information about an IOT Hub.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    var myHub = Scaleway.GetIotHub.Invoke(new()
    {
        HubId = "11111111-1111-1111-1111-111111111111",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err = scaleway.LookupIotHub(ctx, &GetIotHubArgs{
			HubId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetIotHubArgs;
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 myHub = ScalewayFunctions.getIotHub(GetIotHubArgs.builder()
            .hubId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
import pulumi
import pulumi_scaleway as scaleway

my_hub = scaleway.get_iot_hub(hub_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get info by hub ID
const myHub = pulumi.output(scaleway.getIotHub({
    hubId: "11111111-1111-1111-1111-111111111111",
}));
variables:
  myHub:
    fn::invoke:
      Function: scaleway:getIotHub
      Arguments:
        hubId: 11111111-1111-1111-1111-111111111111

Using getIotHub

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 getIotHub(args: GetIotHubArgs, opts?: InvokeOptions): Promise<GetIotHubResult>
function getIotHubOutput(args: GetIotHubOutputArgs, opts?: InvokeOptions): Output<GetIotHubResult>
def get_iot_hub(hub_id: Optional[str] = None,
                name: Optional[str] = None,
                region: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetIotHubResult
def get_iot_hub_output(hub_id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                region: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetIotHubResult]
func LookupIotHub(ctx *Context, args *LookupIotHubArgs, opts ...InvokeOption) (*LookupIotHubResult, error)
func LookupIotHubOutput(ctx *Context, args *LookupIotHubOutputArgs, opts ...InvokeOption) LookupIotHubResultOutput

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

public static class GetIotHub 
{
    public static Task<GetIotHubResult> InvokeAsync(GetIotHubArgs args, InvokeOptions? opts = null)
    public static Output<GetIotHubResult> Invoke(GetIotHubInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIotHubResult> getIotHub(GetIotHubArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getIotHub:getIotHub
  arguments:
    # arguments dictionary

The following arguments are supported:

HubId string

The Hub ID. Only one of the name and hub_id should be specified.

Name string

The name of the Hub. Only one of the name and hub_id should be specified.

Region string

region) The region in which the hub exists.

HubId string

The Hub ID. Only one of the name and hub_id should be specified.

Name string

The name of the Hub. Only one of the name and hub_id should be specified.

Region string

region) The region in which the hub exists.

hubId String

The Hub ID. Only one of the name and hub_id should be specified.

name String

The name of the Hub. Only one of the name and hub_id should be specified.

region String

region) The region in which the hub exists.

hubId string

The Hub ID. Only one of the name and hub_id should be specified.

name string

The name of the Hub. Only one of the name and hub_id should be specified.

region string

region) The region in which the hub exists.

hub_id str

The Hub ID. Only one of the name and hub_id should be specified.

name str

The name of the Hub. Only one of the name and hub_id should be specified.

region str

region) The region in which the hub exists.

hubId String

The Hub ID. Only one of the name and hub_id should be specified.

name String

The name of the Hub. Only one of the name and hub_id should be specified.

region String

region) The region in which the hub exists.

getIotHub Result

The following output properties are available:

ConnectedDeviceCount int
CreatedAt string
DeviceAutoProvisioning bool
DeviceCount int
DisableEvents bool
Enabled bool
Endpoint string
EventsTopicPrefix string
HubCa string
HubCaChallenge string
Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string
ProductPlan string
ProjectId string
Status string
UpdatedAt string
HubId string
Name string
Region string
ConnectedDeviceCount int
CreatedAt string
DeviceAutoProvisioning bool
DeviceCount int
DisableEvents bool
Enabled bool
Endpoint string
EventsTopicPrefix string
HubCa string
HubCaChallenge string
Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string
ProductPlan string
ProjectId string
Status string
UpdatedAt string
HubId string
Name string
Region string
connectedDeviceCount Integer
createdAt String
deviceAutoProvisioning Boolean
deviceCount Integer
disableEvents Boolean
enabled Boolean
endpoint String
eventsTopicPrefix String
hubCa String
hubCaChallenge String
id String

The provider-assigned unique ID for this managed resource.

organizationId String
productPlan String
projectId String
status String
updatedAt String
hubId String
name String
region String
connectedDeviceCount number
createdAt string
deviceAutoProvisioning boolean
deviceCount number
disableEvents boolean
enabled boolean
endpoint string
eventsTopicPrefix string
hubCa string
hubCaChallenge string
id string

The provider-assigned unique ID for this managed resource.

organizationId string
productPlan string
projectId string
status string
updatedAt string
hubId string
name string
region string
connectedDeviceCount Number
createdAt String
deviceAutoProvisioning Boolean
deviceCount Number
disableEvents Boolean
enabled Boolean
endpoint String
eventsTopicPrefix String
hubCa String
hubCaChallenge String
id String

The provider-assigned unique ID for this managed resource.

organizationId String
productPlan String
projectId String
status String
updatedAt String
hubId String
name String
region String

Package Details

Repository
https://github.com/lbrlabs/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.