v5

package
v0.1.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForAddApplication

func GenReqDefForAddApplication() *def.HttpRequestDef

func GenReqDefForAddCertificate

func GenReqDefForAddCertificate() *def.HttpRequestDef

func GenReqDefForAddDevice

func GenReqDefForAddDevice() *def.HttpRequestDef

func GenReqDefForAddDeviceGroup

func GenReqDefForAddDeviceGroup() *def.HttpRequestDef

func GenReqDefForAddQueue

func GenReqDefForAddQueue() *def.HttpRequestDef

func GenReqDefForAddTunnel added in v0.1.50

func GenReqDefForAddTunnel() *def.HttpRequestDef

func GenReqDefForBatchShowQueue

func GenReqDefForBatchShowQueue() *def.HttpRequestDef

func GenReqDefForBroadcastMessage added in v0.1.37

func GenReqDefForBroadcastMessage() *def.HttpRequestDef

func GenReqDefForChangeRuleStatus

func GenReqDefForChangeRuleStatus() *def.HttpRequestDef

func GenReqDefForCheckCertificate

func GenReqDefForCheckCertificate() *def.HttpRequestDef

func GenReqDefForCloseDeviceTunnel added in v0.1.50

func GenReqDefForCloseDeviceTunnel() *def.HttpRequestDef

func GenReqDefForCreateAccessCode

func GenReqDefForCreateAccessCode() *def.HttpRequestDef

func GenReqDefForCreateAsyncCommand

func GenReqDefForCreateAsyncCommand() *def.HttpRequestDef

func GenReqDefForCreateBatchTask

func GenReqDefForCreateBatchTask() *def.HttpRequestDef

func GenReqDefForCreateCommand

func GenReqDefForCreateCommand() *def.HttpRequestDef

func GenReqDefForCreateMessage

func GenReqDefForCreateMessage() *def.HttpRequestDef

func GenReqDefForCreateOrDeleteDeviceInGroup

func GenReqDefForCreateOrDeleteDeviceInGroup() *def.HttpRequestDef

func GenReqDefForCreateOtaPackage added in v0.1.28

func GenReqDefForCreateOtaPackage() *def.HttpRequestDef

func GenReqDefForCreateProduct

func GenReqDefForCreateProduct() *def.HttpRequestDef

func GenReqDefForCreateRoutingRule

func GenReqDefForCreateRoutingRule() *def.HttpRequestDef

func GenReqDefForCreateRule

func GenReqDefForCreateRule() *def.HttpRequestDef

func GenReqDefForCreateRuleAction

func GenReqDefForCreateRuleAction() *def.HttpRequestDef

func GenReqDefForDeleteApplication

func GenReqDefForDeleteApplication() *def.HttpRequestDef

func GenReqDefForDeleteBatchTask added in v0.1.49

func GenReqDefForDeleteBatchTask() *def.HttpRequestDef

func GenReqDefForDeleteBatchTaskFile

func GenReqDefForDeleteBatchTaskFile() *def.HttpRequestDef

func GenReqDefForDeleteCertificate

func GenReqDefForDeleteCertificate() *def.HttpRequestDef

func GenReqDefForDeleteDevice

func GenReqDefForDeleteDevice() *def.HttpRequestDef

func GenReqDefForDeleteDeviceGroup

func GenReqDefForDeleteDeviceGroup() *def.HttpRequestDef

func GenReqDefForDeleteDeviceTunnel added in v0.1.50

func GenReqDefForDeleteDeviceTunnel() *def.HttpRequestDef

func GenReqDefForDeleteOtaPackage added in v0.1.28

func GenReqDefForDeleteOtaPackage() *def.HttpRequestDef

func GenReqDefForDeleteProduct

func GenReqDefForDeleteProduct() *def.HttpRequestDef

func GenReqDefForDeleteQueue

func GenReqDefForDeleteQueue() *def.HttpRequestDef

func GenReqDefForDeleteRoutingRule

func GenReqDefForDeleteRoutingRule() *def.HttpRequestDef

func GenReqDefForDeleteRule

func GenReqDefForDeleteRule() *def.HttpRequestDef

func GenReqDefForDeleteRuleAction

func GenReqDefForDeleteRuleAction() *def.HttpRequestDef

func GenReqDefForFreezeDevice

func GenReqDefForFreezeDevice() *def.HttpRequestDef

func GenReqDefForListBatchTaskFiles

func GenReqDefForListBatchTaskFiles() *def.HttpRequestDef

func GenReqDefForListBatchTasks

func GenReqDefForListBatchTasks() *def.HttpRequestDef

func GenReqDefForListCertificates

func GenReqDefForListCertificates() *def.HttpRequestDef

func GenReqDefForListDeviceGroups

func GenReqDefForListDeviceGroups() *def.HttpRequestDef

func GenReqDefForListDeviceMessages

func GenReqDefForListDeviceMessages() *def.HttpRequestDef

func GenReqDefForListDeviceTunnels added in v0.1.50

func GenReqDefForListDeviceTunnels() *def.HttpRequestDef

func GenReqDefForListDevices

func GenReqDefForListDevices() *def.HttpRequestDef

func GenReqDefForListOtaPackageInfo added in v0.1.28

func GenReqDefForListOtaPackageInfo() *def.HttpRequestDef

func GenReqDefForListProducts

func GenReqDefForListProducts() *def.HttpRequestDef

func GenReqDefForListProperties

func GenReqDefForListProperties() *def.HttpRequestDef

func GenReqDefForListResourcesByTags

func GenReqDefForListResourcesByTags() *def.HttpRequestDef

func GenReqDefForListRoutingRules

func GenReqDefForListRoutingRules() *def.HttpRequestDef

func GenReqDefForListRuleActions

func GenReqDefForListRuleActions() *def.HttpRequestDef

func GenReqDefForListRules

func GenReqDefForListRules() *def.HttpRequestDef

func GenReqDefForResetDeviceSecret

func GenReqDefForResetDeviceSecret() *def.HttpRequestDef

func GenReqDefForResetFingerprint added in v0.0.81

func GenReqDefForResetFingerprint() *def.HttpRequestDef

func GenReqDefForRetryBatchTask added in v0.1.43

func GenReqDefForRetryBatchTask() *def.HttpRequestDef

func GenReqDefForSearchDevices added in v0.1.18

func GenReqDefForSearchDevices() *def.HttpRequestDef

func GenReqDefForShowApplication

func GenReqDefForShowApplication() *def.HttpRequestDef

func GenReqDefForShowApplications

func GenReqDefForShowApplications() *def.HttpRequestDef

func GenReqDefForShowAsyncDeviceCommand

func GenReqDefForShowAsyncDeviceCommand() *def.HttpRequestDef

func GenReqDefForShowBatchTask

func GenReqDefForShowBatchTask() *def.HttpRequestDef

func GenReqDefForShowDevice

func GenReqDefForShowDevice() *def.HttpRequestDef

func GenReqDefForShowDeviceGroup

func GenReqDefForShowDeviceGroup() *def.HttpRequestDef

func GenReqDefForShowDeviceMessage

func GenReqDefForShowDeviceMessage() *def.HttpRequestDef

func GenReqDefForShowDeviceShadow

func GenReqDefForShowDeviceShadow() *def.HttpRequestDef

func GenReqDefForShowDeviceTunnel added in v0.1.50

func GenReqDefForShowDeviceTunnel() *def.HttpRequestDef

func GenReqDefForShowDevicesInGroup

func GenReqDefForShowDevicesInGroup() *def.HttpRequestDef

func GenReqDefForShowOtaPackage added in v0.1.28

func GenReqDefForShowOtaPackage() *def.HttpRequestDef

func GenReqDefForShowProduct

func GenReqDefForShowProduct() *def.HttpRequestDef

func GenReqDefForShowQueue

func GenReqDefForShowQueue() *def.HttpRequestDef

func GenReqDefForShowRoutingRule

func GenReqDefForShowRoutingRule() *def.HttpRequestDef

func GenReqDefForShowRule

func GenReqDefForShowRule() *def.HttpRequestDef

func GenReqDefForShowRuleAction

func GenReqDefForShowRuleAction() *def.HttpRequestDef

func GenReqDefForStopBatchTask added in v0.1.43

func GenReqDefForStopBatchTask() *def.HttpRequestDef

func GenReqDefForTagDevice

func GenReqDefForTagDevice() *def.HttpRequestDef

func GenReqDefForUnfreezeDevice

func GenReqDefForUnfreezeDevice() *def.HttpRequestDef

func GenReqDefForUntagDevice

func GenReqDefForUntagDevice() *def.HttpRequestDef

func GenReqDefForUpdateDevice

func GenReqDefForUpdateDevice() *def.HttpRequestDef

func GenReqDefForUpdateDeviceGroup

func GenReqDefForUpdateDeviceGroup() *def.HttpRequestDef

func GenReqDefForUpdateDeviceShadowDesiredData

func GenReqDefForUpdateDeviceShadowDesiredData() *def.HttpRequestDef

func GenReqDefForUpdateProduct

