Data Flow - Get Data Flow
获取数据流。
GET {endpoint}/dataflows/{dataFlowName}?api-version=2020-12-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
data
|
path | True |
string minLength: 1maxLength: 260 pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$ |
数据流名称。 |
endpoint
|
path | True |
string (uri) |
工作区开发终结点,例如 |
api-version
|
query | True |
string |
Synapse 客户端 API 版本。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
If-None-Match |
string |
数据流实体的 ETag。 应仅指定 get。 如果 ETag 与现有实体标记匹配,或者如果提供 *,则不会返回任何内容。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行。 |
|
Other Status Codes |
从 Azure Synapse 服务收到的错误响应。 |
示例
DataFlows_Get
示例请求
GET exampleWorkspace.dev.azuresynapse.net/dataflows/exampleDataFlow?api-version=2020-12-01
示例响应
Date: Mon, 22 Apr 2019 18:33:50 GMT
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-reads: 11993
x-ms-request-id: 48983fb5-612a-44c6-8158-add7ffebb32b
x-ms-correlation-request-id: 48983fb5-612a-44c6-8158-add7ffebb32b
{
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/dataflows/exampleDataFlow",
"name": "exampleDataFlow",
"type": "Microsoft.Synapse/workspaces/dataflows",
"properties": {
"description": "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.",
"type": "MappingDataFlow",
"typeProperties": {
"sources": [
{
"dataset": {
"referenceName": "CurrencyDatasetUSD",
"type": "DatasetReference"
},
"name": "USDCurrency"
},
{
"dataset": {
"referenceName": "CurrencyDatasetCAD",
"type": "DatasetReference"
},
"name": "CADSource"
}
],
"sinks": [
{
"dataset": {
"referenceName": "USDOutput",
"type": "DatasetReference"
},
"name": "USDSink"
},
{
"dataset": {
"referenceName": "CADOutput",
"type": "DatasetReference"
},
"name": "CADSink"
}
],
"script": "source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"
}
},
"etag": "15004c4f-0000-0200-0000-5cbe090e0000"
}
定义
名称 | 说明 |
---|---|
Cloud |
定义 Azure Synapse 错误响应结构的对象。 |
Data |
数据流引用类型。 |
Data |
数据流引用类型。 |
Data |
数据流资源类型。 |
Data |
数据流接收器的转换。 |
Data |
数据流源的转换。 |
Dataset |
数据集引用类型。 |
Dataset |
数据集引用类型。 |
Flowlet |
数据流流 |
Folder |
此数据流所在的文件夹。 如果未指定,数据流将显示在根级别。 |
Linked |
链接服务引用类型。 |
Mapping |
映射数据流。 |
Transformation |
数据流转换。 |
Type |
链接服务引用类型。 |
CloudError
定义 Azure Synapse 错误响应结构的对象。
名称 | 类型 | 说明 |
---|---|---|
error.code |
string |
错误代码。 |
error.details |
包含其他错误详细信息的数组。 |
|
error.message |
string |
错误信息。 |
error.target |
string |
与错误关联的请求中的属性名称/路径。 |
DataFlowReference
数据流引用类型。
名称 | 类型 | 说明 |
---|---|---|
datasetParameters |
object |
从数据集引用数据流参数。 |
parameters |
object |
数据流参数 |
referenceName |
string |
引用数据流名称。 |
type |
数据流引用类型。 |
DataFlowReferenceType
数据流引用类型。
值 | 说明 |
---|---|
DataFlowReference |
DataFlowResource
数据流资源类型。
名称 | 类型 | 说明 |
---|---|---|
etag |
string |
资源 Etag。 |
id |
string |
资源的完全限定资源 ID。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
资源的名称 |
properties | DataFlow: |
数据流属性。 |
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
DataFlowSink
数据流接收器的转换。
名称 | 类型 | 说明 |
---|---|---|
dataset |
数据集引用。 |
|
description |
string |
转换说明。 |
flowlet |
Flowlet 参考 |
|
linkedService |
链接服务引用。 |
|
name |
string |
转换名称。 |
rejectedDataLinkedService |
拒绝的数据链接服务引用。 |
|
schemaLinkedService |
架构链接服务引用。 |
DataFlowSource
数据流源的转换。
名称 | 类型 | 说明 |
---|---|---|
dataset |
数据集引用。 |
|
description |
string |
转换说明。 |
flowlet |
Flowlet 参考 |
|
linkedService |
链接服务引用。 |
|
name |
string |
转换名称。 |
schemaLinkedService |
架构链接服务引用。 |
DatasetReference
数据集引用类型。
名称 | 类型 | 说明 |
---|---|---|
parameters |
object |
数据集的参数。 |
referenceName |
string |
引用数据集名称。 |
type |
数据集引用类型。 |
DatasetReferenceType
数据集引用类型。
值 | 说明 |
---|---|
DatasetReference |
Flowlet
数据流流
名称 | 类型 | 说明 |
---|---|---|
annotations |
object[] |
可用于描述数据流的标记列表。 |
description |
string |
数据流的说明。 |
folder |
此数据流所在的文件夹。 如果未指定,数据流将显示在根级别。 |
|
type | string: |
数据流的类型。 |
typeProperties.script |
string |
Flowlet 脚本。 |
typeProperties.scriptLines |
string[] |
Flowlet 脚本行。 |
typeProperties.sinks |
Flowlet 中的接收器列表。 |
|
typeProperties.sources |
Flowlet 中的源列表。 |
|
typeProperties.transformations |
Flowlet 中的转换列表。 |
Folder
此数据流所在的文件夹。 如果未指定,数据流将显示在根级别。
名称 | 类型 | 说明 |
---|---|---|
name |
string |
此数据流所在的文件夹的名称。 |
LinkedServiceReference
链接服务引用类型。
名称 | 类型 | 说明 |
---|---|---|
parameters |
object |
LinkedService 的参数。 |
referenceName |
string |
引用 LinkedService 名称。 |
type |
链接服务引用类型。 |
MappingDataFlow
映射数据流。
名称 | 类型 | 说明 |
---|---|---|
annotations |
object[] |
可用于描述数据流的标记列表。 |
description |
string |
数据流的说明。 |
folder |
此数据流所在的文件夹。 如果未指定,数据流将显示在根级别。 |
|
type | string: |
数据流的类型。 |
typeProperties.script |
string |
DataFlow 脚本。 |
typeProperties.scriptLines |
string[] |
数据流脚本行。 |
typeProperties.sinks |
数据流中的接收器列表。 |
|
typeProperties.sources |
数据流中的源列表。 |
|
typeProperties.transformations |
数据流中的转换列表。 |
Transformation
数据流转换。
名称 | 类型 | 说明 |
---|---|---|
dataset |
数据集引用。 |
|
description |
string |
转换说明。 |
flowlet |
Flowlet 参考 |
|
linkedService |
链接服务引用。 |
|
name |
string |
转换名称。 |
Type
链接服务引用类型。
值 | 说明 |
---|---|
LinkedServiceReference |