---
title: "GetPipelineGlobalVariables"
method: GET
path: "/di/v2/pipeline/global_variables"
tags: ["Pipeline"]
---

# GetPipelineGlobalVariables

`GET /di/v2/pipeline/global_variables`

获取可视化编辑/工作流中的全局变量的数据结构

## Response `200`

OK

- GlobalVariable[]
  - `key` string — 全局变量，变量的key
  - `type` 'string' | 'number' | 'model' | 'processline' — 全局变量，变量的类型
  - `value` object — 全局变量的值，根据类型的不同，可能是String, Number, Model, ProcessLine; Model的数据结构请看GetPipelineGlobalVariablesModel的返回，PorcessLine的数据结构请看GetPipelineGlobalVariablesProcessLine的返回

## Other responses

- `401` — Unauthorized
- `404` — Model create failed

---

[API](https://skmtc.net/webankfintech/apis/prophecis-rest-service-v2.md) · [All operations](https://skmtc.net/webankfintech/apis/prophecis-rest-service-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webankfintech/prophecis-rest-service-v2/versions/ea40aedea89c/schema)
