All Products
Search
Document Center

Service Catalog:GetProductVersion

Last Updated:Jun 10, 2026

Mengkueri versi produk.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

servicecatalog:GetProductVersion

get

*Product

acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ProductVersionId

string

Yes

ID versi produk.

pv-bp15e79d26****

Elemen respons

Element

Type

Description

Example

object

The response parameters.

ProductVersionDetail

object

The details of the product version.

Active

boolean

Indicates whether the product version is visible to end users. Valid values:

  • true: The product version is visible to end users. This is the default value.

  • false: The product version is invisible to end users.

true

Description

string

The description of the product version.

这是一个产品版本描述

CreateTime

string

The time when the product version was created.

The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.

2022-04-12T06:10:37Z

Guidance

string

The recommendation information. Valid values:

  • Default: No recommendation information is provided. This is the default value.

  • Recommended: the recommendation version.

  • Latest: the latest version.

  • Deprecated: the version that is about to be deprecated.

Default

ProductVersionId

string

The ID of the product version.

pv-bp15e79d26****

ProductVersionName

string

The name of the product version.

1.0

ProductId

string

The ID of the product to which the product version belongs.

prod-bp18r7q127****

TemplateUrl

string

The URL of the template.

oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json

TemplateType

string

The type of the product template. Valid values:

  • RosTerraformTemplate: The Terraform template that is supported by Resource Orchestration Service (ROS).

  • RosStandardTemplate: The standard ROS template.

RosTerraformTemplate

RequestId

string

The ID of the request.

0FEEF92D-4052-5202-87D0-3D8EC16F81BF

Contoh

Respons sukses

JSONformat

{
  "ProductVersionDetail": {
    "Active": true,
    "Description": "这是一个产品版本描述",
    "CreateTime": "2022-04-12T06:10:37Z",
    "Guidance": "Default",
    "ProductVersionId": "pv-bp15e79d26****",
    "ProductVersionName": "1.0",
    "ProductId": "prod-bp18r7q127****",
    "TemplateUrl": "oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json",
    "TemplateType": "RosTerraformTemplate"
  },
  "RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

500 InternalError A system error occurred.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.