|
1109 | 1109 | }
|
1110 | 1110 | }
|
1111 | 1111 | },
|
| 1112 | + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateReservationDetailsReport": { |
| 1113 | + "post": { |
| 1114 | + "tags": [ |
| 1115 | + "ReservedInstances" |
| 1116 | + ], |
| 1117 | + "operationId": "GenerateReservationDetailsReport_ByBillingAccountId", |
| 1118 | + "description": "Generates the reservations details report for provided date range asynchronously based on enrollment id.", |
| 1119 | + "externalDocs": { |
| 1120 | + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" |
| 1121 | + }, |
| 1122 | + "x-ms-examples": { |
| 1123 | + "ReservationDetails": { |
| 1124 | + "$ref": "./examples/GenerateReservationDetailsReportByBillingAccount.json" |
| 1125 | + } |
| 1126 | + }, |
| 1127 | + "x-ms-long-running-operation": true, |
| 1128 | + "x-ms-long-running-operation-options": { |
| 1129 | + "final-state-via": "location" |
| 1130 | + }, |
| 1131 | + "parameters": [ |
| 1132 | + { |
| 1133 | + "$ref": "#/parameters/enrollmentIdParameter" |
| 1134 | + }, |
| 1135 | + { |
| 1136 | + "$ref": "#/parameters/startDateParameter" |
| 1137 | + }, |
| 1138 | + { |
| 1139 | + "$ref": "#/parameters/endDateParameter" |
| 1140 | + }, |
| 1141 | + { |
| 1142 | + "$ref": "#/parameters/apiVersionParameter" |
| 1143 | + } |
| 1144 | + ], |
| 1145 | + "responses": { |
| 1146 | + "200": { |
| 1147 | + "description": "Request processing completed.", |
| 1148 | + "schema": { |
| 1149 | + "$ref": "#/definitions/OperationStatus" |
| 1150 | + } |
| 1151 | + }, |
| 1152 | + "202": { |
| 1153 | + "description": "Accepted. Request will be processed. Use the location header to check the status.", |
| 1154 | + "headers": { |
| 1155 | + "Location": { |
| 1156 | + "description": "The URL to check the status of the asynchronous operation.", |
| 1157 | + "type": "string" |
| 1158 | + }, |
| 1159 | + "Retry-After": { |
| 1160 | + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", |
| 1161 | + "format": "int32", |
| 1162 | + "type": "integer" |
| 1163 | + } |
| 1164 | + } |
| 1165 | + }, |
| 1166 | + "default": { |
| 1167 | + "description": "Error response describing why the operation failed.", |
| 1168 | + "schema": { |
| 1169 | + "$ref": "#/definitions/ErrorResponse" |
| 1170 | + } |
| 1171 | + } |
| 1172 | + } |
| 1173 | + } |
| 1174 | + }, |
| 1175 | + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateReservationDetailsReport": { |
| 1176 | + "post": { |
| 1177 | + "tags": [ |
| 1178 | + "ReservedInstances" |
| 1179 | + ], |
| 1180 | + "operationId": "GenerateReservationDetailsReport_ByBillingProfileId", |
| 1181 | + "description": "Generates the reservations details report for provided date range asynchronously by billing profile.", |
| 1182 | + "externalDocs": { |
| 1183 | + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" |
| 1184 | + }, |
| 1185 | + "x-ms-examples": { |
| 1186 | + "ReservationDetails": { |
| 1187 | + "$ref": "./examples/GenerateReservationDetailsReportByBillingProfile.json" |
| 1188 | + } |
| 1189 | + }, |
| 1190 | + "x-ms-long-running-operation": true, |
| 1191 | + "x-ms-long-running-operation-options": { |
| 1192 | + "final-state-via": "location" |
| 1193 | + }, |
| 1194 | + "parameters": [ |
| 1195 | + { |
| 1196 | + "$ref": "#/parameters/billingAccountIdParameter" |
| 1197 | + }, |
| 1198 | + { |
| 1199 | + "$ref": "#/parameters/billingProfileIdParameter" |
| 1200 | + }, |
| 1201 | + { |
| 1202 | + "$ref": "#/parameters/startDateParameter" |
| 1203 | + }, |
| 1204 | + { |
| 1205 | + "$ref": "#/parameters/endDateParameter" |
| 1206 | + }, |
| 1207 | + { |
| 1208 | + "$ref": "#/parameters/apiVersionParameter" |
| 1209 | + } |
| 1210 | + ], |
| 1211 | + "responses": { |
| 1212 | + "200": { |
| 1213 | + "description": "Request processing completed.", |
| 1214 | + "schema": { |
| 1215 | + "$ref": "#/definitions/OperationStatus" |
| 1216 | + } |
| 1217 | + }, |
| 1218 | + "202": { |
| 1219 | + "description": "Accepted. Request will be processed. Use the Location header to check the status.", |
| 1220 | + "headers": { |
| 1221 | + "Location": { |
| 1222 | + "description": "The URL to check the status of the asynchronous operation.", |
| 1223 | + "type": "string" |
| 1224 | + }, |
| 1225 | + "Retry-After": { |
| 1226 | + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", |
| 1227 | + "format": "int32", |
| 1228 | + "type": "integer" |
| 1229 | + } |
| 1230 | + } |
| 1231 | + }, |
| 1232 | + "default": { |
| 1233 | + "description": "Error response describing why the operation failed.", |
| 1234 | + "schema": { |
| 1235 | + "$ref": "#/definitions/ErrorResponse" |
| 1236 | + } |
| 1237 | + } |
| 1238 | + } |
| 1239 | + } |
| 1240 | + }, |
1112 | 1241 | "/providers/Microsoft.CostManagement/operations": {
|
1113 | 1242 | "get": {
|
1114 | 1243 | "tags": [
|
|
2400 | 2529 | }
|
2401 | 2530 | }
|
2402 | 2531 | },
|
| 2532 | + "OperationStatus": { |
| 2533 | + "description": "The status of the long running operation.", |
| 2534 | + "type": "object", |
| 2535 | + "properties": { |
| 2536 | + "status": { |
| 2537 | + "description": "The status of the long running operation.", |
| 2538 | + "type": "string", |
| 2539 | + "enum": [ |
| 2540 | + "Running", |
| 2541 | + "Completed", |
| 2542 | + "Failed" |
| 2543 | + ], |
| 2544 | + "x-ms-enum": { |
| 2545 | + "name": "OperationStatusType", |
| 2546 | + "modelAsString": true |
| 2547 | + } |
| 2548 | + }, |
| 2549 | + "properties": { |
| 2550 | + "x-ms-client-flatten": true, |
| 2551 | + "type": "object", |
| 2552 | + "description": "The properties of the resource generated.", |
| 2553 | + "$ref": "#/definitions/ReportURL" |
| 2554 | + } |
| 2555 | + } |
| 2556 | + }, |
| 2557 | + "ReportURL": { |
| 2558 | + "description": "The URL to download the generated report.", |
| 2559 | + "type": "object", |
| 2560 | + "properties": { |
| 2561 | + "reportUrl": { |
| 2562 | + "description": "The URL to download the generated report.", |
| 2563 | + "type": "string" |
| 2564 | + }, |
| 2565 | + "validUntil": { |
| 2566 | + "description": "The time at which report URL becomes invalid.", |
| 2567 | + "type": "string", |
| 2568 | + "format": "date-time" |
| 2569 | + } |
| 2570 | + } |
| 2571 | + }, |
2403 | 2572 | "QueryDatasetConfiguration": {
|
2404 | 2573 | "description": "The configuration of dataset in the query.",
|
2405 | 2574 | "type": "object",
|
|
2608 | 2777 | "type": "string",
|
2609 | 2778 | "x-ms-parameter-location": "method"
|
2610 | 2779 | },
|
| 2780 | + "startDateParameter": { |
| 2781 | + "name": "startDate", |
| 2782 | + "in": "query", |
| 2783 | + "description": "Start Date", |
| 2784 | + "required": true, |
| 2785 | + "type": "string", |
| 2786 | + "x-ms-parameter-location": "method" |
| 2787 | + }, |
| 2788 | + "endDateParameter": { |
| 2789 | + "name": "endDate", |
| 2790 | + "in": "query", |
| 2791 | + "description": "End Date", |
| 2792 | + "required": true, |
| 2793 | + "type": "string", |
| 2794 | + "x-ms-parameter-location": "method" |
| 2795 | + }, |
| 2796 | + "enrollmentIdParameter": { |
| 2797 | + "name": "billingAccountId", |
| 2798 | + "in": "path", |
| 2799 | + "description": "Enrollment ID (Legacy BillingAccount ID)", |
| 2800 | + "required": true, |
| 2801 | + "type": "string", |
| 2802 | + "x-ms-parameter-location": "method" |
| 2803 | + }, |
2611 | 2804 | "billingAccountIdParameter": {
|
2612 | 2805 | "name": "billingAccountId",
|
2613 | 2806 | "in": "path",
|
|
2616 | 2809 | "type": "string",
|
2617 | 2810 | "x-ms-parameter-location": "method"
|
2618 | 2811 | },
|
| 2812 | + "billingProfileIdParameter": { |
| 2813 | + "name": "billingProfileId", |
| 2814 | + "in": "path", |
| 2815 | + "description": "BillingProfile ID", |
| 2816 | + "required": true, |
| 2817 | + "type": "string", |
| 2818 | + "x-ms-parameter-location": "method" |
| 2819 | + }, |
2619 | 2820 | "managementGroupIdParameter": {
|
2620 | 2821 | "name": "managementGroupId",
|
2621 | 2822 | "in": "path",
|
|
0 commit comments