|
18 | 18 | "application/json" |
19 | 19 | ], |
20 | 20 | "paths": { |
| 21 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries": { |
| 22 | + "get": { |
| 23 | + "tags": [ |
| 24 | + "BackupUsageSummaries_CRR" |
| 25 | + ], |
| 26 | + "description": "Fetches the backup management usage summaries of the vault.", |
| 27 | + "operationId": "BackupUsageSummariesCRR_List", |
| 28 | + "produces": [ |
| 29 | + "application/json" |
| 30 | + ], |
| 31 | + "parameters": [ |
| 32 | + { |
| 33 | + "$ref": "#/parameters/ApiVersion" |
| 34 | + }, |
| 35 | + { |
| 36 | + "$ref": "#/parameters/VaultName" |
| 37 | + }, |
| 38 | + { |
| 39 | + "$ref": "#/parameters/ResourceGroupName" |
| 40 | + }, |
| 41 | + { |
| 42 | + "$ref": "#/parameters/SubscriptionId" |
| 43 | + }, |
| 44 | + { |
| 45 | + "name": "$filter", |
| 46 | + "in": "query", |
| 47 | + "description": "OData filter options.", |
| 48 | + "required": false, |
| 49 | + "type": "string" |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "$skipToken", |
| 53 | + "in": "query", |
| 54 | + "description": "skipToken Filter.", |
| 55 | + "required": false, |
| 56 | + "type": "string" |
| 57 | + } |
| 58 | + ], |
| 59 | + "responses": { |
| 60 | + "200": { |
| 61 | + "description": "OK", |
| 62 | + "schema": { |
| 63 | + "$ref": "#/definitions/BackupManagementUsageList" |
| 64 | + } |
| 65 | + }, |
| 66 | + "default": { |
| 67 | + "description": "Error response describing why the operation failed.", |
| 68 | + "schema": { |
| 69 | + "$ref": "#/definitions/NewErrorResponse" |
| 70 | + } |
| 71 | + } |
| 72 | + }, |
| 73 | + "x-ms-odata": "#/definitions/BMSBackupSummariesQueryObject", |
| 74 | + "x-ms-pageable": { |
| 75 | + "nextLinkName": null |
| 76 | + }, |
| 77 | + "x-ms-examples": { |
| 78 | + "Get Protected Items Usages Summary": { |
| 79 | + "$ref": "./examples/Common/BackupProtectedItem_UsageSummary_Get.json" |
| 80 | + }, |
| 81 | + "Get Protected Containers Usages Summary": { |
| 82 | + "$ref": "./examples/Common/BackupProtectionContainers_UsageSummary_Get.json" |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | + }, |
21 | 87 | "/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties": { |
22 | 88 | "get": { |
23 | 89 | "tags": [ |
|
707 | 773 | } |
708 | 774 | }, |
709 | 775 | "definitions": { |
| 776 | + "BackupManagementUsage": { |
| 777 | + "description": "Backup management usages of a vault.", |
| 778 | + "type": "object", |
| 779 | + "properties": { |
| 780 | + "unit": { |
| 781 | + "description": "Unit of the usage.", |
| 782 | + "enum": [ |
| 783 | + "Count", |
| 784 | + "Bytes", |
| 785 | + "Seconds", |
| 786 | + "Percent", |
| 787 | + "CountPerSecond", |
| 788 | + "BytesPerSecond" |
| 789 | + ], |
| 790 | + "type": "string", |
| 791 | + "x-ms-enum": { |
| 792 | + "name": "UsagesUnit", |
| 793 | + "modelAsString": true |
| 794 | + } |
| 795 | + }, |
| 796 | + "quotaPeriod": { |
| 797 | + "description": "Quota period of usage.", |
| 798 | + "type": "string" |
| 799 | + }, |
| 800 | + "nextResetTime": { |
| 801 | + "format": "date-time", |
| 802 | + "description": "Next reset time of usage.", |
| 803 | + "type": "string" |
| 804 | + }, |
| 805 | + "currentValue": { |
| 806 | + "format": "int64", |
| 807 | + "description": "Current value of usage.", |
| 808 | + "type": "integer" |
| 809 | + }, |
| 810 | + "limit": { |
| 811 | + "format": "int64", |
| 812 | + "description": "Limit of usage.", |
| 813 | + "type": "integer" |
| 814 | + }, |
| 815 | + "name": { |
| 816 | + "$ref": "#/definitions/NameInfo", |
| 817 | + "description": "Name of usage." |
| 818 | + } |
| 819 | + } |
| 820 | + }, |
| 821 | + "NameInfo": { |
| 822 | + "description": "The name of usage.", |
| 823 | + "type": "object", |
| 824 | + "properties": { |
| 825 | + "value": { |
| 826 | + "description": "Value of usage.", |
| 827 | + "type": "string" |
| 828 | + }, |
| 829 | + "localizedValue": { |
| 830 | + "description": "Localized value of usage.", |
| 831 | + "type": "string" |
| 832 | + } |
| 833 | + } |
| 834 | + }, |
| 835 | + "BackupManagementUsageList": { |
| 836 | + "description": "Backup management usage for vault.", |
| 837 | + "type": "object", |
| 838 | + "properties": { |
| 839 | + "value": { |
| 840 | + "description": "The list of backup management usages for the given vault.", |
| 841 | + "type": "array", |
| 842 | + "items": { |
| 843 | + "$ref": "#/definitions/BackupManagementUsage" |
| 844 | + } |
| 845 | + } |
| 846 | + } |
| 847 | + }, |
| 848 | + "BMSBackupSummariesQueryObject": { |
| 849 | + "description": "Query parameters to fetch backup summaries.", |
| 850 | + "type": "object", |
| 851 | + "properties": { |
| 852 | + "type": { |
| 853 | + "description": "Backup management type for this container.", |
| 854 | + "enum": [ |
| 855 | + "Invalid", |
| 856 | + "BackupProtectedItemCountSummary", |
| 857 | + "BackupProtectionContainerCountSummary" |
| 858 | + ], |
| 859 | + "type": "string", |
| 860 | + "x-ms-enum": { |
| 861 | + "name": "Type", |
| 862 | + "modelAsString": true |
| 863 | + } |
| 864 | + } |
| 865 | + } |
| 866 | + }, |
710 | 867 | "NewErrorResponse": { |
711 | 868 | "properties": { |
712 | 869 | "error": { |
|
0 commit comments