调用GetRentedJoinPermission获取当前阿里云账号租用的入网凭证信息(专用凭证或泛在凭证)。
限制说明
单阿里云账号调用该接口的每秒请求数(QPS)最大限制为5。
RAM用户共享阿里云账号配额。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetRentedJoinPermission |
系统规定参数。取值:GetRentedJoinPermission。 |
JoinPermissionId | String | 是 | 123 |
要获取的入网凭证的ID,可调用ListRentedJoinPermissions接口查询获取。 |
调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见公共参数文档。
返回数据
示例
请求示例
http(s)://linkwan.cn-shanghai.aliyuncs.com/?Action=GetRentedJoinPermission
&JoinPermissionId=123
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>89EF6CAA-958F-F32C-BE45-FE003C6DE097</RequestId>
<Data>
<NodesCnt>10</NodesCnt>
<BoundNodeGroupId>123</BoundNodeGroupId>
<RxMonthSum>0</RxMonthSum>
<ClassMode>A</ClassMode>
<RxDailySum>0</RxDailySum>
<TxDailySum>0</TxDailySum>
<Enabled>true</Enabled>
<TxMonthSum>0</TxMonthSum>
<RxDelay>1</RxDelay>
<BoundNodeGroupName>123</BoundNodeGroupName>
<Type>LOCAL</Type>
<DataRate>2</DataRate>
<CreateMillis>1514736000000</CreateMillis>
<JoinPermissionId>123</JoinPermissionId>
<JoinPermissionName>凭证1</JoinPermissionName>
<FreqBandPlanGroupId>102</FreqBandPlanGroupId>
<JoinEui>0000000000000000</JoinEui>
</Data>
<Success>true</Success>
JSON
格式
{
"RequestId": "89EF6CAA-958F-F32C-BE45-FE003C6DE097",
"Data": {
"NodesCnt": 10,
"BoundNodeGroupId": 123,
"RxMonthSum": 0,
"ClassMode": "A",
"RxDailySum": 0,
"TxDailySum": 0,
"Enabled": true,
"TxMonthSum": 0,
"RxDelay": 1,
"BoundNodeGroupName": 123,
"Type": "LOCAL",
"DataRate": 2,
"CreateMillis": 1514736000000,
"JoinPermissionId": 123,
"JoinPermissionName": "凭证1",
"FreqBandPlanGroupId": 102,
"JoinEui": 0
},
"Success": true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ForbiddenByRam | User not authorized to operate on the specified resource, or this API does not support RAM. | 用户没有执行该操作所需要的RAM权限。 |
400 | ForbiddenByRiskControl | This operation cannot be performed because of security risks. | 存在安全风险,无法执行该操作 |
400 | NonExistent | The specified resource does not exist. | 要操作的资源不存在。 |
400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 内部错误。 |
400 | NotResourceOwner | You are not authorized to use this resource. | 无权访问此资源 |
访问错误中心查看更多错误码。