Remove sub-devices from the gateway (remove the topological relationship).
This API is available in EnOS 2.1.0 and above.
Operation Permissions
Before invoking this API, ensure that the service account has been authorized the policy that includes the following service(s) and action permission(s). For how to authorize the service account, see Managing Service Accounts.
Required Service |
Required Operation Permission |
Device Management Service |
Full Access |
Request Parameters (Body)
Name |
Mandatory/Optional |
Data Type |
Description |
gateway |
Mandatory |
DeviceIdentfier Struct |
Information of the gateway to remove the sub-device from. For details, see DeviceIdentfier Struct. |
subDevices |
Mandatory |
Array of DeviceIdentfier Structs |
The list of the sub-devices to be removed from the specified getaway. For details, see DeviceIdentfier Struct. |
DeviceIdentifier Struct
Note: Use either the (assetId
) or (productKey
+ deviceKey
) for the following.
Name |
Data Type |
Description |
assetId |
String |
The asset ID. How to get assetId>> |
productKey |
String |
The product key. To be used with deviceKey . |
deviceKey |
String |
The device key. To be used with productKey . |