func GenReqDefForUpdateProduct() *def.HttpRequestDef

func GenReqDefForUpdateProperties

func GenReqDefForUpdateProperties() *def.HttpRequestDef

func GenReqDefForUpdateRoutingRule

func GenReqDefForUpdateRoutingRule() *def.HttpRequestDef

func GenReqDefForUpdateRule

func GenReqDefForUpdateRule() *def.HttpRequestDef

func GenReqDefForUpdateRuleAction

func GenReqDefForUpdateRuleAction() *def.HttpRequestDef

func GenReqDefForUploadBatchTaskFile added in v0.1.23

func GenReqDefForUploadBatchTaskFile() *def.HttpRequestDef

func IoTDAClientBuilder

func IoTDAClientBuilder() *http_client.HcHttpClientBuilder

Types

type AddApplicationInvoker added in v0.0.90

type AddApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*AddApplicationInvoker) Invoke added in v0.0.90

type AddCertificateInvoker added in v0.0.90

type AddCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*AddCertificateInvoker) Invoke added in v0.0.90

type AddDeviceGroupInvoker added in v0.0.90

type AddDeviceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*AddDeviceGroupInvoker) Invoke added in v0.0.90

type AddDeviceInvoker added in v0.0.90

type AddDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*AddDeviceInvoker) Invoke added in v0.0.90

type AddQueueInvoker added in v0.0.90

type AddQueueInvoker struct {
	*invoker.BaseInvoker
}

func (*AddQueueInvoker) Invoke added in v0.0.90

func (i *AddQueueInvoker) Invoke() (*model.AddQueueResponse, error)

type AddTunnelInvoker added in v0.1.50

type AddTunnelInvoker struct {
	*invoker.BaseInvoker
}

func (*AddTunnelInvoker) Invoke added in v0.1.50

type BatchShowQueueInvoker added in v0.0.90

type BatchShowQueueInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchShowQueueInvoker) Invoke added in v0.0.90

type BroadcastMessageInvoker added in v0.1.37

type BroadcastMessageInvoker struct {
	*invoker.BaseInvoker
}

func (*BroadcastMessageInvoker) Invoke added in v0.1.37

type ChangeRuleStatusInvoker added in v0.0.90

type ChangeRuleStatusInvoker struct {
	*invoker.BaseInvoker
}

func (*ChangeRuleStatusInvoker) Invoke added in v0.0.90

type CheckCertificateInvoker added in v0.0.90

type CheckCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*CheckCertificateInvoker) Invoke added in v0.0.90

type CloseDeviceTunnelInvoker added in v0.1.50

type CloseDeviceTunnelInvoker struct {
	*invoker.BaseInvoker
}

func (*CloseDeviceTunnelInvoker) Invoke added in v0.1.50

type CreateAccessCodeInvoker added in v0.0.90

type CreateAccessCodeInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAccessCodeInvoker) Invoke added in v0.0.90

type CreateAsyncCommandInvoker added in v0.0.90

type CreateAsyncCommandInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAsyncCommandInvoker) Invoke added in v0.0.90

type CreateBatchTaskInvoker added in v0.0.90

type CreateBatchTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateBatchTaskInvoker) Invoke added in v0.0.90

type CreateCommandInvoker added in v0.0.90

type CreateCommandInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCommandInvoker) Invoke added in v0.0.90

type CreateMessageInvoker added in v0.0.90

type CreateMessageInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateMessageInvoker) Invoke added in v0.0.90

type CreateOrDeleteDeviceInGroupInvoker added in v0.0.90

type CreateOrDeleteDeviceInGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateOrDeleteDeviceInGroupInvoker) Invoke added in v0.0.90

type CreateOtaPackageInvoker added in v0.1.28

type CreateOtaPackageInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateOtaPackageInvoker) Invoke added in v0.1.28

type CreateProductInvoker added in v0.0.90

type CreateProductInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateProductInvoker) Invoke added in v0.0.90

type CreateRoutingRuleInvoker added in v0.0.90

type CreateRoutingRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateRoutingRuleInvoker) Invoke added in v0.0.90

type CreateRuleActionInvoker added in v0.0.90

type CreateRuleActionInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateRuleActionInvoker) Invoke added in v0.0.90

type CreateRuleInvoker added in v0.0.90

type CreateRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateRuleInvoker) Invoke added in v0.0.90

type DeleteApplicationInvoker added in v0.0.90

type DeleteApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteApplicationInvoker) Invoke added in v0.0.90

type DeleteBatchTaskFileInvoker added in v0.0.90

type DeleteBatchTaskFileInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteBatchTaskFileInvoker) Invoke added in v0.0.90

type DeleteBatchTaskInvoker added in v0.1.49

type DeleteBatchTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteBatchTaskInvoker) Invoke added in v0.1.49

type DeleteCertificateInvoker added in v0.0.90

type DeleteCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteCertificateInvoker) Invoke added in v0.0.90

type DeleteDeviceGroupInvoker added in v0.0.90

type DeleteDeviceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteDeviceGroupInvoker) Invoke added in v0.0.90

type DeleteDeviceInvoker added in v0.0.90

type DeleteDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteDeviceInvoker) Invoke added in v0.0.90

type DeleteDeviceTunnelInvoker added in v0.1.50

type DeleteDeviceTunnelInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteDeviceTunnelInvoker) Invoke added in v0.1.50

type DeleteOtaPackageInvoker added in v0.1.28

type DeleteOtaPackageInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteOtaPackageInvoker) Invoke added in v0.1.28

type DeleteProductInvoker added in v0.0.90

type DeleteProductInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteProductInvoker) Invoke added in v0.0.90

type DeleteQueueInvoker added in v0.0.90

type DeleteQueueInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteQueueInvoker) Invoke added in v0.0.90

type DeleteRoutingRuleInvoker added in v0.0.90

type DeleteRoutingRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteRoutingRuleInvoker) Invoke added in v0.0.90

type DeleteRuleActionInvoker added in v0.0.90

type DeleteRuleActionInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteRuleActionInvoker) Invoke added in v0.0.90

type DeleteRuleInvoker added in v0.0.90

type DeleteRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteRuleInvoker) Invoke added in v0.0.90

type FreezeDeviceInvoker added in v0.0.90

type FreezeDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*FreezeDeviceInvoker) Invoke added in v0.0.90

type IoTDAClient

type IoTDAClient struct {
	HcClient *http_client.HcHttpClient
}

func NewIoTDAClient

func NewIoTDAClient(hcClient *http_client.HcHttpClient) *IoTDAClient

func (*IoTDAClient) AddApplication

func (c *IoTDAClient) AddApplication(request *model.AddApplicationRequest) (*model.AddApplicationResponse, error)

AddApplication 创建资源空间

资源空间对应的是物联网平台原有的应用,在物联网平台的含义与应用一致,只是变更了名称。应用服务器可以调用此接口创建资源空间。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) AddApplicationInvoker added in v0.0.90

func (c *IoTDAClient) AddApplicationInvoker(request *model.AddApplicationRequest) *AddApplicationInvoker

AddApplicationInvoker 创建资源空间

func (*IoTDAClient) AddCertificate

func (c *IoTDAClient) AddCertificate(request *model.AddCertificateRequest) (*model.AddCertificateResponse, error)

AddCertificate 上传设备CA证书

应用服务器可调用此接口在物联网平台上传设备CA证书

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) AddCertificateInvoker added in v0.0.90

func (c *IoTDAClient) AddCertificateInvoker(request *model.AddCertificateRequest) *AddCertificateInvoker

AddCertificateInvoker 上传设备CA证书

func (*IoTDAClient) AddDevice

func (c *IoTDAClient) AddDevice(request *model.AddDeviceRequest) (*model.AddDeviceResponse, error)

AddDevice 创建设备

应用服务器可调用此接口在物联网平台创建一个设备,仅在创建后设备才可以接入物联网平台。

- 该接口支持使用gateway_id参数指定在父设备下创建一个子设备,并且支持多级子设备,当前最大支持二级子设备。 - 该接口同时还支持对设备进行初始配置,接口会读取创建设备请求参数product_id对应的产品详情,如果产品的属性有定义默认值,则会将该属性默认值写入该设备的设备影子中。 - 用户还可以使用创建设备请求参数shadow字段为设备指定初始配置,指定后将会根据service_id和desired设置的属性值与产品中对应属性的默认值比对,如果不同,则将以shadow字段中设置的属性值为准写入到设备影子中。 - 该接口仅支持创建单个设备,如需批量注册设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) AddDeviceGroup

func (c *IoTDAClient) AddDeviceGroup(request *model.AddDeviceGroupRequest) (*model.AddDeviceGroupResponse, error)

AddDeviceGroup 添加设备组

应用服务器可调用此接口新建设备组,一个华为云账号下最多可有1,000个设备组,包括父设备组和子设备组。设备组的最大层级关系不超过5层,即群组形成的关系树最大深度不超过5。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) AddDeviceGroupInvoker added in v0.0.90

