全部产品
Search
文档中心

资源编排:DATASOURCE::NAS::FileSystem

更新时间:Nov 01, 2024

DATASOURCE::NAS::FileSystem类型用于查询文件系统信息。

语法

{
  "Type": "DATASOURCE::NAS::FileSystem",
  "Properties": {
    "FileSystemId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

FileSystemId

String

文件系统ID。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • Description:文件系统的描述信息。

  • StorageType:存储类型。

  • Ldap:LDAP配置信息集合。

  • ZoneId:文件系统所在的可用区ID。

  • KmsKeyId:KMS密钥ID。

  • CreateTime:文件系统的创建时间。

  • MeteredSize:低频介质存储用量。

  • EncryptType:加密类型。

  • Capacity:文件系统的容量。

  • ProtocolType:文件系统的协议类型。

  • FileSystemType:文件系统类型。

  • Bandwidth:文件系统的带宽。

  • ExpiredTime:文件系统的到期时间。

  • FileSystemId:文件系统ID。

  • PaymentType:付费类型。

  • Tags:文件系统的标签信息集合。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  FileSystemId:
    Description:
      en: The ID of the file system to be created.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      FileSystemId:
        Ref: FileSystemId
    Type: DATASOURCE::NAS::FileSystem
Outputs:
  Bandwidth:
    Description: Maximum file system throughput.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Bandwidth
  Capacity:
    Description: File system capacity.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Capacity
  CreateTime:
    Description: CreateTime.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  Description:
    Description: File system description.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Description
  EncryptType:
    Description: Whether the file system is encrypted.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - EncryptType
  ExpiredTime:
    Description: ExpiredTime.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ExpiredTime
  FileSystemId:
    Description: The ID of the file system to be created.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - FileSystemId
  FileSystemType:
    Description: File system type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - FileSystemType
  KmsKeyId:
    Description: The ID of the KMS key.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KmsKeyId
  Ldap:
    Description: Ldap.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ldap
  MeteredSize:
    Description: MeteredSize.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - MeteredSize
  PaymentType:
    Description: ChargeType.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PaymentType
  ProtocolType:
    Description: File transfer protocol type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ProtocolType
  StorageType:
    Description: Storage type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - StorageType
  Tags:
    Description: Tags.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Tags
  ZoneId:
    Description: The zone ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ZoneId
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "FileSystemId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the file system to be created."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::NAS::FileSystem",
      "Properties": {
        "FileSystemId": {
          "Ref": "FileSystemId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "File system description.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "StorageType": {
      "Description": "Storage type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageType"
        ]
      }
    },
    "Ldap": {
      "Description": "Ldap.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ldap"
        ]
      }
    },
    "ZoneId": {
      "Description": "The zone ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ZoneId"
        ]
      }
    },
    "KmsKeyId": {
      "Description": "The ID of the KMS key.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KmsKeyId"
        ]
      }
    },
    "CreateTime": {
      "Description": "CreateTime.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "MeteredSize": {
      "Description": "MeteredSize.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MeteredSize"
        ]
      }
    },
    "EncryptType": {
      "Description": "Whether the file system is encrypted.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EncryptType"
        ]
      }
    },
    "Capacity": {
      "Description": "File system capacity.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Capacity"
        ]
      }
    },
    "ProtocolType": {
      "Description": "File transfer protocol type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ProtocolType"
        ]
      }
    },
    "FileSystemType": {
      "Description": "File system type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FileSystemType"
        ]
      }
    },
    "Bandwidth": {
      "Description": "Maximum file system throughput.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Bandwidth"
        ]
      }
    },
    "ExpiredTime": {
      "Description": "ExpiredTime.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExpiredTime"
        ]
      }
    },
    "FileSystemId": {
      "Description": "The ID of the file system to be created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FileSystemId"
        ]
      }
    },
    "PaymentType": {
      "Description": "ChargeType.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "Tags": {
      "Description": "Tags.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    }
  }
}