全部产品
Search
文档中心

Resource Orchestration Service:ALIYUN::NAS::ProtocolMountTarget

更新时间:Jun 26, 2025

ALIYUN::NAS::ProtocolMountTarget digunakan untuk membuat direktori ekspor layanan protokol.

Sintaks

{
  "Type": "ALIYUN::NAS::ProtocolMountTarget",
  "Properties": {
    "FsetId": String,
    "Path": String,
    "Description": String,
    "VpcId": String,
    "VSwitchId": String,
    "AccessGroupName": String,
    "FileSystemId": String,
    "ProtocolServiceId": String
  }
}

Properti

Properti

Tipe

Diperlukan

Dapat Diedit

Deskripsi

Batasan

FsetId

String

Tidak

Tidak

ID fileset yang ingin Anda ekspor.

Berikut adalah batasan yang berlaku:

  • Fileset sudah ada.

  • Anda hanya dapat membuat satu direktori ekspor untuk sebuah fileset.

  • Anda harus dan hanya dapat menentukan salah satu dari Fileset atau Path.

Path

String

Tidak

Tidak

Jalur direktori Sistem File Paralel Cloud (CPFS) yang ingin Anda ekspor.

Berikut adalah batasan yang berlaku:

  • Direktori sudah ada di CPFS.

  • Anda hanya dapat membuat satu direktori ekspor untuk sebuah direktori.

  • Anda harus dan hanya dapat menentukan salah satu dari Fileset atau Path.

Format nilai:

  • Jalur harus memiliki panjang antara 1 hingga 1.024 karakter.

  • Jalur harus dikodekan dalam UTF-8.

  • Jalur harus dimulai dan diakhiri dengan garis miring (/). Direktori root harus /.

Description

String

Tidak

Ya

Deskripsi direktori ekspor.

Berikut adalah batasan yang berlaku:

  • Deskripsi harus memiliki panjang antara 2 hingga 128 karakter.

  • Deskripsi harus dimulai dengan huruf tetapi tidak boleh dimulai dengan http:// atau https://.

  • Deskripsi dapat berisi huruf, angka, titik dua (:), garis bawah (_), dan tanda hubung (-).

VpcId

String

Ya

Tidak

ID virtual private cloud (VPC) dari direktori ekspor.

Tidak ada.

VSwitchId

String

Ya

Tidak

ID vSwitch dari direktori ekspor.

Tidak ada.

AccessGroupName

String

Tidak

Tidak

Nama grup izin.

Nilai default: DEFAULT_VPC_GROUP_NAME.

FileSystemId

String

Ya

Tidak

ID sistem file.

Tidak ada.

ProtocolServiceId

String

Ya

Tidak

ID layanan protokol.

Tidak ada.

Nilai kembali

Fn::GetAtt

  • ExportId: ID direktori ekspor.

  • FileSystemId: ID sistem file.

  • ProtocolServiceId: ID layanan protokol.

  • ProtocolMountTargetDomain: Domain tujuan layanan protokol yang dipasang.

Contoh

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      FileSystemId:
        Default: cpfs-03c125afccbd****
        Type: String
      VpcId:
        Default: vpc-2zebbi27bn7w42n30****
        Type: String
      FsetId:
        Default: fset-123****
        Type: String
      ProtocolServiceId:
        Default: ptc-123****
        Type: String
      VSwitchId:
        Default: vsw-2ze34tr01i6h4l2km****
        Type: String
    Resources:
      ProtocolMountTarget:
        Type: ALIYUN::NAS::ProtocolMountTarget
        Properties:
          VpcId:
            Ref: VpcId
          Description: ros_test_protocol_mount_target
          FileSystemId:
            Ref: FileSystemId
          FsetId:
            Ref: FsetId
          VSwitchId:
            Ref: VSwitchId
          AccessGroupName: DEFAULT_VPC_GROUP_NAME
          ProtocolServiceId:
            Ref: ProtocolServiceId
    Outputs:
      ExportId:
        Value:
          Fn::GetAtt:
          - ProtocolMountTarget
          - ExportId
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "FileSystemId": {
          "Default": "cpfs-03c125afccbd****",
          "Type": "String"
        },
        "VpcId": {
          "Default": "vpc-2zebbi27bn7w42n30****",
          "Type": "String"
        },
        "FsetId": {
          "Default": "fset-123****",
          "Type": "String"
        },
        "ProtocolServiceId": {
          "Default": "ptc-123****",
          "Type": "String"
        },
        "VSwitchId": {
          "Default": "vsw-2ze34tr01i6h4l2km****",
          "Type": "String"
        }
      },
      "Resources": {
        "ProtocolMountTarget": {
          "Type": "ALIYUN::NAS::ProtocolMountTarget",
          "Properties": {
            "VpcId": {
              "Ref": "VpcId"
            },
            "Description": "ros_test_protocol_mount_target",
            "FileSystemId": {
              "Ref": "FileSystemId"
            },
            "FsetId": {
              "Ref": "FsetId"
            },
            "VSwitchId": {
              "Ref": "VSwitchId"
            },
            "AccessGroupName": "DEFAULT_VPC_GROUP_NAME",
            "ProtocolServiceId": {
              "Ref": "ProtocolServiceId"
            }
          }
        }
      },
      "Outputs": {
        "ExportId": {
          "Value": {
            "Fn::GetAtt": [
              "ProtocolMountTarget",
              "ExportId"
            ]
          }
        }
      }
    }