diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json index 8ac8e38601ed..aa26d4faab45 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json @@ -255,6 +255,57 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue": { + "post": { + "tags": [ + "exposureControl" + ], + "operationId": "ExposureControl_QueryFeatureValuesByFactory", + "x-ms-examples": { + "ExposureControl_QueryFeatureValuesByFactory": { + "$ref": "./examples/ExposureControl_QueryFeatureValuesByFactory.json" + } + }, + "description": "Get list of exposure control features for specific factory.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/factoryName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "exposureControlBatchRequest", + "description": "The exposure control request for list of features.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExposureControlBatchRequest" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ExposureControlBatchResponse" + } + }, + "default": { + "description": "An error response received from the Azure Data Factory service.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories": { "get": { "tags": [ @@ -3105,7 +3156,7 @@ ], "operationId": "TriggerRuns_Cancel", "x-ms-examples": { - "Triggers_Rerun": { + "Triggers_Cancel": { "$ref": "./examples/TriggerRuns_Cancel.json" } }, @@ -5459,6 +5510,22 @@ } } }, + "ExposureControlBatchRequest": { + "description": "A list of exposure control features.", + "type": "object", + "required": [ + "exposureControlRequests" + ], + "properties": { + "exposureControlRequests": { + "type": "array", + "description": "List of exposure control features.", + "items": { + "$ref": "#/definitions/ExposureControlRequest" + } + } + } + }, "ExposureControlRequest": { "type": "object", "description": "The exposure control request.", @@ -5473,6 +5540,22 @@ } } }, + "ExposureControlBatchResponse": { + "description": "A list of exposure control feature values.", + "type": "object", + "required": [ + "exposureControlResponses" + ], + "properties": { + "exposureControlResponses": { + "type": "array", + "description": "List of exposure control feature values.", + "items": { + "$ref": "#/definitions/ExposureControlResponse" + } + } + } + }, "ExposureControlResponse": { "type": "object", "description": "The exposure control response.", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json new file mode 100644 index 000000000000..a546ad232dc1 --- /dev/null +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-12345678abc", + "resourceGroupName": "exampleResourceGroup", + "factoryName": "exampleFactoryName", + "exposureControlBatchRequest": { + "exposureControlRequests": [ + { + "featureName": "ADFIntegrationRuntimeSharingRbac", + "featureType": "Feature" + }, + { + "featureName": "ADFSampleFeature", + "featureType": "Feature" + } + ] + }, + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": { + "Date": "Sat, 22 Dec 2018 09:46:07 GMT", + "X-Content-Type-Options": "nosniff" + }, + "body": { + "exposureControlResponses": [ + { + "featureName": "ADFIntegrationRuntimeSharingRbac", + "value": "False" + }, + { + "featureName": "ADFSampleFeature", + "value": "True" + } + ] + } + } + } +}