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

scaleway.IotNetwork

Explore with Pulumi AI

Deprecated: scaleway.index/iotnetwork.IotNetwork has been deprecated in favor of scaleway.iot/network.Network

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const mainHub = new scaleway.iot.Hub("main", {
    name: "main",
    productPlan: "plan_shared",
});
const main = new scaleway.iot.Network("main", {
    name: "main",
    hubId: mainHub.id,
    type: "sigfox",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main_hub = scaleway.iot.Hub("main",
    name="main",
    product_plan="plan_shared")
main = scaleway.iot.Network("main",
    name="main",
    hub_id=main_hub.id,
    type="sigfox")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainHub, err := iot.NewHub(ctx, "main", &iot.HubArgs{
			Name:        pulumi.String("main"),
			ProductPlan: pulumi.String("plan_shared"),
		})
		if err != nil {
			return err
		}
		_, err = iot.NewNetwork(ctx, "main", &iot.NetworkArgs{
			Name:  pulumi.String("main"),
			HubId: mainHub.ID(),
			Type:  pulumi.String("sigfox"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var mainHub = new Scaleway.Iot.Hub("main", new()
    {
        Name = "main",
        ProductPlan = "plan_shared",
    });

    var main = new Scaleway.Iot.Network("main", new()
    {
        Name = "main",
        HubId = mainHub.Id,
        Type = "sigfox",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.iot.Hub;
import com.pulumi.scaleway.iot.HubArgs;
import com.pulumi.scaleway.iot.Network;
import com.pulumi.scaleway.iot.NetworkArgs;
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) {
        var mainHub = new Hub("mainHub", HubArgs.builder()
            .name("main")
            .productPlan("plan_shared")
            .build());

        var main = new Network("main", NetworkArgs.builder()
            .name("main")
            .hubId(mainHub.id())
            .type("sigfox")
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:iot:Network
    properties:
      name: main
      hubId: ${mainHub.id}
      type: sigfox
  mainHub:
    type: scaleway:iot:Hub
    name: main
    properties:
      name: main
      productPlan: plan_shared
Copy

Create IotNetwork Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IotNetwork(name: string, args: IotNetworkArgs, opts?: CustomResourceOptions);
@overload
def IotNetwork(resource_name: str,
               args: IotNetworkArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def IotNetwork(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               hub_id: Optional[str] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               topic_prefix: Optional[str] = None,
               type: Optional[str] = None)
func NewIotNetwork(ctx *Context, name string, args IotNetworkArgs, opts ...ResourceOption) (*IotNetwork, error)
public IotNetwork(string name, IotNetworkArgs args, CustomResourceOptions? opts = null)
public IotNetwork(String name, IotNetworkArgs args)
public IotNetwork(String name, IotNetworkArgs args, CustomResourceOptions options)
type: scaleway:IotNetwork
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IotNetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IotNetworkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IotNetworkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IotNetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IotNetworkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

IotNetwork Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IotNetwork resource accepts the following input properties:

HubId
This property is required.
Changes to this property will trigger replacement.
string
The hub ID to which the Network will be attached to.
Type
This property is required.
Changes to this property will trigger replacement.
string
The network type to create (e.g. sigfox).
Name Changes to this property will trigger replacement. string
The name of the IoT Network you want to create (e.g. my-net).
Region Changes to this property will trigger replacement. string
(Defaults to provider region) The region in which the Network is attached to.
TopicPrefix Changes to this property will trigger replacement. string
The prefix that will be prepended to all topics for this Network.
HubId
This property is required.
Changes to this property will trigger replacement.
string
The hub ID to which the Network will be attached to.
Type
This property is required.
Changes to this property will trigger replacement.
string
The network type to create (e.g. sigfox).
Name Changes to this property will trigger replacement. string
The name of the IoT Network you want to create (e.g. my-net).
Region Changes to this property will trigger replacement. string
(Defaults to provider region) The region in which the Network is attached to.
TopicPrefix Changes to this property will trigger replacement. string
The prefix that will be prepended to all topics for this Network.
hubId
This property is required.
Changes to this property will trigger replacement.
String
The hub ID to which the Network will be attached to.
type
This property is required.
Changes to this property will trigger replacement.
String
The network type to create (e.g. sigfox).
name Changes to this property will trigger replacement. String
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. String
(Defaults to provider region) The region in which the Network is attached to.
topicPrefix Changes to this property will trigger replacement. String
The prefix that will be prepended to all topics for this Network.
hubId
This property is required.
Changes to this property will trigger replacement.
string
The hub ID to which the Network will be attached to.
type
This property is required.
Changes to this property will trigger replacement.
string
The network type to create (e.g. sigfox).
name Changes to this property will trigger replacement. string
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. string
(Defaults to provider region) The region in which the Network is attached to.
topicPrefix Changes to this property will trigger replacement. string
The prefix that will be prepended to all topics for this Network.
hub_id
This property is required.
Changes to this property will trigger replacement.
str
The hub ID to which the Network will be attached to.
type
This property is required.
Changes to this property will trigger replacement.
str
The network type to create (e.g. sigfox).
name Changes to this property will trigger replacement. str
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. str
(Defaults to provider region) The region in which the Network is attached to.
topic_prefix Changes to this property will trigger replacement. str
The prefix that will be prepended to all topics for this Network.
hubId
This property is required.
Changes to this property will trigger replacement.
String
The hub ID to which the Network will be attached to.
type
This property is required.
Changes to this property will trigger replacement.
String
The network type to create (e.g. sigfox).
name Changes to this property will trigger replacement. String
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. String
(Defaults to provider region) The region in which the Network is attached to.
topicPrefix Changes to this property will trigger replacement. String
The prefix that will be prepended to all topics for this Network.

Outputs

All input properties are implicitly available as output properties. Additionally, the IotNetwork resource produces the following output properties:

CreatedAt string
The date and time the Network was created.
Endpoint string
The endpoint to use when interacting with the network.
Id string
The provider-assigned unique ID for this managed resource.
Secret string
The endpoint key to keep secret.
CreatedAt string
The date and time the Network was created.
Endpoint string
The endpoint to use when interacting with the network.
Id string
The provider-assigned unique ID for this managed resource.
Secret string
The endpoint key to keep secret.
createdAt String
The date and time the Network was created.
endpoint String
The endpoint to use when interacting with the network.
id String
The provider-assigned unique ID for this managed resource.
secret String
The endpoint key to keep secret.
createdAt string
The date and time the Network was created.
endpoint string
The endpoint to use when interacting with the network.
id string
The provider-assigned unique ID for this managed resource.
secret string
The endpoint key to keep secret.
created_at str
The date and time the Network was created.
endpoint str
The endpoint to use when interacting with the network.
id str
The provider-assigned unique ID for this managed resource.
secret str
The endpoint key to keep secret.
createdAt String
The date and time the Network was created.
endpoint String
The endpoint to use when interacting with the network.
id String
The provider-assigned unique ID for this managed resource.
secret String
The endpoint key to keep secret.

Look up Existing IotNetwork Resource

Get an existing IotNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IotNetworkState, opts?: CustomResourceOptions): IotNetwork
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        endpoint: Optional[str] = None,
        hub_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        secret: Optional[str] = None,
        topic_prefix: Optional[str] = None,
        type: Optional[str] = None) -> IotNetwork
func GetIotNetwork(ctx *Context, name string, id IDInput, state *IotNetworkState, opts ...ResourceOption) (*IotNetwork, error)
public static IotNetwork Get(string name, Input<string> id, IotNetworkState? state, CustomResourceOptions? opts = null)
public static IotNetwork get(String name, Output<String> id, IotNetworkState state, CustomResourceOptions options)
resources:  _:    type: scaleway:IotNetwork    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
The date and time the Network was created.
Endpoint string
The endpoint to use when interacting with the network.
HubId Changes to this property will trigger replacement. string
The hub ID to which the Network will be attached to.
Name Changes to this property will trigger replacement. string
The name of the IoT Network you want to create (e.g. my-net).
Region Changes to this property will trigger replacement. string
(Defaults to provider region) The region in which the Network is attached to.
Secret string
The endpoint key to keep secret.
TopicPrefix Changes to this property will trigger replacement. string
The prefix that will be prepended to all topics for this Network.
Type Changes to this property will trigger replacement. string
The network type to create (e.g. sigfox).
CreatedAt string
The date and time the Network was created.
Endpoint string
The endpoint to use when interacting with the network.
HubId Changes to this property will trigger replacement. string
The hub ID to which the Network will be attached to.
Name Changes to this property will trigger replacement. string
The name of the IoT Network you want to create (e.g. my-net).
Region Changes to this property will trigger replacement. string
(Defaults to provider region) The region in which the Network is attached to.
Secret string
The endpoint key to keep secret.
TopicPrefix Changes to this property will trigger replacement. string
The prefix that will be prepended to all topics for this Network.
Type Changes to this property will trigger replacement. string
The network type to create (e.g. sigfox).
createdAt String
The date and time the Network was created.
endpoint String
The endpoint to use when interacting with the network.
hubId Changes to this property will trigger replacement. String
The hub ID to which the Network will be attached to.
name Changes to this property will trigger replacement. String
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. String
(Defaults to provider region) The region in which the Network is attached to.
secret String
The endpoint key to keep secret.
topicPrefix Changes to this property will trigger replacement. String
The prefix that will be prepended to all topics for this Network.
type Changes to this property will trigger replacement. String
The network type to create (e.g. sigfox).
createdAt string
The date and time the Network was created.
endpoint string
The endpoint to use when interacting with the network.
hubId Changes to this property will trigger replacement. string
The hub ID to which the Network will be attached to.
name Changes to this property will trigger replacement. string
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. string
(Defaults to provider region) The region in which the Network is attached to.
secret string
The endpoint key to keep secret.
topicPrefix Changes to this property will trigger replacement. string
The prefix that will be prepended to all topics for this Network.
type Changes to this property will trigger replacement. string
The network type to create (e.g. sigfox).
created_at str
The date and time the Network was created.
endpoint str
The endpoint to use when interacting with the network.
hub_id Changes to this property will trigger replacement. str
The hub ID to which the Network will be attached to.
name Changes to this property will trigger replacement. str
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. str
(Defaults to provider region) The region in which the Network is attached to.
secret str
The endpoint key to keep secret.
topic_prefix Changes to this property will trigger replacement. str
The prefix that will be prepended to all topics for this Network.
type Changes to this property will trigger replacement. str
The network type to create (e.g. sigfox).
createdAt String
The date and time the Network was created.
endpoint String
The endpoint to use when interacting with the network.
hubId Changes to this property will trigger replacement. String
The hub ID to which the Network will be attached to.
name Changes to this property will trigger replacement. String
The name of the IoT Network you want to create (e.g. my-net).
region Changes to this property will trigger replacement. String
(Defaults to provider region) The region in which the Network is attached to.
secret String
The endpoint key to keep secret.
topicPrefix Changes to this property will trigger replacement. String
The prefix that will be prepended to all topics for this Network.
type Changes to this property will trigger replacement. String
The network type to create (e.g. sigfox).

Import

IoT Networks can be imported using the {region}/{id}, e.g.

bash

$ pulumi import scaleway:index/iotNetwork:IotNetwork net01 fr-par/11111111-1111-1111-1111-111111111111
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.