共用方式為


Microsoft.NetApp netAppAccounts/capacityPools/volumes 2019-05-01

Bicep 資源定義

netAppAccounts/capacityPools/volumes 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.NetApp/netAppAccounts/capacityPools/volumes 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2019-05-01' = {
  name: 'string'
  location: 'string'
  tags: any()
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  properties: {
    creationToken: 'string'
    exportPolicy: {
      rules: [
        {
          allowedClients: 'string'
          cifs: bool
          nfsv3: bool
          nfsv4: bool
          ruleIndex: int
          unixReadWrite: bool
        }
      ]
    }
    mountTargets: [
      {
        endIp: 'string'
        fileSystemId: 'string'
        gateway: 'string'
        netmask: 'string'
        smbServerFqdn: 'string'
        startIp: 'string'
        subnet: 'string'
      }
    ]
    protocolTypes: [
      'string'
    ]
    serviceLevel: 'string'
    snapshotId: 'string'
    subnetId: 'string'
    usageThreshold: int
  }
}

屬性值

netAppAccounts/capacityPools/volumes

名字 描述 價值
名字 資源名稱

請參閱如何在 Bicep 中設定子資源的名稱和類型。
字串 (必要)
位置 資源位置 字串 (必要)
標籤 資源標籤 針對 Bicep,您可以使用 any() 函式。
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:capacityPools
性能 磁碟區屬性 VolumeProperties (必要)

VolumeProperties

名字 描述 價值
creationToken 磁碟區的唯一檔案路徑。 建立掛接目標時使用 字串 (必要)
exportPolicy 一組導出原則規則 VolumePropertiesExportPolicy
mountTargets 掛接目標清單 MountTargetProperties[]
protocolTypes 通訊協定類型的集合 string[]
serviceLevel 檔系統的服務等級 'Premium'
'Standard'
'Ultra'
snapshotId 用來識別快照集的 UUID v4 字串

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
subnetId 委派子網的 Azure 資源 URI。 必須有委派Microsoft.NetApp/volumes 字串 (必要)
usageThreshold 文件系統允許的記憶體配額上限,以位元組為單位。 這是僅用於警示的軟配額。 大小下限為 100 GiB。 上限為 100TiB。 以位元組指定。 int (必要)

約束:
最小值 = 107374182400
最大值 = 109951162777600

VolumePropertiesExportPolicy

名字 描述 價值
規則 匯出原則規則 ExportPolicyRule[]

ExportPolicyRule

名字 描述 價值
allowedClients 用戶端輸入規格以逗號分隔字串,其中包含IPv4CIDR、IPv4 主機名和主機名 字串
cifs 允許 CIFS 通訊協定 bool
nfsv3 允許 NFSv3 通訊協定 bool
nfsv4 已淘汰:將使用 NFSv4.1 通訊協定,請使用 Swagger 2019-07-01 版或更新版本 bool
ruleIndex 訂單索引 int
unixReadWrite 讀取和寫入存取權 bool

MountTargetProperties

名字 描述 價值
endIp 建立新掛接目標時要使用的IPv4位址範圍結尾 字串
fileSystemId 用來識別 MountTarget 的 UUID v4 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
閘道 建立新掛接目標時要使用的IPv4位址範圍的閘道 字串
netmask 建立新掛接目標時要使用的 IPv4 位址範圍的 netmask 字串
smbServerFqdn SMB 伺服器的完整功能變數名稱 FQDN 字串
startIp 建立新掛接目標時要使用的IPv4位址範圍開頭 字串
子網 字串

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
使用 NFSV3/NFSv4.1 磁碟區建立新的 ANF 資源

部署至 Azure
此範本可讓您建立新的 Azure NetApp Files 資源,其中包含單一容量集區和使用 NFSV3 或 NFSv4.1 通訊協定設定的單一磁碟區。 它們全都部署在一起,以及建立任何磁碟區所需的 Azure 虛擬網路和委派子網
使用SMB磁碟區建立新的ANF資源

部署至 Azure
此範本可讓您使用單一容量集區和使用SMB通訊協定設定的單一磁碟區來建立新的 Azure NetApp Files 資源。

ARM 樣本資源定義

netAppAccounts/capacityPools/volumes 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.NetApp/netAppAccounts/capacityPools/volumes 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
  "apiVersion": "2019-05-01",
  "name": "string",
  "location": "string",
  "tags": {},
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "creationToken": "string",
    "exportPolicy": {
      "rules": [
        {
          "allowedClients": "string",
          "cifs": "bool",
          "nfsv3": "bool",
          "nfsv4": "bool",
          "ruleIndex": "int",
          "unixReadWrite": "bool"
        }
      ]
    },
    "mountTargets": [
      {
        "endIp": "string",
        "fileSystemId": "string",
        "gateway": "string",
        "netmask": "string",
        "smbServerFqdn": "string",
        "startIp": "string",
        "subnet": "string"
      }
    ],
    "protocolTypes": [ "string" ],
    "serviceLevel": "string",
    "snapshotId": "string",
    "subnetId": "string",
    "usageThreshold": "int"
  }
}

屬性值

netAppAccounts/capacityPools/volumes

名字 描述 價值
類型 資源類型 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes'
apiVersion 資源 API 版本 '2019-05-01'
名字 資源名稱

請參閱如何在JSON ARM 範本中設定子資源的名稱和類型。
字串 (必要)
位置 資源位置 字串 (必要)
標籤 資源標籤
性能 磁碟區屬性 VolumeProperties (必要)

VolumeProperties

