获取产品相关接口的开放元数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/definition HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| product |
string |
是 |
产品 CODE。
|
Ecs |
| apiVersion |
string |
是 |
API 的版本。 |
2014-05-26 |
| api |
string |
是 |
API 的名称。 |
DescribeRegions |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
接口的开放元数据信息。 |
{ "summary": "获取产品相关接口的开放元数据。", "path": "/api/definition", "methods": ["get"], "schemes": ["https"], "security": [{"AK": []}], "consumes": ["application/json"], "produces": ["application/json"], "operationType": "read", "systemTags": { "operationType": "get", "riskType": "none", "chargeType": "free", "abilityTreeNodes": ["FEATUREopenapiexplorerY5UU1D"], "autoTest": true, "tenantRelevance": "publicInformation" }, "parameters": [ { "name": "product", "in": "query", "schema": { "description": "产品CODE。可通过 GetRequestLog 的返回结果或 OpenAPI 门户 URL 获取,例如 Ecs。", "example": "Ecs", "type": "string", "required": true } }, { "name": "apiVersion", "in": "query", "schema": { "description": "API的版本。", "example": "2014-05-26", "type": "string", "required": true } }, { "name": "api", "in": "query", "schema": { "description": "API的名称。", "example": "DescribeRegions", "type": "string", "required": true } } ], "responses": { "200": { "schema": { "description": "接口的开放元数据信息。", "type": "object" } } }, "staticInfo": {"returnType": "synchronous"}, "title": "获取产品相关接口的开放元数据" } |
示例
正常返回示例
JSON格式
{
"summary": "获取产品相关接口的开放元数据。",
"path": "/api/definition",
"methods": [
"get"
],
"schemes": [
"https"
],
"security": [
{
"AK": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"operationType": "read",
"systemTags": {
"operationType": "get",
"riskType": "none",
"chargeType": "free",
"abilityTreeNodes": [
"FEATUREopenapiexplorerY5UU1D"
],
"autoTest": true,
"tenantRelevance": "publicInformation"
},
"parameters": [
{
"name": "product",
"in": "query",
"schema": {
"description": "产品CODE。可通过 GetRequestLog 的返回结果或 OpenAPI 门户 URL 获取,例如 Ecs。",
"example": "Ecs",
"type": "string",
"required": true
}
},
{
"name": "apiVersion",
"in": "query",
"schema": {
"description": "API的版本。",
"example": "2014-05-26",
"type": "string",
"required": true
}
},
{
"name": "api",
"in": "query",
"schema": {
"description": "API的名称。",
"example": "DescribeRegions",
"type": "string",
"required": true
}
}
],
"responses": {
"200": {
"schema": {
"description": "接口的开放元数据信息。",
"type": "object"
}
}
},
"staticInfo": {
"returnType": "synchronous"
},
"title": "获取产品相关接口的开放元数据"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。