Skip to content

Commit b2922f9

Browse files
author
Ami Hollander
committed
align examples
1 parent 80da2f5 commit b2922f9

File tree

10 files changed

+114
-144
lines changed

10 files changed

+114
-144
lines changed

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationResults/GetOperationResult.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@
66
"api-version": "2025-10-01-preview"
77
},
88
"responses": {
9-
"200": {}
9+
"200": {},
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2025-10-01-preview",
13+
"Retry-After": "10"
14+
}
15+
},
16+
"204": {},
17+
"default": {
18+
"body": {
19+
"error": {
20+
"code": "OperationNotFound",
21+
"message": "The requested operation was not found.",
22+
"target": "operationId",
23+
"details": [
24+
{
25+
"code": "InvalidOperationId",
26+
"message": "The operation ID '00000000-0000-0000-0000-000000000000' does not exist or has expired."
27+
}
28+
]
29+
}
30+
}
31+
}
1032
}
1133
}

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationResults/GetOperationResultError.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationResults/GetOperationResultInProgress.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationResults/GetOperationResultNoContent.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationStatuses/GetOperationStatus.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,95 @@
1414
"startTime": "2025-10-01T10:00:00.000Z",
1515
"endTime": "2025-10-01T10:05:00.000Z",
1616
"percentComplete": 100.0
17+
},
18+
"description": "Status: Succeeded"
19+
},
20+
"default": {
21+
"body": {
22+
"error": {
23+
"code": "OperationNotFound",
24+
"message": "The requested operation was not found.",
25+
"target": "operationId",
26+
"details": [
27+
{
28+
"code": "InvalidOperationId",
29+
"message": "The operation ID does not exist or has expired."
30+
}
31+
]
32+
}
33+
}
34+
}
35+
},
36+
"examples": {
37+
"InProgress": {
38+
"parameters": {
39+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
40+
"location": "eastus",
41+
"operationId": "11111111-1111-1111-1111-111111111111",
42+
"api-version": "2025-10-01-preview"
43+
},
44+
"responses": {
45+
"200": {
46+
"body": {
47+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/eastus/operationStatuses/11111111-1111-1111-1111-111111111111",
48+
"name": "11111111-1111-1111-1111-111111111111",
49+
"status": "InProgress",
50+
"startTime": "2025-10-01T10:00:00.000Z",
51+
"percentComplete": 45.5
52+
}
53+
}
54+
}
55+
},
56+
"Failed": {
57+
"parameters": {
58+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
59+
"location": "eastus",
60+
"operationId": "22222222-2222-2222-2222-222222222222",
61+
"api-version": "2025-10-01-preview"
62+
},
63+
"responses": {
64+
"200": {
65+
"body": {
66+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/eastus/operationStatuses/22222222-2222-2222-2222-222222222222",
67+
"name": "22222222-2222-2222-2222-222222222222",
68+
"status": "Failed",
69+
"startTime": "2025-10-01T10:00:00.000Z",
70+
"endTime": "2025-10-01T10:02:30.000Z",
71+
"percentComplete": 100.0,
72+
"error": {
73+
"code": "ResourceValidationFailed",
74+
"message": "The resource validation failed with the following error: Invalid configuration provided.",
75+
"target": "privateLink",
76+
"details": [
77+
{
78+
"code": "InvalidParameter",
79+
"message": "The parameter 'groupIds' is invalid.",
80+
"target": "groupIds"
81+
}
82+
]
83+
}
84+
}
85+
}
86+
}
87+
},
88+
"Canceled": {
89+
"parameters": {
90+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
91+
"location": "westus",
92+
"operationId": "33333333-3333-3333-3333-333333333333",
93+
"api-version": "2025-10-01-preview"
94+
},
95+
"responses": {
96+
"200": {
97+
"body": {
98+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westus/operationStatuses/33333333-3333-3333-3333-333333333333",
99+
"name": "33333333-3333-3333-3333-333333333333",
100+
"status": "Canceled",
101+
"startTime": "2025-10-01T09:00:00.000Z",
102+
"endTime": "2025-10-01T09:01:15.000Z",
103+
"percentComplete": 25.0
104+
}
105+
}
17106
}
18107
}
19108
}

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationStatuses/GetOperationStatusCanceled.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationStatuses/GetOperationStatusFailed.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/examples/OperationStatuses/GetOperationStatusInProgress.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/operationResults.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,8 @@
3737
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{location}/operationResults/{operationId}": {
3838
"get": {
3939
"x-ms-examples": {
40-
"Get operation result - Completed": {
40+
"Get operation result": {
4141
"$ref": "./examples/OperationResults/GetOperationResult.json"
42-
},
43-
"Get operation result - InProgress": {
44-
"$ref": "./examples/OperationResults/GetOperationResultInProgress.json"
45-
},
46-
"Get operation result - NoContent": {
47-
"$ref": "./examples/OperationResults/GetOperationResultNoContent.json"
48-
},
49-
"Get operation result - Error": {
50-
"$ref": "./examples/OperationResults/GetOperationResultError.json"
5142
}
5243
},
5344
"tags": [

specification/security/resource-manager/Microsoft.Security/preview/2025-10-01-preview/operationStatuses.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,8 @@
3737
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{location}/operationStatuses/{operationId}": {
3838
"get": {
3939
"x-ms-examples": {
40-
"Get operation status - Succeeded": {
40+
"Get operation status": {
4141
"$ref": "./examples/OperationStatuses/GetOperationStatus.json"
42-
},
43-
"Get operation status - InProgress": {
44-
"$ref": "./examples/OperationStatuses/GetOperationStatusInProgress.json"
45-
},
46-
"Get operation status - Failed": {
47-
"$ref": "./examples/OperationStatuses/GetOperationStatusFailed.json"
48-
},
49-
"Get operation status - Canceled": {
50-
"$ref": "./examples/OperationStatuses/GetOperationStatusCanceled.json"
5142
}
5243
},
5344
"tags": [

0 commit comments

Comments
 (0)