名字 描述 價值
creationToken 磁碟區的唯一檔案路徑。 建立掛接目標時使用 字串 (必要)
exportPolicy 一組導出原則規則 VolumePropertiesExportPolicy
mountTargets 掛接目標清單 MountTargetProperties[]
protocolTypes 通訊協定類型的集合 string[]
serviceLevel 檔系統的服務等級 'Premium'
'Standard'
'Ultra'
snapshotId 用來識別快照集的 UUID v4 字串

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
subnetId 委派子網的 Azure 資源 URI。 必須有委派Microsoft.NetApp/volumes 字串 (必要)
usageThreshold 文件系統允許的記憶體配額上限,以位元組為單位。 這是僅用於警示的軟配額。 大小下限為 100 GiB。 上限為 100TiB。 以位元組指定。 int (必要)

約束:
最小值 = 107374182400
最大值 = 109951162777600

VolumePropertiesExportPolicy

名字 描述 價值
規則 匯出原則規則 ExportPolicyRule[]

ExportPolicyRule

名字 描述 價值
allowedClients 用戶端輸入規格以逗號分隔字串,其中包含IPv4CIDR、IPv4 主機名和主機名 字串
cifs 允許 CIFS 通訊協定 bool
nfsv3 允許 NFSv3 通訊協定 bool
nfsv4 已淘汰:將使用 NFSv4.1 通訊協定,請使用 Swagger 2019-07-01 版或更新版本 bool
ruleIndex 訂單索引 int
unixReadWrite 讀取和寫入存取權 bool

MountTargetProperties

名字 描述 價值
endIp 建立新掛接目標時要使用的IPv4位址範圍結尾 字串
fileSystemId 用來識別 MountTarget 的 UUID v4 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
閘道 建立新掛接目標時要使用的IPv4位址範圍的閘道 字串
netmask 建立新掛接目標時要使用的 IPv4 位址範圍的 netmask 字串
smbServerFqdn SMB 伺服器的完整功能變數名稱 FQDN 字串
startIp 建立新掛接目標時要使用的IPv4位址範圍開頭 字串
子網 字串

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
使用 NFSV3/NFSv4.1 磁碟區建立新的 ANF 資源

部署至 Azure
此範本可讓您建立新的 Azure NetApp Files 資源,其中包含單一容量集區和使用 NFSV3 或 NFSv4.1 通訊協定設定的單一磁碟區。 它們全都部署在一起,以及建立任何磁碟區所需的 Azure 虛擬網路和委派子網
使用SMB磁碟區建立新的ANF資源

部署至 Azure
此範本可讓您使用單一容量集區和使用SMB通訊協定設定的單一磁碟區來建立新的 Azure NetApp Files 資源。

Terraform (AzAPI 提供者) 資源定義

netAppAccounts/capacityPools/volumes 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.NetApp/netAppAccounts/capacityPools/volumes 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2019-05-01"
  name = "string"
  location = "string"
  parent_id = "string"
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      creationToken = "string"
      exportPolicy = {
        rules = [
          {
            allowedClients = "string"
            cifs = bool
            nfsv3 = bool
            nfsv4 = bool
            ruleIndex = int
            unixReadWrite = bool
          }
        ]
      }
      mountTargets = [
        {
          endIp = "string"
          fileSystemId = "string"
          gateway = "string"
          netmask = "string"
          smbServerFqdn = "string"
          startIp = "string"
          subnet = "string"
        }
      ]
      protocolTypes = [
        "string"
      ]
      serviceLevel = "string"
      snapshotId = "string"
      subnetId = "string"
      usageThreshold = int
    }
  })
}

屬性值

netAppAccounts/capacityPools/volumes

名字 描述 價值
類型 資源類型 “Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2019-05-01”
名字 資源名稱 字串 (必要)
位置 資源位置 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:capacityPools
標籤 資源標籤
性能 磁碟區屬性 VolumeProperties (必要)

VolumeProperties

名字 描述 價值
creationToken 磁碟區的唯一檔案路徑。 建立掛接目標時使用 字串 (必要)
exportPolicy 一組導出原則規則 VolumePropertiesExportPolicy
mountTargets 掛接目標清單 MountTargetProperties[]
protocolTypes 通訊協定類型的集合 string[]
serviceLevel 檔系統的服務等級 “Premium”
“Standard”
“Ultra”
snapshotId 用來識別快照集的 UUID v4 字串

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
subnetId 委派子網的 Azure 資源 URI。 必須有委派Microsoft.NetApp/volumes 字串 (必要)
usageThreshold 文件系統允許的記憶體配額上限,以位元組為單位。 這是僅用於警示的軟配額。 大小下限為 100 GiB。 上限為 100TiB。 以位元組指定。 int (必要)

約束:
最小值 = 107374182400
最大值 = 109951162777600

VolumePropertiesExportPolicy

名字 描述 價值
規則 匯出原則規則 ExportPolicyRule[]

ExportPolicyRule

名字 描述 價值
allowedClients 用戶端輸入規格以逗號分隔字串,其中包含IPv4CIDR、IPv4 主機名和主機名 字串
cifs 允許 CIFS 通訊協定 bool
nfsv3 允許 NFSv3 通訊協定 bool
nfsv4 已淘汰:將使用 NFSv4.1 通訊協定,請使用 Swagger 2019-07-01 版或更新版本 bool
ruleIndex 訂單索引 int
unixReadWrite 讀取和寫入存取權 bool

MountTargetProperties

名字 描述 價值
endIp 建立新掛接目標時要使用的IPv4位址範圍結尾 字串
fileSystemId 用來識別 MountTarget 的 UUID v4 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
閘道 建立新掛接目標時要使用的IPv4位址範圍的閘道 字串
netmask 建立新掛接目標時要使用的 IPv4 位址範圍的 netmask 字串
smbServerFqdn SMB 伺服器的完整功能變數名稱 FQDN 字串
startIp 建立新掛接目標時要使用的IPv4位址範圍開頭 字串
子網 字串