Skip to content

Commit f3a67cc

Browse files
OAS Update
1 parent be759cd commit f3a67cc

File tree

1 file changed

+154
-138
lines changed

1 file changed

+154
-138
lines changed

services/sqlserverflex/v2/sqlserverflex.json

Lines changed: 154 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,144 +1066,6 @@
10661066
},
10671067
"openapi": "3.0.1",
10681068
"paths": {
1069-
"/v2/projects/{projectId}/instances/{instanceId}/metrics/{metric}": {
1070-
"get": {
1071-
"description": "Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.",
1072-
"operationId": "ListMetrics",
1073-
"parameters": [
1074-
{
1075-
"description": "The UUID of the project.",
1076-
"explode": false,
1077-
"in": "path",
1078-
"name": "projectId",
1079-
"required": true,
1080-
"schema": {
1081-
"type": "string"
1082-
},
1083-
"style": "simple"
1084-
},
1085-
{
1086-
"description": "The UUID of the instance.",
1087-
"explode": false,
1088-
"in": "path",
1089-
"name": "instanceId",
1090-
"required": true,
1091-
"schema": {
1092-
"type": "string"
1093-
},
1094-
"style": "simple"
1095-
},
1096-
{
1097-
"description": "The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'.",
1098-
"explode": false,
1099-
"in": "path",
1100-
"name": "metric",
1101-
"required": true,
1102-
"schema": {
1103-
"type": "string"
1104-
},
1105-
"style": "simple"
1106-
},
1107-
{
1108-
"description": "The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.",
1109-
"explode": true,
1110-
"in": "query",
1111-
"name": "granularity",
1112-
"required": true,
1113-
"schema": {
1114-
"type": "string"
1115-
},
1116-
"style": "form"
1117-
},
1118-
{
1119-
"description": "The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used.",
1120-
"explode": true,
1121-
"in": "query",
1122-
"name": "period",
1123-
"schema": {
1124-
"type": "string"
1125-
},
1126-
"style": "form"
1127-
},
1128-
{
1129-
"description": "The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used.",
1130-
"explode": true,
1131-
"in": "query",
1132-
"name": "start",
1133-
"schema": {
1134-
"type": "string"
1135-
},
1136-
"style": "form"
1137-
},
1138-
{
1139-
"description": "The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'.",
1140-
"explode": true,
1141-
"in": "query",
1142-
"name": "end",
1143-
"schema": {
1144-
"type": "string"
1145-
},
1146-
"style": "form"
1147-
}
1148-
],
1149-
"responses": {
1150-
"200": {
1151-
"content": {
1152-
"application/json": {
1153-
"schema": {
1154-
"$ref": "#/components/schemas/ListMetricsResponse"
1155-
}
1156-
}
1157-
},
1158-
"description": "OK"
1159-
},
1160-
"400": {
1161-
"content": {
1162-
"application/json": {
1163-
"schema": {
1164-
"$ref": "#/components/schemas/instance.Error"
1165-
}
1166-
}
1167-
},
1168-
"description": "Bad Request"
1169-
},
1170-
"405": {
1171-
"content": {
1172-
"application/json": {
1173-
"schema": {
1174-
"$ref": "#/components/schemas/instance.Error"
1175-
}
1176-
}
1177-
},
1178-
"description": "Method Not Allowed"
1179-
},
1180-
"500": {
1181-
"content": {
1182-
"application/json": {
1183-
"schema": {
1184-
"$ref": "#/components/schemas/instance.Error"
1185-
}
1186-
}
1187-
},
1188-
"description": "Internal Server Error"
1189-
}
1190-
},
1191-
"security": [
1192-
{
1193-
"BearerAuth": []
1194-
}
1195-
],
1196-
"summary": "Get Metric",
1197-
"x-stackit-authorization": {
1198-
"actions": [
1199-
"sqlserver-flex.metric.list"
1200-
],
1201-
"resource-id": "projectId",
1202-
"resource-id-type": "dynamic",
1203-
"resource-type": "project"
1204-
}
1205-
}
1206-
},
12071069
"/v2/projects/{projectId}/regions/{region}": {
12081070
"delete": {
12091071
"description": "Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource",
@@ -3056,6 +2918,160 @@
30562918
}
30572919
}
30582920
},
2921+
"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}": {
2922+
"get": {
2923+
"description": "Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.",
2924+
"operationId": "ListMetrics",
2925+
"parameters": [
2926+
{
2927+
"description": "The UUID of the project.",
2928+
"explode": false,
2929+
"in": "path",
2930+
"name": "projectId",
2931+
"required": true,
2932+
"schema": {
2933+
"type": "string"
2934+
},
2935+
"style": "simple"
2936+
},
2937+
{
2938+
"description": "The UUID of the instance.",
2939+
"explode": false,
2940+
"in": "path",
2941+
"name": "instanceId",
2942+
"required": true,
2943+
"schema": {
2944+
"type": "string"
2945+
},
2946+
"style": "simple"
2947+
},
2948+
{
2949+
"description": "The region which should be addressed",
2950+
"example": "eu01",
2951+
"explode": false,
2952+
"in": "path",
2953+
"name": "region",
2954+
"required": true,
2955+
"schema": {
2956+
"enum": [
2957+
"eu01",
2958+
"eu02"
2959+
],
2960+
"type": "string"
2961+
},
2962+
"style": "simple"
2963+
},
2964+
{
2965+
"description": "The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'.",
2966+
"explode": false,
2967+
"in": "path",
2968+
"name": "metric",
2969+
"required": true,
2970+
"schema": {
2971+
"type": "string"
2972+
},
2973+
"style": "simple"
2974+
},
2975+
{
2976+
"description": "The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.",
2977+
"explode": true,
2978+
"in": "query",
2979+
"name": "granularity",
2980+
"required": true,
2981+
"schema": {
2982+
"type": "string"
2983+
},
2984+
"style": "form"
2985+
},
2986+
{
2987+
"description": "The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used.",
2988+
"explode": true,
2989+
"in": "query",
2990+
"name": "period",
2991+
"schema": {
2992+
"type": "string"
2993+
},
2994+
"style": "form"
2995+
},
2996+
{
2997+
"description": "The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used.",
2998+
"explode": true,
2999+
"in": "query",
3000+
"name": "start",
3001+
"schema": {
3002+
"type": "string"
3003+
},
3004+
"style": "form"
3005+
},
3006+
{
3007+
"description": "The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'.",
3008+
"explode": true,
3009+
"in": "query",
3010+
"name": "end",
3011+
"schema": {
3012+
"type": "string"
3013+
},
3014+
"style": "form"
3015+
}
3016+
],
3017+
"responses": {
3018+
"200": {
3019+
"content": {
3020+
"application/json": {
3021+
"schema": {
3022+
"$ref": "#/components/schemas/ListMetricsResponse"
3023+
}
3024+
}
3025+
},
3026+
"description": "OK"
3027+
},
3028+
"400": {
3029+
"content": {
3030+
"application/json": {
3031+
"schema": {
3032+
"$ref": "#/components/schemas/instance.Error"
3033+
}
3034+
}
3035+
},
3036+
"description": "Bad Request"
3037+
},
3038+
"405": {
3039+
"content": {
3040+
"application/json": {
3041+
"schema": {
3042+
"$ref": "#/components/schemas/instance.Error"
3043+
}
3044+
}
3045+
},
3046+
"description": "Method Not Allowed"
3047+
},
3048+
"500": {
3049+
"content": {
3050+
"application/json": {
3051+
"schema": {
3052+
"$ref": "#/components/schemas/instance.Error"
3053+
}
3054+
}
3055+
},
3056+
"description": "Internal Server Error"
3057+
}
3058+
},
3059+
"security": [
3060+
{
3061+
"BearerAuth": []
3062+
}
3063+
],
3064+
"summary": "Get Metric",
3065+
"x-stackit-authorization": {
3066+
"actions": [
3067+
"sqlserver-flex.metric.list"
3068+
],
3069+
"resource-id": "projectId",
3070+
"resource-id-type": "dynamic",
3071+
"resource-type": "project"
3072+
}
3073+
}
3074+
},
30593075
"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores": {
30603076
"get": {
30613077
"description": "List all currently running restore jobs which are available for a specific instance",

0 commit comments

Comments
 (0)