The DATASOURCE::VOD::Storage type is used to retrieve storage information.
Syntax
{
"Type": "DATASOURCE::VOD::Storage",
"Properties": {
"StorageLocation": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
StorageLocation | String | Yes | Yes | The ID of the storage resource. | None |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
Type: the storage class.
StorageAcl: the ACL permission of the storage.
ResourceGroupId: the ID of the resource group.
CreateTime: the creation time.
GmtModified: the time when the storage 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
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"
]
}
}
}
}