获取产品的开放元数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/definitions HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| product |
string |
是 |
产品 CODE。
|
Ecs |
| apiVersion |
string |
是 |
API 的版本。 |
2014-05-26 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
开放元数据信息。 |
{ "apis": { "AcceptInquiredSystemEvent": { "title": "接受并授权执行系统事件操作", "summary": "调用AcceptInquiredSystemEvent接受并授权执行系统事件操作。", "methods": ["post", "get"], "schemes": ["http", "https"], "security": [{"AK": []}], "operationType": "readAndWrite", "parameters": [ { "in": "query", "name": "RegionId", "schema": { "description": "系统事件所在的地域ID。", "example": "cn-hangzhou", "required": true, "type": "string" } }, { "in": "query", "name": "EventId", "schema": { "description": "系统事件ID。", "example": "e-2zeielxl1qzq8slb****", "required": true, "type": "string" } } ], "responses": { "200": { "schema": { "description": "", "properties": { "RequestId": { "description": "请求ID。", "example": "4DD56CA6-6D75-4D33-BE34-E4A44EBE1C3D", "type": "string" } }, "type": "object" } } }, "systemTags": { "abilityTreeCode": "29240", "abilityTreeNodes": ["FEATUREecsBUZW7T"], "chargeType": "free", "operationType": "update", "riskType": "none" }, "staticInfo": {"returnType": "synchronous"} } } } |
示例
正常返回示例
JSON格式
{
"apis": {
"AcceptInquiredSystemEvent": {
"title": "接受并授权执行系统事件操作",
"summary": "调用AcceptInquiredSystemEvent接受并授权执行系统事件操作。",
"methods": [
"post",
"get"
],
"schemes": [
"http",
"https"
],
"security": [
{
"AK": []
}
],
"operationType": "readAndWrite",
"parameters": [
{
"in": "query",
"name": "RegionId",
"schema": {
"description": "系统事件所在的地域ID。",
"example": "cn-hangzhou",
"required": true,
"type": "string"
}
},
{
"in": "query",
"name": "EventId",
"schema": {
"description": "系统事件ID。",
"example": "e-2zeielxl1qzq8slb****",
"required": true,
"type": "string"
}
}
],
"responses": {
"200": {
"schema": {
"description": "",
"properties": {
"RequestId": {
"description": "请求ID。",
"example": "4DD56CA6-6D75-4D33-BE34-E4A44EBE1C3D",
"type": "string"
}
},
"type": "object"
}
}
},
"systemTags": {
"abilityTreeCode": "29240",
"abilityTreeNodes": [
"FEATUREecsBUZW7T"
],
"chargeType": "free",
"operationType": "update",
"riskType": "none"
},
"staticInfo": {
"returnType": "synchronous"
}
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。