Skip to content
Open
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 @@ -403,6 +403,104 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop": {
"post": {
"tags": [
"AppPlatform"
],
"description": "Stop a Service.",
"operationId": "Services_Stop",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ServiceNameParameter"
}
],
"responses": {
"202": {
"description": "Accepted. The response indicates the stop operation is performed in the background."
},
"404": {
"description": "Not found. The response indicates the service does not exist."
},
"409": {
"description": "Conflict. The response indicates the exiting Service is now updating."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"x-ms-examples": {
"Services_Stop": {
"$ref": "./examples/Services_Stop.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start": {
"post": {
"tags": [
"AppPlatform"
],
"description": "Start a Service.",
"operationId": "Services_Start",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ServiceNameParameter"
}
],
"responses": {
"202": {
"description": "Accepted. The response indicates the stop operation is performed in the background."
},
"404": {
"description": "Not found. The response indicates the service does not exist."
},
"409": {
"description": "Conflict. The response indicates the exiting Service is now updating."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"x-ms-examples": {
"Services_Start": {
"$ref": "./examples/Services_Start.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default": {
"get": {
"tags": [
Expand Down Expand Up @@ -3061,6 +3159,19 @@
"description": "ServiceInstanceEntity GUID which uniquely identifies a created resource",
"type": "string",
"readOnly": true
},
"powerState": {
"description": "Power state of the Service",
"enum": [
"Running",
"Stopped"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "PowerState",
"modelAsString": true
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"serviceName": "myservice"
},
"responses": {
"202": {},
"404": {},
"409": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"serviceName": "myservice"
},
"responses": {
"202": {},
"404": {},
"409": {}
}
}