Last Updated on : 2023-06-15 05:58:12
Add an access control rule, including basic information such as name and passing time.
POST: /v1.0/iot-02/access-controls
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
access_control_name | String | true | The name of a specified access control device, with up to 128 characters. | |
user_limit | Boolean | false | Specifies whether to restrict the users' access control permission. Valid values:
| |
time_limit | Boolean | false | Specifies whether there is a time limit. Valid values:
| |
time_ranges | List | false | The accessible period. Maximum value: 5 . |
Parameter name | Type | Description |
---|---|---|
result | String | The ID of a specified access control rule. |
POST: /v1.0/iot-02/access-controls
{
"access_control_name": "Access Control Rules",
"time_limit": true,
"user_limit": true,
"time_ranges": [
"06:00-9:00",
"10:00-19:00",
"10:00-19:00",
"10:00-19:00"
]
}
{
"result": "146304353014959****",
"t": 1637651734297,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback