全部產品
Search
文件中心

Elastic High Performance Computing:ListCommunityImages - 查詢社區鏡像

更新時間:Dec 21, 2025

查詢社區鏡像。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ehpc:ListCommunityImages

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

BaseOsTag

string

基礎鏡像作業系統標籤。

CentOS_7.2_64

InstanceType

string

指定執行個體規格。如果不指定執行個體規格,則預設查詢所有執行個體規格支援的鏡像列表。

ecs.n1.tiny

ClusterId

string

指定叢集 ID。如果該叢集支援多作業系統,則查詢叢集所在地區下的所有鏡像列表。

如果不指定叢集 ID,則預設查詢所有叢集支援的鏡像列表。

ehpc-hz-FYUr32****

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

04F0F334-1335-436C-A1D7-6C044FE73368

Images

object

ImageInfo

array<object>

E-HPC 支援的自訂鏡像和共用鏡像的列表。

array<object>

Status

string

鏡像狀態。可能值:

  • UnAvailable:不可用

  • Available:可用

  • Creating:建立中

  • CreateFailed:建立失敗

Available

PostInstallScript

string

安裝鏡像後執行的指令碼。

example.sh

Description

string

鏡像描述。

ExampleDescription

Size

integer

鏡像大小。單位:GiB。

40

ImageOwnerAlias

string

鏡像類型。可能值:

  • self:自訂鏡像

  • others:共用鏡像

self

ImageName

string

鏡像名稱。

linux_CentOS7.2_OceanBase_OBD_1ECS-3OB_3.0

SkuCode

string

商品規格碼。可能值:

  • ECS:隨用隨付

  • package:預付費

ECS

PricingCycle

string

鏡像計費單位,可能值:

  • Hour:按小時付費

  • Month:月付型

  • Year:按年付費

Month

ImageId

string

鏡像 ID。

m-bp181x855551ww5yq****

ProductCode

string

雲市場的商品標識。

cmjj028279

Uid

string

鏡像所有者。

127****

BaseOsTag

object

對應的基礎鏡像作業系統標籤。

Platform

string

作業系統發行版。可能值:

  • CentOS

  • Ubuntu

  • SUSE

  • OpenSUSE

  • Debian

  • CoreOS

  • Aliyun

  • Windows Server 2003

  • Windows Server 2008

  • Windows Server 2012

  • Others Linux

  • Customized Linux

CentOS

OsTag

string

作業系統鏡像標籤。

CentOS_7.2_64

Version

string

作業系統版本。

7.2

Architecture

string

作業系統架構。可能值:

  • i386

  • x86_64

x86_64

OsTag

object

E-HPC 支援的作業系統鏡像。

Platform

string

作業系統平台。

CentOS

OsTag

string

作業系統鏡像標籤。

CentOS_7.2_64

Version

string

作業系統版本。

7.2

Architecture

string

作業系統架構。可能值:

  • i386

  • x86_64

x86_64

BaseOsTag

string

對應的基礎鏡像作業系統標籤。

CentOS_7.2_64

樣本

正常返回樣本

JSON格式

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "Images": {
    "ImageInfo": [
      {
        "Status": "Available",
        "PostInstallScript": "example.sh",
        "Description": "ExampleDescription",
        "Size": 40,
        "ImageOwnerAlias": "self",
        "ImageName": "linux_CentOS7.2_OceanBase_OBD_1ECS-3OB_3.0",
        "SkuCode": "ECS",
        "PricingCycle": "Month",
        "ImageId": "m-bp181x855551ww5yq****",
        "ProductCode": "cmjj028279",
        "Uid": "127****",
        "BaseOsTag": {
          "Platform": "CentOS",
          "OsTag": "CentOS_7.2_64",
          "Version": "7.2",
          "Architecture": "x86_64"
        },
        "OsTag": {
          "Platform": "CentOS",
          "OsTag": "CentOS_7.2_64",
          "Version": "7.2",
          "Architecture": "x86_64",
          "BaseOsTag": "CentOS_7.2_64"
        }
      }
    ]
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

500 UnknownError An unknown error occurred. 未知錯誤
404 ImageNotFound The specified image does not exist. 指定的鏡像不存在,請您檢查該參數是否正確。
503 ServiceUnavailable The request has failed due to a temporary failure of the server 請求失敗,服務暫時不可用
406 EcsError An error occurred while calling the ECS API operation. ECS API調用出錯. %s
406 DbError A database service error occurred. 資料庫請求失敗
407 NotAuthorized You are not authorized by RAM for this request. 此請求未獲得RAM授權

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情