DATASOURCE::EBS::DedicatedBlockStorageCluster类型用于查询单个专属块存储集群详情。
语法
{
  "Type": "DATASOURCE::EBS::DedicatedBlockStorageCluster",
  "Properties": {
    "DedicatedBlockStorageClusterId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| DedicatedBlockStorageClusterId | String | 是 | 是 | 专属块存储集群ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值: 
 | 
返回值
Fn::GetAtt
- Category:专属块存储集群可创建的云盘类型。 
- Description:专属块存储集群的描述信息。 
- ZoneId:专属块存储集群所属的可用区 ID。 
- ResourceGroupId:专属集群所在的企业资源组 ID。 
- DedicatedBlockStorageClusterId:专属块存储集群 ID。 
- AvailableCapacity:专属块存储集群的可用容量。 
- PerformanceLevel:云盘性能等级。 
- CreateTime:专属块存储集群创建时间。 
- UsedCapacity:当前集群的已使用(已创盘)容量,单位为 GiB。 
- SupportedCategory:已支持的云盘类型。 
- Type:专属块存储集群性能类型。 
- ExpiredTime:专属块存储集群到期时间,格式为 Unix 时间戳,单位为秒。 
- DedicatedBlockStorageClusterName:专属块存储集群名称。 
- DeliveryCapacity:待交付容量,单位为 GiB。 
- TotalCapacity:专属块存储集群的总容量,单位为 GiB。 
- Tags:专属集群的标签。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DedicatedBlockStorageClusterId:
    Type: String
    Description:
      en: The ID of the dedicated block storage cluster.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::EBS::DedicatedBlockStorageCluster
    Properties:
      DedicatedBlockStorageClusterId:
        Ref: DedicatedBlockStorageClusterId
Outputs:
  Category:
    Description: The category of disks that can be created in the dedicated block storage cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Category
  Description:
    Description: The description of the dedicated block storage cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  ZoneId:
    Description: The zone ID of the dedicated block storage cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ZoneId
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  DedicatedBlockStorageClusterId:
    Description: The ID of the dedicated block storage cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DedicatedBlockStorageClusterId
  AvailableCapacity:
    Description: 'The available capacity of the dedicated block storage cluster. Unit: GiB.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AvailableCapacity
  PerformanceLevel:
    Description: 'The performance level of disks. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PerformanceLevel
  CreateTime:
    Description: 'The time when the dedicated block storage cluster was created. The value is a UNIX timestamp. Unit: seconds.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  UsedCapacity:
    Description: The used (created disk) capacity of the current cluster, in GB.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - UsedCapacity
  SupportedCategory:
    Description: This parameter is not supported.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SupportedCategory
  Type:
    Description: The dedicated block storage cluster performance type.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Type
  ExpiredTime:
    Description: The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ExpiredTime
  DedicatedBlockStorageClusterName:
    Description: The name of the dedicated block storage cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DedicatedBlockStorageClusterName
  DeliveryCapacity:
    Description: 'The capacity to be delivered for the dedicated block storage cluster. Unit: GiB.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DeliveryCapacity
  TotalCapacity:
    Description: 'The total capacity of the dedicated block storage cluster. Unit: GiB.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TotalCapacity
  Tags:
    Description: The tags of the dedicated block storage cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DedicatedBlockStorageClusterId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the dedicated block storage cluster."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::EBS::DedicatedBlockStorageCluster",
      "Properties": {
        "DedicatedBlockStorageClusterId": {
          "Ref": "DedicatedBlockStorageClusterId"
        }
      }
    }
  },
  "Outputs": {
    "Category": {
      "Description": "The category of disks that can be created in the dedicated block storage cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Category"
        ]
      }
    },
    "Description": {
      "Description": "The description of the dedicated block storage cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "ZoneId": {
      "Description": "The zone ID of the dedicated block storage cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ZoneId"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "DedicatedBlockStorageClusterId": {
      "Description": "The ID of the dedicated block storage cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DedicatedBlockStorageClusterId"
        ]
      }
    },
    "AvailableCapacity": {
      "Description": "The available capacity of the dedicated block storage cluster. Unit: GiB.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AvailableCapacity"
        ]
      }
    },
    "PerformanceLevel": {
      "Description": "The performance level of disks. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PerformanceLevel"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the dedicated block storage cluster was created. The value is a UNIX timestamp. Unit: seconds.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "UsedCapacity": {
      "Description": "The used (created disk) capacity of the current cluster, in GB.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UsedCapacity"
        ]
      }
    },
    "SupportedCategory": {
      "Description": "This parameter is not supported.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SupportedCategory"
        ]
      }
    },
    "Type": {
      "Description": "The dedicated block storage cluster performance type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "ExpiredTime": {
      "Description": "The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExpiredTime"
        ]
      }
    },
    "DedicatedBlockStorageClusterName": {
      "Description": "The name of the dedicated block storage cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DedicatedBlockStorageClusterName"
        ]
      }
    },
    "DeliveryCapacity": {
      "Description": "The capacity to be delivered for the dedicated block storage cluster. Unit: GiB.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DeliveryCapacity"
        ]
      }
    },
    "TotalCapacity": {
      "Description": "The total capacity of the dedicated block storage cluster. Unit: GiB.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TotalCapacity"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the dedicated block storage cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?