Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

IoTDB Permissions

Updated on 2024-11-29 GMT+08:00

MRS supports users, user groups, and roles. Permissions must be assigned to roles and then roles are bound to users or user groups. Users can obtain permissions only by binding a role or joining a group that is bound with a role.

NOTE:

In security mode, you need to manage IoTDB permissions and add the created user to the iotdbgroup user group. In normal mode, IoTDB permission management is not required.

IoTDB Permission List

The Name column in Table 1 lists the permissions supported by open-source IoTDB. If an MRS user needs to use corresponding permissions to perform operations, grant the permissions to the user on Manager by referring to the Required Permission column in Table 1. For details, see Creating an IoTDB Role.

Table 1 IoTDB permissions

Name

Description

Required Permission

Example

CREATE_DATABASE

Used for creating a database, including setting permissions for the database and setting or canceling its time to live (TTL).

Create databases

Eg1: create database root.ln;

Example 2: set ttl to root.ln 3600000;

Example 3: unset ttl to root.ln;

CREATE_TIMESERIES

Used for creating a time series.

Create

Example 1: Creating a time series

create timeseries root.ln.wf02.status with datatype=BOOLEAN,encoding=PLAIN;

Example 2: Creating an aligned time series

create aligned timeseries root.ln.device1(latitude FLOAT encoding=PLAIN compressor=SNAPPY, longitude FLOAT encoding=PLAIN compressor=SNAPPY);

INSERT_TIMESERIES

Used for inserting data.

Write

Example 1: insert into root.ln.wf02(timestamp,status) values(1,true);

Example 2: insert into root.sg1.d1(time, s1, s2) aligned values(1, 1, 1);

ALTER_TIMESERIES

Used for modifying a time series, and adding attributes and tags.

Alter

Example 1: alter timeseries root.turbine.d1.s1 ADD TAGS tag3=v3, tag4=v4;

Example 2: ALTER timeseries root.turbine.d1.s1 UPSERT ALIAS=newAlias TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4);

READ_TIMESERIES

Used for querying data.

Read

Example 1: show storage group;

Example 2: show child paths root.ln, show child nodes root.ln;

Example 3: show devices;

Example 4: show timeseries root.**;

Example 5: show all ttl;

Example 6: Querying data

select * from root.ln.**;

Example 7: Querying performance tracing

tracing select * from root.**;

Example 8: Querying the UDF

select example(*) from root.sg.d1;

Example 9: Querying statistics

count devices;

DELETE_TIMESERIES

Used for deleting data or time series.

Delete

Example 1: Deleting a time series

delete timeseries root.ln.wf01.wt01.status;

Example 2: Deleting data

delete from root.ln.wf02.wt02.status where time < 10;

DELETE_DATABASE

Used for deleting databases.

IoTDB Admin Privilege

Eg: delete database root.ln;

CREATE_FUNCTION

Used for registering a UDF.

IoTDB Admin Privilege

Example: create function example AS 'org.apache.iotdb.udf.UDTFExample';

DROP_FUNCTION

Used for dropping a UDF.

IoTDB Admin Privilege

Example: drop function example;

UPDATE_TEMPLATE

Used for creating, deleting, and modifying metadata templates.

IoTDB Admin Privilege

Example 1: create schema template t1(s1 int32);

READ_TEMPLATE

Used for viewing all metadata templates and metadata template content.

IoTDB Admin Privilege

Example 1: show schema templates;

Example 2: show nodes in template t1;

APPLY_TEMPLATE

Used for attaching, detaching, and activating a metadata template.

IoTDB Admin Privilege

Example 1: set schema template t1 to root.sg.d;

Example 2: create timeseries of schema template on root.sg.d;

READ_TEMPLATE_APPLICATION

Used for viewing the path for attaching or activating the metadata template.

IoTDB Admin Privilege

Example 1: show paths set schema template t1;

Example 2: show paths using schema template t1;

FLUSH_DATA

Used for running the flush command to write the memory data to the disk.

IoTDB administrator privilege

Example: flush

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback