Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DeploymentScripts] Add tail query string #8539

Merged
merged 13 commits into from
Mar 3, 2020
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 @@ -314,6 +314,9 @@
"x-ms-examples": {
"DeploymentScriptsGetLogs": {
"$ref": "./examples/DeploymentScripts_GetLogsDefault.json"
},
"DeploymentScriptsGetLogsWithTail": {
"$ref": "./examples/DeploymentScripts_GetLogsDefaultWithTail.json"
}
},
"parameters": [
Expand All @@ -328,6 +331,12 @@
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "tail",
"in": "query",
"description": "The number of lines to show from the tail of the deployment script log. Valid value is a positive number up to 1000. If 'tail' is not provided, all available logs are shown up to container instance log capacity of 4mb.",
"type": "integer"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2019-10-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "script-rg",
"scriptName": "MyDeploymentScript",
"tail": 5
},
"responses": {
"200": {
"body": {
"properties": {
"log": "script execution stdout/stderr logs"
}
}
}
}
}