全部產品
Search
文件中心

:DATASOURCE::GraphDatabase::DbInstances

更新時間:Oct 30, 2024

DATASOURCE::GraphDatabase::DbInstances類型用於查詢資料庫執行個體資訊。

文法

{
  "Type": "DATASOURCE::GraphDatabase::DbInstances",
  "Properties": {
    "ResourceGroupId": String,
    "DbInstanceDescription": String,
    "DbInstanceId": String,
    "RefreshOptions": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

ResourceGroupId

String

否

是

資源群組ID。

無

DbInstanceDescription

String

否

是

資料庫描述資訊。

無

DbInstanceId

String

否

是

資料庫ID。

無

RefreshOptions

String

否

是

當資源棧更新時,資料來源資源的重新整理策略。

有效值:

  • Never(預設值):更新堆棧時,從不重新整理資料來源資源。

  • Always:更新堆棧時,始終重新整理資料來源資源。

傳回值

Fn::GetAtt

  • DbInstances:資料庫詳情列表。

  • DbInstanceIds:資料庫ID列表。

屬性名稱

類型

描述

約束

DbInstanceIds

List

資料庫ID列表。

無

DbInstances

List

資料庫詳情列表。

無

DbInstanceDescription

String

描述資訊。

無

LockMode

String

執行個體鎖定狀態。

無

DbInstanceCategory

String

資料庫執行個體系列。

無

DbVersion

String

資料庫版本。

無

DbInstanceId

String

執行個體ID。

無

LockReason

String

資源被鎖定的原因。

無

Status

String

執行個體狀態。

無

VpcId

String

專用網路ID。

無

Tags

List

自訂標籤。

無

RegionId

String

地區資訊。

無

ResourceGroupId

String

資源群組ID。

無

VSwitchId

String

交換器ID。

無

DbNodeClass

String

資料庫節點類型。

無

Expired

String

執行個體到期時間。

無

DbNodeCount

String

節點數量。

無

ZoneId

String

執行個體所屬的可用性區域ID。

無

DbInstanceType

String

資料庫執行個體類型。

無

DbNodeStorage

String

執行個體的儲存空間。

無

ExpireTime

String

資料庫到期時間。

無

PaymentType

String

付費模式。

無

ReadOnlyDbInstanceIds

List

唯讀執行個體ID列表。

無

CreateTime

String

執行個體的建立時間。

無

樣本

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DbInstanceId:
    Type: String
    Description: The first ID of the resource.
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::GraphDatabase::DbInstances
    Properties:
      DbInstanceId:
        Ref: DbInstanceId
Outputs:
  DbInstances:
    Description: The list of db instances.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DbInstances
  DbInstanceIds:
    Description: The list of db instance IDs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DbInstanceIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DbInstanceId": {
      "Type": "String",
      "Description": "The first ID of the resource."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::GraphDatabase::DbInstances",
      "Properties": {
        "DbInstanceId": {
          "Ref": "DbInstanceId"
        }
      }
    }
  },
  "Outputs": {
    "DbInstances": {
      "Description": "The list of db instances.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbInstances"
        ]
      }
    },
    "DbInstanceIds": {
      "Description": "The list of db instance IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbInstanceIds"
        ]
      }
    }
  }
}