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

Added Start and Stop operation, plus PowerState to swagger spec #10555

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1"
},
"responses": {
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1"
},
"responses": {
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,94 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop": {
"post": {
"tags": [
"ManagedClusters"
],
"operationId": "ManagedClusters_Stop",
"summary": "Stop Managed Cluster",
"description": "Stops a Running Managed Cluster",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ResourceNameParameter"
}
],
"responses": {
"202": {
"description": "Accepted"
},
"204": {
"description": "NoContent"
},
"default": {
"description": "Error response describing why the operation failed. If the cluster doesn't exist, 404 (Not found) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Rotate Cluster Certificates": {
"$ref": "./examples/ManagedClustersStop.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start": {
"post": {
"tags": [
"ManagedClusters"
],
"operationId": "ManagedClusters_Start",
"summary": "Start Managed Cluster",
"description": "Starts a Stopped Managed Cluster",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ResourceNameParameter"
}
],
"responses": {
"202": {
"description": "Accepted"
},
"204": {
"description": "NoContent"
},
"default": {
"description": "Error response describing why the operation failed. If the cluster doesn't exist, 404 (Not found) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Rotate Cluster Certificates": {
"$ref": "./examples/ManagedClustersStart.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections": {
"get": {
"tags": [
Expand Down Expand Up @@ -1853,6 +1941,11 @@
"type": "string",
"description": "The current deployment or provisioning state, which only appears in the response."
},
"powerState": {
"readOnly": true,
"description": "Describes whether the Agent Pool is Running or Stopped",
"$ref": "#/definitions/PowerState"
},
"availabilityZones": {
"type": "array",
"items": {
Expand Down Expand Up @@ -2315,6 +2408,11 @@
"type": "string",
"description": "The current deployment or provisioning state, which only appears in the response."
},
"powerState": {
"$ref": "#/definitions/PowerState",
"description": "Represents the Power State of the cluster",
"readOnly": true
},
"maxAgentPools": {
"readOnly": true,
"type": "integer",
Expand Down Expand Up @@ -2469,6 +2567,23 @@
},
"description": "Properties of the managed cluster."
},
"PowerState": {
"description": "Describes the Power State of the cluster",
"properties": {
"code": {
"type": "string",
"description": "Tells whether the cluster is Running or Stopped",
"enum": [
"Running",
"Stopped"
],
"x-ms-enum": {
"name": "code",
"modelAsString": true
}
}
}
},
"ManagedClusterAPIServerAccessProfile": {
"properties": {
"authorizedIPRanges": {
Expand Down