Panggil operasi ini untuk menampilkan daftar tipe resource dari suatu layanan.
Deskripsi operasi
GET /api/v1/providers/{provider}/products/{product}/resourceTypes.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
GET /api/v1/providers/{provider}/products/{product}/resourceTypes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| provider |
string |
Yes |
Penyedia layanan Cloud. Hanya Aliyun yang didukung. |
Aliyun |
| product |
string |
Yes |
Kode layanan. |
ECS |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| x-acs-accept-language |
string |
No |
Pilih bahasa yang digunakan dalam respons. zh_CH: Bahasa Tiongkok (default). en_US: Bahasa Inggris. Valid values:
|
zh_CH |
| resourceTypes |
array |
No |
Informasi mengenai tipe resource. |
|
|
string |
No |
Tipe resource. |
Instance |
|
| nextToken |
string |
No |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Jika parameter ini dikosongkan, kueri dimulai dari awal. |
ECS::Disk |
| maxResults |
integer |
No |
Jumlah entri per halaman. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| maxResults |
integer |
Jumlah maksimum entri yang dikembalikan. |
10 |
| nextToken |
string |
Token paginasi. Token ini dapat digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Jika NextToken kosong, berarti tidak ada halaman berikutnya. |
ECS::Disk |
| requestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| resourceTypes |
array<object> |
Informasi mengenai tipe resource. |
|
|
array<object> |
Tipe resource. |
||
| createOnlyProperties |
array |
Properti yang khusus untuk operasi pembuatan. Anda harus menentukan properti ini saat membuat resource. Properti ini tidak dikembalikan saat Anda melakukan kueri terhadap resource tersebut. |
|
|
string |
Properti yang khusus untuk operasi pembuatan. |
/properties/AutoRenew |
|
| deleteOnlyProperties |
array |
Properti yang khusus untuk operasi penghapusan. Anda harus menentukan properti ini saat menghapus resource. Properti ini tidak dikembalikan saat Anda melakukan kueri terhadap resource tersebut. |
|
|
string |
Properti yang khusus untuk operasi penghapusan. |
/properties/ForceDelete |
|
| filterProperties |
array |
Properti yang dapat digunakan untuk memfilter resource saat Anda menampilkan daftar resource tersebut. |
|
|
string |
Properti yang dapat digunakan untuk memfilter resource. |
/properties/ResourceGroupId |
|
| getOnlyProperties |
array |
Properti yang khusus untuk operasi kueri. Anda harus menentukan properti ini saat melakukan kueri terhadap resource. Properti ini tidak dikembalikan dalam hasil kueri. |
|
|
string |
Properti yang khusus untuk operasi kueri. |
/properties/DryRun |
|
| getResponseProperties |
array |
Properti yang dikembalikan saat Anda melakukan kueri terhadap resource. |
|
|
string |
Properti yang dikembalikan saat Anda melakukan kueri terhadap resource. |
/properties/NetworkInterfaces/items/properties/IpvSets |
|
| handlers |
object |
Informasi mengenai operasi, termasuk izin Resource Access Management (RAM) yang diperlukan. |
|
| create |
object |
Informasi mengenai operasi pembuatan. |
|
| permissions |
array |
Izin RAM yang diperlukan. |
|
|
string |
Izin RAM. |
ecs:CreateInstance |
|
| delete |
object |
Informasi mengenai operasi penghapusan. |
|
| permissions |
array |
Izin RAM yang diperlukan. |
|
|
string |
Izin RAM. |
ecs:DeleteInstance |
|
| get |
object |
Informasi mengenai operasi kueri. |
|
| permissions |
array |
Izin RAM yang diperlukan. |
|
|
string |
Izin RAM. |
ecs:DescribeInstanceAttachmentAttributes |
|
| list |
object |
Informasi mengenai operasi penampilan daftar. |
|
| permissions |
array |
Izin RAM yang diperlukan. |
|
|
string |
Izin RAM. |
ecs:DescribeInstances |
|
| update |
object |
Informasi mengenai operasi pembaruan. |
|
| permissions |
array |
Izin RAM yang diperlukan. |
|
|
string |
Izin RAM. |
ecs:ModifyInstanceNetworkSpec |
|
| info |
object |
Informasi mengenai tipe resource. |
|
| chargeType |
string |
Metode penagihan Valid values:
|
paid |
| deliveryScope |
string |
Tingkat penerapan resource. center region zone Valid values:
|
region |
| description |
string |
Deskripsi tipe resource. |
An ECS instance is equivalent to a virtual machine, including the most basic computing components such as CPU, memory, operating system, network, and disk. You can easily customize and change the configuration of the instance. You have full control over the virtual machine. |
| title |
string |
Nama tipe resource. |
Instance |
| listOnlyProperties |
array |
Properti yang khusus untuk operasi penampilan daftar. Anda harus menentukan properti ini saat menampilkan daftar resource. Properti ini tidak dikembalikan saat Anda melakukan kueri terhadap resource tersebut. |
|
|
string |
Properti yang khusus untuk operasi penampilan daftar. |
/properties/DryRun |
|
| listResponseProperties |
array |
Properti yang dikembalikan saat Anda menampilkan daftar resource. |
|
|
string |
Properti yang dikembalikan saat Anda melakukan kueri terhadap resource. |
/properties/InstanceId |
|
| primaryIdentifier |
string |
ID resource. |
/properties/InstanceId |
| product |
string |
Kode layanan. |
ECS |
| properties |
object |
Properti resource. Kunci menentukan nama properti dan nilai menentukan detail properti tersebut. |
|
| publicProperties |
array |
Properti umum resource. Properti umum ini tidak spesifik terhadap operasi tertentu. |
|
|
string |
Properti umum. |
/properties/Description |
|
| readOnlyProperties |
array |
Properti read-only. Properti ini hanya dikembalikan saat Anda menampilkan daftar atau melakukan kueri terhadap resource. Anda tidak perlu menentukan properti ini saat membuat atau memperbarui resource. |
|
|
string |
Properti read-only. |
/properties/CreateTime |
|
| required |
array |
Properti yang harus ditentukan saat Anda membuat resource. |
|
|
string |
Properti yang harus ditentukan saat Anda membuat resource. |
RegionId |
|
| resourceType |
string |
Tipe resource. |
Instance |
| sensitiveInfoProperties |
array |
Properti sensitif, seperti password. |
|
|
string |
Properti sensitif. |
/properties/VncPassword |
|
| updateOnlyProperties |
array |
Properti yang khusus untuk operasi pembaruan. Anda harus menentukan properti ini saat memperbarui resource. Properti ini tidak dikembalikan saat Anda melakukan kueri terhadap resource tersebut. |
|
|
string |
Properti yang khusus untuk operasi pembaruan. |
/properties/DryRun |
|
| updateTypeProperties |
array |
Properti yang dapat dimodifikasi. |
|
|
string |
Properti yang dapat dimodifikasi. |
/properties/InstanceName |
|
| totalCount |
integer |
Total jumlah entri yang dikembalikan. |
20 |
Contoh
Respons sukses
JSONformat
{
"maxResults": 10,
"nextToken": "ECS::Disk",
"requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"resourceTypes": [
{
"createOnlyProperties": [
"/properties/AutoRenew"
],
"deleteOnlyProperties": [
"/properties/ForceDelete"
],
"filterProperties": [
"/properties/ResourceGroupId"
],
"getOnlyProperties": [
"/properties/DryRun\n"
],
"getResponseProperties": [
"/properties/NetworkInterfaces/items/properties/IpvSets"
],
"handlers": {
"create": {
"permissions": [
"ecs:CreateInstance"
]
},
"delete": {
"permissions": [
"ecs:DeleteInstance"
]
},
"get": {
"permissions": [
"ecs:DescribeInstanceAttachmentAttributes"
]
},
"list": {
"permissions": [
"ecs:DescribeInstances"
]
},
"update": {
"permissions": [
"ecs:ModifyInstanceNetworkSpec"
]
}
},
"info": {
"chargeType": "paid",
"deliveryScope": "region",
"description": "An ECS instance is equivalent to a virtual machine, including the most basic computing components such as CPU, memory, operating system, network, and disk. You can easily customize and change the configuration of the instance. You have full control over the virtual machine.",
"title": "Instance"
},
"listOnlyProperties": [
"/properties/DryRun"
],
"listResponseProperties": [
"/properties/InstanceId"
],
"primaryIdentifier": "/properties/InstanceId",
"product": "ECS",
"properties": {
"test": "test",
"test2": 1
},
"publicProperties": [
"/properties/Description"
],
"readOnlyProperties": [
"/properties/CreateTime"
],
"required": [
"RegionId"
],
"resourceType": "Instance",
"sensitiveInfoProperties": [
"/properties/VncPassword"
],
"updateOnlyProperties": [
"/properties/DryRun"
],
"updateTypeProperties": [
"/properties/InstanceName"
]
}
],
"totalCount": 20
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.