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 @@ -1770,6 +1770,48 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/cancelpipelinerun/{runId}": {
"post": {
"operationId": "Factories_CancelPipelineRun",
"x-ms-examples": {
"Factories_CancelPipelineRun": {
"$ref": "./examples/Factories_CancelPipelineRun.json"
}
},
"description": "Cancel a pipeline run by its run ID.",
"tags": [
"pipelineruns"
],
"parameters": [
{
"$ref": "#/parameters/subscriptionId"
},
{
"$ref": "#/parameters/resourceGroupName"
},
{
"$ref": "#/parameters/factoryName"
},
{
"$ref": "#/parameters/runId"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happens if the pipeline run has already finished?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If pipeline run is in terminal state we return bad request.

"200": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

When the user gets an OK response, does that mean the run has been cancelled? Or does it mean that we've started the process of cancelling it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok means it is fully cancelled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@milantomic6 could you add to description.

"description": "Pipeline run has been canceled successfully. "
},
"default": {
"description": "An error response received from the Azure Data Factory service.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-12345678abc",
"resourceGroupName": "exampleResourceGroup",
"factoryName": "exampleFactoryName",
"runId": "39692ed9-c722-4d33-b8e1-1f4a9deac57f",
"api-version": "2017-09-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Mon, 02 Oct 2017 17:27:33 GMT",
"x-ms-request-id": "fd3867ea-c65c-470d-a17b-d83c8864cf90",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1113",
"x-ms-correlation-request-id": "d0b45db5-c155-4991-95d9-22655c72c986"
},
"body": null
}
}
}