本文介绍云数据库 SQL Server 版的 API 返回结果信息。
HTTP 状态码为 200,表示接口请求成功。
所有非 200 的 HTTP 状态码,表示接口请求失败。具体的失败信息,以 JSON 的形式返回。
请求调用成功后返回结果示例如下:
{ "ResponseMetadata" : { "RequestId": "52ece640-60ba-4cf9-bf34-302fb45eef4f", "Action": "DescribeRegions", "Version": "2022-01-01", "Service": "rds_mssql", "Region": "cn-beijing" }, "Result": { /* 具体业务的返回信息 */ "Regions":[ { "RegionId": "cn-beijing", "RegionName": "华北 2(北京)" } ] } }
请求调用失败后返回结果示例如下:
{ "ResponseMetadata" : { "RequestId": "d78bbf4e-63a5-4937-ac3c-3767e7eddfbe", "Action": "ListRegions", "Version": "2022-01-01", "Service": "rds_mssql", "Region": "cn-beijing", "Error": { "Code": "Failed", "Message": "The request processing has failed due to some unknown error, exception or failure." } } }