Class Registry
A Google Cloud IoT Core device registry.
To get more information about DeviceRegistry, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Cloudiot Device Registry Basic
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var test_registry = new Gcp.Iot.Registry("test-registry", new Gcp.Iot.RegistryArgs
{
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Iot
Assembly: Pulumi.Gcp.dll
Syntax
public class Registry : CustomResource
Constructors
View SourceRegistry(String, RegistryArgs, CustomResourceOptions)
Create a Registry resource with the given unique name, arguments, and options.
Declaration
public Registry(string name, RegistryArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RegistryArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCredentials
List of public key certificates to authenticate devices. The structure is documented below.
Declaration
public Output<ImmutableArray<RegistryCredential>> Credentials { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<RegistryCredential>> |
EventNotificationConfigs
List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
Declaration
public Output<ImmutableArray<RegistryEventNotificationConfigItem>> EventNotificationConfigs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<RegistryEventNotificationConfigItem>> |
HttpConfig
Activate or deactivate HTTP. The structure is documented below.
Declaration
public Output<RegistryHttpConfig> HttpConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<RegistryHttpConfig> |
LogLevel
The default logging verbosity for activity from devices in this registry. Specifies which events should be written to logs. For example, if the LogLevel is ERROR, only events that terminate in errors will be logged. LogLevel is inclusive; enabling INFO logging will also enable ERROR logging.
Declaration
public Output<string> LogLevel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MqttConfig
Activate or deactivate MQTT. The structure is documented below.
Declaration
public Output<RegistryMqttConfig> MqttConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<RegistryMqttConfig> |
Name
A unique name for the resource, required by device registry.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The region in which the created registry should reside. If it is not provided, the provider region is used.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StateNotificationConfig
A PubSub topic to publish device state updates. The structure is documented below.
Declaration
public Output<RegistryStateNotificationConfig> StateNotificationConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<RegistryStateNotificationConfig> |
Methods
View SourceGet(String, Input<String>, RegistryState, CustomResourceOptions)
Get an existing Registry resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Registry Get(string name, Input<string> id, RegistryState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RegistryState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Registry |