设备接入 IOTDA-创建自定义鉴权:请求示例

时间:2024-06-28 09:24:33

请求示例

创建自定义鉴权

POST https://{endpoint}/v5/iot/{project_id}/device-authorizers

{
  "authorizer_name" : "myTest",
  "func_urn" : "urn:fss:cn-north-5:d92d9c5eb8e347b5bb31ecfe5bc0c4e1:function:default:mqtt_auth:latest",
  "signing_enable" : true,
  "signing_token" : "string",
  "signing_public_key" : "string",
  "default_authorizer" : false,
  "status" : "ACTIVE",
  "cache_enable" : true
}
support.huaweicloud.com/api-iothub/CreateDeviceAuthorizer.html