DATASOURCE::VOD::Storage

DATASOURCE::VOD::Storage类型用于获取存储信息。

语法

{
  "Type": "DATASOURCE::VOD::Storage",
  "Properties": {
    "StorageLocation": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

StorageLocation

String

存储ID。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • Type:存储类别。

  • StorageAcl:存储的ACL权限。

  • ResourceGroupId:资源组的ID。

  • CreateTime:创建时间。

  • GmtModified:修改时间。

  • DefaultUpload:是否默认上传。

  • StorageLocation:存储地址。

  • StorageUsage:存储使用率.

  • GroupId:分组ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  StorageLocation:
    Type: String
    Description:
      en: The ID of the Storage.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::VOD::Storage
    Properties:
      StorageLocation:
        Ref: StorageLocation
Outputs:
  Type:
    Description: The storage class.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Type
  StorageAcl:
    Description: Storage ACL.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - StorageAcl
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  CreateTime:
    Description: The creation time of the Storage.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  GmtModified:
    Description: Modification time.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GmtModified
  DefaultUpload:
    Description: Whether to upload by default.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DefaultUpload
  StorageLocation:
    Description: The ID of the Storage.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - StorageLocation
  StorageUsage:
    Description: Storage Use.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - StorageUsage
  GroupId:
    Description: Storage Group Id.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GroupId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "StorageLocation": {
      "Type": "String",
      "Description": {
        "en": "The ID of the Storage."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VOD::Storage",
      "Properties": {
        "StorageLocation": {
          "Ref": "StorageLocation"
        }
      }
    }
  },
  "Outputs": {
    "Type": {
      "Description": "The storage class.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "StorageAcl": {
      "Description": "Storage ACL.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageAcl"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the Storage.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "GmtModified": {
      "Description": "Modification time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GmtModified"
        ]
      }
    },
    "DefaultUpload": {
      "Description": "Whether to upload by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DefaultUpload"
        ]
      }
    },
    "StorageLocation": {
      "Description": "The ID of the Storage.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageLocation"
        ]
      }
    },
    "StorageUsage": {
      "Description": "Storage Use.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageUsage"
        ]
      }
    },
    "GroupId": {
      "Description": "Storage Group Id.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GroupId"
        ]
      }
    }
  }
}