检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
OBS Bucket Select the bucket where data is to be stored. If no OBS bucket is available, create one on the OBS console. Figure 3 Creating a forwarding target - to OBS in JSON Click Enable Rule to activate the configured data forwarding rule.
Data Forwarding to Huawei Cloud Services Forwarding Data to DIS Forwarding Data to GeminiDB Influx Forwarding Data to DMS for Kafka for Storage Forwarding Data to FunctionGraph Forwarding Data to MySQL for Storage Forwarding Device Data to OBS for Long-Term Storage Parent topic: Rules
Obtain OTA Upgrade Package Details Function This API is used to query details about an upgrade package associated with an OBS object. To use this API, grant IoTDA instances the permission to access OBS and the KMS Administrator permissions.
Purchasing a DIS Stream (Example: Forwarding Data to DIS and Dumping Data to OBS) Log in to Huawei Cloud and access the Object Storage Service (OBS) console. Click Create Bucket, configure the parameters as required, and click Create Now.
Value range: Result codes definition: 0: successful upload 1: upload failure status_code Optional Integer Explanation: Status code returned by OBS after a file upload. status_description Optional String Explanation: Status description returned by OBS after a file upload.
Optional String Explanation: Name of the OBS object to be uploaded, which is the same as the value of file_name. expire Optional Integer Explanation: URL expiration time, in seconds. file_attributes Optional Object Explanation: File attributes, which are objects in JSON format.
Query the OTA Upgrade Package List Function This API is used to query upgrade packages associated with OBS objects. To use this API, grant IoTDA instances the permission to access OBS and the KMS Administrator permissions.
You can either use an OBS file as an upgrade package or upload a local upgrade package. The size of the OBS file cannot exceed 1 GB. You will be billed for storing and downloading the OBS file.
UTC time format: yyyyMMdd'T'HHmmss'Z'. paras Mandatory Object Explanation: Event parameters in JSON format. paras structure Parameter Mandatory/Optional Type Description url Mandatory String Explanation: File download URL. bucket_name Optional String Explanation: OBS bucket name.
Delete an OTA Upgrade Package Function This API is used to delete the upgrade package information associated with an OBS object. The OBS object will not be deleted. To use this API, grant IoTDA instances the permission to access OBS and the KMS Administrator permissions.
Value range: Result codes definition: 0: successful download 1: download failure status_code Optional Integer Explanation: Status code returned by OBS after a file download. status_description Optional String Explanation: Status description returned by OBS after a file download.
Table 9 ObsForwarding Parameter Type Description region_name String Parameter description: region where the OBS service is deployed. project_id String Parameter description: ID of the project to which the OBS service belongs. bucket_name String Parameter description: OBS bucket name
Create an OTA Upgrade Package Function This API is used to create an OBS object associated with an upgrade package. To use this API, grant IoTDA instances the permission to access OBS and the KMS Administrator permissions.
Table 20 ObsForwarding Parameter Type Description region_name String Parameter description: region where the OBS service is deployed. project_id String Parameter description: ID of the project to which the OBS service belongs. bucket_name String Parameter description: OBS bucket name
Table 7 ObsForwarding Parameter Type Description region_name String Parameter description: region where the OBS service is deployed. project_id String Parameter description: ID of the project to which the OBS service belongs. bucket_name String Parameter description: OBS bucket name
Table 20 ObsForwarding Parameter Type Description region_name String Parameter description: region where the OBS service is deployed. project_id String Parameter description: ID of the project to which the OBS service belongs. bucket_name String Parameter description: OBS bucket name
(Optional) Create a bucket on the OBS console if no bucket is available. Log in to the OBS console. Click Create Bucket in the upper right corner to create a bucket. If you use OBS to manage files, you will be charged by OBS. IoTDA does not charge you for file storage.
However, utilizing OBS may incur charges.
Table 1 Agency authorization scenarios Scenario Authorization Uploading a file obs:object:PutObject obs:bucket:HeadBucket obs:object:GetObject obs:bucket:GetBucketCustomDomainConfiguration KMS Administrator (encryption scenario) Upgrading software/firmware obs:object:GetObject KMS
If no OBS bucket is available, create one on the OBS console. Custom Directory: Custom directory to store files that will be dumped to OBS. Separate different directory levels by slashes (/).