Skip to content

Commit

Permalink
Added api UpdateIdleShutdownSetting
Browse files Browse the repository at this point in the history
  • Loading branch information
Teo Magnino Chaban committed Jul 12, 2022
1 parent 590bc03 commit 4408472
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "testrg123",
"workspaceName": "workspaces123",
"computeName": "compute123",
"api-version": "2022-06-01-preview",
"parameters": {
"idleTimeBeforeShutdown": "PT120M"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,56 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting": {
"post": {
"tags": [
"MachineLearningComputes"
],
"operationId": "Compute_UpdateIdleShutdownSetting",
"description": "Updates the idle shutdown setting of a compute instance.",
"x-ms-examples": {
"Update idle shutdown setting of ComputeInstance": {
"$ref": "./examples/Compute/updateIdleShutdownSetting.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/WorkspaceNameParameter"
},
{
"$ref": "#/parameters/ComputeNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"description": "The object for updating idle shutdown setting of specified ComputeInstance.",
"schema": {
"$ref": "#/definitions/IdleShutdownSetting"
}
}
],
"responses": {
"200": {
"description": "Success."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections": {
"get": {
"tags": [
Expand Down Expand Up @@ -5665,6 +5715,16 @@
]
}
}
},
"IdleShutdownSetting": {
"type": "object",
"description": "Stops compute instance after user defined period of inactivity.",
"properties": {
"idleTimeBeforeShutdown": {
"type": "string",
"description": "Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days."
}
}
}
}
}

0 comments on commit 4408472

Please sign in to comment.