All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VOD::Storage

更新時間:Jan 12, 2024

ALIYUN::VOD::Storage is used to add an Object Storage Service (OSS) bucket in ApsaraVideo VOD (VOD).

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

StorageType

String

Yes

No

The storage type.

None.

DefaultUpload

Boolean

No

Yes

Specifies whether to upload media resources to the default storage address.

Valid values:

  • true

  • false

StorageLocation

String

Yes

No

The storage address.

You can perform the following operations to view the storage address on the Storage page: Log on to the VOD console. In the left-side navigation pane, choose Configuration Management > Media Management > Storage.

Return values

Fn::GetAtt

  • Type: the storage type.

  • StorageAcl: the access control list (ACL) of the storage.

  • ResourceGroupId: the ID of the resource group.

  • CreateTime: the time when the bucket was created.

  • GmtModified: the time when the bucket was modified.

  • DefaultUpload: indicates whether media resources are uploaded to the default storage address.

  • StorageLocation: the storage address.

  • StorageUsage: the storage usage.

  • GroupId: the group ID.

Examples

  • YAML format

    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 format

    {
      "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"
            ]
          }
        }
      }
    }