Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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/ExternalBillingAccountAlertList.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,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not needed (same for other parameters).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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/ExternalSubscriptionAlertList.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": [
Expand Down Expand Up @@ -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/ExternalBillingAccountAlert.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/"
},
"x-ms-examples": {
"Alert": {
"$ref": "./examples/ExternalSubscriptionAlert.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": {
Expand Down Expand Up @@ -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/ExternalBillingAccountAlert.json"
}
},
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"$ref": "#/parameters/externalBillingAccountIdParameter"
},
{
"$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/ExternalSubscriptionAlert.json"
}
},
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"$ref": "#/parameters/externalSubscriptionIdParameter"
},
{
"$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": [
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -3920,4 +4240,4 @@
"x-ms-parameter-location": "method"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2018-08-01-preview",
"externalBillingAccountId": "aws-45645646",
"alertId": "0e1d6ee7-0052-4996-89e2-023263106885"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.CostManagement/externalBillingAccounts/aws-45645646/alerts/0e1d6ee7-0052-4996-89e2-023263106885",
"name": "0e1d6ee7-0052-4996-89e2-023263106885",
"type": "Microsoft.CostManagement/alerts",
"properties": {
"definition": {
"type": "Budget",
"category": "Cost",
"criteria": "CostThresholdExceeded"
},
"description": "This is an example alert",
"source": "User",
"details": {
"amountDue": "500.0",
"billedAmount": "680.36"
},
"costEntityId": "123",
"creationTime": "2018-09-03T11:21:43.3495582+03:00",
"status": "Active",
"closeTime": "2018-09-10T11:21:43.3495582+03:00",
"modificationTime": "2018-12-05T10:04:36.0321998Z",
"statusModificationUserName": "Ido Ben",
"statusModificationTime": "2018-12-05T10:04:36.0321998Z"
}
}
}
}
}
Loading