Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,57 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess": {
"post": {
"tags": [
"factories"
],
"operationId": "Factories_GetDataPlaneAccess",
"x-ms-examples": {
"Factories_GetDataPlaneAccess": {
"$ref": "./examples/Factories_GetDataPlaneAccess.json"
}
},
"description": "Get Data Plane access.",
"parameters": [
{
"$ref": "#/parameters/subscriptionId"
},
{
"$ref": "#/parameters/resourceGroupName"
},
{
"$ref": "#/parameters/factoryName"
},
{
"$ref": "#/parameters/api-version"
},
{
"name": "policy",
"description": "Data Plane user access policy definition.",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UserAccessPolicy"
}
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/AccessPolicyResponse"
}
},
"default": {
"description": "An error response received from the Azure Data Factory service.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes": {
"get": {
"tags": [
Expand Down Expand Up @@ -3541,6 +3592,48 @@
}
}
},
"UserAccessPolicy": {
"description": "Get Data Plane read only token request definition.",
"properties": {
"permissions" : {
"description": "The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access.",
"type": "string"
},
"accessResourcePath" : {
"description": "The resource path to get access relative to factory. Currently only empty string is supported which corresponds to the factory resource.",
"type": "string"
},
"profileName" : {
"description": "The name of the profile. Currently only the default is supported. The default value is DefaultProfile.",
"type": "string"
},
"startTime": {
"description": "Start time for the token. If not specified the current time will be used.",
"type": "string"
},
"expireTime": {
"description": "Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours.",
"type": "string"
}
}
},
"AccessPolicyResponse": {
"description": "Get Data Plane read only token response definition.",
"properties": {
"policy" : {
"description": "The user access policy.",
"$ref": "#/definitions/UserAccessPolicy"
},
"accessToken": {
"description": "Data Plane read only access token.",
"type": "string"
},
"dataPlaneUrl": {
"description": "Data Plane service base URL.",
"type": "string"
}
}
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this model is only used as response, we could mark properties as readonly

"FactoryProperties": {
"description": "Factory resource properties.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
"resourceGroupName": "exampleResourceGroup",
"factoryName": "exampleFactoryName",
"policy": {
"permissions": "r",
"accessResourcePath": "",
"profileName": "DefaultProfile",
"startTime": "2018-11-10T02:46:20.2659347Z",
"expireTime": "2018-11-10T09:46:20.2659347Z"
},
"api-version": "2018-06-01"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 07 Nov 2018 03:41:57 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-reads": "11996",
"x-ms-request-id": "82bc20d2-4bec-496d-a1c8-3f7746fed307",
"x-ms-correlation-request-id": "82bc20d2-4bec-496d-a1c8-3f7746fed307"
},
"body": {
"policy": {
"permissions": "r",
"accessResourcePath": "",
"profileName": "DefaultProfile",
"startTime": "2018-11-10T02:46:20.2659347Z",
"expireTime": "2018-11-10T09:46:20.2659347Z"
},
"dataPlaneUrl": "https://rpeastus.svc.datafactory.azure.com:4433",
"accessToken": "**********"
}
}
}
}