Membuat Titik pemasangan.
Deskripsi operasi
Saat Anda memanggil operasi CreateMountTarget untuk membuat Titik pemasangan, beberapa resource dibuat secara asinkron. Setelah operasi CreateMountTarget berhasil dipanggil, panggil operasi DescribeMountTargets untuk mengkueri status Titik pemasangan. Lanjutkan dengan operasi memasang sistem file hanya setelah status Titik pemasangan menjadi Active. Jika tidak, pemasangan dapat gagal.
Memanggil operasi ini secara otomatis membuat peran terkait layanan NAS yang diperlukan untuk operasi tersebut. Untuk informasi selengkapnya, lihat Kelola peran terkait layanan 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 ketika sistem file target adalah NAS tujuan umum atau Extreme NAS. Grup izin default: DEFAULT_VPC_GROUP_NAME (grup izin default 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. Misalnya: Ketika NetworkType=VPC, VpcId wajib diisi. |
vpc-2zesj9afh3y518k9o**** |
| VSwitchId |
string |
No |
ID vSwitch. Parameter ini wajib diisi dan hanya berlaku ketika jenis jaringan adalah VPC. Misalnya: Ketika NetworkType=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
Saat ini, hanya Extreme NAS di wilayah Tiongkok daratan yang mendukung fitur IPv6, dan sistem file harus memiliki IPv6 yang diaktifkan. |
true |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run untuk memeriksa Titik pemasangan yang ada. Hanya sistem file CPFS yang didukung untuk validasi. Operasi dry run membantu Anda memeriksa validitas parameter dan memverifikasi inventaris tanpa benar-benar membuat Titik pemasangan atau menimbulkan biaya apa pun.
|
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 |
Kumpulan informasi Titik pemasangan. |
|
| DualStackMountTargetDomain |
string |
Titik pemasangan dual-stack 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.