|
522 | 522 | "in": "query", |
523 | 523 | "description": "The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb.", |
524 | 524 | "type": "integer" |
| 525 | + }, |
| 526 | + { |
| 527 | + "name": "timestamps", |
| 528 | + "in": "query", |
| 529 | + "description": "If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false.", |
| 530 | + "type": "boolean" |
525 | 531 | } |
526 | 532 | ], |
527 | 533 | "responses": { |
|
596 | 602 | } |
597 | 603 | } |
598 | 604 | }, |
| 605 | + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach": { |
| 606 | + "post": { |
| 607 | + "operationId": "Containers_Attach", |
| 608 | + "x-ms-examples": { |
| 609 | + "ContainerAttach": { |
| 610 | + "$ref": "./examples/ContainerAttach.json" |
| 611 | + } |
| 612 | + }, |
| 613 | + "summary": "Attach to the output of a specific container instance.", |
| 614 | + "description": "Attach to the output stream of a specific container instance in a specified resource group and container group.", |
| 615 | + "parameters": [ |
| 616 | + { |
| 617 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 618 | + }, |
| 619 | + { |
| 620 | + "$ref": "#/parameters/ApiVersionParameter" |
| 621 | + }, |
| 622 | + { |
| 623 | + "$ref": "#/parameters/ResourceGroupNameParameter" |
| 624 | + }, |
| 625 | + { |
| 626 | + "$ref": "#/parameters/ContainerGroupNameParameter" |
| 627 | + }, |
| 628 | + { |
| 629 | + "name": "containerName", |
| 630 | + "in": "path", |
| 631 | + "description": "The name of the container instance.", |
| 632 | + "required": true, |
| 633 | + "type": "string" |
| 634 | + } |
| 635 | + ], |
| 636 | + "responses": { |
| 637 | + "200": { |
| 638 | + "description": "OK", |
| 639 | + "schema": { |
| 640 | + "$ref": "#/definitions/ContainerAttachResponse" |
| 641 | + } |
| 642 | + }, |
| 643 | + "default": { |
| 644 | + "description": "Error response describing why the operation failed.", |
| 645 | + "schema": { |
| 646 | + "$ref": "#/definitions/CloudError" |
| 647 | + } |
| 648 | + } |
| 649 | + } |
| 650 | + } |
| 651 | + }, |
599 | 652 | "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages": { |
600 | 653 | "get": { |
601 | 654 | "operationId": "Location_ListCachedImages", |
|
1089 | 1142 | "name": "Scheme", |
1090 | 1143 | "modelAsString": true |
1091 | 1144 | } |
| 1145 | + }, |
| 1146 | + "httpHeaders": { |
| 1147 | + "description": "The HTTP headers.", |
| 1148 | + "$ref": "#/definitions/HttpHeaders" |
1092 | 1149 | } |
1093 | 1150 | }, |
1094 | 1151 | "required": [ |
|
1706 | 1763 | } |
1707 | 1764 | } |
1708 | 1765 | }, |
| 1766 | + "ContainerAttachResponse": { |
| 1767 | + "description": "The information for the output stream from container attach.", |
| 1768 | + "type": "object", |
| 1769 | + "properties": { |
| 1770 | + "webSocketUri": { |
| 1771 | + "type": "string", |
| 1772 | + "description": "The uri for the output stream from the attach." |
| 1773 | + }, |
| 1774 | + "password": { |
| 1775 | + "type": "string", |
| 1776 | + "description": "The password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri." |
| 1777 | + } |
| 1778 | + } |
| 1779 | + }, |
| 1780 | + "HttpHeaders": { |
| 1781 | + "description": "The HTTP headers.", |
| 1782 | + "type": "object", |
| 1783 | + "properties": { |
| 1784 | + "name": { |
| 1785 | + "type": "string", |
| 1786 | + "description": "The header name." |
| 1787 | + }, |
| 1788 | + "value": { |
| 1789 | + "type": "string", |
| 1790 | + "description": "The header value." |
| 1791 | + } |
| 1792 | + } |
| 1793 | + }, |
1709 | 1794 | "DnsConfiguration": { |
1710 | 1795 | "description": "DNS configuration for the container group.", |
1711 | 1796 | "type": "object", |
|
0 commit comments