From d9e1033319fb50bac7494b6ad44847710e79f2ae Mon Sep 17 00:00:00 2001 From: Dor Siso <60354892+dosiso@users.noreply.github.com> Date: Wed, 15 Mar 2023 04:28:59 +0200 Subject: [PATCH] Limit top incidents resource types (#22790) * Add blockchain to latest profile * Add additional types * Limit incidents list resource type maximum results * Fix format --------- Co-authored-by: Mark Cowlishaw --- .../preview/2019-01-01-preview/Cases.json | 8 +++++++- .../preview/2019-01-01-preview/SecurityInsights.json | 8 +++++++- .../preview/2021-03-01-preview/Incidents.json | 8 +++++++- .../preview/2021-09-01-preview/Incidents.json | 8 +++++++- .../preview/2021-10-01-preview/Incidents.json | 8 +++++++- .../preview/2022-01-01-preview/Incidents.json | 8 +++++++- .../preview/2022-04-01-preview/Incidents.json | 8 +++++++- .../preview/2022-05-01-preview/Incidents.json | 8 +++++++- .../preview/2022-06-01-preview/Incidents.json | 8 +++++++- .../preview/2022-07-01-preview/Incidents.json | 8 +++++++- .../preview/2022-08-01-preview/Incidents.json | 8 +++++++- .../preview/2022-09-01-preview/Incidents.json | 8 +++++++- .../preview/2022-10-01-preview/Incidents.json | 8 +++++++- .../preview/2022-11-01-preview/Incidents.json | 8 +++++++- .../preview/2022-12-01-preview/Incidents.json | 8 +++++++- .../preview/2023-02-01-preview/Incidents.json | 8 +++++++- .../stable/2020-01-01/SecurityInsights.json | 8 +++++++- .../stable/2021-04-01/Incidents.json | 8 +++++++- .../stable/2021-10-01/Incidents.json | 8 +++++++- .../stable/2022-08-01/Incidents.json | 8 +++++++- .../stable/2022-11-01/Incidents.json | 8 +++++++- .../stable/2023-02-01/Incidents.json | 8 +++++++- 22 files changed, 154 insertions(+), 22 deletions(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/Cases.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/Cases.json index d95a503de738..db22dd11199d 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/Cases.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/Cases.json @@ -70,7 +70,13 @@ "$ref": "SecurityInsights.json#/parameters/ODataOrderBy" }, { - "$ref": "SecurityInsights.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "SecurityInsights.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json index f26e59971997..43336e9313d2 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json @@ -1134,7 +1134,13 @@ "$ref": "#/parameters/ODataOrderBy" }, { - "$ref": "#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview/Incidents.json index 4f6eee9776d1..4ae41b3e32d5 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview/Incidents.json @@ -69,7 +69,13 @@ "$ref": "../../../common/1.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/1.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/1.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/Incidents.json index b2dddc0af247..55e21a8d868d 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/Incidents.json index e77ef88fc473..e55fd142c3b9 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/Incidents.json index a8e717d8e749..947b55bbdc9b 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-04-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-04-01-preview/Incidents.json index 5a4f4a7dc26e..75713716daa9 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-04-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-04-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/Incidents.json index ae2982402e8a..8ea32d9e0550 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-06-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-06-01-preview/Incidents.json index 615bed3dd15f..51e94a8dc86c 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-06-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-06-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/Incidents.json index fd492e2461cb..0b8e7a1446cb 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-08-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-08-01-preview/Incidents.json index eda1efb63559..5fe2a81918c1 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-08-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-08-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/Incidents.json index e46a3500a5d9..def2f443370b 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-10-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-10-01-preview/Incidents.json index f4f399a3f87f..81823f329298 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-10-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-10-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/Incidents.json index 6eba5a97d139..3e3a83e63e0a 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-12-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-12-01-preview/Incidents.json index 17b7817da4b5..321d864e8aae 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-12-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-12-01-preview/Incidents.json @@ -36,7 +36,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-02-01-preview/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-02-01-preview/Incidents.json index d47785aac8a0..d5475f70e122 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-02-01-preview/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-02-01-preview/Incidents.json @@ -36,7 +36,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json index 26b6215df723..7b7d396043c9 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json @@ -97,7 +97,13 @@ "$ref": "#/parameters/ODataOrderBy" }, { - "$ref": "#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-04-01/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-04-01/Incidents.json index 26908cd90380..85d7666ed5b0 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-04-01/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-04-01/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/1.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/1.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/1.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-10-01/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-10-01/Incidents.json index 31c0afb51336..13d5b07029dc 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-10-01/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2021-10-01/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-08-01/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-08-01/Incidents.json index 472dfb161095..9eb6cf61ab05 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-08-01/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-08-01/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/Incidents.json index 46e0cf0dbc21..be7d923325d8 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/Incidents.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/Incidents.json index 2b1247c2c808..520ff49da40a 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/Incidents.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/Incidents.json @@ -66,7 +66,13 @@ "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" }, { - "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" + "in": "query", + "name": "$top", + "description": "Returns only the first n results. Optional.", + "type": "integer", + "format": "int32", + "maximum": 1000, + "x-ms-parameter-location": "method" }, { "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken"