Mengkueri informasi layanan protokol.
Deskripsi operasi
Operasi ini hanya berlaku untuk sistem file CPFS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeProtocolService |
list |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProtocolServiceIds |
string |
No |
ID layanan protokol.
|
ptc-197ed6a00f2b****,ptc-196ed6a00f2b**** |
| Status |
string |
No |
Mencocokkan status layanan protokol. Format: CSV Nilai valid:
|
Running,Updating |
| NextToken |
string |
No |
Jika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk memulai permintaan lain guna mendapatkan konten setelah bagian yang terpotong. |
aBcdg== |
| MaxResults |
integer |
No |
Jumlah maksimum hasil yang dikembalikan per kueri.
|
20 |
| FileSystemId |
string |
Yes |
ID sistem file. |
cpfs-099394bd928c**** |
| Description |
string |
No |
Mencocokkan deskripsi layanan protokol atau sebagian deskripsi. Batas:
|
此协议服务的描述 |
| ClientToken |
string |
No |
Menjamin idempotensi permintaan. Buat nilai parameter dari klien Anda untuk memastikan nilai tersebut unik di antara berbagai permintaan. ClientToken hanya mendukung karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Cara memastikan idempotensi. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId dari setiap permintaan API mungkin berbeda. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| NextToken |
string |
Penanda bagi pengguna untuk melanjutkan kueri layanan protokol yang tersisa. |
aBcdeg== |
| ProtocolServices |
array<object> |
Daftar informasi layanan protokol. |
|
|
object |
Informasi layanan protokol. |
||
| FileSystemId |
string |
ID sistem file. |
cpfs-099394bd928c**** |
| ProtocolServiceId |
string |
ID layanan protokol. |
ptc-197ed6a00f2b**** |
| ProtocolSpec |
string |
Spesifikasi kluster layanan protokol.
|
General |
| ProtocolThroughput |
integer |
Throughput layanan protokol. Unit: MB/s. |
500 |
| InstanceRAM |
integer |
Ukuran cache memori node protokol. Unit: GiB. |
0 |
| InstanceBaseThroughput |
integer |
Throughput dasar node protokol. Unit: MB/s. |
100 |
| InstanceBurstThroughput |
integer |
Throughput burst node protokol. Unit: MB/s. |
100 |
| MountTargetCount |
integer |
Jumlah total direktori CPFS dan Fileset yang diekspor dalam layanan protokol ini. |
5 |
| ProtocolType |
string |
Jenis protokol yang didukung oleh layanan protokol. Nilai valid:
|
NFS |
| Status |
string |
Status layanan protokol. Nilai valid:
|
Running |
| Description |
string |
Deskripsi layanan protokol. Batas:
|
此协议服务的描述 |
| CreateTime |
string |
Waktu pembuatan layanan protokol, dalam UTC. |
2018-12-12T07:28:38Z |
| ModifyTime |
string |
Waktu modifikasi layanan protokol, dalam UTC. |
2018-12-12T07:28:38Z |
| VpcId |
string |
ID VPC yang terkait dengan layanan protokol. |
vpc-123xxx |
| VSwitchId |
string |
ID vSwitch yang terkait dengan layanan protokol. |
vsw-123xxx |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"NextToken": "aBcdeg==",
"ProtocolServices": [
{
"FileSystemId": "cpfs-099394bd928c****",
"ProtocolServiceId": "ptc-197ed6a00f2b****",
"ProtocolSpec": "General",
"ProtocolThroughput": 500,
"InstanceRAM": 0,
"InstanceBaseThroughput": 100,
"InstanceBurstThroughput": 100,
"MountTargetCount": 5,
"ProtocolType": "NFS",
"Status": "Running",
"Description": "此协议服务的描述",
"CreateTime": "2018-12-12T07:28:38Z",
"ModifyTime": "2018-12-12T07:28:38Z",
"VpcId": "vpc-123xxx",
"VSwitchId": "vsw-123xxx"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | |
| 400 | InvalidParam.TooManyProtocolServiceIds | Too many protocol service ids given. | |
| 403 | InvalidStatus.NotSupported | The specified protocol service status does not support. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.