All Products
Search
Document Center

Cloud Control API:GetResourceType

Last Updated:Dec 11, 2025

Anda dapat memanggil operasi ini untuk mengambil metadata resource.

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

requestPath

string

No

Jalur permintaan. Tentukan parameter ini dalam format berikut: /api/v1/providers/{provider}/products/{product}/resourceTypes/{resourceType}

Variabel dalam jalur permintaan. Nilai yang valid:

provider: penyedia layanan cloud. Saat ini, hanya Aliyun yang didukung.

product: kode produk.

resourceType: tipe resource. Jika terdapat resource induk, formatnya adalah {kode tipe resource induk}/{kode tipe resource}

/api/v1/providers/Aliyun/products/Redis/resourceTypes/DBInstance

Parameter permintaan

Parameter

Type

Required

Description

Example

x-acs-accept-language

string

No

Bahasa yang dipilih untuk produk yang dikembalikan.

zh_CH: Bahasa Tiongkok (default)

en_US: Bahasa Inggris

Valid values:

  • zh_CH :

    zh_CH

  • en_US :

    en_US

zh_CH

Elemen respons

Element

Type

Description

Example

object

Parameter respons.

requestId

string

ID permintaan.

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

resourceType

object

Tipe resource. Nilai yang valid:

createOnlyProperties

array

Properti yang khusus untuk operasi pembuatan. Anda perlu 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 perlu 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.

string

Parameter filter.

/properties/ResourceGroupId

getOnlyProperties

array

Properti yang khusus untuk operasi kueri. Anda perlu 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 tentang operasi, termasuk izin Resource Access Management (RAM) yang diperlukan.

create

object

Informasi tentang operasi pembuatan.

permissions

array

Informasi tentang izin RAM yang diperlukan.

string

Izin RAM.

ecs:CreateInstance

delete

object

Informasi tentang operasi penghapusan.

permissions

array

Informasi tentang izin RAM yang diperlukan.

string

Izin RAM.

ecs:DeleteInstance

get

object

Informasi tentang operasi kueri.

permissions

array

Informasi tentang izin RAM yang diperlukan.

string

Izin RAM.

ecs:DescribeInstanceAttachmentAttributes

list

object

Informasi tentang operasi penampilan daftar.

permissions

array

Informasi tentang izin RAM yang diperlukan.

string

Izin RAM.

ecs:DescribeInstances

update

object

Informasi tentang operasi pembaruan.

permissions

array

Informasi tentang izin RAM yang diperlukan.

string

Izin RAM.

ecs:ModifyInstanceNetworkSpec

info

object

Informasi dasar tentang tipe resource.

chargeType

string

Bentuk pembayaran. Nilai yang valid:

paid free

paid

deliveryScope

string

Tingkat pengiriman. Nilai yang valid:

center

region

zone

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 perlu 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 dari resource. Properti umum ini tidak spesifik untuk operasi tertentu.

string

Properti umum.

/properties/Description

readOnlyProperties

array

Properti read-only. Properti ini hanya dikembalikan saat Anda melakukan operasi List atau Get. 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. Jika resource tersebut termasuk dalam resource induk, format pengembaliannya adalah {kode tipe resource induk/kode tipe resource}.

Instance

sensitiveInfoProperties

array

Properti sensitif, seperti password.

string

Properti sensitif.

/properties/VncPassword

updateOnlyProperties

array

Properti yang khusus untuk operasi pembaruan. Anda perlu 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

Contoh

Respons sukses

JSONformat

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "resourceType": {
    "createOnlyProperties": [
      "/properties/AutoRenew"
    ],
    "deleteOnlyProperties": [
      "/properties/ForceDelete"
    ],
    "filterProperties": [
      "\t\n/properties/ResourceGroupId"
    ],
    "getOnlyProperties": [
      "/properties/DryRun"
    ],
    "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\n",
    "product": "ECS",
    "properties": {
      "test": "test",
      "test2": 1
    },
    "publicProperties": [
      "\t\n/properties/Description"
    ],
    "readOnlyProperties": [
      "/properties/CreateTime"
    ],
    "required": [
      "RegionId"
    ],
    "resourceType": "Instance",
    "sensitiveInfoProperties": [
      "/properties/VncPassword"
    ],
    "updateOnlyProperties": [
      "/properties/DryRun"
    ],
    "updateTypeProperties": [
      "/properties/InstanceName"
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.