-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Merge-on-date: (TBA)] Add container log APIs to WebApps.json #1681
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1913,6 +1913,90 @@ | |
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs": { | ||
"post": { | ||
"tags": [ | ||
"WebApps" | ||
], | ||
"summary": "Gets the last lines of docker logs for the given site", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did you want to add an appropriate "produces": [
"text/plain"
], There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please let me know if I'm missing something here but this endpoint does seem to work for me:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The deployment to production happened two weeks ago. I have confirmed it working with my testa pp. Can you please try again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like the endpoint is returning a base 64 encoded content - in this case, the return type shouldn't be Also, the server is actually returning me |
||
"description": "Gets the last lines of docker logs for the given site", | ||
"operationId": "WebApps_GetWebSiteContainerLogs", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And maybe here too? "produces": [
"application/zip"
], (and for the other APIs too...) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for this one - get |
||
"produces": [ | ||
"text/plain" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/resourceGroupNameParameter" | ||
}, | ||
{ | ||
"name": "name", | ||
"in": "path", | ||
"description": "Name of web app.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/parameters/subscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/apiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"204": { | ||
"description": "No Content" | ||
}, | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"type": "file" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs/zip/download": { | ||
"post": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also this one
|
||
"tags": [ | ||
"WebApps" | ||
], | ||
"summary": "Gets the ZIP archived docker log files for the given site", | ||
"description": "Gets the ZIP archived docker log files for the given site", | ||
"operationId": "WebApps_GetWebSiteContainerLogsZip", | ||
"produces": [ | ||
"application/zip" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/resourceGroupNameParameter" | ||
}, | ||
{ | ||
"name": "name", | ||
"in": "path", | ||
"description": "Name of web app.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/parameters/subscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/apiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"204": { | ||
"description": "No Content" | ||
}, | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"type": "file" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs": { | ||
"get": { | ||
"tags": [ | ||
|
@@ -8405,6 +8489,104 @@ | |
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs": { | ||
"post": { | ||
"tags": [ | ||
"WebApps" | ||
], | ||
"summary": "Gets the last lines of docker logs for the given site", | ||
"description": "Gets the last lines of docker logs for the given site", | ||
"operationId": "WebApps_GetWebSiteContainerLogsSlot", | ||
"produces": [ | ||
"text/plain" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/resourceGroupNameParameter" | ||
}, | ||
{ | ||
"name": "name", | ||
"in": "path", | ||
"description": "Name of web app.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "slot", | ||
"in": "path", | ||
"description": "Name of web app slot. If not specified then will default to production slot.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/parameters/subscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/apiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"204": { | ||
"description": "No Content" | ||
}, | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"type": "file" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs/zip/download": { | ||
"post": { | ||
"tags": [ | ||
"WebApps" | ||
], | ||
"summary": "Gets the ZIP archived docker log files for the given site", | ||
"description": "Gets the ZIP archived docker log files for the given site", | ||
"operationId": "WebApps_GetWebSiteContainerLogsZipSlot", | ||
"produces": [ | ||
"application/zip" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/resourceGroupNameParameter" | ||
}, | ||
{ | ||
"name": "name", | ||
"in": "path", | ||
"description": "Name of web app.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "slot", | ||
"in": "path", | ||
"description": "Name of web app slot. If not specified then will default to production slot.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/parameters/subscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/apiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"204": { | ||
"description": "No Content" | ||
}, | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"type": "file" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs": { | ||
"get": { | ||
"tags": [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be rename the action to getContainerLogs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to add a new getContainerLogs later, but as of now we would like to keep the name.