全部產品
Search
文件中心

Expenses and Costs:QueryResourcePackageInstances - 查詢資源套件執行個體服務

更新時間:Dec 21, 2025

查詢使用者某個資源套件的執行個體,僅支援查詢有效資源套件。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

bss:DescribeInstances

get

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

ProductCode

string

產品代碼。

rds

ExpiryTimeStart

string

失效起始時間。日期格式按照 ISO8601 標準表示,並需要使用 UTC 時間。格式為:yyyy-MM-ddTHH:mm:ssZ。

2020-02-02T12:00:00Z

ExpiryTimeEnd

string

失效結束時間。日期格式按照 ISO8601 標準表示,並需要使用 UTC 時間。格式為:yyyy-MM-ddTHH:mm:ssZ。

2020-02-02T13:00:00Z

PageNum

integer

頁碼,預設為 1。

1

PageSize

integer

每頁條數,預設值 20,最大 300。

20

IncludePartner

boolean

是否包含夥伴。

true

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

6000EE23-274B-4E07-A697-FF2E999520A4

Success

boolean

是否成功。

true

Code

string

狀態代碼。

Success

Message

string

錯誤資訊。

Successful!

PageSize

integer

每頁條數。

20

Total

integer

總記錄數。

12

Page

integer

頁碼。

1

Data

object

返回資料。

PageNum

string

頁碼。

1

PageSize

string

每頁條數。

20

TotalCount

string

總記錄數。

12

HostId

string

主機 ID。

cn

Instances

object

Instance

array<object>

執行個體詳情數組。

array<object>

ExpiryTime

string

失效時間。

2019-03-12T16:00:00Z

Status

string

資源套件狀態,取值:

  • Available(有效)。

  • Expired(失效)。

Available

Remark

string

資源套件商品的備忘說明,只提供中文說明

標準儲存包(華東2)

RemainingAmountUnit

string

剩餘量單位。

GB

InstanceId

string

執行個體 ID。

OSSBAG-cn-v0h1s4hma01

PackageType

string

資源套件類型。

FPT_ossbag_absolute_Storage_sh

EffectiveTime

string

生效時間。

2018-09-12T09:51:56Z

Region

string

地區。

cn-hangzhou

TotalAmount

string

總量。

40.000

DeductType

string

計費類型:Absolute。

Absolute

TotalAmountUnit

string

總量單位。

GB

RemainingAmount

string

剩餘量。

40.000

ApplicableProducts

object

Product

array

適用產品列表。

string

資源套件適用產品。

{"Product": ["oss"] }

CommodityCode

string

商品 code

rds

樣本

正常返回樣本

JSON格式

{
  "RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
  "Success": true,
  "Code": "Success",
  "Message": "Successful!",
  "PageSize": 20,
  "Total": 12,
  "Page": 1,
  "Data": {
    "PageNum": "1",
    "PageSize": "20",
    "TotalCount": "12",
    "HostId": "cn",
    "Instances": {
      "Instance": [
        {
          "ExpiryTime": "2019-03-12T16:00:00Z",
          "Status": "Available",
          "Remark": "標準儲存包(華東2)",
          "RemainingAmountUnit": "GB",
          "InstanceId": "OSSBAG-cn-v0h1s4hma01",
          "PackageType": "FPT_ossbag_absolute_Storage_sh",
          "EffectiveTime": "2018-09-12T09:51:56Z",
          "Region": "cn-hangzhou",
          "TotalAmount": "40.000",
          "DeductType": "Absolute",
          "TotalAmountUnit": "GB",
          "RemainingAmount": "40.000",
          "ApplicableProducts": {
            "Product": [
              "{\"Product\": [\"oss\"] }"
            ]
          },
          "CommodityCode": "rds"
        }
      ]
    }
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 NotApplicable This API is not applicable for caller.
400 NotAuthorized This API is not authorized for caller.
400 MissingParameter Absent some mandatory parameter for this request.
400 InvalidParameter This request contain some invalid parameter
400 InvalidOwner The specified owner doesn't belong to caller. 使用者身份錯誤
400 OwnerIdInvalid Parameter ownerId is invalid.
400 OwnerIdMissing Paramter ownerId is missing.
500 InternalError The request processing has failed due to some unknown error.

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

變更歷史

更多資訊,參考變更詳情