全部产品
Search
文档中心

资源编排:ALIYUN::VOD::Storage

更新时间:Jan 09, 2024

ALIYUN::VOD::Storage类型用于添加OSS自有Bucket。

语法

{
  "Type": "ALIYUN::VOD::Storage",
  "Properties": {
    "StorageType": String,
    "DefaultUpload": Boolean,
    "StorageLocation": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

StorageType

String

存储类型。

DefaultUpload

Boolean

是否默认上传。

取值:

  • true:默认上传。

  • false: 默认不上传。

StorageLocation

String

存储地址。

您可以视频点播控制台的左侧导航栏选择媒资管理配置 > 存储管理页面查看存储地址。

返回值

Fn::GetAtt

  • Type:存储类型

  • StorageAcl:存储的ACL权限.

  • ResourceGroupId:资源组的ID。

  • CreateTime:创建时间

  • GmtModified:修改时间

  • DefaultUpload:是否默认上传。

  • StorageLocation:存储地址

  • StorageUsage:存储使用率.

  • GroupId:分组ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DefaultUpload:
        Description:
          en: Whether to upload by default.
        Type: Boolean
      ResourceGroupId:
        Description:
          en: The ID of the resource group.
        Type: String
      StorageAcl:
        Description:
          en: Storage ACL.
        Type: String
      StorageLocation:
        Description:
          en: Storage address.
        Type: String
      StorageType:
        Description:
          en: Storage Type.
        Type: String
    Resources:
      ExtensionResource:
        Properties:
          DefaultUpload:
            Ref: DefaultUpload
          ResourceGroupId:
            Ref: ResourceGroupId
          StorageAcl:
            Ref: StorageAcl
          StorageLocation:
            Ref: StorageLocation
          StorageType:
            Ref: StorageType
        Type: ALIYUN::VOD::Storage
    Outputs:
      CreateTime:
        Description: The creation time of the storage.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CreateTime
      DefaultUpload:
        Description: Whether to upload by default.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DefaultUpload
      GmtModified:
        Description: Modification time.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - GmtModified
      GroupId:
        Description: Group id.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - GroupId
      ResourceGroupId:
        Description: The ID of the resource group.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - ResourceGroupId
      StorageAcl:
        Description: Storage ACL.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - StorageAcl
      StorageLocation:
        Description: Storage address.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - StorageLocation
      StorageUsage:
        Description: Storage usage.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - StorageUsage
      Type:
        Description: Storage type.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - Type
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "StorageType": {
          "Type": "String",
          "Description": {
            "en": "Storage Type."
          }
        },
        "ResourceGroupId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the resource group."
          }
        },
        "StorageAcl": {
          "Type": "String",
          "Description": {
            "en": "Storage ACL."
          }
        },
        "DefaultUpload": {
          "Type": "Boolean",
          "Description": {
            "en": "Whether to upload by default."
          }
        },
        "StorageLocation": {
          "Type": "String",
          "Description": {
            "en": "Storage address."
          }
        }
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::VOD::Storage",
          "Properties": {
            "StorageType": {
              "Ref": "StorageType"
            },
            "ResourceGroupId": {
              "Ref": "ResourceGroupId"
            },
            "StorageAcl": {
              "Ref": "StorageAcl"
            },
            "DefaultUpload": {
              "Ref": "DefaultUpload"
            },
            "StorageLocation": {
              "Ref": "StorageLocation"
            }
          }
        }
      },
      "Outputs": {
        "Type": {
          "Description": "Storage type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Type"
            ]
          }
        },
        "StorageAcl": {
          "Description": "Storage ACL.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "StorageAcl"
            ]
          }
        },
        "ResourceGroupId": {
          "Description": "The ID of the resource group.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ResourceGroupId"
            ]
          }
        },
        "CreateTime": {
          "Description": "The creation time of the storage.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "GmtModified": {
          "Description": "Modification time.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "GmtModified"
            ]
          }
        },
        "DefaultUpload": {
          "Description": "Whether to upload by default.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DefaultUpload"
            ]
          }
        },
        "StorageLocation": {
          "Description": "Storage address.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "StorageLocation"
            ]
          }
        },
        "StorageUsage": {
          "Description": "Storage usage.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "StorageUsage"
            ]
          }
        },
        "GroupId": {
          "Description": "Group id.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "GroupId"
            ]
          }
        }
      }
    }