All Products
Search
Document Center

Cloud Control API:ListResourceTypes

Last Updated:Oct 27, 2026

Menampilkan daftar tipe resource suatu produk.

Deskripsi operasi

GET /api/v1/providers/{provider}/products/{Produk}/resourceTypes.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

GET /api/v1/providers/{provider}/products/{product}/resourceTypes HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

provider

string

Yes

Penyedia cloud. Hanya Aliyun yang didukung.

Aliyun

product

string

Yes

Kode produk.

ECS

Parameter permintaan

Parameter

Type

Required

Description

Example

x-acs-accept-language

string

No

Menentukan bahasa informasi produk yang dikembalikan. Nilai valid:

  • zh_CH: Bahasa Tionghoa. Ini adalah nilai default.

  • en_US: Bahasa Inggris.

Valid values:

  • zh_CH :

    zh_CH

  • en_US :

    en_US

zh_CH

resourceTypes

array

No

Daftar tipe resource.

string

No

Tipe resource.

Instance

nextToken

string

No

Token yang menentukan posisi awal untuk kueri. Nilai kosong menunjukkan bahwa kueri dimulai dari awal.

ECS::Disk

maxResults

integer

No

Jumlah entri yang dikembalikan per halaman dalam kueri penomoran halaman.

10

Elemen respons

Element

Type

Description

Example

object

Struktur respons.

maxResults

integer

Jumlah maksimum rekaman yang dikembalikan untuk permintaan saat ini.

10

nextToken

string

Token yang menunjukkan posisi hingga data telah dibaca dalam panggilan saat ini. Nilai kosong menunjukkan bahwa semua data telah dibaca.

ECS::Disk

requestId

string

ID permintaan.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

resourceTypes

array<object>

Daftar tipe resource.

array<object>

Tipe resource.

createOnlyProperties

array

Kumpulan parameter privat untuk operasi pembuatan. Properti ini tidak dikembalikan dalam operasi kueri resource, tetapi harus diteruskan sebagai parameter dalam operasi pembuatan.

string

Parameter privat untuk operasi pembuatan.

/properties/AutoRenew

deleteOnlyProperties

array

Kumpulan parameter privat untuk operasi penghapusan. Properti ini tidak dikembalikan dalam operasi kueri resource, tetapi harus diteruskan sebagai parameter dalam operasi penghapusan.

string

Parameter privat untuk operasi penghapusan.

/properties/ForceDelete

filterProperties

array

Kumpulan properti yang dapat digunakan sebagai parameter filter dalam operasi daftar.

string

Parameter filter.

/properties/ResourceGroupId

getOnlyProperties

array

Kumpulan parameter privat untuk operasi pengambilan. Properti ini tidak dikembalikan dalam operasi kueri resource, tetapi harus diteruskan sebagai parameter dalam operasi pengambilan.

string

Parameter privat untuk operasi pengambilan.

/properties/DryRun

getResponseProperties

array

Kumpulan properti yang dikembalikan dalam operasi pengambilan.

string

Properti yang dikembalikan dalam operasi pengambilan.

/properties/NetworkInterfaces/items/properties/IpvSets

handlers

object

Informasi tentang operasi resource yang didukung, termasuk izin Resource Access Management (RAM).

create

object

Informasi yang terkait dengan operasi pembuatan.

permissions

array

Kumpulan izin RAM yang diperlukan.

string

Izin RAM.

ecs:CreateInstance

delete

object

Informasi yang terkait dengan operasi penghapusan.

permissions

array

Kumpulan izin RAM yang diperlukan.

string

Izin RAM.

ecs:DeleteInstance

get

object

Informasi yang terkait dengan operasi pengambilan.

permissions

array

Kumpulan izin RAM yang diperlukan.

string

Izin RAM.

ecs:DescribeInstanceAttachmentAttributes

list

object

Informasi yang terkait dengan operasi daftar.

permissions

array

Kumpulan izin RAM yang diperlukan.

string

Izin RAM.

ecs:DescribeInstances

update

object

Informasi yang terkait dengan operasi pembaruan.

permissions

array

Kumpulan izin RAM yang diperlukan.

string

Izin RAM.

ecs:ModifyInstanceNetworkSpec

info

object

Informasi dasar tentang tipe resource.

chargeType

string

Metode penagihan. Nilai valid:

  • paid: Berbayar.

  • free: Gratis.

Valid values:

  • paid :

    paid.

  • free :

    free.

paid

deliveryScope

string

Tingkat penerapan. Nilai valid:

  • center: Tingkat penerapan terpusat.

  • region: Tingkat penerapan wilayah.

  • zone: Tingkat penerapan zona.

Valid values:

  • zone :

    zone

  • center :

    center.

  • region :

    region

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

Kumpulan parameter privat untuk operasi daftar. Properti ini tidak dikembalikan dalam operasi kueri resource, tetapi harus diteruskan sebagai parameter dalam operasi daftar.

string

Parameter privat untuk operasi daftar.

/properties/DryRun

listResponseProperties

array

Kumpulan properti yang dikembalikan dalam operasi daftar.

string

Properti yang dikembalikan dalam operasi daftar.

/properties/InstanceId

primaryIdentifier

string

ID resource.

/properties/InstanceId

product

string

Kode produk.

ECS

properties

object

Definisi properti resource. Kunci adalah nama properti, dan nilai adalah informasi detail tentang properti tersebut.

publicProperties

array

Kumpulan properti publik, yang merupakan properti dasar resource. Ini bukan parameter privat untuk operasi.

string

Properti publik.

/properties/Description

readOnlyProperties

array

Kumpulan parameter hanya-baca. Parameter ini hanya dikembalikan dalam operasi daftar atau pengambilan dan tidak digunakan sebagai parameter masukan selama pembuatan atau modifikasi.

string

Parameter hanya-baca.

/properties/CreateTime

required

array

Kumpulan parameter yang diperlukan untuk pembuatan resource.

string

Parameter yang diperlukan untuk pembuatan resource.

RegionId

resourceType

string

Tipe resource.

Instance

sensitiveInfoProperties

array

Kumpulan properti sensitif, seperti kata sandi.

string

Properti sensitif.

/properties/VncPassword

updateOnlyProperties

array

Kumpulan parameter privat untuk operasi pembaruan. Properti ini tidak dikembalikan dalam operasi kueri resource, tetapi harus diteruskan sebagai parameter dalam operasi pembaruan.

string

Parameter privat untuk operasi pembaruan.

/properties/DryRun

updateTypeProperties

array

Kumpulan properti yang dapat dimodifikasi.

string

Properti yang dapat dimodifikasi.

/properties/InstanceName

totalCount

integer

Jumlah total entri yang memenuhi kondisi permintaan saat ini.

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.