DATASOURCE::KAFKA::Instances

更新时间:
复制 MD 格式

DATASOURCE::KAFKA::Instances类型用于查询Kafka实例信息。

语法

{
  "Type": "DATASOURCE::KAFKA::Instances",
  "Properties": {
    "ResourceGroupId": String,
    "InstanceId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ResourceGroupId

String

否

是

资源组ID。

无

InstanceId

String

否

是

实例ID。

无

RefreshOptions

String

否

是

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

有效值:

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

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

返回值

Fn::GetAtt

  • Instances:Kafka实例信息列表。

  • InstanceIds:Kafka实例ID列表。

属性名称

类型

描述

约束

InstanceIds

List

Kafka实例ID列表。

无

Instances

List

Kafka实例信息列表。

无

ExpiredTime

Integer

到期时间。

单位:ms。

SslEndPoint

String

SSL接入点的IP接入点。

无

Tags

String

标签。

无

DiskType

Integer

磁盘类型。

无

RegionId

String

实例的地域ID。

无

CreateTime

Integer

创建时间。

单位:ms。

InstanceId

String

实例ID。

无

Status

String

实例状态。

无

ZoneId

String

可用区ID。

无

DiskSize

Integer

磁盘容量。

单位:GB。

DeployType

Integer

部署类型。

无

DomainEndpoint

String

默认接入点的域名接入点。

无

InstanceName

String

实例名称。

无

EndPoint

String

默认接入点的IP接入点。

无

IoMax

Integer

流量峰值。

无

ResourceGroupId

String

资源组ID。

无

VSwitchId

String

vSwitch ID。

无

EipMax

Integer

公网流量峰值。

无

PaymentType

String

付费类型。

无

TopicNumLimit

Integer

Topic最大数量。

无

SpecType

String

实例规格。

无

MsgRetain

Integer

消息保留时长。

单位:小时。

VpcId

String

VPC ID。

无

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Description:
      en: The ID of the instance.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      InstanceId:
        Ref: InstanceId
    Type: DATASOURCE::KAFKA::Instances
Outputs:
  InstanceIds:
    Description: The list of instance IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - InstanceIds
  Instances:
    Description: The list of instances.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Instances
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the instance."
      }
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::KAFKA::Instances",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        }
      }
    }
  },
  "Outputs": {
    "Instances": {
      "Description": "The list of instances.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Instances"
        ]
      }
    },
    "InstanceIds": {
      "Description": "The list of instance IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceIds"
        ]
      }
    }
  }
}