本文由簡體中文內容自動轉碼而成。阿里雲不保證此自動轉碼的準確性、完整性及時效性。本文内容請以簡體中文版本為準。

CheckOutLicense - 鑒權服務執行個體有效期間

更新時間:2024-11-14 20:06

調用CheckOutLicense介面校正計算巢服務執行個體是否到期。

介面說明

該API僅支援配置自訂售賣的計算巢服務執行個體或通過雲市場建立的計算巢服務執行個體,調用CheckOutLicense檢查服務執行個體有效期間。

請求參數

名稱

類型

是否必選

描述

樣本值

名稱

類型

是否必選

描述

樣本值

ServiceId

string

服務ID。

service-1e2e93c150084exxxxxx

ServiceInstanceName

string

服務執行個體名稱。

test

返回參數

名稱

類型

描述

樣本值

名稱

類型

描述

樣本值

RequestId

string

請求ID。

B22723B7-FC31-18F5-A33E-1AF4C82736AA

ServiceInstanceId

string

服務執行個體ID。

si-8722386303094axxxxxx

LicenseMetadata

string

中繼資料。

需要在自訂售賣配置中定義該資料。

{\"TemplateName\":\"Custom_Image_Ecs\",\"SpecificationName\":\"\",\"CustomData\":\"xxxx\"}

TrialType

string

服務試用類型。可能的值:

  • Trial:支援試用。

  • NotTrial:不支援試用。

NotTrial

Token

string

數位簽章。校正數位簽章的詳細資料,請參見計算巢校正數位簽章說明

58d4574bd0d967bb431cd8936b5e80c4

ExpireTime

string

服務執行個體的到期時間。

2023-08-28T06:27:08Z

ServiceId

string

服務ID。

service-1e2e93c150084exxxxxx

Components

string

雲市場額外計費項目資訊。

{\"package_version\":\"yuncode55xxxxxxxx\",\"SystemDiskSize\":\"40\",\"DataDiskSize\":\"100\"}

錯誤碼

錯誤碼

錯誤資訊

描述

錯誤碼

錯誤資訊

描述

EntityNotExist.Service

The provided parameter "ServiceId" is invalid.

傳入服務ID非法。

EntityNotExist.ServiceInstance

The specified service instance cannot be found.

服務執行個體不存在(非計算巢建立的ECS執行個體)。

LicenseExpired

The license of the current service instance ${serviceInstanceId} has expired.

隨用隨付服務執行個體欠費或校正存在問題。

The license of the current service instance ${serviceInstanceId} has expired. expired time ${Time}.

非按量(訂用帳戶/按次)服務執行個體到期。

The service instance Prometheus is deleted.

隨用隨付服務執行個體-上報源存在Prometheus情境,若服務執行個體對應Prometheus執行個體被刪除

使用樣本

校正服務執行個體有效期間以及是否欠費的詳細樣本。請參見調用CheckOutLicense樣本

  • 本頁導讀 (1, M)
  • 介面說明
  • 請求參數
  • 返回參數
  • 錯誤碼
  • 使用樣本
文檔反饋