全部产品
Search
文档中心

资源编排:DATASOURCE::DRDS::DrdsInstance

更新时间:Aug 26, 2024

DATASOURCE::DRDS::DrdsInstance类型用于查询单个Drds实例详情。

语法

{
  "Type": "DATASOURCE::DRDS::DrdsInstance",
  "Properties": {
    "DrdsInstanceId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DrdsInstanceId

String

实例ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • InstanceSpec:实例规格。

  • Description:实例描述。

  • StorageType:数据库拆分模式。

  • ExpireDate:过期时间戳。

  • ResourceGroupId:实例绑定的资源组ID。

  • ZoneId:可用区。

  • CreateTime:创建时间戳。

  • Label:实例标签。

  • MachineType:实例机器类型。

  • InstanceSeries:实例规格系列。

  • VersionAction:实例版本可用操作。

  • MysqlVersion:MySQL协议版本。

  • Type:实例类型。

  • DrdsInstanceId:实例ID。

  • MasterInstanceId:主实例ID。

  • Version:实例版本。

  • OrderInstanceId:购买的实例ID。

  • InstRole:实例角色。

  • NetworkType:网络类型。

  • ReadOnlyDBInstanceIds:只读实例ID列表。

  • CommodityCode:商品代码。

  • VpcCloudInstanceId:VPC集群中的实例ID。

  • Vips:VIP列表。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DrdsInstanceId:
        Type: String
        Description:
          en: The ID of the Drds instance.
        Required: true
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::DRDS::DrdsInstance
        Properties:
          DrdsInstanceId:
            Ref: DrdsInstanceId
    Outputs:
      InstanceSpec:
        Description: The specification of the instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InstanceSpec
      Description:
        Description: The description of the instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Description
      StorageType:
        Description: |-
          The storage type of the Drds database. Valid values:
          * RDS
          * PolarDB
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - StorageType
      ExpireDate:
        Description: The timestamp that indicates when the instance expires.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ExpireDate
      ResourceGroupId:
        Description: The ID of the resource group to which the instance belongs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ResourceGroupId
      ZoneId:
        Description: The ID of the zone in which the resource is located.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ZoneId
      CreateTime:
        Description: The timestamp that indicates when the instance is created.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - CreateTime
      Label:
        Description: |-
          The tag of the instance. Valid values:
          * NORMAL: The instance is a standard instance.
          * HA: The instance is a high-availability (HA) instance.
          * VPC: The instance is a VPC-based instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Label
      MachineType:
        Description: 'The machine type of the instance. Valid value: ecs.'
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - MachineType
      InstanceSeries:
        Description: |-
          The edition of the instance. Valid values:
          * starter: Starter Edition
          * enterprise: Enterprise Edition
          * standard: Standard Edition
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InstanceSeries
      VersionAction:
        Description: Indicates whether the version of the instance can be upgraded.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - VersionAction
      MysqlVersion:
        Description: Engine version.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - MysqlVersion
      Type:
        Description: |-
          The type of the instance. Valid values:
          * PUBLIC: The returned instance is a shared instance.
          * PRIVATE: The returned instance is a dedicated instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Type
      DrdsInstanceId:
        Description: The ID of the Drds instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DrdsInstanceId
      MasterInstanceId:
        Description: The ID of the primary instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - MasterInstanceId
      Version:
        Description: The version of the instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Version
      OrderInstanceId:
        Description: The ID of the purchased instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - OrderInstanceId
      InstRole:
        Description: |-
          The role of the instance. Valid values:
          * MASTER: The instance is a primary instance.
          * SLAVE: The instance is a read-only instance to analyze complex queries.
          * SLAVE_FLOW: The instance is a read-only instance for high-concurrency scenarios.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InstRole
      NetworkType:
        Description: |-
          The network type of the instance. Valid values:
          * CLASSIC
          * VPC
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - NetworkType
      ReadOnlyDBInstanceIds:
        Description: The IDs of read-only instances that are associated with the instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ReadOnlyDBInstanceIds
      CommodityCode:
        Description: The commodity code of the service.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - CommodityCode
      VpcCloudInstanceId:
        Description: The ID of the instance that is deployed in the VPC.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - VpcCloudInstanceId
      Vips:
        Description: The list of returned virtual IP addresses (VIPs).
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Vips
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DrdsInstanceId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the Drds instance."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::DRDS::DrdsInstance",
          "Properties": {
            "DrdsInstanceId": {
              "Ref": "DrdsInstanceId"
            }
          }
        }
      },
      "Outputs": {
        "InstanceSpec": {
          "Description": "The specification of the instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceSpec"
            ]
          }
        },
        "Description": {
          "Description": "The description of the instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Description"
            ]
          }
        },
        "StorageType": {
          "Description": "The storage type of the Drds database. Valid values:\n* RDS\n* PolarDB",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "StorageType"
            ]
          }
        },
        "ExpireDate": {
          "Description": "The timestamp that indicates when the instance expires.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ExpireDate"
            ]
          }
        },
        "ResourceGroupId": {
          "Description": "The ID of the resource group to which the instance belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ResourceGroupId"
            ]
          }
        },
        "ZoneId": {
          "Description": "The ID of the zone in which the resource is located.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ZoneId"
            ]
          }
        },
        "CreateTime": {
          "Description": "The timestamp that indicates when the instance is created.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CreateTime"
            ]
          }
        },
        "Label": {
          "Description": "The tag of the instance. Valid values:\n* NORMAL: The instance is a standard instance.\n* HA: The instance is a high-availability (HA) instance.\n* VPC: The instance is a VPC-based instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Label"
            ]
          }
        },
        "MachineType": {
          "Description": "The machine type of the instance. Valid value: ecs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "MachineType"
            ]
          }
        },
        "InstanceSeries": {
          "Description": "The edition of the instance. Valid values:\n* starter: Starter Edition\n* enterprise: Enterprise Edition\n* standard: Standard Edition",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceSeries"
            ]
          }
        },
        "VersionAction": {
          "Description": "Indicates whether the version of the instance can be upgraded.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "VersionAction"
            ]
          }
        },
        "MysqlVersion": {
          "Description": "Engine version.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "MysqlVersion"
            ]
          }
        },
        "Type": {
          "Description": "The type of the instance. Valid values:\n* PUBLIC: The returned instance is a shared instance.\n* PRIVATE: The returned instance is a dedicated instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Type"
            ]
          }
        },
        "DrdsInstanceId": {
          "Description": "The ID of the Drds instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DrdsInstanceId"
            ]
          }
        },
        "MasterInstanceId": {
          "Description": "The ID of the primary instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "MasterInstanceId"
            ]
          }
        },
        "Version": {
          "Description": "The version of the instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Version"
            ]
          }
        },
        "OrderInstanceId": {
          "Description": "The ID of the purchased instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "OrderInstanceId"
            ]
          }
        },
        "InstRole": {
          "Description": "The role of the instance. Valid values:\n* MASTER: The instance is a primary instance.\n* SLAVE: The instance is a read-only instance to analyze complex queries.\n* SLAVE_FLOW: The instance is a read-only instance for high-concurrency scenarios.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstRole"
            ]
          }
        },
        "NetworkType": {
          "Description": "The network type of the instance. Valid values:\n* CLASSIC\n* VPC",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "NetworkType"
            ]
          }
        },
        "ReadOnlyDBInstanceIds": {
          "Description": "The IDs of read-only instances that are associated with the instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ReadOnlyDBInstanceIds"
            ]
          }
        },
        "CommodityCode": {
          "Description": "The commodity code of the service.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CommodityCode"
            ]
          }
        },
        "VpcCloudInstanceId": {
          "Description": "The ID of the instance that is deployed in the VPC.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "VpcCloudInstanceId"
            ]
          }
        },
        "Vips": {
          "Description": "The list of returned virtual IP addresses (VIPs).",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Vips"
            ]
          }
        }
      }
    }