-
Notifications
You must be signed in to change notification settings - Fork 5.8k
adding new scopes for alerts #5540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
8ba848f
3f909df
74aaf05
f6c2bf8
c90e921
85d31f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2114,6 +2114,130 @@ | |
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountId}/alerts": { | ||
| "get": { | ||
| "tags": [ | ||
| "Alerts" | ||
| ], | ||
| "operationId": "Alerts_ListByexternalBillingAccounts", | ||
| "description": "List all alerts for external billing account.", | ||
| "x-ms-examples": { | ||
| "Alert_List": { | ||
| "$ref": "./examples/AlertList.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/externalBillingAccountIdParameter" | ||
| }, | ||
| { | ||
| "name": "$filter", | ||
| "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", | ||
| "in": "query", | ||
| "required": false, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is not needed (same for other parameters).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not? we did it like other scopes. We want to be consistent to other scopes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, no harm done, it's just redundant. |
||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "$skiptoken", | ||
| "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "$top", | ||
| "description": "May be used to limit the number of results to the most recent N alerts.", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "integer", | ||
| "minimum": 1, | ||
| "maximum": 1000 | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/AlertListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionId}/alerts": { | ||
| "get": { | ||
| "tags": [ | ||
| "Alerts" | ||
| ], | ||
| "operationId": "Alerts_ListByExternalSubscriptions", | ||
| "description": "List all alerts for external subscription.", | ||
| "x-ms-examples": { | ||
| "Alert_List": { | ||
| "$ref": "./examples/AlertList.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/externalSubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "name": "$filter", | ||
| "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "$skiptoken", | ||
| "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "$top", | ||
| "description": "May be used to limit the number of results to the most recent N alerts.", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "integer", | ||
| "minimum": 1, | ||
| "maximum": 1000 | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/AlertListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}": { | ||
| "get": { | ||
| "tags": [ | ||
|
|
@@ -2374,6 +2498,90 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountId}/alerts/{alertId}": { | ||
| "get": { | ||
| "tags": [ | ||
| "Alerts" | ||
| ], | ||
| "operationId": "Alerts_GetAlertByExternalBillingAccounts", | ||
| "description": "Gets an alert for external billing account by alert ID.", | ||
| "externalDocs": { | ||
| "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" | ||
| }, | ||
| "x-ms-examples": { | ||
| "Alert": { | ||
| "$ref": "./examples/Alert.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/externalBillingAccountIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/alertIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Alert" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionId}/alerts/{alertId}": { | ||
| "get": { | ||
| "tags": [ | ||
| "Alerts" | ||
| ], | ||
| "operationId": "Alerts_GetAlertByExternalSubscriptions", | ||
| "description": "Gets an alert for external subscription by alert ID.", | ||
| "externalDocs": { | ||
| "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" | ||
|
olrakovs-zz marked this conversation as resolved.
|
||
| }, | ||
| "x-ms-examples": { | ||
| "Alert": { | ||
| "$ref": "./examples/Alert.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/externalSubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/alertIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Alert" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { | ||
| "patch": { | ||
|
|
@@ -2672,6 +2880,102 @@ | |
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountId}/alerts/{alertId}/UpdateStatus": { | ||
| "patch": { | ||
| "tags": [ | ||
| "Alerts" | ||
| ], | ||
| "operationId": "Alerts_UpdateExternalBillingAccountAlertStatus", | ||
| "description": "Update alerts status for external billing accounts.", | ||
| "x-ms-examples": { | ||
| "Alert": { | ||
| "$ref": "./examples/Alert.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/externalBillingAccountIdParameter" | ||
| }, | ||
| { | ||
|
olrakovs-zz marked this conversation as resolved.
Outdated
|
||
| "$ref": "#/parameters/alertIdParameter" | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/Alert" | ||
| }, | ||
| "description": "Parameters supplied to the update alerts status operation." | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Alert" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionId}/alerts/{alertId}/UpdateStatus": { | ||
| "patch": { | ||
| "tags": [ | ||
| "Alerts" | ||
| ], | ||
| "operationId": "Alerts_UpdateExternalSubscriptionAlertStatus", | ||
| "description": "Update alerts status for external subscription.", | ||
| "x-ms-examples": { | ||
| "Alert": { | ||
| "$ref": "./examples/Alert.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/externalSubscriptionIdParameter" | ||
| }, | ||
| { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Formatting |
||
| "$ref": "#/parameters/alertIdParameter" | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/Alert" | ||
| }, | ||
| "description": "Parameters supplied to the update alerts status operation." | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Alert" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.CostManagement/operations": { | ||
| "get": { | ||
| "tags": [ | ||
|
|
@@ -3886,6 +4190,22 @@ | |
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "externalBillingAccountIdParameter": { | ||
| "name": "externalBillingAccountId", | ||
| "in": "path", | ||
| "description": "External Billing Account ID", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "externalSubscriptionIdParameter": { | ||
| "name": "externalSubscriptionId", | ||
| "in": "path", | ||
| "description": "External Subscription ID", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "enrollmentAccountIdParameter": { | ||
| "name": "enrollmentAccountId", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.