Skip to content

Commit 7a704e6

Browse files
[Hub Generated] Review request for Microsoft.ContainerInstance to add version stable/2020-11-01 (#12129)
1 parent 556f908 commit 7a704e6

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,12 @@
522522
"in": "query",
523523
"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.",
524524
"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"
525531
}
526532
],
527533
"responses": {
@@ -596,6 +602,53 @@
596602
}
597603
}
598604
},
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+
},
599652
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages": {
600653
"get": {
601654
"operationId": "Location_ListCachedImages",
@@ -1089,6 +1142,10 @@
10891142
"name": "Scheme",
10901143
"modelAsString": true
10911144
}
1145+
},
1146+
"httpHeaders": {
1147+
"description": "The HTTP headers.",
1148+
"$ref": "#/definitions/HttpHeaders"
10921149
}
10931150
},
10941151
"required": [
@@ -1706,6 +1763,34 @@
17061763
}
17071764
}
17081765
},
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+
},
17091794
"DnsConfiguration": {
17101795
"description": "DNS configuration for the container group.",
17111796
"type": "object",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"api-version": "2020-11-01",
5+
"resourceGroupName": "demo",
6+
"containerGroupName": "demo1",
7+
"containerName": "container1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"webSocketUri": "wss://web-socket-uri",
13+
"password": "password"
14+
}
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)