func (c *IoTDAClient) AddDeviceGroupInvoker(request *model.AddDeviceGroupRequest) *AddDeviceGroupInvoker

AddDeviceGroupInvoker 添加设备组

func (*IoTDAClient) AddDeviceInvoker added in v0.0.90

func (c *IoTDAClient) AddDeviceInvoker(request *model.AddDeviceRequest) *AddDeviceInvoker

AddDeviceInvoker 创建设备

func (*IoTDAClient) AddQueue

func (c *IoTDAClient) AddQueue(request *model.AddQueueRequest) (*model.AddQueueResponse, error)

AddQueue 创建AMQP队列

应用服务器可调用此接口在物联网平台创建一个AMQP队列。每个租户只能创建100个队列,若超过规格,则创建失败,若队列名称与已有的队列名称相同,则创建失败。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) AddQueueInvoker added in v0.0.90

func (c *IoTDAClient) AddQueueInvoker(request *model.AddQueueRequest) *AddQueueInvoker

AddQueueInvoker 创建AMQP队列

func (*IoTDAClient) AddTunnel added in v0.1.50

func (c *IoTDAClient) AddTunnel(request *model.AddTunnelRequest) (*model.AddTunnelResponse, error)

AddTunnel 创建设备隧道

创建设备隧道接口

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) AddTunnelInvoker added in v0.1.50

func (c *IoTDAClient) AddTunnelInvoker(request *model.AddTunnelRequest) *AddTunnelInvoker

AddTunnelInvoker 创建设备隧道

func (*IoTDAClient) BatchShowQueue

func (c *IoTDAClient) BatchShowQueue(request *model.BatchShowQueueRequest) (*model.BatchShowQueueResponse, error)

BatchShowQueue 查询AMQP列表

应用服务器可调用此接口查询物联网平台中的AMQP队列信息列表。可通过队列名称作模糊查询,支持分页。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) BatchShowQueueInvoker added in v0.0.90

func (c *IoTDAClient) BatchShowQueueInvoker(request *model.BatchShowQueueRequest) *BatchShowQueueInvoker

BatchShowQueueInvoker 查询AMQP列表

func (*IoTDAClient) BroadcastMessage added in v0.1.37

BroadcastMessage 下发广播消息

应用服务器可调用此接口向订阅了指定Topic的所有在线设备发布广播消息。应用将广播消息下发给平台后,平台会先返回应用响应结果,再将消息广播给设备。 注意: - 此接口只适用于使用MQTT协议接入的设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) BroadcastMessageInvoker added in v0.1.37

func (c *IoTDAClient) BroadcastMessageInvoker(request *model.BroadcastMessageRequest) *BroadcastMessageInvoker

BroadcastMessageInvoker 下发广播消息

func (*IoTDAClient) ChangeRuleStatus

ChangeRuleStatus 修改规则状态

应用服务器可调用此接口修改物联网平台中指定规则的状态,激活或者去激活规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ChangeRuleStatusInvoker added in v0.0.90

func (c *IoTDAClient) ChangeRuleStatusInvoker(request *model.ChangeRuleStatusRequest) *ChangeRuleStatusInvoker

ChangeRuleStatusInvoker 修改规则状态

func (*IoTDAClient) CheckCertificate

CheckCertificate 验证设备CA证书

应用服务器可调用此接口在物联网平台验证设备的CA证书,目的是为了验证用户持有设备CA证书的私钥

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CheckCertificateInvoker added in v0.0.90

func (c *IoTDAClient) CheckCertificateInvoker(request *model.CheckCertificateRequest) *CheckCertificateInvoker

CheckCertificateInvoker 验证设备CA证书

func (*IoTDAClient) CloseDeviceTunnel added in v0.1.50

CloseDeviceTunnel 关闭设备隧道

关闭设备隧道接口

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CloseDeviceTunnelInvoker added in v0.1.50

func (c *IoTDAClient) CloseDeviceTunnelInvoker(request *model.CloseDeviceTunnelRequest) *CloseDeviceTunnelInvoker

CloseDeviceTunnelInvoker 关闭设备隧道

func (*IoTDAClient) CreateAccessCode

CreateAccessCode 生成接入凭证

接入凭证是用于客户端使用AMQP等协议与平台建链的一个认证凭据。只保留一条记录,如果重复调用只会重置接入凭证,使得之前的失效。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateAccessCodeInvoker added in v0.0.90

func (c *IoTDAClient) CreateAccessCodeInvoker(request *model.CreateAccessCodeRequest) *CreateAccessCodeInvoker

CreateAccessCodeInvoker 生成接入凭证

func (*IoTDAClient) CreateAsyncCommand

CreateAsyncCommand 下发异步设备命令

设备的产品模型中定义了物联网平台可向设备下发的命令,应用服务器可调用此接口向指定设备下发异步命令,以实现对设备的控制。平台负责将命令发送给设备,并将设备执行命令结果异步通知应用服务器。 命令执行结果支持灵活的数据流转,应用服务器通过调用物联网平台的创建规则触发条件(Resource:device.command.status,Event:update)、创建规则动作并激活规则后,当命令状态变更时,物联网平台会根据规则将结果发送到规则指定的服务器,如用户自定义的HTTP服务器,AMQP服务器,以及华为云的其他储存服务器等, 详情参考[[设备命令状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01212.html)](tag:hws)[[设备命令状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01212.html)](tag:hws_hk)。 注意: - 此接口适用于NB设备异步命令下发,暂不支持其他协议类型设备命令下发。 - 此接口仅支持单个设备异步命令下发,如需多个设备异步命令下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateAsyncCommandInvoker added in v0.0.90

func (c *IoTDAClient) CreateAsyncCommandInvoker(request *model.CreateAsyncCommandRequest) *CreateAsyncCommandInvoker

CreateAsyncCommandInvoker 下发异步设备命令

func (*IoTDAClient) CreateBatchTask

CreateBatchTask 创建批量任务

应用服务器可调用此接口为创建批量处理任务,对多个设备进行批量操作。当前支持批量软固件升级、批量创建设备、批量删除设备、批量冻结设备、批量解冻设备、批量创建命令、批量创建消息任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateBatchTaskInvoker added in v0.0.90

func (c *IoTDAClient) CreateBatchTaskInvoker(request *model.CreateBatchTaskRequest) *CreateBatchTaskInvoker

CreateBatchTaskInvoker 创建批量任务

func (*IoTDAClient) CreateCommand

func (c *IoTDAClient) CreateCommand(request *model.CreateCommandRequest) (*model.CreateCommandResponse, error)

CreateCommand 下发设备命令

