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 idleShutdownSetting to Compute Instances #19748

Merged
Show file tree
Hide file tree
Changes from 3 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
@@ -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": {
teochaban marked this conversation as resolved.
Show resolved Hide resolved
"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",
teochaban marked this conversation as resolved.
Show resolved Hide resolved
"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 @@ -3662,6 +3712,10 @@
"x-nullable": true,
"readOnly": true
},
"idleTimeBeforeShutdown": {
teochaban marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"description": "Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days."
},
teochaban marked this conversation as resolved.
Show resolved Hide resolved
"enableNodePublicIp": {
"type": "boolean",
"title": "Enable node public IP.",
Expand Down Expand Up @@ -5661,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."
}
}
}
}
}