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 @@ -259,6 +259,69 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart": {
"post": {
"operationId": "ContainerGroups_Restart",
"x-ms-examples": {
"ContainerRestart": {
"$ref": "./examples/ContainerGroupsRestart.json"
}
},
"summary": "Restarts all containers in a container group.",
"description": "Restarts all containers in a contaienr group in place. If container image has updates, new image will be downloaded.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ContainerGroupNameParameter"
}
],
"responses": {
"204": {
"description": "NoContent"
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop": {
"post": {
"operationId": "ContainerGroups_Stop",
"x-ms-examples": {
"ContainerStop": {
"$ref": "./examples/ContainerGroupsStop.json"
}
},
"summary": "Stops all containers in a container group.",
"description": "Stops all containers in a contaienr group. Compute resources will be deallocated and billing will stop.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ContainerGroupNameParameter"
}
],
"responses": {
"204": {
"description": "NoContent"
}
}
}
},
"/providers/Microsoft.ContainerInstance/operations": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"subscriptionId": "subid",
"api-version": "2018-06-01",
"resourceGroupName": "demo",
"containerGroupName": "demo1"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"subscriptionId": "subid",
"api-version": "2018-06-01",
"resourceGroupName": "demo",
"containerGroupName": "demo1"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"location": "WestUs",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"tags": {
"tag1key": "tag1Value",
"tag2key": "tag2Value"
},
"properties": {
"tags": {
"tag1key": "tag1Value",
"tag2key": "tag2Value"
},
"containers": [
{
"name": "demo1",
Expand Down