ListApiDefinitions - 获取产品的开放元数据

更新时间:
复制 MD 格式

获取产品的开放元数据。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/definitions HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

product

string

是

产品 CODE。

  • 调用 GetRequestLog 接口,从返回结果中获取产品 CODE。

  • 通过 OpenAPI 门户的 URL,找到对应的产品 CODE。例如,短信服务的 OpenAPI 门户 URL 为 https://api.aliyun.com/product/Dysmsapi,根据该 URL 获取短信服务的产品 CODE 为 Dysmsapi。

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"
      }
    }
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。