全部產品
Search
文件中心

Identity as a Service:GetInstanceLicense - 查詢執行個體的License資訊

更新時間:Mar 27, 2026

查詢執行個體當前生效的 License 資訊。

介面說明

請確保您當前的執行個體已經不再使用,當 EIAM 執行個體被刪除後,所有相關的資料都將被刪除。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

eiam:GetInstanceLicense

get

*Instance

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}

請求參數

名稱

類型

必填

描述

樣本值

InstanceId

string

執行個體 Id

idaas_ue2jvisn35ea5lmthk2676xxxx

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 Id

0441BD79-92F3-53AA-8657-F8CE4A2B912A

License

object

返回結果。

LicenseId

string

License 的唯一標識

license_1234xxxx

LicenseStatus

string

License 的狀態

枚舉值:

  • valid :

    有效

  • expired :

    到期

  • released :

    釋放

valid

LicenseChargeType

string

License 的付費類型

枚舉值:

  • prepay :

    預付費

  • postpay :

    後付費

prepay

LicenseConfigJson

string

License 詳細配置 JSON 字串

{"modules":[{"features":[{"name":"urn:alibaba:idaas:license:module:ud:customField","status":"enabled"}]……{"name":"urn:alibaba:idaas:license:tag:enterprise","status":"enabled"}],"version":"1.0"}

LicenseCreateTime

integer

License 的建立時間,時間戳記

1720509699000

PurchaseChannel

string

License 的購買渠道

枚舉值:

  • alibaba_cloud :

    阿里雲售賣渠道

  • system_free :

    系統免費渠道

  • system_trial :

    系統試用渠道

alibaba_cloud

PurchaseInstanceId

string

License 對應的外部商品唯一標識

eiam-cn-xxxxx

Edition

string

License 的版本型號

枚舉值:

  • enterprise :

    企業版

  • free :

    免費版

  • trial :

    試用版

free

UserQuota

integer

License 的使用者配額

100

StartTime

integer

License 的有效期間開始日期,時間戳記

1720509699000

EndTime

integer

License 的有效期間終止日期,時間戳記

1723996800000

InstanceLicenseDetail

object

執行個體 License 詳細資料

UserQuota

integer

License 的使用者配額

100

M2mApplicationQuota

integer

License 的 M2M 應用配額

2

M2mApplicationLicenseStatus

string

M2M License 狀態

枚舉值:

  • disabled :

    禁用

  • enabled :

    啟用

enabled

NetworkAccessEndpointQuota

integer

License 的網路訪問端點配額

1

ConditionalAccessPolicyLicenseStatus

string

條件訪問 License 狀態

枚舉值:

  • disabled :

    禁用

  • enabled :

    啟用

enabled

樣本

正常返回樣本

JSON格式

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "License": {
    "LicenseId": "license_1234xxxx",
    "LicenseStatus": "valid",
    "LicenseChargeType": "prepay",
    "LicenseConfigJson": "{\"modules\":[{\"features\":[{\"name\":\"urn:alibaba:idaas:license:module:ud:customField\",\"status\":\"enabled\"}]……{\"name\":\"urn:alibaba:idaas:license:tag:enterprise\",\"status\":\"enabled\"}],\"version\":\"1.0\"}",
    "LicenseCreateTime": 1720509699000,
    "PurchaseChannel": "alibaba_cloud",
    "PurchaseInstanceId": "eiam-cn-xxxxx",
    "Edition": "free",
    "UserQuota": 100,
    "StartTime": 1720509699000,
    "EndTime": 1723996800000,
    "InstanceLicenseDetail": {
      "UserQuota": 100,
      "M2mApplicationQuota": 2,
      "M2mApplicationLicenseStatus": "enabled",
      "NetworkAccessEndpointQuota": 1,
      "ConditionalAccessPolicyLicenseStatus": "enabled"
    }
  }
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情