Registry
A Google Cloud IoT Core device registry.
To get more information about DeviceRegistry, see:
- API documentation
- How-to Guides
Create a Registry Resource
new Registry(name: string, args?: RegistryArgs, opts?: CustomResourceOptions);def Registry(resource_name, opts=None, credentials=None, event_notification_configs=None, http_config=None, log_level=None, mqtt_config=None, name=None, project=None, region=None, state_notification_config=None, __props__=None);func NewRegistry(ctx *Context, name string, args *RegistryArgs, opts ...ResourceOption) (*Registry, error)public Registry(string name, RegistryArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Registry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Registry resource accepts the following input properties:
- Credentials
List<Registry
Credential Args> List of public key certificates to authenticate devices. The structure is documented below.
- Event
Notification List<RegistryConfigs Event Notification Config Item Args> List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- Http
Config RegistryHttp Config Args Activate or deactivate HTTP. The structure is documented below.
- Log
Level string 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.
- Mqtt
Config RegistryMqtt Config Args Activate or deactivate MQTT. The structure is documented below.
- Name string
A unique name for the resource, required by device registry.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region in which the created registry should reside. If it is not provided, the provider region is used.
- State
Notification RegistryConfig State Notification Config Args A PubSub topic to publish device state updates. The structure is documented below.
- Credentials
[]Registry
Credential List of public key certificates to authenticate devices. The structure is documented below.
- Event
Notification []RegistryConfigs Event Notification Config Item List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- Http
Config RegistryHttp Config Activate or deactivate HTTP. The structure is documented below.
- Log
Level string 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.
- Mqtt
Config RegistryMqtt Config Activate or deactivate MQTT. The structure is documented below.
- Name string
A unique name for the resource, required by device registry.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region in which the created registry should reside. If it is not provided, the provider region is used.
- State
Notification RegistryConfig State Notification Config A PubSub topic to publish device state updates. The structure is documented below.
- credentials
Registry
Credential[] List of public key certificates to authenticate devices. The structure is documented below.
- event
Notification RegistryConfigs Event Notification Config Item[] List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- http
Config RegistryHttp Config Activate or deactivate HTTP. The structure is documented below.
- log
Level string 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.
- mqtt
Config RegistryMqtt Config Activate or deactivate MQTT. The structure is documented below.
- name string
A unique name for the resource, required by device registry.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The region in which the created registry should reside. If it is not provided, the provider region is used.
- state
Notification RegistryConfig State Notification Config A PubSub topic to publish device state updates. The structure is documented below.
- credentials
List[Registry
Credential] List of public key certificates to authenticate devices. The structure is documented below.
- event_
notification_ List[Registryconfigs Event Notification Config Item] List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- http_
config Dict[RegistryHttp Config] Activate or deactivate HTTP. The structure is documented below.
- log_
level str 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.
- mqtt_
config Dict[RegistryMqtt Config] Activate or deactivate MQTT. The structure is documented below.
- name str
A unique name for the resource, required by device registry.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The region in which the created registry should reside. If it is not provided, the provider region is used.
- state_
notification_ Dict[Registryconfig State Notification Config] A PubSub topic to publish device state updates. The structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:
Look up an Existing Registry Resource
Get an existing Registry 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?: RegistryState, opts?: CustomResourceOptions): Registrystatic get(resource_name, id, opts=None, credentials=None, event_notification_configs=None, http_config=None, log_level=None, mqtt_config=None, name=None, project=None, region=None, state_notification_config=None, __props__=None);func GetRegistry(ctx *Context, name string, id IDInput, state *RegistryState, opts ...ResourceOption) (*Registry, error)public static Registry Get(string name, Input<string> id, RegistryState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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:
- Credentials
List<Registry
Credential Args> List of public key certificates to authenticate devices. The structure is documented below.
- Event
Notification List<RegistryConfigs Event Notification Config Item Args> List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- Http
Config RegistryHttp Config Args Activate or deactivate HTTP. The structure is documented below.
- Log
Level string 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.
- Mqtt
Config RegistryMqtt Config Args Activate or deactivate MQTT. The structure is documented below.
- Name string
A unique name for the resource, required by device registry.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region in which the created registry should reside. If it is not provided, the provider region is used.
- State
Notification RegistryConfig State Notification Config Args A PubSub topic to publish device state updates. The structure is documented below.
- Credentials
[]Registry
Credential List of public key certificates to authenticate devices. The structure is documented below.
- Event
Notification []RegistryConfigs Event Notification Config Item List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- Http
Config RegistryHttp Config Activate or deactivate HTTP. The structure is documented below.
- Log
Level string 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.
- Mqtt
Config RegistryMqtt Config Activate or deactivate MQTT. The structure is documented below.
- Name string
A unique name for the resource, required by device registry.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region in which the created registry should reside. If it is not provided, the provider region is used.
- State
Notification RegistryConfig State Notification Config A PubSub topic to publish device state updates. The structure is documented below.
- credentials
Registry
Credential[] List of public key certificates to authenticate devices. The structure is documented below.
- event
Notification RegistryConfigs Event Notification Config Item[] List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- http
Config RegistryHttp Config Activate or deactivate HTTP. The structure is documented below.
- log
Level string 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.
- mqtt
Config RegistryMqtt Config Activate or deactivate MQTT. The structure is documented below.
- name string
A unique name for the resource, required by device registry.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The region in which the created registry should reside. If it is not provided, the provider region is used.
- state
Notification RegistryConfig State Notification Config A PubSub topic to publish device state updates. The structure is documented below.
- credentials
List[Registry
Credential] List of public key certificates to authenticate devices. The structure is documented below.
- event_
notification_ List[Registryconfigs Event Notification Config Item] List of configurations for event notifications, such as PubSub topics to publish device events to. Structure is documented below.
- http_
config Dict[RegistryHttp Config] Activate or deactivate HTTP. The structure is documented below.
- log_
level str 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.
- mqtt_
config Dict[RegistryMqtt Config] Activate or deactivate MQTT. The structure is documented below.
- name str
A unique name for the resource, required by device registry.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The region in which the created registry should reside. If it is not provided, the provider region is used.
- state_
notification_ Dict[Registryconfig State Notification Config] A PubSub topic to publish device state updates. The structure is documented below.
Supporting Types
RegistryCredential
- Public
Key RegistryCertificate Credential Public Key Certificate Args A public key certificate format and data.
- Public
Key RegistryCertificate Credential Public Key Certificate A public key certificate format and data.
- public
Key RegistryCertificate Credential Public Key Certificate A public key certificate format and data.
- public
Key Dict[RegistryCertificate Credential Public Key Certificate] A public key certificate format and data.
RegistryCredentialPublicKeyCertificate
- Certificate string
The certificate data.
- Format string
The field allows only
X509_CERTIFICATE_PEM.
- Certificate string
The certificate data.
- Format string
The field allows only
X509_CERTIFICATE_PEM.
- certificate string
The certificate data.
- format string
The field allows only
X509_CERTIFICATE_PEM.
- certificate str
The certificate data.
- format str
The field allows only
X509_CERTIFICATE_PEM.
RegistryEventNotificationConfigItem
- Pubsub
Topic stringName PubSub topic name to publish device events.
- Subfolder
Matches string If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading ‘/’ character. If empty, all strings are matched. Empty value can only be used for the last
event_notification_configsitem.
- Pubsub
Topic stringName PubSub topic name to publish device events.
- Subfolder
Matches string If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading ‘/’ character. If empty, all strings are matched. Empty value can only be used for the last
event_notification_configsitem.
- pubsub
Topic stringName PubSub topic name to publish device events.
- subfolder
Matches string If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading ‘/’ character. If empty, all strings are matched. Empty value can only be used for the last
event_notification_configsitem.
- pubsub_
topic_ strname PubSub topic name to publish device events.
- subfolder
Matches str If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading ‘/’ character. If empty, all strings are matched. Empty value can only be used for the last
event_notification_configsitem.
RegistryHttpConfig
- Http
Enabled stringState The field allows
HTTP_ENABLEDorHTTP_DISABLED.
- Http
Enabled stringState The field allows
HTTP_ENABLEDorHTTP_DISABLED.
- http
Enabled stringState The field allows
HTTP_ENABLEDorHTTP_DISABLED.
- http_
enabled_ strstate The field allows
HTTP_ENABLEDorHTTP_DISABLED.
RegistryMqttConfig
- Mqtt
Enabled stringState The field allows
MQTT_ENABLEDorMQTT_DISABLED.
- Mqtt
Enabled stringState The field allows
MQTT_ENABLEDorMQTT_DISABLED.
- mqtt
Enabled stringState The field allows
MQTT_ENABLEDorMQTT_DISABLED.
- mqtt_
enabled_ strstate The field allows
MQTT_ENABLEDorMQTT_DISABLED.
RegistryStateNotificationConfig
- Pubsub
Topic stringName PubSub topic name to publish device events.
- Pubsub
Topic stringName PubSub topic name to publish device events.
- pubsub
Topic stringName PubSub topic name to publish device events.
- pubsub_
topic_ strname PubSub topic name to publish device events.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.