Documentation ¶
Index ¶
- func GenReqDefForAddApplication() *def.HttpRequestDef
- func GenReqDefForAddCertificate() *def.HttpRequestDef
- func GenReqDefForAddDevice() *def.HttpRequestDef
- func GenReqDefForAddDeviceGroup() *def.HttpRequestDef
- func GenReqDefForAddQueue() *def.HttpRequestDef
- func GenReqDefForBatchShowQueue() *def.HttpRequestDef
- func GenReqDefForChangeRuleStatus() *def.HttpRequestDef
- func GenReqDefForCheckCertificate() *def.HttpRequestDef
- func GenReqDefForCreateAccessCode() *def.HttpRequestDef
- func GenReqDefForCreateAsyncCommand() *def.HttpRequestDef
- func GenReqDefForCreateBatchTask() *def.HttpRequestDef
- func GenReqDefForCreateCommand() *def.HttpRequestDef
- func GenReqDefForCreateMessage() *def.HttpRequestDef
- func GenReqDefForCreateOrDeleteDeviceInGroup() *def.HttpRequestDef
- func GenReqDefForCreateProduct() *def.HttpRequestDef
- func GenReqDefForCreateRoutingRule() *def.HttpRequestDef
- func GenReqDefForCreateRule() *def.HttpRequestDef
- func GenReqDefForCreateRuleAction() *def.HttpRequestDef
- func GenReqDefForDeleteApplication() *def.HttpRequestDef
- func GenReqDefForDeleteBatchTaskFile() *def.HttpRequestDef
- func GenReqDefForDeleteCertificate() *def.HttpRequestDef
- func GenReqDefForDeleteDevice() *def.HttpRequestDef
- func GenReqDefForDeleteDeviceGroup() *def.HttpRequestDef
- func GenReqDefForDeleteProduct() *def.HttpRequestDef
- func GenReqDefForDeleteQueue() *def.HttpRequestDef
- func GenReqDefForDeleteRoutingRule() *def.HttpRequestDef
- func GenReqDefForDeleteRule() *def.HttpRequestDef
- func GenReqDefForDeleteRuleAction() *def.HttpRequestDef
- func GenReqDefForFreezeDevice() *def.HttpRequestDef
- func GenReqDefForListBatchTaskFiles() *def.HttpRequestDef
- func GenReqDefForListBatchTasks() *def.HttpRequestDef
- func GenReqDefForListCertificates() *def.HttpRequestDef
- func GenReqDefForListDeviceGroups() *def.HttpRequestDef
- func GenReqDefForListDeviceMessages() *def.HttpRequestDef
- func GenReqDefForListDevices() *def.HttpRequestDef
- func GenReqDefForListProducts() *def.HttpRequestDef
- func GenReqDefForListProperties() *def.HttpRequestDef
- func GenReqDefForListResourcesByTags() *def.HttpRequestDef
- func GenReqDefForListRoutingRules() *def.HttpRequestDef
- func GenReqDefForListRuleActions() *def.HttpRequestDef
- func GenReqDefForListRules() *def.HttpRequestDef
- func GenReqDefForResetDeviceSecret() *def.HttpRequestDef
- func GenReqDefForResetFingerprint() *def.HttpRequestDef
- func GenReqDefForShowApplication() *def.HttpRequestDef
- func GenReqDefForShowApplications() *def.HttpRequestDef
- func GenReqDefForShowAsyncDeviceCommand() *def.HttpRequestDef
- func GenReqDefForShowBatchTask() *def.HttpRequestDef
- func GenReqDefForShowDevice() *def.HttpRequestDef
- func GenReqDefForShowDeviceGroup() *def.HttpRequestDef
- func GenReqDefForShowDeviceMessage() *def.HttpRequestDef
- func GenReqDefForShowDeviceShadow() *def.HttpRequestDef
- func GenReqDefForShowDevicesInGroup() *def.HttpRequestDef
- func GenReqDefForShowProduct() *def.HttpRequestDef
- func GenReqDefForShowQueue() *def.HttpRequestDef
- func GenReqDefForShowRoutingRule() *def.HttpRequestDef
- func GenReqDefForShowRule() *def.HttpRequestDef
- func GenReqDefForShowRuleAction() *def.HttpRequestDef
- func GenReqDefForTagDevice() *def.HttpRequestDef
- func GenReqDefForUnfreezeDevice() *def.HttpRequestDef
- func GenReqDefForUntagDevice() *def.HttpRequestDef
- func GenReqDefForUpdateDevice() *def.HttpRequestDef
- func GenReqDefForUpdateDeviceGroup() *def.HttpRequestDef
- func GenReqDefForUpdateDeviceShadowDesiredData() *def.HttpRequestDef
- func GenReqDefForUpdateProduct() *def.HttpRequestDef
- func GenReqDefForUpdateProperties() *def.HttpRequestDef
- func GenReqDefForUpdateRoutingRule() *def.HttpRequestDef
- func GenReqDefForUpdateRule() *def.HttpRequestDef
- func GenReqDefForUpdateRuleAction() *def.HttpRequestDef
- func IoTDAClientBuilder() *http_client.HcHttpClientBuilder
- type IoTDAClient
- func (c *IoTDAClient) AddApplication(request *model.AddApplicationRequest) (*model.AddApplicationResponse, error)
- func (c *IoTDAClient) AddCertificate(request *model.AddCertificateRequest) (*model.AddCertificateResponse, error)
- func (c *IoTDAClient) AddDevice(request *model.AddDeviceRequest) (*model.AddDeviceResponse, error)
- func (c *IoTDAClient) AddDeviceGroup(request *model.AddDeviceGroupRequest) (*model.AddDeviceGroupResponse, error)
- func (c *IoTDAClient) AddQueue(request *model.AddQueueRequest) (*model.AddQueueResponse, error)
- func (c *IoTDAClient) BatchShowQueue(request *model.BatchShowQueueRequest) (*model.BatchShowQueueResponse, error)
- func (c *IoTDAClient) ChangeRuleStatus(request *model.ChangeRuleStatusRequest) (*model.ChangeRuleStatusResponse, error)
- func (c *IoTDAClient) CheckCertificate(request *model.CheckCertificateRequest) (*model.CheckCertificateResponse, error)
- func (c *IoTDAClient) CreateAccessCode(request *model.CreateAccessCodeRequest) (*model.CreateAccessCodeResponse, error)
- func (c *IoTDAClient) CreateAsyncCommand(request *model.CreateAsyncCommandRequest) (*model.CreateAsyncCommandResponse, error)
- func (c *IoTDAClient) CreateBatchTask(request *model.CreateBatchTaskRequest) (*model.CreateBatchTaskResponse, error)
- func (c *IoTDAClient) CreateCommand(request *model.CreateCommandRequest) (*model.CreateCommandResponse, error)
- func (c *IoTDAClient) CreateMessage(request *model.CreateMessageRequest) (*model.CreateMessageResponse, error)
- func (c *IoTDAClient) CreateOrDeleteDeviceInGroup(request *model.CreateOrDeleteDeviceInGroupRequest) (*model.CreateOrDeleteDeviceInGroupResponse, error)
- func (c *IoTDAClient) CreateProduct(request *model.CreateProductRequest) (*model.CreateProductResponse, error)
- func (c *IoTDAClient) CreateRoutingRule(request *model.CreateRoutingRuleRequest) (*model.CreateRoutingRuleResponse, error)
- func (c *IoTDAClient) CreateRule(request *model.CreateRuleRequest) (*model.CreateRuleResponse, error)
- func (c *IoTDAClient) CreateRuleAction(request *model.CreateRuleActionRequest) (*model.CreateRuleActionResponse, error)
- func (c *IoTDAClient) DeleteApplication(request *model.DeleteApplicationRequest) (*model.DeleteApplicationResponse, error)
- func (c *IoTDAClient) DeleteBatchTaskFile(request *model.DeleteBatchTaskFileRequest) (*model.DeleteBatchTaskFileResponse, error)
- func (c *IoTDAClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error)
- func (c *IoTDAClient) DeleteDevice(request *model.DeleteDeviceRequest) (*model.DeleteDeviceResponse, error)
- func (c *IoTDAClient) DeleteDeviceGroup(request *model.DeleteDeviceGroupRequest) (*model.DeleteDeviceGroupResponse, error)
- func (c *IoTDAClient) DeleteProduct(request *model.DeleteProductRequest) (*model.DeleteProductResponse, error)
- func (c *IoTDAClient) DeleteQueue(request *model.DeleteQueueRequest) (*model.DeleteQueueResponse, error)
- func (c *IoTDAClient) DeleteRoutingRule(request *model.DeleteRoutingRuleRequest) (*model.DeleteRoutingRuleResponse, error)
- func (c *IoTDAClient) DeleteRule(request *model.DeleteRuleRequest) (*model.DeleteRuleResponse, error)
- func (c *IoTDAClient) DeleteRuleAction(request *model.DeleteRuleActionRequest) (*model.DeleteRuleActionResponse, error)
- func (c *IoTDAClient) FreezeDevice(request *model.FreezeDeviceRequest) (*model.FreezeDeviceResponse, error)
- func (c *IoTDAClient) ListBatchTaskFiles(request *model.ListBatchTaskFilesRequest) (*model.ListBatchTaskFilesResponse, error)
- func (c *IoTDAClient) ListBatchTasks(request *model.ListBatchTasksRequest) (*model.ListBatchTasksResponse, error)
- func (c *IoTDAClient) ListCertificates(request *model.ListCertificatesRequest) (*model.ListCertificatesResponse, error)
- func (c *IoTDAClient) ListDeviceGroups(request *model.ListDeviceGroupsRequest) (*model.ListDeviceGroupsResponse, error)
- func (c *IoTDAClient) ListDeviceMessages(request *model.ListDeviceMessagesRequest) (*model.ListDeviceMessagesResponse, error)
- func (c *IoTDAClient) ListDevices(request *model.ListDevicesRequest) (*model.ListDevicesResponse, error)
- func (c *IoTDAClient) ListProducts(request *model.ListProductsRequest) (*model.ListProductsResponse, error)
- func (c *IoTDAClient) ListProperties(request *model.ListPropertiesRequest) (*model.ListPropertiesResponse, error)
- func (c *IoTDAClient) ListResourcesByTags(request *model.ListResourcesByTagsRequest) (*model.ListResourcesByTagsResponse, error)
- func (c *IoTDAClient) ListRoutingRules(request *model.ListRoutingRulesRequest) (*model.ListRoutingRulesResponse, error)
- func (c *IoTDAClient) ListRuleActions(request *model.ListRuleActionsRequest) (*model.ListRuleActionsResponse, error)
- func (c *IoTDAClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)
- func (c *IoTDAClient) ResetDeviceSecret(request *model.ResetDeviceSecretRequest) (*model.ResetDeviceSecretResponse, error)
- func (c *IoTDAClient) ResetFingerprint(request *model.ResetFingerprintRequest) (*model.ResetFingerprintResponse, error)
- func (c *IoTDAClient) ShowApplication(request *model.ShowApplicationRequest) (*model.ShowApplicationResponse, error)
- func (c *IoTDAClient) ShowApplications(request *model.ShowApplicationsRequest) (*model.ShowApplicationsResponse, error)
- func (c *IoTDAClient) ShowAsyncDeviceCommand(request *model.ShowAsyncDeviceCommandRequest) (*model.ShowAsyncDeviceCommandResponse, error)
- func (c *IoTDAClient) ShowBatchTask(request *model.ShowBatchTaskRequest) (*model.ShowBatchTaskResponse, error)
- func (c *IoTDAClient) ShowDevice(request *model.ShowDeviceRequest) (*model.ShowDeviceResponse, error)
- func (c *IoTDAClient) ShowDeviceGroup(request *model.ShowDeviceGroupRequest) (*model.ShowDeviceGroupResponse, error)
- func (c *IoTDAClient) ShowDeviceMessage(request *model.ShowDeviceMessageRequest) (*model.ShowDeviceMessageResponse, error)
- func (c *IoTDAClient) ShowDeviceShadow(request *model.ShowDeviceShadowRequest) (*model.ShowDeviceShadowResponse, error)
- func (c *IoTDAClient) ShowDevicesInGroup(request *model.ShowDevicesInGroupRequest) (*model.ShowDevicesInGroupResponse, error)
- func (c *IoTDAClient) ShowProduct(request *model.ShowProductRequest) (*model.ShowProductResponse, error)
- func (c *IoTDAClient) ShowQueue(request *model.ShowQueueRequest) (*model.ShowQueueResponse, error)
- func (c *IoTDAClient) ShowRoutingRule(request *model.ShowRoutingRuleRequest) (*model.ShowRoutingRuleResponse, error)
- func (c *IoTDAClient) ShowRule(request *model.ShowRuleRequest) (*model.ShowRuleResponse, error)
- func (c *IoTDAClient) ShowRuleAction(request *model.ShowRuleActionRequest) (*model.ShowRuleActionResponse, error)
- func (c *IoTDAClient) TagDevice(request *model.TagDeviceRequest) (*model.TagDeviceResponse, error)
- func (c *IoTDAClient) UnfreezeDevice(request *model.UnfreezeDeviceRequest) (*model.UnfreezeDeviceResponse, error)
- func (c *IoTDAClient) UntagDevice(request *model.UntagDeviceRequest) (*model.UntagDeviceResponse, error)
- func (c *IoTDAClient) UpdateDevice(request *model.UpdateDeviceRequest) (*model.UpdateDeviceResponse, error)
- func (c *IoTDAClient) UpdateDeviceGroup(request *model.UpdateDeviceGroupRequest) (*model.UpdateDeviceGroupResponse, error)
- func (c *IoTDAClient) UpdateDeviceShadowDesiredData(request *model.UpdateDeviceShadowDesiredDataRequest) (*model.UpdateDeviceShadowDesiredDataResponse, error)
- func (c *IoTDAClient) UpdateProduct(request *model.UpdateProductRequest) (*model.UpdateProductResponse, error)
- func (c *IoTDAClient) UpdateProperties(request *model.UpdatePropertiesRequest) (*model.UpdatePropertiesResponse, error)
- func (c *IoTDAClient) UpdateRoutingRule(request *model.UpdateRoutingRuleRequest) (*model.UpdateRoutingRuleResponse, error)
- func (c *IoTDAClient) UpdateRule(request *model.UpdateRuleRequest) (*model.UpdateRuleResponse, error)
- func (c *IoTDAClient) UpdateRuleAction(request *model.UpdateRuleActionRequest) (*model.UpdateRuleActionResponse, error)
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 GenReqDefForBatchShowQueue ¶
func GenReqDefForBatchShowQueue() *def.HttpRequestDef
func GenReqDefForChangeRuleStatus ¶
func GenReqDefForChangeRuleStatus() *def.HttpRequestDef
func GenReqDefForCheckCertificate ¶
func GenReqDefForCheckCertificate() *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 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 GenReqDefForDeleteBatchTaskFile ¶
func GenReqDefForDeleteBatchTaskFile() *def.HttpRequestDef
func GenReqDefForDeleteCertificate ¶
func GenReqDefForDeleteCertificate() *def.HttpRequestDef
func GenReqDefForDeleteDevice ¶
func GenReqDefForDeleteDevice() *def.HttpRequestDef
func GenReqDefForDeleteDeviceGroup ¶
func GenReqDefForDeleteDeviceGroup() *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 GenReqDefForListDevices ¶
func GenReqDefForListDevices() *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 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 GenReqDefForShowDevicesInGroup ¶
func GenReqDefForShowDevicesInGroup() *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 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 IoTDAClientBuilder ¶
func IoTDAClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
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)
创建资源空间
资源空间对应的是物联网平台原有的应用,在物联网平台的含义与应用一致,只是变更了名称。应用服务器可以调用此接口创建资源空间。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) AddCertificate ¶
func (c *IoTDAClient) AddCertificate(request *model.AddCertificateRequest) (*model.AddCertificateResponse, error)
上传设备CA证书
应用服务器可调用此接口在物联网平台上传设备的CA证书
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) AddDevice ¶
func (c *IoTDAClient) AddDevice(request *model.AddDeviceRequest) (*model.AddDeviceResponse, error)
创建设备
应用服务器可调用此接口在物联网平台创建一个设备,仅在创建后设备才可以接入物联网平台。
- 该接口支持使用gateway_id参数指定在父设备下创建一个子设备,并且支持多级子设备,当前最大支持二级子设备。 - 该接口同时还支持对设备进行初始配置,接口会读取创建设备请求参数product_id对应的产品详情,如果产品的属性有定义默认值,则会将该属性默认值写入该设备的设备影子中。 - 用户还可以使用创建设备请求参数shadow字段为设备指定初始配置,指定后将会根据service_id和desired设置的属性值与产品中对应属性的默认值比对,如果不同,则将以shadow字段中设置的属性值为准写入到设备影子中。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) AddDeviceGroup ¶
func (c *IoTDAClient) AddDeviceGroup(request *model.AddDeviceGroupRequest) (*model.AddDeviceGroupResponse, error)
添加设备组
应用服务器可调用此接口新建设备组,一个华为云账号下最多可有1,000个分组,包括父分组和子分组。设备组的最大层级关系不超过5层,即群组形成的关系树最大深度不超过5。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) AddQueue ¶
func (c *IoTDAClient) AddQueue(request *model.AddQueueRequest) (*model.AddQueueResponse, error)
创建AMQP队列
应用服务器可调用此接口在物联网平台创建一个AMQP队列。每个租户只能创建100个队列,若超过规格,则创建失败,若队列名称与已有的队列名称相同,则创建失败。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) BatchShowQueue ¶
func (c *IoTDAClient) BatchShowQueue(request *model.BatchShowQueueRequest) (*model.BatchShowQueueResponse, error)
查询AMQP列表
应用服务器可调用此接口查询物联网平台中的AMQP队列信息列表。可通过队列名称作模糊查询,支持分页。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ChangeRuleStatus ¶
func (c *IoTDAClient) ChangeRuleStatus(request *model.ChangeRuleStatusRequest) (*model.ChangeRuleStatusResponse, error)
修改规则状态
应用服务器可调用此接口修改物联网平台中指定规则的状态,激活或者去激活规则。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CheckCertificate ¶
func (c *IoTDAClient) CheckCertificate(request *model.CheckCertificateRequest) (*model.CheckCertificateResponse, error)
验证设备CA证书
应用服务器可调用此接口在物联网平台验证设备的CA证书,目的是为了验证用户持有设备CA证书的私钥
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateAccessCode ¶
func (c *IoTDAClient) CreateAccessCode(request *model.CreateAccessCodeRequest) (*model.CreateAccessCodeResponse, error)
生成接入凭证
接入凭证是用于客户端使用AMQP等协议与平台建链的一个认证凭据。只保留一条记录,如果重复调用只会重置接入凭证,使得之前的失效。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateAsyncCommand ¶
func (c *IoTDAClient) CreateAsyncCommand(request *model.CreateAsyncCommandRequest) (*model.CreateAsyncCommandResponse, error)
下发异步设备命令
设备的产品模型中定义了物联网平台可向设备下发的命令,应用服务器可调用此接口向指定设备下发异步命令,以实现对设备的控制。平台负责将命令发送给设备,并将设备执行命令结果异步通知应用服务器。 命令执行结果支持灵活的数据流转,应用服务器通过调用物联网平台的创建规则触发条件(Resource:device.command.status,Event:update)、创建规则动作并激活规则后,当命令状态变更时,物联网平台会根据规则将结果发送到规则指定的服务器,如用户自定义的HTTP服务器,AMQP服务器,以及华为云的其他储存服务器等, 详情参考[设备命令状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01212.html)。注意:此接口适用于NB设备异步命令下发,暂不支持其他协议类型设备命令下发。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateBatchTask ¶
func (c *IoTDAClient) CreateBatchTask(request *model.CreateBatchTaskRequest) (*model.CreateBatchTaskResponse, error)
创建批量任务
应用服务器可调用此接口为创建批量处理任务,对多个设备进行批量操作。当前支持批量软固件升级、批量创建设备、批量删除设备、批量冻结设备、批量解冻设备、批量创建命令、批量创建消息任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateCommand ¶
func (c *IoTDAClient) CreateCommand(request *model.CreateCommandRequest) (*model.CreateCommandResponse, error)
下发设备命令
设备的产品模型中定义了物联网平台可向设备下发的命令,应用服务器可调用此接口向指定设备下发命令,以实现对设备的同步控制。平台负责将命令以同步方式发送给设备,并将设备执行命令结果同步返回, 如果设备没有响应,平台会返回给应用服务器超时,平台超时间是20秒。注意:此接口适用于MQTT设备同步命令下发,暂不支持NB-IoT设备命令下发。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateMessage ¶
func (c *IoTDAClient) CreateMessage(request *model.CreateMessageRequest) (*model.CreateMessageResponse, error)
下发设备消息
物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。注意:此接口适用于MQTT设备消息下发,暂不支持其他协议接入的设备消息下发。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateOrDeleteDeviceInGroup ¶
func (c *IoTDAClient) CreateOrDeleteDeviceInGroup(request *model.CreateOrDeleteDeviceInGroupRequest) (*model.CreateOrDeleteDeviceInGroupResponse, error)
管理设备组中的设备
应用服务器可调用此接口管理设备组中的设备。单个设备组内最多添加20,000个设备,一个设备最多可以被添加到10个设备组中。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateProduct ¶
func (c *IoTDAClient) CreateProduct(request *model.CreateProductRequest) (*model.CreateProductResponse, error)
创建产品
应用服务器可调用此接口创建产品。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateRoutingRule ¶
func (c *IoTDAClient) CreateRoutingRule(request *model.CreateRoutingRuleRequest) (*model.CreateRoutingRuleResponse, error)
创建规则触发条件
应用服务器可调用此接口在物联网平台创建一条规则触发条件。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateRule ¶
func (c *IoTDAClient) CreateRule(request *model.CreateRuleRequest) (*model.CreateRuleResponse, error)
创建规则
应用服务器可调用此接口在物联网平台创建一条规则。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) CreateRuleAction ¶
func (c *IoTDAClient) CreateRuleAction(request *model.CreateRuleActionRequest) (*model.CreateRuleActionResponse, error)
创建规则动作
应用服务器可调用此接口在物联网平台创建一条规则动作。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteApplication ¶
func (c *IoTDAClient) DeleteApplication(request *model.DeleteApplicationRequest) (*model.DeleteApplicationResponse, error)
删除资源空间
删除指定资源空间。删除资源空间属于高危操作,删除资源空间后,该空间下的产品、设备等资源将不可用,请谨慎操作!
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteBatchTaskFile ¶
func (c *IoTDAClient) DeleteBatchTaskFile(request *model.DeleteBatchTaskFileRequest) (*model.DeleteBatchTaskFileResponse, error)
删除批量任务文件
应用服务器可调用此接口删除批量任务文件。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteCertificate ¶
func (c *IoTDAClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error)
删除设备CA证书
应用服务器可调用此接口在物联网平台删除设备的CA证书
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteDevice ¶
func (c *IoTDAClient) DeleteDevice(request *model.DeleteDeviceRequest) (*model.DeleteDeviceResponse, error)
删除设备
应用服务器可调用此接口在物联网平台上删除指定设备。若设备下连接了非直连设备,则必须把设备下的非直连设备都删除后,才能删除该设备。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteDeviceGroup ¶
func (c *IoTDAClient) DeleteDeviceGroup(request *model.DeleteDeviceGroupRequest) (*model.DeleteDeviceGroupResponse, error)
删除设备组
应用服务器可调用此接口删除指定设备组,如果该设备组存在子设备组或者该设备组中存在设备,必须先删除子设备组并将设备从该设备组移除,才能删除该设备组。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteProduct ¶
func (c *IoTDAClient) DeleteProduct(request *model.DeleteProductRequest) (*model.DeleteProductResponse, error)
删除产品
应用服务器可调用此接口删除已导入物联网平台的指定产品模型。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteQueue ¶
func (c *IoTDAClient) DeleteQueue(request *model.DeleteQueueRequest) (*model.DeleteQueueResponse, error)
删除AMQP队列
应用服务器可调用此接口在物联网平台上删除指定AMQP队列。若当前队列正在使用,则会删除失败。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteRoutingRule ¶
func (c *IoTDAClient) DeleteRoutingRule(request *model.DeleteRoutingRuleRequest) (*model.DeleteRoutingRuleResponse, error)
删除规则触发条件
应用服务器可调用此接口删除物联网平台中的指定规则条件。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteRule ¶
func (c *IoTDAClient) DeleteRule(request *model.DeleteRuleRequest) (*model.DeleteRuleResponse, error)
删除规则
应用服务器可调用此接口删除物联网平台中的指定规则。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) DeleteRuleAction ¶
func (c *IoTDAClient) DeleteRuleAction(request *model.DeleteRuleActionRequest) (*model.DeleteRuleActionResponse, error)
删除规则动作
应用服务器可调用此接口删除物联网平台中的指定规则动作。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) FreezeDevice ¶
func (c *IoTDAClient) FreezeDevice(request *model.FreezeDeviceRequest) (*model.FreezeDeviceResponse, error)
冻结设备
应用服务器可调用此接口冻结设备,设备冻结后不能再连接上线,可以通过解冻设备接口解除设备冻结。注意,当前仅支持冻结与平台直连的设备。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListBatchTaskFiles ¶
func (c *IoTDAClient) ListBatchTaskFiles(request *model.ListBatchTaskFilesRequest) (*model.ListBatchTaskFilesResponse, error)
查询批量任务文件列表
应用服务器可调用此接口查询批量任务文件列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListBatchTasks ¶
func (c *IoTDAClient) ListBatchTasks(request *model.ListBatchTasksRequest) (*model.ListBatchTasksResponse, error)
查询批量任务列表
应用服务器可调用此接口查询物联网平台中批量任务列表,每一个任务又包括具体的任务内容、任务状态、任务完成情况统计等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListCertificates ¶
func (c *IoTDAClient) ListCertificates(request *model.ListCertificatesRequest) (*model.ListCertificatesResponse, error)
获取设备CA证书列表
应用服务器可调用此接口在物联网平台获取设备的CA证书列表
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListDeviceGroups ¶
func (c *IoTDAClient) ListDeviceGroups(request *model.ListDeviceGroupsRequest) (*model.ListDeviceGroupsResponse, error)
查询设备组列表
应用服务器可调用此接口查询物联网平台中的设备组信息列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListDeviceMessages ¶
func (c *IoTDAClient) ListDeviceMessages(request *model.ListDeviceMessagesRequest) (*model.ListDeviceMessagesResponse, error)
查询设备消息
应用服务器可调用此接口查询平台下发给设备的消息,平台为每个设备默认最多保存20条消息,超过20条后, 后续的消息会替换下发最早的消息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListDevices ¶
func (c *IoTDAClient) ListDevices(request *model.ListDevicesRequest) (*model.ListDevicesResponse, error)
查询设备列表
应用服务器可调用此接口查询物联网平台中的设备信息列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListProducts ¶
func (c *IoTDAClient) ListProducts(request *model.ListProductsRequest) (*model.ListProductsResponse, error)
查询产品列表
应用服务器可调用此接口查询已导入物联网平台的产品模型信息列表,了解产品模型的概要信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListProperties ¶
func (c *IoTDAClient) ListProperties(request *model.ListPropertiesRequest) (*model.ListPropertiesResponse, error)
查询设备属性
设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向设备发送指令用以查询设备的实时属性, 并由设备将属性查询的结果同步返回给应用服务器。注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListResourcesByTags ¶
func (c *IoTDAClient) ListResourcesByTags(request *model.ListResourcesByTagsRequest) (*model.ListResourcesByTagsResponse, error)
按标签查询资源
应用服务器可调用此接口查询绑定了指定标签的资源。当前支持标签的资源有Device(设备)。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListRoutingRules ¶
func (c *IoTDAClient) ListRoutingRules(request *model.ListRoutingRulesRequest) (*model.ListRoutingRulesResponse, error)
查询规则条件列表
应用服务器可调用此接口查询物联网平台中设置的规则条件列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListRuleActions ¶
func (c *IoTDAClient) ListRuleActions(request *model.ListRuleActionsRequest) (*model.ListRuleActionsResponse, error)
查询规则动作列表
应用服务器可调用此接口查询物联网平台中设置的规则动作列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ListRules ¶
func (c *IoTDAClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)
查询规则列表
应用服务器可调用此接口查询物联网平台中设置的规则列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ResetDeviceSecret ¶
func (c *IoTDAClient) ResetDeviceSecret(request *model.ResetDeviceSecretRequest) (*model.ResetDeviceSecretResponse, error)
重置设备密钥
应用服务器可调用此接口重置设备密钥,携带指定密钥时平台将设备密钥重置为指定的密钥,不携带密钥时平台将自动生成一个新的随机密钥返回。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ResetFingerprint ¶ added in v0.0.81
func (c *IoTDAClient) ResetFingerprint(request *model.ResetFingerprintRequest) (*model.ResetFingerprintResponse, error)
重置设备指纹
应用服务器可调用此接口重置设备指纹。携带指定设备指纹时将之重置为指定值;不携带时将之置空,后续设备第一次接入时,该设备指纹的值将设置为第一次接入时的证书指纹。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowApplication ¶
func (c *IoTDAClient) ShowApplication(request *model.ShowApplicationRequest) (*model.ShowApplicationResponse, error)
查询资源空间
资源空间对应的是物联网平台原有的应用,在物联网平台的含义与应用一致,只是变更了名称。应用服务器可以调用此接口查询指定资源空间详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowApplications ¶
func (c *IoTDAClient) ShowApplications(request *model.ShowApplicationsRequest) (*model.ShowApplicationsResponse, error)
查询资源空间列表
资源空间对应的是物联网平台原有的应用,在物联网平台的含义与应用一致,只是变更了名称。应用服务器可以调用此接口查询资源空间列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowAsyncDeviceCommand ¶
func (c *IoTDAClient) ShowAsyncDeviceCommand(request *model.ShowAsyncDeviceCommandRequest) (*model.ShowAsyncDeviceCommandResponse, error)
查询指定id的命令
物联网平台可查询指定id的命令。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowBatchTask ¶
func (c *IoTDAClient) ShowBatchTask(request *model.ShowBatchTaskRequest) (*model.ShowBatchTaskResponse, error)
查询批量任务
应用服务器可调用此接口查询物联网平台中指定批量任务的信息,包括任务内容、任务状态、任务完成情况统计以及子任务列表等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowDevice ¶
func (c *IoTDAClient) ShowDevice(request *model.ShowDeviceRequest) (*model.ShowDeviceResponse, error)
查询设备
应用服务器可调用此接口查询物联网平台中指定设备的详细信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowDeviceGroup ¶
func (c *IoTDAClient) ShowDeviceGroup(request *model.ShowDeviceGroupRequest) (*model.ShowDeviceGroupResponse, error)
查询设备组
应用服务器可调用此接口查询指定设备组详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowDeviceMessage ¶
func (c *IoTDAClient) ShowDeviceMessage(request *model.ShowDeviceMessageRequest) (*model.ShowDeviceMessageResponse, error)
查询指定消息id的消息
应用服务器可调用此接口查询平台下发给设备的指定消息id的消息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowDeviceShadow ¶
func (c *IoTDAClient) ShowDeviceShadow(request *model.ShowDeviceShadowRequest) (*model.ShowDeviceShadowResponse, error)
查询设备影子数据
应用服务器可调用此接口查询指定设备的设备影子信息,包括对设备的期望属性信息(desired区)和设备最新上报的属性信息(reported区)。
设备影子介绍: 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - 每个设备有且只有一个设备影子,由设备ID唯一标识 - 设备影子仅保存最近一次设备的上报数据和预期数据 - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发
限制: 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowDevicesInGroup ¶
func (c *IoTDAClient) ShowDevicesInGroup(request *model.ShowDevicesInGroupRequest) (*model.ShowDevicesInGroupResponse, error)
查询设备组设备列表
应用服务器可调用此接口查询指定设备组下的设备列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowProduct ¶
func (c *IoTDAClient) ShowProduct(request *model.ShowProductRequest) (*model.ShowProductResponse, error)
查询产品
应用服务器可调用此接口查询已导入物联网平台的指定产品模型详细信息,包括产品模型的服务、属性、命令等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowQueue ¶
func (c *IoTDAClient) ShowQueue(request *model.ShowQueueRequest) (*model.ShowQueueResponse, error)
查询单个AMQP队列
应用服务器可调用此接口查询物联网平台中指定队列的详细信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowRoutingRule ¶
func (c *IoTDAClient) ShowRoutingRule(request *model.ShowRoutingRuleRequest) (*model.ShowRoutingRuleResponse, error)
查询规则条件
应用服务器可调用此接口查询物联网平台中指定规则条件的配置信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowRule ¶
func (c *IoTDAClient) ShowRule(request *model.ShowRuleRequest) (*model.ShowRuleResponse, error)
查询规则
应用服务器可调用此接口查询物联网平台中指定规则的配置信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) ShowRuleAction ¶
func (c *IoTDAClient) ShowRuleAction(request *model.ShowRuleActionRequest) (*model.ShowRuleActionResponse, error)
查询规则动作
应用服务器可调用此接口查询物联网平台中指定规则动作的配置信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) TagDevice ¶
func (c *IoTDAClient) TagDevice(request *model.TagDeviceRequest) (*model.TagDeviceResponse, error)
绑定标签
应用服务器可调用此接口为指定资源绑定标签。当前支持标签的资源有Device(设备)。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UnfreezeDevice ¶
func (c *IoTDAClient) UnfreezeDevice(request *model.UnfreezeDeviceRequest) (*model.UnfreezeDeviceResponse, error)
解冻设备
应用服务器可调用此接口解冻设备,解除冻结后,设备可以连接上线。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UntagDevice ¶
func (c *IoTDAClient) UntagDevice(request *model.UntagDeviceRequest) (*model.UntagDeviceResponse, error)
解绑标签
应用服务器可调用此接口为指定资源解绑标签。当前支持标签的资源有Device(设备)。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateDevice ¶
func (c *IoTDAClient) UpdateDevice(request *model.UpdateDeviceRequest) (*model.UpdateDeviceResponse, error)
修改设备
应用服务器可调用此接口修改物联网平台中指定设备的基本信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateDeviceGroup ¶
func (c *IoTDAClient) UpdateDeviceGroup(request *model.UpdateDeviceGroupRequest) (*model.UpdateDeviceGroupResponse, error)
修改设备组
应用服务器可调用此接口修改物联网平台中指定设备组。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateDeviceShadowDesiredData ¶
func (c *IoTDAClient) UpdateDeviceShadowDesiredData(request *model.UpdateDeviceShadowDesiredDataRequest) (*model.UpdateDeviceShadowDesiredDataResponse, error)
配置设备影子预期数据
应用服务器可调用此接口配置设备影子的预期属性(desired区),当设备上线或者设备上报属性时把属性下发给设备。
设备影子介绍: 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - 每个设备有且只有一个设备影子,由设备ID唯一标识 - 设备影子仅保存最近一次设备的上报数据和预期数据 - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发
限制: 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateProduct ¶
func (c *IoTDAClient) UpdateProduct(request *model.UpdateProductRequest) (*model.UpdateProductResponse, error)
修改产品
应用服务器可调用此接口修改已导入物联网平台的指定产品模型,包括产品模型的服务、属性、命令等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateProperties ¶
func (c *IoTDAClient) UpdateProperties(request *model.UpdatePropertiesRequest) (*model.UpdatePropertiesResponse, error)
修改设备属性
设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向指定设备下属性。平台负责将属性以同步方式发送给设备,并将设备执行属性结果同步返回。注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateRoutingRule ¶
func (c *IoTDAClient) UpdateRoutingRule(request *model.UpdateRoutingRuleRequest) (*model.UpdateRoutingRuleResponse, error)
修改规则触发条件
应用服务器可调用此接口修改物联网平台中指定规则条件的配置参数。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateRule ¶
func (c *IoTDAClient) UpdateRule(request *model.UpdateRuleRequest) (*model.UpdateRuleResponse, error)
修改规则
应用服务器可调用此接口修改物联网平台中指定规则的配置。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*IoTDAClient) UpdateRuleAction ¶
func (c *IoTDAClient) UpdateRuleAction(request *model.UpdateRuleActionRequest) (*model.UpdateRuleActionResponse, error)
修改规则动作
应用服务器可调用此接口修改物联网平台中指定规则动作的配置。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.