DATASOURCE::DRDS::DrdsInstance類型用于查詢單個Drds實例詳情。
語法
{
"Type": "DATASOURCE::DRDS::DrdsInstance",
"Properties": {
"DrdsInstanceId": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
DrdsInstanceId | String | 是 | 是 | 實例ID。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,數據源資源的刷新策略。 | 有效值:
|
返回值
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" ] } } } }
文檔內容是否對您有幫助?