GetApiDefinition
Retrieves the open metadata of product-related API operations.
Try it now
Test
RAM authorization
Request syntax
GET /api/definition HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| product |
string |
Yes |
The product code.
|
Ecs |
| apiVersion |
string |
Yes |
The API version. |
2014-05-26 |
| api |
string |
Yes |
The name of the API operation. |
DescribeRegions |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The open metadata of the API operation. |
{ "summary": "Retrieves the open metadata of product-related API operations.", "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": "The product code. You can obtain it from the response of GetRequestLog or the OpenAPI portal URL, such as Ecs.", "example": "Ecs", "type": "string", "required": true } }, { "name": "apiVersion", "in": "query", "schema": { "description": "The API version.", "example": "2014-05-26", "type": "string", "required": true } }, { "name": "api", "in": "query", "schema": { "description": "The name of the API operation.", "example": "DescribeRegions", "type": "string", "required": true } } ], "responses": { "200": { "schema": { "description": "The open metadata of the API operation.", "type": "object" } } }, "staticInfo": {"returnType": "synchronous"}, "title": "Retrieve open metadata of product-related API operations" } |
Examples
Success response
JSON format
{
"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": "获取产品相关接口的开放元数据"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.