设备的产品模型中定义了物联网平台可向设备下发的命令,应用服务器可调用此接口向指定设备下发命令,以实现对设备的同步控制。平台负责将命令以同步方式发送给设备,并将设备执行命令结果同步返回, 如果设备没有响应,平台会返回给应用服务器超时,平台超时时间是20秒。如果命令下发需要超过20秒,建议采用[[消息下发](https://support.huaweicloud.com/api-iothub/iot_06_v5_0059.html)](tag:hws)[[消息下发](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0059.html)](tag:hws_hk)。 注意: - 此接口适用于MQTT设备同步命令下发,暂不支持NB-IoT设备命令下发。 - 此接口仅支持单个设备同步命令下发,如需多个设备同步命令下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateCommandInvoker added in v0.0.90

func (c *IoTDAClient) CreateCommandInvoker(request *model.CreateCommandRequest) *CreateCommandInvoker

CreateCommandInvoker 下发设备命令

func (*IoTDAClient) CreateMessage

func (c *IoTDAClient) CreateMessage(request *model.CreateMessageRequest) (*model.CreateMessageResponse, error)

CreateMessage 下发设备消息

物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 注意: - 此接口适用于MQTT设备消息下发,暂不支持其他协议接入的设备消息下发。 - 此接口仅支持单个设备消息下发,如需多个设备消息下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateMessageInvoker added in v0.0.90

func (c *IoTDAClient) CreateMessageInvoker(request *model.CreateMessageRequest) *CreateMessageInvoker

CreateMessageInvoker 下发设备消息

func (*IoTDAClient) CreateOrDeleteDeviceInGroup

CreateOrDeleteDeviceInGroup 管理设备组中的设备

应用服务器可调用此接口管理设备组中的设备。单个设备组内最多添加20,000个设备,一个设备最多可以被添加到10个设备组中。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateOrDeleteDeviceInGroupInvoker added in v0.0.90

func (c *IoTDAClient) CreateOrDeleteDeviceInGroupInvoker(request *model.CreateOrDeleteDeviceInGroupRequest) *CreateOrDeleteDeviceInGroupInvoker

CreateOrDeleteDeviceInGroupInvoker 管理设备组中的设备

func (*IoTDAClient) CreateOtaPackage added in v0.1.28

CreateOtaPackage 创建OTA升级包

用户可调用此接口创建升级包关联OBS对象 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateOtaPackageInvoker added in v0.1.28

func (c *IoTDAClient) CreateOtaPackageInvoker(request *model.CreateOtaPackageRequest) *CreateOtaPackageInvoker

CreateOtaPackageInvoker 创建OTA升级包

func (*IoTDAClient) CreateProduct

func (c *IoTDAClient) CreateProduct(request *model.CreateProductRequest) (*model.CreateProductResponse, error)

CreateProduct 创建产品

应用服务器可调用此接口创建产品。此接口仅创建了产品,没有创建和安装插件,如果需要对数据进行编解码,还需要在平台开发和安装插件。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateProductInvoker added in v0.0.90

func (c *IoTDAClient) CreateProductInvoker(request *model.CreateProductRequest) *CreateProductInvoker

CreateProductInvoker 创建产品

func (*IoTDAClient) CreateRoutingRule

CreateRoutingRule 创建规则触发条件

应用服务器可调用此接口在物联网平台创建一条规则触发条件。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateRoutingRuleInvoker added in v0.0.90

func (c *IoTDAClient) CreateRoutingRuleInvoker(request *model.CreateRoutingRuleRequest) *CreateRoutingRuleInvoker

CreateRoutingRuleInvoker 创建规则触发条件

func (*IoTDAClient) CreateRule

func (c *IoTDAClient) CreateRule(request *model.CreateRuleRequest) (*model.CreateRuleResponse, error)

CreateRule 创建规则

应用服务器可调用此接口在物联网平台创建一条规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateRuleAction

CreateRuleAction 创建规则动作

应用服务器可调用此接口在物联网平台创建一条规则动作。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) CreateRuleActionInvoker added in v0.0.90

func (c *IoTDAClient) CreateRuleActionInvoker(request *model.CreateRuleActionRequest) *CreateRuleActionInvoker

CreateRuleActionInvoker 创建规则动作

func (*IoTDAClient) CreateRuleInvoker added in v0.0.90

func (c *IoTDAClient) CreateRuleInvoker(request *model.CreateRuleRequest) *CreateRuleInvoker

CreateRuleInvoker 创建规则

func (*IoTDAClient) DeleteApplication

DeleteApplication 删除资源空间

删除指定资源空间。删除资源空间属于高危操作,删除资源空间后,该空间下的产品、设备等资源将不可用,请谨慎操作!

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteApplicationInvoker added in v0.0.90

func (c *IoTDAClient) DeleteApplicationInvoker(request *model.DeleteApplicationRequest) *DeleteApplicationInvoker

DeleteApplicationInvoker 删除资源空间

func (*IoTDAClient) DeleteBatchTask added in v0.1.49

DeleteBatchTask 删除批量任务

应用服务器可调用此接口删除物联网平台中已经完成(状态为成功,失败,部分成功,已停止)的批量任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteBatchTaskFile

DeleteBatchTaskFile 删除批量任务文件

应用服务器可调用此接口删除批量任务文件。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteBatchTaskFileInvoker added in v0.0.90

func (c *IoTDAClient) DeleteBatchTaskFileInvoker(request *model.DeleteBatchTaskFileRequest) *DeleteBatchTaskFileInvoker

DeleteBatchTaskFileInvoker 删除批量任务文件

func (*IoTDAClient) DeleteBatchTaskInvoker added in v0.1.49

func (c *IoTDAClient) DeleteBatchTaskInvoker(request *model.DeleteBatchTaskRequest) *DeleteBatchTaskInvoker

DeleteBatchTaskInvoker 删除批量任务

func (*IoTDAClient) DeleteCertificate

DeleteCertificate 删除设备CA证书

应用服务器可调用此接口在物联网平台删除设备CA证书

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteCertificateInvoker added in v0.0.90

func (c *IoTDAClient) DeleteCertificateInvoker(request *model.DeleteCertificateRequest) *DeleteCertificateInvoker

DeleteCertificateInvoker 删除设备CA证书

func (*IoTDAClient) DeleteDevice

func (c *IoTDAClient) DeleteDevice(request *model.DeleteDeviceRequest) (*model.DeleteDeviceResponse, error)

DeleteDevice 删除设备

应用服务器可调用此接口在物联网平台上删除指定设备。若设备下连接了非直连设备,则必须把设备下的非直连设备都删除后,才能删除该设备。该接口仅支持删除单个设备,如需批量删除设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteDeviceGroup

DeleteDeviceGroup 删除设备组

应用服务器可调用此接口删除指定设备组,如果该设备组存在子设备组或者该设备组中存在设备,必须先删除子设备组并将设备从该设备组移除,才能删除该设备组。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteDeviceGroupInvoker added in v0.0.90

func (c *IoTDAClient) DeleteDeviceGroupInvoker(request *model.DeleteDeviceGroupRequest) *DeleteDeviceGroupInvoker

DeleteDeviceGroupInvoker 删除设备组

func (*IoTDAClient) DeleteDeviceInvoker added in v0.0.90

func (c *IoTDAClient) DeleteDeviceInvoker(request *model.DeleteDeviceRequest) *DeleteDeviceInvoker

DeleteDeviceInvoker 删除设备

func (*IoTDAClient) DeleteDeviceTunnel added in v0.1.50

DeleteDeviceTunnel 删除设备隧道

删除设备隧道接口

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteDeviceTunnelInvoker added in v0.1.50

func (c *IoTDAClient) DeleteDeviceTunnelInvoker(request *model.DeleteDeviceTunnelRequest) *DeleteDeviceTunnelInvoker

DeleteDeviceTunnelInvoker 删除设备隧道

func (*IoTDAClient) DeleteOtaPackage added in v0.1.28

DeleteOtaPackage 删除OTA升级包

用户可调用此接口删除关联OBS对象的升级包信息,不会删除OBS上对象 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteOtaPackageInvoker added in v0.1.28

func (c *IoTDAClient) DeleteOtaPackageInvoker(request *model.DeleteOtaPackageRequest) *DeleteOtaPackageInvoker

DeleteOtaPackageInvoker 删除OTA升级包

func (*IoTDAClient) DeleteProduct

func (c *IoTDAClient) DeleteProduct(request *model.DeleteProductRequest) (*model.DeleteProductResponse, error)

DeleteProduct 删除产品

应用服务器可调用此接口删除已导入物联网平台的指定产品模型。此接口仅删除了产品,未删除关联的插件,在产品下存在设备时,该产品不允许删除。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteProductInvoker added in v0.0.90

func (c *IoTDAClient) DeleteProductInvoker(request *model.DeleteProductRequest) *DeleteProductInvoker

DeleteProductInvoker 删除产品

func (*IoTDAClient) DeleteQueue

func (c *IoTDAClient) DeleteQueue(request *model.DeleteQueueRequest) (*model.DeleteQueueResponse, error)

DeleteQueue 删除AMQP队列

应用服务器可调用此接口在物联网平台上删除指定AMQP队列。若当前队列正在使用,则会删除失败。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteQueueInvoker added in v0.0.90

func (c *IoTDAClient) DeleteQueueInvoker(request *model.DeleteQueueRequest) *DeleteQueueInvoker

DeleteQueueInvoker 删除AMQP队列

func (*IoTDAClient) DeleteRoutingRule

DeleteRoutingRule 删除规则触发条件

应用服务器可调用此接口删除物联网平台中的指定规则条件。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteRoutingRuleInvoker added in v0.0.90

func (c *IoTDAClient) DeleteRoutingRuleInvoker(request *model.DeleteRoutingRuleRequest) *DeleteRoutingRuleInvoker

DeleteRoutingRuleInvoker 删除规则触发条件

func (*IoTDAClient) DeleteRule

func (c *IoTDAClient) DeleteRule(request *model.DeleteRuleRequest) (*model.DeleteRuleResponse, error)

DeleteRule 删除规则

应用服务器可调用此接口删除物联网平台中的指定规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteRuleAction

DeleteRuleAction 删除规则动作

应用服务器可调用此接口删除物联网平台中的指定规则动作。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) DeleteRuleActionInvoker added in v0.0.90

func (c *IoTDAClient) DeleteRuleActionInvoker(request *model.DeleteRuleActionRequest) *DeleteRuleActionInvoker

DeleteRuleActionInvoker 删除规则动作

func (*IoTDAClient) DeleteRuleInvoker added in v0.0.90

func (c *IoTDAClient) DeleteRuleInvoker(request *model.DeleteRuleRequest) *DeleteRuleInvoker

DeleteRuleInvoker 删除规则

func (*IoTDAClient) FreezeDevice

func (c *IoTDAClient) FreezeDevice(request *model.FreezeDeviceRequest) (*model.FreezeDeviceResponse, error)

FreezeDevice 冻结设备

应用服务器可调用此接口冻结设备,设备冻结后不能再连接上线,可以通过解冻设备接口解除设备冻结。注意,当前仅支持冻结与平台直连的设备。该接口仅支持冻结单个设备,如需批量冻结设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) FreezeDeviceInvoker added in v0.0.90

func (c *IoTDAClient) FreezeDeviceInvoker(request *model.FreezeDeviceRequest) *FreezeDeviceInvoker

