获取命名SQL查询-GetNamedQuery

获取用户保存的SQL查询

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID,不填则为默认项目No
NamedQueryIdint已命名查询的IdYes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
RequeststringAPI请求IDNo
QueryNameintSQL查询名称No
QueryDescriptionstringSQL查询描述No
QueryStringstringSQL查询语句No
CreateTimestringSQL查询保存时间No
NamedQueryIdintSQL查询IDNo

Request Example

https://api.ucloud.cn/?Action=GetNamedQuery
&Region=pre
&NamedQueryId=1
&ProjectId=WiGGBLzY

Response Example

{
    "RetCode": 0,
    "Action": "GetNamedQueryResponse",
    "Request": "756275b6-b71c-4844-94b9-1f842b6d7a92",
    "QueryId": 1,
    "QueryName": "named_sql",
    "QueryDescription": "yyyyyyyyyy",
    "QueryString": "SELECT * FROM xxxxxx;",
    "CreateTime": "2018-08-14T12:55:54.000+0000"
}