Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::ClickHouse::DBCluster

Última atualização: Jun 27, 2026

Consulta informações sobre um cluster do ApsaraDB for ClickHouse.

Sintaxe

{
  "Type": "DATASOURCE::ClickHouse::DBCluster",
  "Properties": {
    "DBClusterId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

DBClusterId

String

Sim

Sim

ID do cluster.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos da fonte de dados durante a atualização da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos da fonte de dados durante a atualização da pilha.

  • Always: atualiza os recursos da fonte de dados durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • Category: edição do cluster.

  • ResourceGroupId: ID do grupo de recursos.

  • VpcIpAddr: endereço IP para conexão ao cluster via Virtual Private Cloud (VPC).

  • Port: porta HTTP.

  • DBClusterId: ID do cluster.

  • EncryptionKey: chave do Key Management Service (KMS).

  • DbNodeStorage: capacidade de armazenamento de um único nó.

  • DBClusterType: tipo do cluster.

  • SupportBackup: indica se há suporte para backup de dados.

  • CommodityCode: código do produto.

  • PaymentType: método de faturamento.

  • SupportOss: indica se há suporte para armazenamento em camadas de dados quentes e frios.

  • PublicConnectionString: endpoint público.

  • SupportHttpsPort: indica se há suporte para portas HTTPS.

  • LockReason: motivo do bloqueio do cluster.

  • Bid: ID do site.

  • DbNodeClass: especificações do cluster.

  • MaintainTime: janela de manutenção do cluster.

  • Engine: tipo do mecanismo de banco de dados.

  • IsExpired: indica se o cluster expirou.

  • EncryptionType: tipo de criptografia.

  • SecurityIps: endereços IP permitidos na lista de permissões.

  • EngineVersion: versão do mecanismo de banco de dados.

  • StorageType: tipo de armazenamento.

  • ZoneId: ID da zona.

  • PublicIpAddr: endereço IP para conexão ao cluster via Internet.

  • VSwitchId: ID do vSwitch.

  • CreateTime: horário de criação do cluster.

  • DbNodeCount: número de nós.

  • LockMode: modo de bloqueio do cluster.

  • DBClusterName: nome do cluster.

  • ScaleOutStatus: status da tarefa de migração de dados.

  • VpcId: ID da VPC.

  • DBClusterIPArrayName: nome da lista de permissões de endereços IP modificada.

  • DbClusterNetworkType: tipo de rede.

  • VpcCloudInstanceId: ID do recurso da VPC.

  • SupportMysqlPort: indica se o cluster suporta portas MySQL.

  • ConnectionString: endpoint da VPC.

  • ExpireTime: horário de expiração do cluster.

  • PublicPort: porta TCP no endpoint público.

  • AliUid: ID da conta Alibaba Cloud.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DBClusterId:
    Description:
      en: Instance ID.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      DBClusterId:
        Ref: DBClusterId
    Type: DATASOURCE::ClickHouse::DBCluster
Outputs:
  AliUid:
    Description: Alibaba Cloud account.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AliUid
  Bid:
    Description: The ID of the business process flow.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Bid
  Category:
    Description: Copy configuration, value description:.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Category
  CommodityCode:
    Description: Buy Product Code.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CommodityCode
  ConnectionString:
    Description: Connection string.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ConnectionString
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  DBClusterIPArrayName:
    Description: The name of the whitelist group to be modified.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DBClusterIPArrayName
  DBClusterId:
    Description: Instance ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DBClusterId
  DBClusterName:
    Description: The cluster description information.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DBClusterName
  DBClusterType:
    Description: Instance type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DBClusterType
  DbClusterNetworkType:
    Description: Network type. Currently, only VPC is supported.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DbClusterNetworkType
  DbNodeClass:
    Description: Set the node type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DbNodeClass
  DbNodeCount:
    Description: 'Value range: S-Series: 1 to 48 C Series: 1-24 units:.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DbNodeCount
  DbNodeStorage:
    Description: 'Single-node storage space. Value range: 100 GB to 32000GB.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DbNodeStorage
  EncryptionKey:
    Description: Key management service KMS key ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - EncryptionKey
  EncryptionType:
    Description: Currently only supports ECS disk encryption, with a value of CloudDisk,
      not encrypted when empty.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - EncryptionType
  Engine:
    Description: Engine.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Engine
  EngineVersion:
    Description: The engine version.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - EngineVersion
  ExpireTime:
    Description: The expiration time.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ExpireTime
  IsExpired:
    Description: If the instance has expired.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - IsExpired
  LockMode:
    Description: The lock mode.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - LockMode
  LockReason:
    Description: Lock reason.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - LockReason
  MaintainTime:
    Description: Examples of the maintenance window, in the format of hh:mmZ-hh:mm
      Z.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - MaintainTime
  PaymentType:
    Description: The paymen type of the resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PaymentType
  Port:
    Description: Connection port.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Port
  PublicConnectionString:
    Description: A public IP address for the connection.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PublicConnectionString
  PublicIpAddr:
    Description: Public IP address.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PublicIpAddr
  PublicPort:
    Description: Public network port.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PublicPort
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceGroupId
  ScaleOutStatus:
    Description: Scale state.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ScaleOutStatus
  SecurityIps:
    Description: The whitelist supports the following two formats:.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SecurityIps
  StorageType:
    Description: 'Storage type CloudSSD:SSD cloud disk CloudEfficiency: Ultra cloud
      disk.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - StorageType
  SupportBackup:
    Description: Support fallback scheme.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SupportBackup
  SupportHttpsPort:
    Description: The system supports http port number.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SupportHttpsPort
  SupportMysqlPort:
    Description: Supports Mysql, and those of the ports.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SupportMysqlPort
  SupportOss:
    Description: Whether hot and cold stratification is supported, 0 means not, and
      1st generation table supports it.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SupportOss
  VSwitchId:
    Description: Switch ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - VSwitchId
  VpcCloudInstanceId:
    Description: Virtual Private Cloud (VPC cloud instance ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - VpcCloudInstanceId
  VpcId:
    Description: VPC ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - VpcId
  VpcIpAddr:
    Description: VPC IP address.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - VpcIpAddr
  ZoneId:
    Description: On behalf of the zone resource attribute field.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ZoneId
                        

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DBClusterId": {
      "Type": "String",
      "Description": {
        "en": "Instance ID."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ClickHouse::DBCluster",
      "Properties": {
        "DBClusterId": {
          "Ref": "DBClusterId"
        }
      }
    }
  },
  "Outputs": {
    "Category": {
      "Description": "Copy configuration, value description:.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Category"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "VpcIpAddr": {
      "Description": "VPC IP address.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcIpAddr"
        ]
      }
    },
    "Port": {
      "Description": "Connection port.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Port"
        ]
      }
    },
    "DBClusterId": {
      "Description": "Instance ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DBClusterId"
        ]
      }
    },
    "EncryptionKey": {
      "Description": "Key management service KMS key ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EncryptionKey"
        ]
      }
    },
    "DbNodeStorage": {
      "Description": "Single-node storage space. Value range: 100 GB to 32000GB.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbNodeStorage"
        ]
      }
    },
    "DBClusterType": {
      "Description": "Instance type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DBClusterType"
        ]
      }
    },
    "SupportBackup": {
      "Description": "Support fallback scheme.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SupportBackup"
        ]
      }
    },
    "CommodityCode": {
      "Description": "Buy Product Code.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CommodityCode"
        ]
      }
    },
    "PaymentType": {
      "Description": "The paymen type of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "SupportOss": {
      "Description": "Whether hot and cold stratification is supported, 0 means not, and 1st generation table supports it.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SupportOss"
        ]
      }
    },
    "PublicConnectionString": {
      "Description": "A public IP address for the connection.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PublicConnectionString"
        ]
      }
    },
    "SupportHttpsPort": {
      "Description": "The system supports http port number.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SupportHttpsPort"
        ]
      }
    },
    "LockReason": {
      "Description": "Lock reason.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LockReason"
        ]
      }
    },
    "Bid": {
      "Description": "The ID of the business process flow.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Bid"
        ]
      }
    },
    "DbNodeClass": {
      "Description": "Set the node type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbNodeClass"
        ]
      }
    },
    "MaintainTime": {
      "Description": "Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MaintainTime"
        ]
      }
    },
    "Engine": {
      "Description": "Engine.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Engine"
        ]
      }
    },
    "IsExpired": {
      "Description": "If the instance has expired.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IsExpired"
        ]
      }
    },
    "EncryptionType": {
      "Description": "Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EncryptionType"
        ]
      }
    },
    "SecurityIps": {
      "Description": "The whitelist supports the following two formats:.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecurityIps"
        ]
      }
    },
    "EngineVersion": {
      "Description": "The engine version.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EngineVersion"
        ]
      }
    },
    "StorageType": {
      "Description": "Storage type CloudSSD:SSD cloud disk CloudEfficiency: Ultra cloud disk.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageType"
        ]
      }
    },
    "ZoneId": {
      "Description": "On behalf of the zone resource attribute field.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ZoneId"
        ]
      }
    },
    "PublicIpAddr": {
      "Description": "Public IP address.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PublicIpAddr"
        ]
      }
    },
    "VSwitchId": {
      "Description": "Switch ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "DbNodeCount": {
      "Description": "Value range: S-Series: 1 to 48 C Series: 1-24 units:.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbNodeCount"
        ]
      }
    },
    "LockMode": {
      "Description": "The lock mode.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LockMode"
        ]
      }
    },
    "DBClusterName": {
      "Description": "The cluster description information.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DBClusterName"
        ]
      }
    },
    "ScaleOutStatus": {
      "Description": "Scale state.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ScaleOutStatus"
        ]
      }
    },
    "VpcId": {
      "Description": "VPC ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "DBClusterIPArrayName": {
      "Description": "The name of the whitelist group to be modified.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DBClusterIPArrayName"
        ]
      }
    },
    "DbClusterNetworkType": {
      "Description": "Network type. Currently, only VPC is supported.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbClusterNetworkType"
        ]
      }
    },
    "VpcCloudInstanceId": {
      "Description": "Virtual Private Cloud (VPC cloud instance ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcCloudInstanceId"
        ]
      }
    },
    "SupportMysqlPort": {
      "Description": "Supports Mysql, and those of the ports.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SupportMysqlPort"
        ]
      }
    },
    "ConnectionString": {
      "Description": "Connection string.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ConnectionString"
        ]
      }
    },
    "ExpireTime": {
      "Description": "The expiration time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExpireTime"
        ]
      }
    },
    "PublicPort": {
      "Description": "Public network port.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PublicPort"
        ]
      }
    },
    "AliUid": {
      "Description": "Alibaba Cloud account.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AliUid"
        ]
      }
    }
  }
}