FreezeDeviceInvoker 冻结设备

func (*IoTDAClient) ListBatchTaskFiles

ListBatchTaskFiles 查询批量任务文件列表

应用服务器可调用此接口查询批量任务文件列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListBatchTaskFilesInvoker added in v0.0.90

func (c *IoTDAClient) ListBatchTaskFilesInvoker(request *model.ListBatchTaskFilesRequest) *ListBatchTaskFilesInvoker

ListBatchTaskFilesInvoker 查询批量任务文件列表

func (*IoTDAClient) ListBatchTasks

func (c *IoTDAClient) ListBatchTasks(request *model.ListBatchTasksRequest) (*model.ListBatchTasksResponse, error)

ListBatchTasks 查询批量任务列表

应用服务器可调用此接口查询物联网平台中批量任务列表,每一个任务又包括具体的任务内容、任务状态、任务完成情况统计等。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListBatchTasksInvoker added in v0.0.90

func (c *IoTDAClient) ListBatchTasksInvoker(request *model.ListBatchTasksRequest) *ListBatchTasksInvoker

ListBatchTasksInvoker 查询批量任务列表

func (*IoTDAClient) ListCertificates

ListCertificates 获取设备CA证书列表

应用服务器可调用此接口在物联网平台获取设备CA证书列表

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListCertificatesInvoker added in v0.0.90

func (c *IoTDAClient) ListCertificatesInvoker(request *model.ListCertificatesRequest) *ListCertificatesInvoker

ListCertificatesInvoker 获取设备CA证书列表

func (*IoTDAClient) ListDeviceGroups

ListDeviceGroups 查询设备组列表

应用服务器可调用此接口查询物联网平台中的设备组信息列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListDeviceGroupsInvoker added in v0.0.90

func (c *IoTDAClient) ListDeviceGroupsInvoker(request *model.ListDeviceGroupsRequest) *ListDeviceGroupsInvoker

ListDeviceGroupsInvoker 查询设备组列表

func (*IoTDAClient) ListDeviceMessages

ListDeviceMessages 查询设备消息

应用服务器可调用此接口查询平台下发给设备的消息,平台为每个设备默认最多保存20条消息,超过20条后, 后续的消息会替换下发最早的消息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListDeviceMessagesInvoker added in v0.0.90

func (c *IoTDAClient) ListDeviceMessagesInvoker(request *model.ListDeviceMessagesRequest) *ListDeviceMessagesInvoker

ListDeviceMessagesInvoker 查询设备消息

func (*IoTDAClient) ListDeviceTunnels added in v0.1.50

ListDeviceTunnels 查询设备所有隧道

用户可通过该接口查询某项目下的所有设备隧道,以实现对设备管理。应用服务器可通过此接口向平台查询设备隧道建立的情况。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListDeviceTunnelsInvoker added in v0.1.50

func (c *IoTDAClient) ListDeviceTunnelsInvoker(request *model.ListDeviceTunnelsRequest) *ListDeviceTunnelsInvoker

ListDeviceTunnelsInvoker 查询设备所有隧道

func (*IoTDAClient) ListDevices

func (c *IoTDAClient) ListDevices(request *model.ListDevicesRequest) (*model.ListDevicesResponse, error)

ListDevices 查询设备列表

应用服务器可调用此接口查询物联网平台中的设备信息列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListDevicesInvoker added in v0.0.90

func (c *IoTDAClient) ListDevicesInvoker(request *model.ListDevicesRequest) *ListDevicesInvoker

ListDevicesInvoker 查询设备列表

func (*IoTDAClient) ListOtaPackageInfo added in v0.1.28

ListOtaPackageInfo 查询OTA升级包列表

用户可调用此接口查询关联OBS对象的升级包列表 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListOtaPackageInfoInvoker added in v0.1.28

func (c *IoTDAClient) ListOtaPackageInfoInvoker(request *model.ListOtaPackageInfoRequest) *ListOtaPackageInfoInvoker

ListOtaPackageInfoInvoker 查询OTA升级包列表

func (*IoTDAClient) ListProducts

func (c *IoTDAClient) ListProducts(request *model.ListProductsRequest) (*model.ListProductsResponse, error)

ListProducts 查询产品列表

应用服务器可调用此接口查询已导入物联网平台的产品模型信息列表,了解产品模型的概要信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListProductsInvoker added in v0.0.90

func (c *IoTDAClient) ListProductsInvoker(request *model.ListProductsRequest) *ListProductsInvoker

ListProductsInvoker 查询产品列表

func (*IoTDAClient) ListProperties

func (c *IoTDAClient) ListProperties(request *model.ListPropertiesRequest) (*model.ListPropertiesResponse, error)

ListProperties 查询设备属性

设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向设备发送指令用以查询设备的实时属性, 并由设备将属性查询的结果同步返回给应用服务器。 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListPropertiesInvoker added in v0.0.90

func (c *IoTDAClient) ListPropertiesInvoker(request *model.ListPropertiesRequest) *ListPropertiesInvoker

ListPropertiesInvoker 查询设备属性

func (*IoTDAClient) ListResourcesByTags

ListResourcesByTags 按标签查询资源

应用服务器可调用此接口查询绑定了指定标签的资源。当前支持标签的资源有Device(设备)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListResourcesByTagsInvoker added in v0.0.90

func (c *IoTDAClient) ListResourcesByTagsInvoker(request *model.ListResourcesByTagsRequest) *ListResourcesByTagsInvoker

ListResourcesByTagsInvoker 按标签查询资源

func (*IoTDAClient) ListRoutingRules

ListRoutingRules 查询规则条件列表

应用服务器可调用此接口查询物联网平台中设置的规则条件列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListRoutingRulesInvoker added in v0.0.90

func (c *IoTDAClient) ListRoutingRulesInvoker(request *model.ListRoutingRulesRequest) *ListRoutingRulesInvoker

ListRoutingRulesInvoker 查询规则条件列表

func (*IoTDAClient) ListRuleActions

ListRuleActions 查询规则动作列表

应用服务器可调用此接口查询物联网平台中设置的规则动作列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListRuleActionsInvoker added in v0.0.90

func (c *IoTDAClient) ListRuleActionsInvoker(request *model.ListRuleActionsRequest) *ListRuleActionsInvoker

ListRuleActionsInvoker 查询规则动作列表

func (*IoTDAClient) ListRules

func (c *IoTDAClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)

ListRules 查询规则列表

应用服务器可调用此接口查询物联网平台中设置的规则列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ListRulesInvoker added in v0.0.90

func (c *IoTDAClient) ListRulesInvoker(request *model.ListRulesRequest) *ListRulesInvoker

ListRulesInvoker 查询规则列表

func (*IoTDAClient) ResetDeviceSecret

ResetDeviceSecret 重置设备密钥

应用服务器可调用此接口重置设备密钥,携带指定密钥时平台将设备密钥重置为指定的密钥,不携带密钥时平台将自动生成一个新的随机密钥返回。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ResetDeviceSecretInvoker added in v0.0.90

func (c *IoTDAClient) ResetDeviceSecretInvoker(request *model.ResetDeviceSecretRequest) *ResetDeviceSecretInvoker

ResetDeviceSecretInvoker 重置设备密钥

func (*IoTDAClient) ResetFingerprint added in v0.0.81

ResetFingerprint 重置设备指纹

应用服务器可调用此接口重置设备指纹。携带指定设备指纹时将之重置为指定值;不携带时将之置空,后续设备第一次接入时,该设备指纹的值将设置为第一次接入时的证书指纹。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ResetFingerprintInvoker added in v0.0.90

func (c *IoTDAClient) ResetFingerprintInvoker(request *model.ResetFingerprintRequest) *ResetFingerprintInvoker

ResetFingerprintInvoker 重置设备指纹

func (*IoTDAClient) RetryBatchTask added in v0.1.43

func (c *IoTDAClient) RetryBatchTask(request *model.RetryBatchTaskRequest) (*model.RetryBatchTaskResponse, error)

RetryBatchTask 重试批量任务

应用服务器可调用此接口重试批量任务,目前只支持task_type为firmwareUpgrade,softwareUpgrade。如果task_id对应任务已经成功、停止、正在停止、等待中或初始化中,则不可以调用该接口。如果请求Body为{},则调用该接口后会重新执行所有状态为失败、失败待重试和已停止的子任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) RetryBatchTaskInvoker added in v0.1.43

func (c *IoTDAClient) RetryBatchTaskInvoker(request *model.RetryBatchTaskRequest) *RetryBatchTaskInvoker

RetryBatchTaskInvoker 重试批量任务

func (*IoTDAClient) SearchDevices added in v0.1.18

func (c *IoTDAClient) SearchDevices(request *model.SearchDevicesRequest) (*model.SearchDevicesResponse, error)

SearchDevices 灵活搜索设备列表

#### 接口说明

应用服务器使用SQL语句调用该接口,灵活的搜索所需要的设备资源列表

#### 限制

- 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数)

#### 类SQL语法使用说明

