# Postman 调试工具

## 简介

Postman调试工具是为方便开发者进行Zenlayer Cloud API 接口联调而提供第三方开发调试工具。目前该工具支持鉴权与接口调试。下文将描述如何利用 Postman 工具调试API

## 操作步骤

### 步骤1：调试前准备

#### 在线运行 Postman

1. 点击下面按钮\
   [![Run In Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/34395107-3e3793a7-4e2b-4a88-8473-f35c97c5b68a?action=collection%2Ffork\&source=rip_markdown\&collection-url=entityId%3D34395107-3e3793a7-4e2b-4a88-8473-f35c97c5b68a%26entityType%3Dcollection%26workspaceId%3D0fd85988-ddf1-44cf-982c-35a882520288#?env%5BProd%5D=W3sia2V5IjoiYWNjZXNzSWQiLCJ2YWx1ZSI6Ijx5b3VyIGFjY2VzcyBrZXkgaWQ+IiwiZW5hYmxlZCI6dHJ1ZSwidHlwZSI6ImRlZmF1bHQifSx7ImtleSI6ImFjY2Vzc0tleSIsInZhbHVlIjoiPHlvdXIgYWNjZXNzIGtleSBwYXNzd29yZD4iLCJlbmFibGVkIjp0cnVlLCJ0eXBlIjoiZGVmYXVsdCJ9XQ==)
2. 单击 **Fork Collection**，登录账号或创建一个账号。

   <figure><img src="/files/oViPZClVsKtHFwH0hIgs" alt=""><figcaption></figcaption></figure>
3. 可以在 Collection 中看到导入进来的，切换环境为Prod即导入完毕。

   <figure><img src="/files/gFu8j0MufphcEeApdoAK" alt=""><figcaption></figcaption></figure>
4. 您可以通过 **Pull changes** 来获取最新内容。

   <figure><img src="/files/vWm6Mwm3e5uug4hTImra" alt=""><figcaption></figcaption></figure>

### 步骤二：调用接口

准备 `access_key_id` 与 `access_key_password`，准备要测试的接口，以`DescribeZones`为例介绍调试过程：

1. **环境变量**\
   将从平台获取的`access_key_id` 与 `access_key_password` 填入环境变量中

   <figure><img src="/files/l0aDsvOYhgbewN5OuIYw" alt=""><figcaption></figcaption></figure>
2. **调用接口**\
   在**Collections**打开接口， 点击 **Send** 即可发送请求。

   <figure><img src="/files/xVkhvNBwzIKbtAgLqYjq" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/api/cn/api-introduction/toolkit/postman-debug.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
