Data Flows - Get
取得數據流。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}?api-version=2018-06-01
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
data
|
path | True |
string minLength: 1maxLength: 260 pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$ |
數據流名稱。 |
|
factory
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ |
Factory 名稱。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
資源組名。 |
|
subscription
|
path | True |
string |
訂用帳戶標識碼。 |
|
api-version
|
query | True |
string |
API 版本。 |
要求標頭
| 名稱 | 必要 | 類型 | Description |
|---|---|---|---|
| If-None-Match |
string |
數據流實體的 ETag。 應該只指定 get。 如果 ETag 符合現有的實體標記,或提供 *,則不會傳回任何內容。 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
還行。 |
|
| Other Status Codes |
從 Azure Data Factory 服務收到的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
| 名稱 | Description |
|---|---|
| user_impersonation | 模擬您的用戶帳戶 |
範例
DataFlows_Get
範例要求
範例回覆
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.DataFactory/factories/exampleFactoryName/dataflows/exampleDataFlow",
"name": "exampleDataFlow",
"type": "Microsoft.DataFactory/factories/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"
}
定義
| 名稱 | Description |
|---|---|
|
Cloud |
對象,定義 Azure Data Factory 錯誤響應的結構。 |
|
Data |
數據流參考類型。 |
|
Data |
數據流參考類型。 |
|
Data |
數據流資源類型。 |
|
Data |
數據流接收的轉換。 |
|
Data |
數據流來源的轉換。 |
|
Dataset |
數據集參考類型。 |
| Flowlet |
數據流流程 |
| Folder |
此數據流位於的資料夾。 如果未指定,數據流將會出現在根層級。 |
|
Linked |
連結服務參考類型。 |
|
Mapping |
對應數據流。 |
|
Power |
電源查詢來源。 |
| Transformation |
數據流轉換。 |
| Type |
連結服務參考類型。 |
|
Wrangling |
Power Query 數據流。 |
CloudError
對象,定義 Azure Data Factory 錯誤響應的結構。
| 名稱 | 類型 | Description |
|---|---|---|
| error.code |
string |
錯誤碼。 |
| error.details |
具有其他錯誤詳細數據的陣列。 |
|
| error.message |
string |
錯誤資訊。 |
| error.target |
string |
與錯誤相關聯之要求中的屬性名稱/路徑。 |
DataFlowReference
數據流參考類型。
| 名稱 | 類型 | Description |
|---|---|---|
| datasetParameters |
object |
從數據集參考數據流參數。 |
| parameters |
object |
數據流參數 |
| referenceName |
string |
參考數據流名稱。 |
| type |
數據流參考類型。 |
DataFlowReferenceType
數據流參考類型。
| 值 | Description |
|---|---|
| DataFlowReference |
DataFlowResource
數據流資源類型。
| 名稱 | 類型 | Description |
|---|---|---|
| etag |
string |
Etag 會識別資源中的變更。 |
| id |
string |
資源標識碼。 |
| name |
string |
資源名稱。 |
| properties | DataFlow: |
數據流屬性。 |
| type |
string |
資源類型。 |
DataFlowSink
數據流接收的轉換。
| 名稱 | 類型 | Description |
|---|---|---|
| dataset |
數據集參考。 |
|
| description |
string |
轉換描述。 |
| flowlet |
Flowlet 參考 |
|
| linkedService |
鏈接的服務參考。 |
|
| name |
string |
轉換名稱。 |
| rejectedDataLinkedService |
拒絕的數據連結服務參考。 |
|
| schemaLinkedService |
架構連結服務參考。 |
DataFlowSource
數據流來源的轉換。
| 名稱 | 類型 | Description |
|---|---|---|
| dataset |
數據集參考。 |
|
| description |
string |
轉換描述。 |
| flowlet |
Flowlet 參考 |
|
| linkedService |
鏈接的服務參考。 |
|
| name |
string |
轉換名稱。 |
| schemaLinkedService |
架構連結服務參考。 |
DatasetReference
數據集參考類型。
| 名稱 | 類型 | Description |
|---|---|---|
| parameters |
object |
數據集的自變數。 |
| referenceName |
string |
參考數據集名稱。 |
| type | enum: |
數據集參考類型。 |
Flowlet
數據流流程
| 名稱 | 類型 | Description |
|---|---|---|
| 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
此數據流位於的資料夾。 如果未指定,數據流將會出現在根層級。
| 名稱 | 類型 | Description |
|---|---|---|
| name |
string |
此數據流位於的資料夾名稱。 |
LinkedServiceReference
連結服務參考類型。
| 名稱 | 類型 | Description |
|---|---|---|
| parameters |
object |
LinkedService 的自變數。 |
| referenceName |
string |
參考 LinkedService 名稱。 |
| type |
連結服務參考類型。 |
MappingDataFlow
對應數據流。
| 名稱 | 類型 | Description |
|---|---|---|
| annotations |
object[] |
可用於描述數據流的標記清單。 |
| description |
string |
數據流的描述。 |
| folder |
此數據流位於的資料夾。 如果未指定,數據流將會出現在根層級。 |
|
| type | string: |
數據流的類型。 |
| typeProperties.script |
string |
DataFlow 腳本。 |
| typeProperties.scriptLines |
string[] |
數據流腳本行。 |
| typeProperties.sinks |
數據流中的接收清單。 |
|
| typeProperties.sources |
數據流中的來源清單。 |
|
| typeProperties.transformations |
數據流中的轉換清單。 |
PowerQuerySource
電源查詢來源。
| 名稱 | 類型 | Description |
|---|---|---|
| dataset |
數據集參考。 |
|
| description |
string |
轉換描述。 |
| flowlet |
Flowlet 參考 |
|
| linkedService |
鏈接的服務參考。 |
|
| name |
string |
轉換名稱。 |
| schemaLinkedService |
架構連結服務參考。 |
|
| script |
string |
來源腳本。 |
Transformation
數據流轉換。
| 名稱 | 類型 | Description |
|---|---|---|
| dataset |
數據集參考。 |
|
| description |
string |
轉換描述。 |
| flowlet |
Flowlet 參考 |
|
| linkedService |
鏈接的服務參考。 |
|
| name |
string |
轉換名稱。 |
Type
連結服務參考類型。
| 值 | Description |
|---|---|
| LinkedServiceReference |
WranglingDataFlow
Power Query 數據流。
| 名稱 | 類型 | Description |
|---|---|---|
| annotations |
object[] |
可用於描述數據流的標記清單。 |
| description |
string |
數據流的描述。 |
| folder |
此數據流位於的資料夾。 如果未指定,數據流將會出現在根層級。 |
|
| type | string: |
數據流的類型。 |
| typeProperties.documentLocale |
string |
Power 查詢混搭文件的地區設定。 |
| typeProperties.script |
string |
Power query mashup 腳本。 |
| typeProperties.sources |
Power Query 中的來源清單。 |