类SQL语句有select、from、where(可选)、order by(可选)、limit子句(可选)组成,长度限制为400个字符。子句里的内容大小写敏感,SQL语句的关键字大小写不敏感。

示例:

``` select * from device where device_id = 'as********' limit 0,5 ```

##### SELECT子句

``` select [field]/[count(*)/count(1)] from device ```

其中field为需要获取的字段,请参考响应参数字段名称,也可填*,获取所有字段。

如果需要统计搜索的设备个数,请填count(*)或者count(1).

##### FROM子句

``` from device ```

from后为要查询的资源名,当前支持\"device\"

##### WHERE子句(可选)

``` WHERE [condition1] AND [condition2] ```

最多支持5个condition,不支持嵌套;支持的检索字段请参见下面的**搜索条件字段说明**和**支持的运算符**章节

连接词支持AND、OR,优先级参考标准SQL语法,默认AND优先级高于OR。

##### LIMIT子句(可选)

``` limit [offset,] rows ```

offset标识搜索的偏移量,rows标识返回搜索结果的最大行数,例如:

- limit n ;示例(select * from device limit 10)

	最大返回n条结果数据

  - limit m,n; 示例(select * from device limit 20,10)
    搜索偏移量为m,最大返回n条结果数据

###### 限制

offset 最大 500, rows最大50,如果不填写limit子句,默认为limit 10

##### ORDER BY子句(可选)

用于实现自定义排序,当前支持自定义排序的字段为:\"marker\"。

``` order by marker [asc]/[desc] ```

子句不填写时默认逻辑为随机排序

#### 搜索条件字段说明

| 字段名 | 类型 | 说明 | 取值范围 | | :---------- | :----- | :--------------- | :----------------------------------------------------------- | | app_id | string | 资源空间ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | | device_id | string | 设备ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | | gateway_id | string | 网关ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | | product_id | string | 设备关联的产品ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | | device_name | string | 设备名称 | 长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合符。 | | node_id | string | 设备标识码 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合 | | status | string | 设备的状态 | ONLINE(在线)、OFFLINE(离线)、ABNORMAL(异常)、INACTIVE(未激活)、FROZEN(冻结) | | node_type | string | 设备节点类型 | GATEWAY(直连设备或网关)、ENDPOINT(非直连设备) | | tag_key | string | 标签键 | 长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合。 | | tag_value | string | 标签值 | 长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 | | sw_version | string | 软件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | | fw_version | string | 固件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | | group_id | string | 群组Id | 长度不超过36,十六进制字符串和连接符(-)的组合 | | create_time | string | 设备注册时间 | 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z',如:2015-06-06T12:10:10.000Z | | marker | string | 结果记录ID | 长度为24的十六进制字符串,如ffffffffffffffffffffffff |

#### 支持的运算符

| 运算符 | 支持的字段 | | ------- | ---------------------------------------- | | = | 所有 | | != | 所有 | | > | create_time、marker | | < | create_time、marker | | like | device_name、node_id、tag_key、tag_value | | in | 除tag_key、tag_value以外字段 | | not in | 除tag_key、tag_value以外字段 |

#### SQL 限制

- like: 只支持前缀匹配,不支持后缀匹配或者通配符匹配。前缀匹配不得少于4个字符,且不能包含任何特殊字符(只允许中文、字母、数字、下划线(_)、连接符(-)). 前缀后必须跟上\"%\"结尾。 - 不支持除了count(*)/count(1)以外的其他任何函数。 - 不支持其他SQL用法,如嵌套SQL、union、join、别名(Alias)等用法 - SQL长度限制为400个字符,单个请求条件最大支持5个。 - 不支持\"null\"和空字符串等条件值匹配

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) SearchDevicesInvoker added in v0.1.18

func (c *IoTDAClient) SearchDevicesInvoker(request *model.SearchDevicesRequest) *SearchDevicesInvoker

SearchDevicesInvoker 灵活搜索设备列表

func (*IoTDAClient) ShowApplication

ShowApplication 查询资源空间

资源空间对应的是物联网平台原有的应用,在物联网平台的含义与应用一致,只是变更了名称。应用服务器可以调用此接口查询指定资源空间详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowApplicationInvoker added in v0.0.90

func (c *IoTDAClient) ShowApplicationInvoker(request *model.ShowApplicationRequest) *ShowApplicationInvoker

ShowApplicationInvoker 查询资源空间

func (*IoTDAClient) ShowApplications

ShowApplications 查询资源空间列表

资源空间对应的是物联网平台原有的应用,在物联网平台的含义与应用一致,只是变更了名称。应用服务器可以调用此接口查询资源空间列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowApplicationsInvoker added in v0.0.90

func (c *IoTDAClient) ShowApplicationsInvoker(request *model.ShowApplicationsRequest) *ShowApplicationsInvoker

ShowApplicationsInvoker 查询资源空间列表

func (*IoTDAClient) ShowAsyncDeviceCommand

ShowAsyncDeviceCommand 查询指定id的命令

物联网平台可查询指定id的命令。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowAsyncDeviceCommandInvoker added in v0.0.90

func (c *IoTDAClient) ShowAsyncDeviceCommandInvoker(request *model.ShowAsyncDeviceCommandRequest) *ShowAsyncDeviceCommandInvoker

ShowAsyncDeviceCommandInvoker 查询指定id的命令

func (*IoTDAClient) ShowBatchTask

func (c *IoTDAClient) ShowBatchTask(request *model.ShowBatchTaskRequest) (*model.ShowBatchTaskResponse, error)

ShowBatchTask 查询批量任务

应用服务器可调用此接口查询物联网平台中指定批量任务的信息,包括任务内容、任务状态、任务完成情况统计以及子任务列表等。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowBatchTaskInvoker added in v0.0.90

func (c *IoTDAClient) ShowBatchTaskInvoker(request *model.ShowBatchTaskRequest) *ShowBatchTaskInvoker

ShowBatchTaskInvoker 查询批量任务

func (*IoTDAClient) ShowDevice

func (c *IoTDAClient) ShowDevice(request *model.ShowDeviceRequest) (*model.ShowDeviceResponse, error)

ShowDevice 查询设备

应用服务器可调用此接口查询物联网平台中指定设备的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowDeviceGroup

ShowDeviceGroup 查询设备组

应用服务器可调用此接口查询指定设备组详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowDeviceGroupInvoker added in v0.0.90

func (c *IoTDAClient) ShowDeviceGroupInvoker(request *model.ShowDeviceGroupRequest) *ShowDeviceGroupInvoker

ShowDeviceGroupInvoker 查询设备组

func (*IoTDAClient) ShowDeviceInvoker added in v0.0.90

func (c *IoTDAClient) ShowDeviceInvoker(request *model.ShowDeviceRequest) *ShowDeviceInvoker

ShowDeviceInvoker 查询设备

func (*IoTDAClient) ShowDeviceMessage

ShowDeviceMessage 查询指定消息id的消息

应用服务器可调用此接口查询平台下发给设备的指定消息id的消息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowDeviceMessageInvoker added in v0.0.90

func (c *IoTDAClient) ShowDeviceMessageInvoker(request *model.ShowDeviceMessageRequest) *ShowDeviceMessageInvoker

ShowDeviceMessageInvoker 查询指定消息id的消息

func (*IoTDAClient) ShowDeviceShadow

ShowDeviceShadow 查询设备影子数据

应用服务器可调用此接口查询指定设备的设备影子信息,包括对设备的期望属性信息(desired区)和设备最新上报的属性信息(reported区)。

设备影子介绍: 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - 每个设备有且只有一个设备影子,由设备ID唯一标识 - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发

限制: 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowDeviceShadowInvoker added in v0.0.90

func (c *IoTDAClient) ShowDeviceShadowInvoker(request *model.ShowDeviceShadowRequest) *ShowDeviceShadowInvoker

ShowDeviceShadowInvoker 查询设备影子数据

func (*IoTDAClient) ShowDeviceTunnel added in v0.1.50

ShowDeviceTunnel 查询设备隧道

用户可通过该接口查询某项目中的某个设备隧道,查看该设备隧道的信息与连接情况。应用服务器可调用此接口向平台查询设备隧道建立情况。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowDeviceTunnelInvoker added in v0.1.50

func (c *IoTDAClient) ShowDeviceTunnelInvoker(request *model.ShowDeviceTunnelRequest) *ShowDeviceTunnelInvoker

ShowDeviceTunnelInvoker 查询设备隧道

func (*IoTDAClient) ShowDevicesInGroup

ShowDevicesInGroup 查询设备组设备列表

应用服务器可调用此接口查询指定设备组下的设备列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowDevicesInGroupInvoker added in v0.0.90

func (c *IoTDAClient) ShowDevicesInGroupInvoker(request *model.ShowDevicesInGroupRequest) *ShowDevicesInGroupInvoker

ShowDevicesInGroupInvoker 查询设备组设备列表

func (*IoTDAClient) ShowOtaPackage added in v0.1.28

func (c *IoTDAClient) ShowOtaPackage(request *model.ShowOtaPackageRequest) (*model.ShowOtaPackageResponse, error)

