Skip to content

Commit 3a91381

Browse files
thang-bitBrian Zak
andauthored
[Defender (RiskIQ) - EASM] Api version 2023-03-01-preview (#23147)
* Added new version that include data connector api. * Update easm api version to include data connection * Update readme * Update version in readme, rename example DataConnections_Remove.json * Address comments on easm api 2023-03-01-preview version * Update List operations examples and add Assets_Observations example * Update model of examples * Update data connections examples * Remove properties field from DataConnections_Get example * add discriminator to data connection base classes * Add properties to examples * Fix typos * Remove assets observations endpoint and its example * the `value` property of a pageable responses is required --------- Co-authored-by: Brian Zak <brianzak@microsoft.com>
1 parent 44e8334 commit 3a91381

32 files changed

+13620
-2
lines changed

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/easm.json

Lines changed: 5656 additions & 0 deletions
Large diffs are not rendered by default.

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/Assets_Get.json

Lines changed: 1038 additions & 0 deletions
Large diffs are not rendered by default.

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/Assets_List.json

Lines changed: 3899 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"filter": "state%20%3D%20%22confirmed%22%20AND%20name%20%5E%3D%20%22contoso.com%22",
8+
"body": {
9+
"state": "confirmed",
10+
"externalId": "contosoInternalId",
11+
"labels": {
12+
"contosoLabel": true
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"id": "ThisisaTaskId",
20+
"startedAt": "2022-05-02T19:30:14.432+00:00",
21+
"completedAt": "2022-05-02T19:30:54.432+00:00",
22+
"lastPolledAt": "2022-05-02T19:30:19.432+00:00",
23+
"state": "complete",
24+
"phase": "complete",
25+
"reason": "This is a Task id"
26+
}
27+
}
28+
}
29+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"dataConnectionName": "ThisisaDataConnection"
8+
},
9+
"responses": {
10+
"204": {}
11+
}
12+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"dataConnectionName": "ThisisaDataConnection"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "ThisisaDataConnection",
13+
"name": "ThisisaDataConnection",
14+
"displayName": "ThisisaDataConnection",
15+
"kind": "logAnalytics",
16+
"frequency": "weekly",
17+
"frequencyOffset": 1,
18+
"properties": {
19+
"apiKey": "ThisisApiKey",
20+
"workspaceId": "ThisisWorkspaceId"
21+
},
22+
"createdDate": "2022-05-02T19:30:14.432+00:00",
23+
"updatedDate": "2022-05-02T19:30:14.432+00:00"
24+
}
25+
}
26+
}
27+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"totalElements": 2,
12+
"nextLink": "https://<api-endpoint>/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/workspaces/ThisisaWorkspace/dataConnections?maxpagesize=25&api-version=2023-03-01-preview",
13+
"value": [
14+
{
15+
"id": "ThisisaDataConnection",
16+
"name": "ThisisaDataConnection",
17+
"displayName": "ThisisaDataConnection",
18+
"kind": "logAnalytics",
19+
"frequency": "weekly",
20+
"frequencyOffset": 1,
21+
"properties": {
22+
"apiKey": "ThisisApiKey",
23+
"workspaceId": "ThisisWorkspaceId"
24+
},
25+
"createdDate": "2022-05-02T19:30:14.432+00:00",
26+
"updatedDate": "2022-05-02T19:30:14.432+00:00"
27+
},
28+
{
29+
"id": "ThisisaDataConnection2",
30+
"name": "ThisisaDataConnection2",
31+
"displayName": "ThisisaDataConnection2",
32+
"kind": "azureDataExplorer",
33+
"properties": {
34+
"clusterName": "ThisisClusterName",
35+
"region": "ThisisRegion",
36+
"databaseName": "ThisisDatabaseName"
37+
},
38+
"frequency": "weekly",
39+
"frequencyOffset": 1,
40+
"createdDate": "2022-05-02T19:30:14.432+00:00",
41+
"updatedDate": "2022-05-02T19:30:14.432+00:00"
42+
}
43+
]
44+
}
45+
}
46+
}
47+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"dataConnectionName": "ThisisaDataConnection",
8+
"body": {
9+
"kind": "logAnalytics",
10+
"properties": {
11+
"apiKey": "ThisisApiKey",
12+
"workspaceId": "ThisisWorkspaceId"
13+
},
14+
"frequency": "weekly",
15+
"frequencyOffset": 1
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"id": "ThisisaDataConnection",
22+
"name": "ThisisaDataConnection",
23+
"displayName": "ThisisaDataConnection",
24+
"kind": "logAnalytics",
25+
"properties": {
26+
"apiKey": "ThisisApiKey",
27+
"workspaceId": "ThisisWorkspaceId"
28+
},
29+
"createdDate": "2022-05-02T19:30:14.432+00:00",
30+
"updatedDate": "2022-05-02T19:30:14.432+00:00"
31+
}
32+
}
33+
}
34+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"body": {
8+
"kind": "logAnalytics",
9+
"properties": {
10+
"apiKey": "ThisisApiKey",
11+
"workspaceId": "ThisisWorkspaceId"
12+
},
13+
"frequency": "weekly",
14+
"frequencyOffset": 1,
15+
"name": "ThisisaDataConnection"
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"error": null
22+
}
23+
}
24+
}
25+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"groupName": "ThisisaDiscoGroup"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "ThisisaDiscoGroup",
13+
"name": "ThisisaDiscoGroup",
14+
"displayName": "ThisisaDiscoGroup",
15+
"description": "This is a disco group",
16+
"tier": "advanced",
17+
"frequencyMilliseconds": 604800000,
18+
"seeds": [
19+
{
20+
"name": "thisisatest.microsoft.com",
21+
"kind": "host"
22+
}
23+
],
24+
"excludes": [],
25+
"templateId": "123",
26+
"latestRun": {
27+
"startedDate": "2022-05-02T19:30:14.432+00:00",
28+
"state": "completed"
29+
},
30+
"createdDate": "2022-05-02T19:30:14.432+00:00"
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)