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

# GetPipelineGlobalVariables

`GET /di/v2/pipeline/global_variables`

## Request

- Base URL: `https://di.prophecis.com`
- URL: `https://di.prophecis.com/di/v2/pipeline/global_variables`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-Watson-Authorization-Token`
  - API key in query parameter `watson-token`
- TypeScript: <https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2/docs/di/v2/pipeline/global_variables/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## 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.dev/webankfintech/apis/prophecis-rest-service-v2.md) - [All operations](https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2/revisions/ea40aedea89c?raw)
