> For the complete documentation index, see [llms.txt](https://smallso.gitbook.io/tencent-cloud-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/other-products/class-and-method/universal-client/get-product-id.md).

# get\_product\_id 方法

## 简要

获取当前通用产品客户端所绑定的 Tencent Cloud 产品 ID 字符串。

```python
def get_product_id(self) -> str
```

## 参数

该方法没有参数。

## 返回值

该方法返回当前通用产品客户端所绑定的 Tencent Cloud 产品 ID 字符串。

## 异常

该方法不会主动引发任何异常。

## 示例

接下来我们将通过一段 Python 代码向您演示如何使用该方法：

```python
product_id: str = virtual_machine_client.get_product_id()
```

## 适用于

#### Tencent Cloud SDK for Python

基础软件包：tencent-cloud-sdk-core >= 0.1.1
