GetProductEndpoints

Updated at:

Retrieves the endpoint information for a product.

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 /product/endpoints HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

product

string

Yes

The product code.

  • Call the GetRequestLog operation to retrieve 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

Response elements

Element

Type

Description

Example

object

The endpoint information.

{ "code": 0, "data": { "endpoints": [ { "areaId": "asiaPacific", "areaName": "Asia Pacific", "endpoint": "ecs.cn-beijing.aliyuncs.com", "public": "ecs.cn-beijing.aliyuncs.com", "regionId": "cn-beijing", "regionName": "China (Beijing)", "vpc": "ecs-vpc.cn-beijing.aliyuncs.com" }, { "areaId": "asiaPacific", "areaName": "Asia Pacific", "endpoint": "ecs.cn-zhengzhou-jva.aliyuncs.com", "public": "ecs.cn-zhengzhou-jva.aliyuncs.com", "regionId": "cn-zhengzhou-jva", "regionName": "Zhengzhou (China Unicom Joint Venture)", "vpc": "ecs-vpc.cn-zhengzhou-jva.aliyuncs.com" }, { "areaId": "asiaPacific", "areaName": "Asia Pacific", "endpoint": "ecs.cn-heyuan.aliyuncs.com", "public": "ecs.cn-heyuan.aliyuncs.com", "regionId": "cn-heyuan", "regionName": "China (Heyuan)", "vpc": "ecs-vpc.cn-heyuan.aliyuncs.com" } ], "type": "regional" } }

Examples

Success response

JSON format

{
  "code": 0,
  "data": {
    "endpoints": [
      {
        "areaId": "asiaPacific",
        "areaName": "亚太",
        "endpoint": "ecs.cn-beijing.aliyuncs.com",
        "public": "ecs.cn-beijing.aliyuncs.com",
        "regionId": "cn-beijing",
        "regionName": "华北2(北京)",
        "vpc": "ecs-vpc.cn-beijing.aliyuncs.com"
      },
      {
        "areaId": "asiaPacific",
        "areaName": "亚太",
        "endpoint": "ecs.cn-zhengzhou-jva.aliyuncs.com",
        "public": "ecs.cn-zhengzhou-jva.aliyuncs.com",
        "regionId": "cn-zhengzhou-jva",
        "regionName": "郑州(联通合营)",
        "vpc": "ecs-vpc.cn-zhengzhou-jva.aliyuncs.com"
      },
      {
        "areaId": "asiaPacific",
        "areaName": "亚太",
        "endpoint": "ecs.cn-heyuan.aliyuncs.com",
        "public": "ecs.cn-heyuan.aliyuncs.com",
        "regionId": "cn-heyuan",
        "regionName": "华南2(河源)",
        "vpc": "ecs-vpc.cn-heyuan.aliyuncs.com"
      }
    ],
    "type": "regional"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.