-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BillingStatistics 2023-05-01-preview (#23631)
* BillingStatistics * Update BillingStatistics path in readme
- Loading branch information
Showing
4 changed files
with
276 additions
and
0 deletions.
There are no files selected for viewing
226 changes: 226 additions & 0 deletions
226
...urce-manager/Microsoft.SecurityInsights/preview/2023-05-01-preview/BillingStatistics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Security Insights", | ||
"description": "API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider", | ||
"version": "2023-05-01-preview" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/billingStatistics": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Get all Microsoft Sentinel billing statistics.": { | ||
"$ref": "./examples/billingStatistics/GetAllBillingStatistics.json" | ||
} | ||
}, | ||
"tags": [ | ||
"billingStatistics" | ||
], | ||
"description": "Gets all Microsoft Sentinel billing statistics.", | ||
"operationId": "BillingStatistics_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/BillingStatisticList" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/billingStatistics/{billingStatisticName}": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Get a billing statistic.": { | ||
"$ref": "./examples/billingStatistics/GetBillingStatistic.json" | ||
} | ||
}, | ||
"tags": [ | ||
"billingStatistics" | ||
], | ||
"description": "Gets a billing statistic", | ||
"operationId": "BillingStatistics_Get", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" | ||
}, | ||
{ | ||
"$ref": "#/parameters/BillingStatisticName" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/BillingStatistic" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"BillingStatisticList": { | ||
"description": "List of all Microsoft Sentinel billing statistics.", | ||
"type": "object", | ||
"properties": { | ||
"nextLink": { | ||
"description": "URL to fetch the next set of billing statistics.", | ||
"readOnly": true, | ||
"type": "string" | ||
}, | ||
"value": { | ||
"description": "Array of billing statistics.", | ||
"items": { | ||
"$ref": "#/definitions/BillingStatistic" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"value" | ||
] | ||
}, | ||
"BillingStatistic": { | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/AzureEntityResource" | ||
} | ||
], | ||
"description": "Billing statistic", | ||
"properties": { | ||
"kind": { | ||
"$ref": "#/definitions/BillingStatisticKindEnum", | ||
"description": "The kind of the billing statistic" | ||
} | ||
}, | ||
"discriminator": "kind", | ||
"type": "object", | ||
"required": [ | ||
"kind" | ||
] | ||
}, | ||
"BillingStatisticKindEnum": { | ||
"description": "The kind of the billing statistic", | ||
"enum": [ | ||
"SapSolutionUsage" | ||
], | ||
"type": "string", | ||
"x-ms-enum": { | ||
"modelAsString": true, | ||
"name": "BillingStatisticKind", | ||
"values": [ | ||
{ | ||
"value": "SapSolutionUsage" | ||
} | ||
] | ||
} | ||
}, | ||
"SapSolutionUsageStatistic": { | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/BillingStatistic" | ||
} | ||
], | ||
"description": "Billing statistic about the Microsoft Sentinel solution for SAP Usage", | ||
"properties": { | ||
"properties": { | ||
"$ref": "#/definitions/SapSolutionUsageStatisticProperties", | ||
"description": "The SAP solution usage object", | ||
"x-ms-client-flatten": true | ||
} | ||
}, | ||
"type": "object", | ||
"x-ms-discriminator-value": "SapSolutionUsage" | ||
}, | ||
"SapSolutionUsageStatisticProperties": { | ||
"description": "Properties of the billing statistic about the Microsoft Sentinel solution for SAP usage", | ||
"properties": { | ||
"activeSystemIdCount": { | ||
"description": "The latest count of active SAP system IDs under the Microsoft Sentinel solution for SAP Usage", | ||
"type": "integer", | ||
"format": "int64", | ||
"readOnly": true | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"parameters": { | ||
"BillingStatisticName": { | ||
"description": "The name of the billing statistic", | ||
"in": "path", | ||
"name": "billingStatisticName", | ||
"required": true, | ||
"type": "string", | ||
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", | ||
"x-ms-parameter-location": "method" | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...sights/preview/2023-05-01-preview/examples/billingStatistics/GetAllBillingStatistics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-05-01-preview", | ||
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
"resourceGroupName": "myRg", | ||
"workspaceName": "myWorkspace" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/billingStatistics/sapUsage", | ||
"etag": "\"3f6451dd-1b58-4bef-bce7-72eba6b354d7\"", | ||
"name": "sapSolutionUsage", | ||
"type": "Microsoft.SecurityInsights/billingStatistics", | ||
"kind": "SapSolutionUsage", | ||
"properties": { | ||
"activeSystemIdCount": 5 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...tyInsights/preview/2023-05-01-preview/examples/billingStatistics/GetBillingStatistic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-05-01-preview", | ||
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
"resourceGroupName": "myRg", | ||
"workspaceName": "myWorkspace", | ||
"billingStatisticName": "sapSolutionUsage" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/billingStatistics/sapUsage", | ||
"etag": "\"3f6451dd-1b58-4bef-bce7-72eba6b354d7\"", | ||
"name": "sapSolutionUsage", | ||
"type": "Microsoft.SecurityInsights/billingStatistics", | ||
"kind": "SapSolutionUsage", | ||
"properties": { | ||
"activeSystemIdCount": 5 | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters