Membuat sistem file NAS dengan memanggil operasi CreateFileSystem.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateFileSystem |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| OrderDetails |
array<object> |
Yes |
Daftar pesanan. Setiap elemen dalam daftar berisi detail pesanan. |
|
|
object |
Yes |
|||
| OrderType |
string |
Yes |
Jenis pesanan. Nilai valid: BUY (pembelian). |
BUY |
| ChargeType |
string |
Yes |
Metode penagihan NAS. Nilai valid:
|
PostPaid |
| FileSystemName |
string |
Yes |
Nama sistem file. Panjang nama harus 1 hingga 80 karakter dan dapat berisi huruf, angka, tanda hubung (-), dan garis bawah (_). |
nasFile |
| EnsRegionId |
string |
Yes |
ID Node Tepi. |
cn-suzhou-telecom |
| StorgeType |
string |
Yes |
Jenis penyimpanan. Nilai valid:
|
capacity |
| ProtocolType |
string |
Yes |
Protokol penyimpanan. Nilai valid: nfs. Valid values:
|
nfs |
| NetworkId |
string |
Yes |
ID VPC. |
vpc-xxx |
| MountTargetDomain |
string |
Yes |
Nama Titik pemasangan. Panjang nama harus 1 hingga 80 karakter dan dapat berisi huruf, angka, tanda hubung (-), dan garis bawah (_). |
nasMount |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| AllocationId |
array |
Sistem file yang dibuat. |
|
|
string |
|
{"InstanceId":"e426409223", "EnsRegionId":"cn-chengdu-telecom-4"} |
|
| BizStatusCode |
string |
Kode status yang menunjukkan keberhasilan. Nilai valid:
|
PartSuccess |
| UnAllocationId |
array |
Sistem file yang gagal dibuat. |
|
|
string |
|
{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"} |
|
| AllocationIds |
array<object> |
||
|
object |
|||
| EnsRegionId |
string |
||
| InstanceId |
string |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"AllocationId": [
"{\"InstanceId\":\"e426409223\", \"EnsRegionId\":\"cn-chengdu-telecom-4\"}"
],
"BizStatusCode": "PartSuccess",
"UnAllocationId": [
"{\"InstanceId\":\"e4264066666\",\"EnsRegionId\":\"cn-hangzhou-26\"}"
],
"AllocationIds": [
{
"EnsRegionId": "",
"InstanceId": ""
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Invalid.%s | The parameter %s is invalid.Please check your parameters and try it again. | |
| 400 | Stock.NotEnough | The inventory of the specified zone is insufficient.Please contact the product. | |
| 400 | UserStatus.Abnormal | The user status is abnormal.Please contact the product. | |
| 400 | Service.NotOpen | You have not activated the service.Please activate the service first. | |
| 400 | Order.CreateFailed | Failed to create order. Please check your parameters and try it again. | |
| 400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.