GetApiDefinition

Updated at:

Retrieves the open metadata of product-related API operations.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /api/definition HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

product

string

Yes

The product code.

  • Call the GetRequestLog operation and obtain the product code from the response.

  • Find the corresponding product code from the URL of the OpenAPI portal. For example, the OpenAPI portal URL for Short Message Service is https://api.aliyun.com/product/Dysmsapi. Based on this URL, the product code for Short Message Service is Dysmsapi.

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.