Create Edge Configuration

Create the configuration of the connection.

Request Format

POST https://{apigw-address}/edge-service/v2.1/config?action=create

Request Parameters (URI)

Name

Location (Path/Query)

Required or not

Data type

Description

orgId

Query

Yes

String

Organization ID which the asset belongs to. How to get orgId>>

Request parameters (Body)

Name

Data type

Required or not

Description

gatewayAssetId

True

String

Asset ID of the gateway

assetIds

True

Array

Asset ID array of the sub-device

Response Parameters

Name

Data type

Description

data

String

The serial number of EnOS Edge

Error

Code

Description

400

No gateway asset

Sample

Request Sample

POST https://{apigw-address}/edge-service/v2.1/config?action=create
requestBody:
{
    "gatewayAssetId":"gatewayasset1",
    "assetIds":["asset1","asset2"]
}

Return Sample

{
    "code":0,
    "msg":"OK",
    "requestId":"522d0269-445d-4f13-be04-1424e0e2893e",
    "data":"a26de22d-8615-11ea-b855-16fbaaa98b6b"
}