ShowOtaPackage 获取OTA升级包详情

用户可调用此接口查询关联OBS对象的升级包详情 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowOtaPackageInvoker added in v0.1.28

func (c *IoTDAClient) ShowOtaPackageInvoker(request *model.ShowOtaPackageRequest) *ShowOtaPackageInvoker

ShowOtaPackageInvoker 获取OTA升级包详情

func (*IoTDAClient) ShowProduct

func (c *IoTDAClient) ShowProduct(request *model.ShowProductRequest) (*model.ShowProductResponse, error)

ShowProduct 查询产品

应用服务器可调用此接口查询已导入物联网平台的指定产品模型详细信息,包括产品模型的服务、属性、命令等。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowProductInvoker added in v0.0.90

func (c *IoTDAClient) ShowProductInvoker(request *model.ShowProductRequest) *ShowProductInvoker

ShowProductInvoker 查询产品

func (*IoTDAClient) ShowQueue

func (c *IoTDAClient) ShowQueue(request *model.ShowQueueRequest) (*model.ShowQueueResponse, error)

ShowQueue 查询单个AMQP队列

应用服务器可调用此接口查询物联网平台中指定队列的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowQueueInvoker added in v0.0.90

func (c *IoTDAClient) ShowQueueInvoker(request *model.ShowQueueRequest) *ShowQueueInvoker

ShowQueueInvoker 查询单个AMQP队列

func (*IoTDAClient) ShowRoutingRule

ShowRoutingRule 查询规则条件

应用服务器可调用此接口查询物联网平台中指定规则条件的配置信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowRoutingRuleInvoker added in v0.0.90

func (c *IoTDAClient) ShowRoutingRuleInvoker(request *model.ShowRoutingRuleRequest) *ShowRoutingRuleInvoker

ShowRoutingRuleInvoker 查询规则条件

func (*IoTDAClient) ShowRule

func (c *IoTDAClient) ShowRule(request *model.ShowRuleRequest) (*model.ShowRuleResponse, error)

ShowRule 查询规则

应用服务器可调用此接口查询物联网平台中指定规则的配置信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowRuleAction

func (c *IoTDAClient) ShowRuleAction(request *model.ShowRuleActionRequest) (*model.ShowRuleActionResponse, error)

ShowRuleAction 查询规则动作

应用服务器可调用此接口查询物联网平台中指定规则动作的配置信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) ShowRuleActionInvoker added in v0.0.90

func (c *IoTDAClient) ShowRuleActionInvoker(request *model.ShowRuleActionRequest) *ShowRuleActionInvoker

ShowRuleActionInvoker 查询规则动作

func (*IoTDAClient) ShowRuleInvoker added in v0.0.90

func (c *IoTDAClient) ShowRuleInvoker(request *model.ShowRuleRequest) *ShowRuleInvoker

ShowRuleInvoker 查询规则

func (*IoTDAClient) StopBatchTask added in v0.1.43

func (c *IoTDAClient) StopBatchTask(request *model.StopBatchTaskRequest) (*model.StopBatchTaskResponse, error)

StopBatchTask 停止批量任务

应用服务器可调用此接口停止批量任务,目前只支持task_type为firmwareUpgrade,softwareUpgrade。如果task_id对应任务已经完成(成功、失败、部分成功,已经停止)或正在停止中,则不可以调用该接口。如果请求Body为{},则调用该接口后会停止所有正在执行中、等待中和失败待重试状态的子任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) StopBatchTaskInvoker added in v0.1.43

func (c *IoTDAClient) StopBatchTaskInvoker(request *model.StopBatchTaskRequest) *StopBatchTaskInvoker

StopBatchTaskInvoker 停止批量任务

func (*IoTDAClient) TagDevice

func (c *IoTDAClient) TagDevice(request *model.TagDeviceRequest) (*model.TagDeviceResponse, error)

TagDevice 绑定标签

应用服务器可调用此接口为指定资源绑定标签。当前支持标签的资源有Device(设备)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) TagDeviceInvoker added in v0.0.90

func (c *IoTDAClient) TagDeviceInvoker(request *model.TagDeviceRequest) *TagDeviceInvoker

TagDeviceInvoker 绑定标签

func (*IoTDAClient) UnfreezeDevice

func (c *IoTDAClient) UnfreezeDevice(request *model.UnfreezeDeviceRequest) (*model.UnfreezeDeviceResponse, error)

UnfreezeDevice 解冻设备

应用服务器可调用此接口解冻设备,解除冻结后,设备可以连接上线。该接口仅支持解冻单个设备,如需批量解冻设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UnfreezeDeviceInvoker added in v0.0.90

func (c *IoTDAClient) UnfreezeDeviceInvoker(request *model.UnfreezeDeviceRequest) *UnfreezeDeviceInvoker

UnfreezeDeviceInvoker 解冻设备

func (*IoTDAClient) UntagDevice

func (c *IoTDAClient) UntagDevice(request *model.UntagDeviceRequest) (*model.UntagDeviceResponse, error)

UntagDevice 解绑标签

应用服务器可调用此接口为指定资源解绑标签。当前支持标签的资源有Device(设备)。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UntagDeviceInvoker added in v0.0.90

func (c *IoTDAClient) UntagDeviceInvoker(request *model.UntagDeviceRequest) *UntagDeviceInvoker

UntagDeviceInvoker 解绑标签

func (*IoTDAClient) UpdateDevice

func (c *IoTDAClient) UpdateDevice(request *model.UpdateDeviceRequest) (*model.UpdateDeviceResponse, error)

UpdateDevice 修改设备

应用服务器可调用此接口修改物联网平台中指定设备的基本信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateDeviceGroup

UpdateDeviceGroup 修改设备组

应用服务器可调用此接口修改物联网平台中指定设备组。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateDeviceGroupInvoker added in v0.0.90

func (c *IoTDAClient) UpdateDeviceGroupInvoker(request *model.UpdateDeviceGroupRequest) *UpdateDeviceGroupInvoker

UpdateDeviceGroupInvoker 修改设备组

func (*IoTDAClient) UpdateDeviceInvoker added in v0.0.90

func (c *IoTDAClient) UpdateDeviceInvoker(request *model.UpdateDeviceRequest) *UpdateDeviceInvoker

UpdateDeviceInvoker 修改设备

func (*IoTDAClient) UpdateDeviceShadowDesiredData

UpdateDeviceShadowDesiredData 配置设备影子预期数据

应用服务器可调用此接口配置设备影子的预期属性(desired区),当设备上线或者设备上报属性时把属性下发给设备。

设备影子介绍: 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - 每个设备有且只有一个设备影子,由设备ID唯一标识 - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - 该接口仅支持配置单个设备的设备影子的预期数据,如需多个设备的设备影子配置,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。

限制: 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateDeviceShadowDesiredDataInvoker added in v0.0.90

func (c *IoTDAClient) UpdateDeviceShadowDesiredDataInvoker(request *model.UpdateDeviceShadowDesiredDataRequest) *UpdateDeviceShadowDesiredDataInvoker

UpdateDeviceShadowDesiredDataInvoker 配置设备影子预期数据

func (*IoTDAClient) UpdateProduct

func (c *IoTDAClient) UpdateProduct(request *model.UpdateProductRequest) (*model.UpdateProductResponse, error)

UpdateProduct 修改产品

应用服务器可调用此接口修改已导入物联网平台的指定产品模型,包括产品模型的服务、属性、命令等。此接口仅修改了产品,未修改和安装插件,如果修改了产品中的service定义,且在平台中有对应的插件,请修改并重新安装插件。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateProductInvoker added in v0.0.90

func (c *IoTDAClient) UpdateProductInvoker(request *model.UpdateProductRequest) *UpdateProductInvoker

UpdateProductInvoker 修改产品

func (*IoTDAClient) UpdateProperties

UpdateProperties 修改设备属性

设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向指定设备下发属性。平台负责将属性以同步方式发送给设备,并将设备执行属性结果同步返回。 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdatePropertiesInvoker added in v0.0.90

func (c *IoTDAClient) UpdatePropertiesInvoker(request *model.UpdatePropertiesRequest) *UpdatePropertiesInvoker

UpdatePropertiesInvoker 修改设备属性

func (*IoTDAClient) UpdateRoutingRule

UpdateRoutingRule 修改规则触发条件

应用服务器可调用此接口修改物联网平台中指定规则条件的配置参数。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateRoutingRuleInvoker added in v0.0.90

func (c *IoTDAClient) UpdateRoutingRuleInvoker(request *model.UpdateRoutingRuleRequest) *UpdateRoutingRuleInvoker

UpdateRoutingRuleInvoker 修改规则触发条件

func (*IoTDAClient) UpdateRule

func (c *IoTDAClient) UpdateRule(request *model.UpdateRuleRequest) (*model.UpdateRuleResponse, error)

UpdateRule 修改规则

应用服务器可调用此接口修改物联网平台中指定规则的配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateRuleAction

