DATASOURCE::VOD::Storages类型用于获取存储列表。
语法
{
  "Type": "DATASOURCE::VOD::Storages",
  "Properties": {
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- Storages:存储列表详情。 
- StorageLocations:存储ID列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| StorageLocations | List | 存储地址列表。 | 无 | 
| Storages | List | 存储列表详情。 | 无 | 
| StorageUsage | String | 存储使用率。 | 无 | 
| StorageLocation | String | 存储地址。 | 无 | 
| DefaultUpload | String | 是否默认上传。 | 无 | 
| GroupId | String | 分组ID。 | 无 | 
| ResourceGroupId | String | 资源组的ID。 | 无 | 
| GmtModified | String | 修改时间。 | 无 | 
| Type | String | 存储类型。 | 无 | 
| CreateTime | String | 创建时间。 | 无 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::VOD::Storages
    Properties: {}
Outputs:
  Storages:
    Description: The list of storages.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Storages
  StorageLocations:
    Description: The list of storage locations.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - StorageLocations
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VOD::Storages",
      "Properties": {
      }
    }
  },
  "Outputs": {
    "Storages": {
      "Description": "The list of storages.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Storages"
        ]
      }
    },
    "StorageLocations": {
      "Description": "The list of storage locations.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageLocations"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?