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

Add Contaienr Group Stop and Restart API #3556

Merged
merged 2 commits into from
Jul 31, 2018
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