UpdateRuleAction 修改规则动作

应用服务器可调用此接口修改物联网平台中指定规则动作的配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UpdateRuleActionInvoker added in v0.0.90

func (c *IoTDAClient) UpdateRuleActionInvoker(request *model.UpdateRuleActionRequest) *UpdateRuleActionInvoker

UpdateRuleActionInvoker 修改规则动作

func (*IoTDAClient) UpdateRuleInvoker added in v0.0.90

func (c *IoTDAClient) UpdateRuleInvoker(request *model.UpdateRuleRequest) *UpdateRuleInvoker

UpdateRuleInvoker 修改规则

func (*IoTDAClient) UploadBatchTaskFile added in v0.1.23

UploadBatchTaskFile 上传批量任务文件

应用服务器可调用此接口上传批量任务文件,用于创建批量任务。当前支持批量创建设备任务、批量删除设备任务、批量冻结设备任务、批量解冻设备任务的文件上传。 - [批量注册设备模板](https://developer.obs.cn-north-4.myhuaweicloud.com/template/BatchCreateDevices_Template.xlsx)

- [批量删除设备模板](https://developer.obs.cn-north-4.myhuaweicloud.com/template/BatchDeleteDevices_Template.xlsx)

- [批量冻结设备模板](https://developer.obs.cn-north-4.myhuaweicloud.com/template/BatchFreezeDevices_Template.xlsx)

- [批量解冻设备模板](https://developer.obs.cn-north-4.myhuaweicloud.com/template/BatchUnfreezeDevices_Template.xlsx)

Please refer to HUAWEI cloud API Explorer for details.

func (*IoTDAClient) UploadBatchTaskFileInvoker added in v0.1.23

func (c *IoTDAClient) UploadBatchTaskFileInvoker(request *model.UploadBatchTaskFileRequest) *UploadBatchTaskFileInvoker

UploadBatchTaskFileInvoker 上传批量任务文件

type ListBatchTaskFilesInvoker added in v0.0.90

type ListBatchTaskFilesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListBatchTaskFilesInvoker) Invoke added in v0.0.90

type ListBatchTasksInvoker added in v0.0.90

type ListBatchTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*ListBatchTasksInvoker) Invoke added in v0.0.90

type ListCertificatesInvoker added in v0.0.90

type ListCertificatesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificatesInvoker) Invoke added in v0.0.90

type ListDeviceGroupsInvoker added in v0.0.90

type ListDeviceGroupsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDeviceGroupsInvoker) Invoke added in v0.0.90

type ListDeviceMessagesInvoker added in v0.0.90

type ListDeviceMessagesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDeviceMessagesInvoker) Invoke added in v0.0.90

type ListDeviceTunnelsInvoker added in v0.1.50

type ListDeviceTunnelsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDeviceTunnelsInvoker) Invoke added in v0.1.50

type ListDevicesInvoker added in v0.0.90

type ListDevicesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDevicesInvoker) Invoke added in v0.0.90

type ListOtaPackageInfoInvoker added in v0.1.28

type ListOtaPackageInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ListOtaPackageInfoInvoker) Invoke added in v0.1.28

type ListProductsInvoker added in v0.0.90

type ListProductsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListProductsInvoker) Invoke added in v0.0.90

type ListPropertiesInvoker added in v0.0.90

type ListPropertiesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListPropertiesInvoker) Invoke added in v0.0.90

type ListResourcesByTagsInvoker added in v0.0.90

type ListResourcesByTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourcesByTagsInvoker) Invoke added in v0.0.90

type ListRoutingRulesInvoker added in v0.0.90

type ListRoutingRulesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListRoutingRulesInvoker) Invoke added in v0.0.90

type ListRuleActionsInvoker added in v0.0.90

type ListRuleActionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListRuleActionsInvoker) Invoke added in v0.0.90

type ListRulesInvoker added in v0.0.90

type ListRulesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListRulesInvoker) Invoke added in v0.0.90

type ResetDeviceSecretInvoker added in v0.0.90

type ResetDeviceSecretInvoker struct {
	*invoker.BaseInvoker
}

func (*ResetDeviceSecretInvoker) Invoke added in v0.0.90

type ResetFingerprintInvoker added in v0.0.90

type ResetFingerprintInvoker struct {
	*invoker.BaseInvoker
}

func (*ResetFingerprintInvoker) Invoke added in v0.0.90

type RetryBatchTaskInvoker added in v0.1.43

type RetryBatchTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*RetryBatchTaskInvoker) Invoke added in v0.1.43

type SearchDevicesInvoker added in v0.1.18

type SearchDevicesInvoker struct {
	*invoker.BaseInvoker
}

func (*SearchDevicesInvoker) Invoke added in v0.1.18

type ShowApplicationInvoker added in v0.0.90

type ShowApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowApplicationInvoker) Invoke added in v0.0.90

type ShowApplicationsInvoker added in v0.0.90

type ShowApplicationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowApplicationsInvoker) Invoke added in v0.0.90

type ShowAsyncDeviceCommandInvoker added in v0.0.90

type ShowAsyncDeviceCommandInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAsyncDeviceCommandInvoker) Invoke added in v0.0.90

type ShowBatchTaskInvoker added in v0.0.90

type ShowBatchTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowBatchTaskInvoker) Invoke added in v0.0.90

type ShowDeviceGroupInvoker added in v0.0.90

type ShowDeviceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDeviceGroupInvoker) Invoke added in v0.0.90

type ShowDeviceInvoker added in v0.0.90

type ShowDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDeviceInvoker) Invoke added in v0.0.90

type ShowDeviceMessageInvoker added in v0.0.90

type ShowDeviceMessageInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDeviceMessageInvoker) Invoke added in v0.0.90

type ShowDeviceShadowInvoker added in v0.0.90

type ShowDeviceShadowInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDeviceShadowInvoker) Invoke added in v0.0.90

type ShowDeviceTunnelInvoker added in v0.1.50

type ShowDeviceTunnelInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDeviceTunnelInvoker) Invoke added in v0.1.50

type ShowDevicesInGroupInvoker added in v0.0.90

type ShowDevicesInGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDevicesInGroupInvoker) Invoke added in v0.0.90

type ShowOtaPackageInvoker added in v0.1.28

type ShowOtaPackageInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowOtaPackageInvoker) Invoke added in v0.1.28

type ShowProductInvoker added in v0.0.90

type ShowProductInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowProductInvoker) Invoke added in v0.0.90

type ShowQueueInvoker added in v0.0.90

type ShowQueueInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowQueueInvoker) Invoke added in v0.0.90

type ShowRoutingRuleInvoker added in v0.0.90

type ShowRoutingRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowRoutingRuleInvoker) Invoke added in v0.0.90

type ShowRuleActionInvoker added in v0.0.90

type ShowRuleActionInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowRuleActionInvoker) Invoke added in v0.0.90

type ShowRuleInvoker added in v0.0.90

type ShowRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowRuleInvoker) Invoke added in v0.0.90

func (i *ShowRuleInvoker) Invoke() (*model.ShowRuleResponse, error)

type StopBatchTaskInvoker added in v0.1.43

type StopBatchTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*StopBatchTaskInvoker) Invoke added in v0.1.43

type TagDeviceInvoker added in v0.0.90

type TagDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*TagDeviceInvoker) Invoke added in v0.0.90

type UnfreezeDeviceInvoker added in v0.0.90

type UnfreezeDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*UnfreezeDeviceInvoker) Invoke added in v0.0.90

type UntagDeviceInvoker added in v0.0.90

type UntagDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*UntagDeviceInvoker) Invoke added in v0.0.90

type UpdateDeviceGroupInvoker added in v0.0.90

type UpdateDeviceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDeviceGroupInvoker) Invoke added in v0.0.90

type UpdateDeviceInvoker added in v0.0.90

type UpdateDeviceInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDeviceInvoker) Invoke added in v0.0.90

type UpdateDeviceShadowDesiredDataInvoker added in v0.0.90

type UpdateDeviceShadowDesiredDataInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDeviceShadowDesiredDataInvoker) Invoke added in v0.0.90

type UpdateProductInvoker added in v0.0.90

type UpdateProductInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateProductInvoker) Invoke added in v0.0.90

type UpdatePropertiesInvoker added in v0.0.90

type UpdatePropertiesInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdatePropertiesInvoker) Invoke added in v0.0.90

type UpdateRoutingRuleInvoker added in v0.0.90

type UpdateRoutingRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateRoutingRuleInvoker) Invoke added in v0.0.90

type UpdateRuleActionInvoker added in v0.0.90

type UpdateRuleActionInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateRuleActionInvoker) Invoke added in v0.0.90

type UpdateRuleInvoker added in v0.0.90

type UpdateRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateRuleInvoker) Invoke added in v0.0.90

type UploadBatchTaskFileInvoker added in v0.1.23

type UploadBatchTaskFileInvoker struct {
	*invoker.BaseInvoker
}

func (*UploadBatchTaskFileInvoker) Invoke added in v0.1.23

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL