Membuat titik pemasangan.
Deskripsi operasi
Saat Anda memanggil operasi CreateMountTarget untuk membuat titik pemasangan, beberapa resource dibuat secara asinkron. Setelah operasi CreateMountTarget berhasil, pertama-tama panggil operasi DescribeMountTargets untuk mengkueri status titik pemasangan. Jalankan operasi pemasangan sistem file hanya setelah status titik pemasangan berubah menjadi Active. Jika tidak, operasi pemasangan dapat gagal.
Memanggil operasi ini memicu pembuatan otomatis peran tertaut layanan yang diperlukan untuk operasi tersebut. Untuk informasi selengkapnya, lihat Kelola peran tertaut layanan untuk NAS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:CreateMountTarget |
create |
*FileSystem
*VSwitch
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file.
|
174494**** |
| AccessGroupName |
string |
No |
Nama grup izin. Parameter ini wajib diisi jika sistem file adalah sistem file NAS tujuan umum atau Extreme NAS. Grup izin default: DEFAULT_VPC_GROUP_NAME (grup izin default untuk VPC). |
vpc-test |
| NetworkType |
string |
Yes |
Jenis jaringan titik pemasangan. Atur nilai menjadi Vpc, yang menunjukkan virtual private cloud (VPC). Valid values:
|
Vpc |
| VpcId |
string |
No |
ID VPC. Parameter ini wajib diisi dan hanya berlaku ketika jenis jaringan adalah VPC. Contoh: Jika NetworkType diatur ke VPC, VpcId wajib diisi. |
vpc-2zesj9afh3y518k9o**** |
| VSwitchId |
string |
No |
ID vSwitch. Parameter ini wajib diisi dan hanya berlaku ketika jenis jaringan adalah VPC. Contoh: Jika NetworkType diatur ke VPC, VSwitchId wajib diisi. |
vsw-2zevmwkwyztjuoffg**** |
| SecurityGroupId |
string |
No |
ID grup keamanan. |
sg-bp1fg655nh68xyz9**** |
| EnableIpv6 |
boolean |
No |
Apakah akan membuat titik pemasangan IPv6. Nilai valid:
Catatan
IPv6 hanya didukung oleh sistem file Extreme NAS di semua wilayah di Tiongkok daratan. Sistem file harus memiliki IPv6 yang diaktifkan. |
true |
| DryRun |
boolean |
No |
Apakah akan memeriksa titik pemasangan yang sudah ada. Hanya sistem file CPFS yang didukung. Dry run memeriksa validitas parameter dan inventaris tanpa benar-benar membuat titik pemasangan atau membebankan biaya.
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
70EACC9C-D07A-4A34-ADA4-77506C42**** |
| MountTargetDomain |
string |
Titik pemasangan IPv4. |
174494b666-x****.cn-hangzhou.nas.aliyuncs.com |
| MountTargetExtra |
object |
Informasi titik pemasangan. |
|
| DualStackMountTargetDomain |
string |
Titik pemasangan dual-stack yang mendukung IPv4 dan IPv6. |
174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com |
Contoh
Respons sukses
JSONformat
{
"RequestId": "70EACC9C-D07A-4A34-ADA4-77506C42****",
"MountTargetDomain": "174494b666-x****.cn-hangzhou.nas.aliyuncs.com",
"MountTargetExtra": {
"DualStackMountTargetDomain": "174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 202 | RequestAccepted | The request has been accepted by the server. | |
| 400 | InvalidFileSystem.NotsupportedIPv6 | The file system does not support IPv6. | |
| 400 | InvalidVSwitch.Ipv6NotTurnOn | The VSwitch you are currently using has not enabled the IPv6 function. Please enable this function first and try again. | |
| 400 | IdempotentParameterMismatch | The same client token was passed in to different parameters. | |
| 400 | MissingParameter.AccessGroupName | You must specify AccessGroupName when you create a standard or extreme file system mount target. | |
| 400 | InvalidVSwitchId.IpNotEnough | The number of the specified VSwitch IP address is insufficient. | |
| 400 | InvalidParameter.ConflictVpcCidr | The specified VPC CIDR conflicts with the server. | |
| 400 | DryRunOperation | The request is validated with DryRun flag set. | |
| 400 | SubAccount.NoStandardSLRPermission | The RAM user does not have the permission to create service linked role AliyunServiceRoleForNasStandard. Please authorize the RAM user the permission ram:CreateServiceLinkedRole. | |
| 403 | OperationDenied.InvalidState | The operation is not permitted when the status is processing. | |
| 403 | InvalidRamRole.NotExist | The specified RAM role does not exist. | |
| 403 | InvalidRamRole.NoPermission | The specified RAM role does not have sufficient permission. | |
| 403 | InvalidMountTarget.AlreadyExisted | The specified mount target already exists. | |
| 403 | Resource.OutOfStock | The inventory of the specified zone is insufficient. | |
| 403 | OperationDenied.MountTargetExceedLimit | The maximum number of mount target in the specified file system is exceeded. | |
| 404 | InvalidParameter.VswNotFound | The specified VSwitch does not exist. | |
| 404 | InvalidParameter.VpcNotFound | The specified VPC does not exist. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.