Configures a driver that is bound to an edge instance.

Limits

A single Alibaba Cloud account can run a maximum of 10 queries per second (QPS).

Note RAM users share the quota of the Alibaba Cloud account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetEdgeInstanceDriverConfigs

The operation that you want to perform. Set the value to SetEdgeInstanceDriverConfigs.

DriverId String Yes 021d154d2a2f4dd7a489773d9e04****

The ID of the driver.

InstanceId String Yes F3APY0tPLhmgGtx0****

The ID of the edge instance.

IotInstanceId String No iot_instc_pu****_c*-v64********

The ID of the Internet of Things (IoT) service instance. This parameter is not required for public instances. However, this parameter is required for the instances that you have purchased.

Configs.N.Format String No JSON

The format of the configuration file. Valid values: KV, JSON, and FILE.

Configs.N.Content String No {"test":123}

The information of the configuration. You can specify the following values:

  • The configuration content.
  • The Object Storage Service (OSS) path of the configuration file.
Configs.N.Key String No key1

The key of the configuration. If multiple configurations are available, keywords can be used to identify the configurations.

In addition to the preceding exclusive request parameters, you must specify common request parameters when calling this API operation. For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String 252C7754-F6A2-454B-9DE2-382A97FC0C3F

The ID of the request.

Success Boolean true

Indicates whether the call was successful. true: indicates that the call was successful. false: indicates that the call failed.

Code String Success

The error code. Success indicates that the call was successful. Other values indicate that specific errors occurred. For more information, see Error codes.

ErrorMessage String request parameter error

The error message returned if the call failed.

Examples

Sample requests

http(s)://iot.cn-shanghai.aliyuncs.com/? Action=SetEdgeInstanceDriverConfigs
&Configs.1.Content={"test":123}
&DriverId=021d154d2a2f4dd7a489773d9e04****
&InstanceId=F3APY0tPLhmgGtx0****
&Configs.1.Format=JSON
&<Common request parameters>

Sample success responses

XML format

<SetEdgeInstanceDriverConfigsResponse>
      <RequestId>252C7754-F6A2-454B-9DE2-382A97FC0C3F</RequestId>
      <Code>Success</Code>
      <Success>true</Success>
</SetEdgeInstanceDriverConfigsResponse>

JSON format

{
 "RequestId": "252C7754-F6A2-454B-9DE2-382A97FC0C3F",
 "Code": "Success",
 "Success": true
}

Error codes

For a list of error codes, visit the API Error Center.