1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudiot
  5. cloudiot/v1
  6. getDevice

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudiot/v1.getDevice

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Gets details about a 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,
               field_mask: Optional[str] = None,
               location: Optional[str] = None,
               project: Optional[str] = None,
               registry_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDeviceResult
def get_device_output(device_id: Optional[pulumi.Input[str]] = None,
               field_mask: Optional[pulumi.Input[str]] = None,
               location: Optional[pulumi.Input[str]] = None,
               project: Optional[pulumi.Input[str]] = None,
               registry_id: 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: google-native:cloudiot/v1:getDevice
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DeviceId This property is required. string
Location This property is required. string
RegistryId This property is required. string
FieldMask string
Project string
DeviceId This property is required. string
Location This property is required. string
RegistryId This property is required. string
FieldMask string
Project string
deviceId This property is required. String
location This property is required. String
registryId This property is required. String
fieldMask String
project String
deviceId This property is required. string
location This property is required. string
registryId This property is required. string
fieldMask string
project string
device_id This property is required. str
location This property is required. str
registry_id This property is required. str
field_mask str
project str
deviceId This property is required. String
location This property is required. String
registryId This property is required. String
fieldMask String
project String

getDevice Result

The following output properties are available:

Blocked bool
If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.
Config Pulumi.GoogleNative.CloudIoT.V1.Outputs.DeviceConfigResponse
The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1. To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.
Credentials List<Pulumi.GoogleNative.CloudIoT.V1.Outputs.DeviceCredentialResponse>
The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.
GatewayConfig Pulumi.GoogleNative.CloudIoT.V1.Outputs.GatewayConfigResponse
Gateway-related configuration and state.
LastConfigAckTime string
[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.
LastConfigSendTime string
[Output only] The last time a cloud-to-device config version was sent to the device.
LastErrorStatus Pulumi.GoogleNative.CloudIoT.V1.Outputs.StatusResponse
[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.
LastErrorTime string
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.
LastEventTime string
[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
LastHeartbeatTime string
[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
LastStateTime string
[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
LogLevel string
Beta Feature The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
Metadata Dictionary<string, string>
The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.
Name string
The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is populated as a response from the service, it always ends in the device numeric ID.
NumId string
[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.
State Pulumi.GoogleNative.CloudIoT.V1.Outputs.DeviceStateResponse
[Output only] The state most recently received from the device. If no state has been reported, this field is not present.
Blocked bool
If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.
Config DeviceConfigResponse
The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1. To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.
Credentials []DeviceCredentialResponse
The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.
GatewayConfig GatewayConfigResponse
Gateway-related configuration and state.
LastConfigAckTime string
[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.
LastConfigSendTime string
[Output only] The last time a cloud-to-device config version was sent to the device.
LastErrorStatus StatusResponse
[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.
LastErrorTime string
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.
LastEventTime string
[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
LastHeartbeatTime string
[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
LastStateTime string
[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
LogLevel string
Beta Feature The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
Metadata map[string]string
The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.
Name string
The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is populated as a response from the service, it always ends in the device numeric ID.
NumId string
[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.
State DeviceStateResponse
[Output only] The state most recently received from the device. If no state has been reported, this field is not present.
blocked Boolean
If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.
config DeviceConfigResponse
The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1. To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.
credentials List<DeviceCredentialResponse>
The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.
gatewayConfig GatewayConfigResponse
Gateway-related configuration and state.
lastConfigAckTime String
[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.
lastConfigSendTime String
[Output only] The last time a cloud-to-device config version was sent to the device.
lastErrorStatus StatusResponse
[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.
lastErrorTime String
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.
lastEventTime String
[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
lastHeartbeatTime String
[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
lastStateTime String
[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
logLevel String
Beta Feature The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
metadata Map<String,String>
The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.
name String
The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is populated as a response from the service, it always ends in the device numeric ID.
numId String
[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.
state DeviceStateResponse
[Output only] The state most recently received from the device. If no state has been reported, this field is not present.
blocked boolean
If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.
config DeviceConfigResponse
The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1. To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.
credentials DeviceCredentialResponse[]
The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.
gatewayConfig GatewayConfigResponse
Gateway-related configuration and state.
lastConfigAckTime string
[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.
lastConfigSendTime string
[Output only] The last time a cloud-to-device config version was sent to the device.
lastErrorStatus StatusResponse
[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.
lastErrorTime string
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.
lastEventTime string
[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
lastHeartbeatTime string
[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
lastStateTime string
[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
logLevel string
Beta Feature The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
metadata {[key: string]: string}
The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.
name string
The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is populated as a response from the service, it always ends in the device numeric ID.
numId string
[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.
state DeviceStateResponse
[Output only] The state most recently received from the device. If no state has been reported, this field is not present.
blocked bool
If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.
config DeviceConfigResponse
The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1. To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.
credentials Sequence[DeviceCredentialResponse]
The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.
gateway_config GatewayConfigResponse
Gateway-related configuration and state.
last_config_ack_time str
[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.
last_config_send_time str
[Output only] The last time a cloud-to-device config version was sent to the device.
last_error_status StatusResponse
[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.
last_error_time str
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.
last_event_time str
[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
last_heartbeat_time str
[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
last_state_time str
[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
log_level str
Beta Feature The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
metadata Mapping[str, str]
The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.
name str
The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is populated as a response from the service, it always ends in the device numeric ID.
num_id str
[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.
state DeviceStateResponse
[Output only] The state most recently received from the device. If no state has been reported, this field is not present.
blocked Boolean
If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.
config Property Map
The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1. To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.
credentials List<Property Map>
The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.
gatewayConfig Property Map
Gateway-related configuration and state.
lastConfigAckTime String
[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.
lastConfigSendTime String
[Output only] The last time a cloud-to-device config version was sent to the device.
lastErrorStatus Property Map
[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.
lastErrorTime String
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.
lastEventTime String
[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
lastHeartbeatTime String
[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
lastStateTime String
[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.
logLevel String
Beta Feature The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
metadata Map<String>
The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device. Keys must conform to the regular expression a-zA-Z+ and be less than 128 bytes in length. Values are free-form strings. Each value must be less than or equal to 32 KB in size. The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.
name String
The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is populated as a response from the service, it always ends in the device numeric ID.
numId String
[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.
state Property Map
[Output only] The state most recently received from the device. If no state has been reported, this field is not present.

Supporting Types

DeviceConfigResponse

BinaryData This property is required. string
The device configuration data.
CloudUpdateTime This property is required. string
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
DeviceAckTime This property is required. string
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
Version This property is required. string
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.
BinaryData This property is required. string
The device configuration data.
CloudUpdateTime This property is required. string
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
DeviceAckTime This property is required. string
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
Version This property is required. string
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.
binaryData This property is required. String
The device configuration data.
cloudUpdateTime This property is required. String
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
deviceAckTime This property is required. String
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
version This property is required. String
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.
binaryData This property is required. string
The device configuration data.
cloudUpdateTime This property is required. string
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
deviceAckTime This property is required. string
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
version This property is required. string
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.
binary_data This property is required. str
The device configuration data.
cloud_update_time This property is required. str
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
device_ack_time This property is required. str
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
version This property is required. str
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.
binaryData This property is required. String
The device configuration data.
cloudUpdateTime This property is required. String
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
deviceAckTime This property is required. String
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
version This property is required. String
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the CreateDevice request if a config is specified; the response of CreateDevice will always have a value of 1.

DeviceCredentialResponse

ExpirationTime This property is required. string
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
PublicKey This property is required. Pulumi.GoogleNative.CloudIoT.V1.Inputs.PublicKeyCredentialResponse
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
ExpirationTime This property is required. string
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
PublicKey This property is required. PublicKeyCredentialResponse
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
expirationTime This property is required. String
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
publicKey This property is required. PublicKeyCredentialResponse
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
expirationTime This property is required. string
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
publicKey This property is required. PublicKeyCredentialResponse
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
expiration_time This property is required. str
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
public_key This property is required. PublicKeyCredentialResponse
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
expirationTime This property is required. String
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
publicKey This property is required. Property Map
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.

DeviceStateResponse

BinaryData This property is required. string
The device state data.
UpdateTime This property is required. string
[Output only] The time at which this state version was updated in Cloud IoT Core.
BinaryData This property is required. string
The device state data.
UpdateTime This property is required. string
[Output only] The time at which this state version was updated in Cloud IoT Core.
binaryData This property is required. String
The device state data.
updateTime This property is required. String
[Output only] The time at which this state version was updated in Cloud IoT Core.
binaryData This property is required. string
The device state data.
updateTime This property is required. string
[Output only] The time at which this state version was updated in Cloud IoT Core.
binary_data This property is required. str
The device state data.
update_time This property is required. str
[Output only] The time at which this state version was updated in Cloud IoT Core.
binaryData This property is required. String
The device state data.
updateTime This property is required. String
[Output only] The time at which this state version was updated in Cloud IoT Core.

GatewayConfigResponse

GatewayAuthMethod This property is required. string
Indicates how to authorize and/or authenticate devices to access the gateway.
GatewayType This property is required. string
Indicates whether the device is a gateway.
LastAccessedGatewayId This property is required. string
[Output only] The ID of the gateway the device accessed most recently.
LastAccessedGatewayTime This property is required. string
[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.
GatewayAuthMethod This property is required. string
Indicates how to authorize and/or authenticate devices to access the gateway.
GatewayType This property is required. string
Indicates whether the device is a gateway.
LastAccessedGatewayId This property is required. string
[Output only] The ID of the gateway the device accessed most recently.
LastAccessedGatewayTime This property is required. string
[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.
gatewayAuthMethod This property is required. String
Indicates how to authorize and/or authenticate devices to access the gateway.
gatewayType This property is required. String
Indicates whether the device is a gateway.
lastAccessedGatewayId This property is required. String
[Output only] The ID of the gateway the device accessed most recently.
lastAccessedGatewayTime This property is required. String
[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.
gatewayAuthMethod This property is required. string
Indicates how to authorize and/or authenticate devices to access the gateway.
gatewayType This property is required. string
Indicates whether the device is a gateway.
lastAccessedGatewayId This property is required. string
[Output only] The ID of the gateway the device accessed most recently.
lastAccessedGatewayTime This property is required. string
[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.
gateway_auth_method This property is required. str
Indicates how to authorize and/or authenticate devices to access the gateway.
gateway_type This property is required. str
Indicates whether the device is a gateway.
last_accessed_gateway_id This property is required. str
[Output only] The ID of the gateway the device accessed most recently.
last_accessed_gateway_time This property is required. str
[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.
gatewayAuthMethod This property is required. String
Indicates how to authorize and/or authenticate devices to access the gateway.
gatewayType This property is required. String
Indicates whether the device is a gateway.
lastAccessedGatewayId This property is required. String
[Output only] The ID of the gateway the device accessed most recently.
lastAccessedGatewayTime This property is required. String
[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

PublicKeyCredentialResponse

Format This property is required. string
The format of the key.
Key This property is required. string
The key data.
Format This property is required. string
The format of the key.
Key This property is required. string
The key data.
format This property is required. String
The format of the key.
key This property is required. String
The key data.
format This property is required. string
The format of the key.
key This property is required. string
The key data.
format This property is required. str
The format of the key.
key This property is required. str
The key data.
format This property is required. String
The format of the key.
key This property is required. String
The key data.

StatusResponse

Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. List<ImmutableDictionary<string, string>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Message This property is required. string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. []map[string]string
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Message This property is required. string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. Integer
The status code, which should be an enum value of google.rpc.Code.
details This property is required. List<Map<String,String>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. String
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. {[key: string]: string}[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
details This property is required. Sequence[Mapping[str, str]]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. str
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. Number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. List<Map<String>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. String
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi