使用SQL查询当前账号下有权限访问的资源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Expression | string | 是 | SELECT * FROM resources LIMIT 100; | |
Scope | string | 否 | rg-acfmzawhxxc**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "D696E6EF-3A6D-5770-801E-4982081FE4D0",
"Columns": [
{
"Name": "resource_id",
"Type": "varchar"
}
],
"Rows": [
"[\n \"vsw-xxx\" \n]"
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
409 | ExceedLimit.ExecuteTime | The execution time has exceeded the limit. Please check for complex queries or large data volume, and optimize accordingly. | 执行超过限制时间。请检查优化SQL的复杂度或数据规模。 |
409 | SQLExecuteError | Failed to execute the SQL statement. | 未能执行查询,请检查查询语句是否书写有误。 |
409 | InvalidSearch.SQL | Error: %s | 错误:%s |
409 | InvalidParameter.Scope | The Scope is invalid. | 参数Scope无效。 |
409 | LengthExceedLimit.Expression | The length of parameter Expression exceed limit. | 查询表达式的长度超过限制。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史