- 最新动态
- 产品介绍
- 快速入门
- 用户指南
- 质押指南
-
开发指南
-
以太坊Ethereum节点引擎
- 以太坊Ethereum介绍
- JSON-RPC API请求示例
- 应用程序开发介绍
- 智能合约开发介绍
-
以太坊API列表
- 专享版
-
共享版
- eth_blocknumber
- eth_getBlockByNumber
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
- net_version
- net_listening
- 波场Tron节点引擎
-
Polygon PoS
- Polygon PoS介绍
- HTTP请求示例
- WebSocket请求示例
-
Polygon PoS API列表
- 专享版
-
共享版
-
Ethereum JSON-RPC API
- eth_blocknumber
- eth_getBlockByNumber
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getTransactionReceiptsByBlock
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_getRootHash
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_accounts
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
- Polygon JSON-RPC API
-
Ethereum JSON-RPC API
-
Arbitrum
- Arbitrum介绍
- HTTP请求示例
- WebSocket请求示例
-
Arbitrum API列表
-
共享版
-
Ethereum JSON-RPC API
- eth_blocknumber
- eth_getBlockByNumber
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_syncing
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_accounts
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
-
Ethereum JSON-RPC API
-
共享版
-
BNB Smart Chain
- BNB Smart Chain介绍
- HTTP请求示例
- WebSocket请求示例
-
BNB Smart Chain API列表
- 专享版
-
共享版
- eth_blocknumber
- eth_getBlockByNumber
- eth_hashrate
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_syncing
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_mining
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_accounts
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
- txpool_status
- net_listening
- net_version
- 批量请求
-
以太坊Ethereum节点引擎
- API参考
- 常见问题
- 通用参考
链接复制成功!
CBC回调, 更新节点资源状态
功能介绍
CBC调用, 更新资源状态, 包括冻结, 解冻等
URI
PUT /v1/node-provider/status
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
scene |
否 |
String |
云服务状态的业务场景(ARREAR(默认值):欠费场景;POLICE:公安冻结场景;ILLEGAL:违规冻结场景) 最小长度:1 最大长度:32 |
effect |
否 |
Integer |
在冻结/解冻等操作下,云服务需要达到的主要效果。(1:实现/去除 冻结可释放; 2:实现/去除 冻结不可释放;3:实现/去除 冻结后不可续费 ) 最小值:1 最大值:3 |
status |
否 |
Integer |
云服务或资源实例的状态: 0:解冻/正常(云服务恢复正常,比如解冻操作);1:冻结(资源和数据会保留,但租户无法再正常使用云服务);2:删除/终止(资源和数据将清除) 最小值:0 最大值:2 |
resources |
否 |
Array of ResourceInfos objects |
资源列表 数组长度:0 - 65535 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
resource_infos |
否 |
Array of ResourceTypeItem objects |
资源信息 数组长度:0 - 65535 |
tenant_id |
否 |
String |
租户的projectID 最小长度:1 最大长度:64 |
响应参数
状态码: 400
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
状态码 最小长度:3 最大长度:3 |
error_code |
String |
错误码 最小长度:12 最大长度:12 |
error_msg |
String |
错误信息 最小长度:1 最大长度:65535 |
message |
String |
错误详细信息 最小长度:0 最大长度:65535 |
状态码: 401
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
状态码 最小长度:3 最大长度:3 |
error_code |
String |
错误码 最小长度:12 最大长度:12 |
error_msg |
String |
错误信息 最小长度:1 最大长度:65535 |
message |
String |
错误详细信息 最小长度:0 最大长度:65535 |
状态码: 500
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
状态码 最小长度:3 最大长度:3 |
error_code |
String |
错误码 最小长度:12 最大长度:12 |
error_msg |
String |
错误信息 最小长度:1 最大长度:65535 |
message |
String |
错误详细信息 最小长度:0 最大长度:65535 |
请求示例
无
响应示例
状态码: 200
请求成功
null
状态码: 400
请求失败
{ "code" : 400, "error_code" : "BCS.03400001", "error_msg" : "Invalid request.", "message" : "unmarshal request data error" }
状态码: 401
鉴权失败
{ "code" : 401, "error_code" : "BCS.03401001", "error_msg" : "Authorization failed.", "message" : "request token is not valid" }
状态码: 500
服务内部执行错误
{ "code" : 500, "error_code" : "BCS.03500001", "error_msg" : "Internal error.", "message" : "project [xxx] node [xxx] get service bearer user token error" }
状态码
状态码 |
描述 |
---|---|
200 |
请求成功 |
400 |
请求失败 |
401 |
鉴权失败 |
500 |
服务内部执行错误 |
错误码
请参见错误码。