-
Notifications
You must be signed in to change notification settings - Fork 5.8k
RecoveryServices Identities and Usages APIs #920
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
218 changes: 218 additions & 0 deletions
218
arm-recoveryservices/2015-11-10/swagger/replicationusages.json
This file contains hidden or 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,218 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2015-11-10", | ||
| "title": "RecoveryServicesClient", | ||
| "x-ms-code-generation-settings": { | ||
| "internalConstructors": false | ||
| } | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "paths": { | ||
| "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/operations": { | ||
| "get": { | ||
| "tags": [ | ||
| "Operations" | ||
| ], | ||
| "description": "Returns the list of available operations.", | ||
| "operationId": "Operations_List", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "../../2016-06-01/swagger/vaults.json#/definitions/ClientDiscoveryResponse" | ||
| } | ||
| } | ||
| }, | ||
| "deprecated": false, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "NextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/replicationUsages": { | ||
| "get": { | ||
| "tags": [ | ||
| "ReplicationUsages" | ||
| ], | ||
| "description": "Fetches the replication usages of the vault.", | ||
| "operationId": "ReplicationUsages_List", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
|
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. nit: parameter ordering |
||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/VaultName" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ReplicationUsageList" | ||
| } | ||
| } | ||
| }, | ||
| "deprecated": false, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": null | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "JobsSummary": { | ||
| "description": "Summary of the replication job data for this vault.", | ||
| "type": "object", | ||
| "properties": { | ||
| "failedJobs": { | ||
| "description": "Count of failed jobs.", | ||
| "type": "integer" | ||
| }, | ||
| "suspendedJobs": { | ||
| "description": "Count of suspended jobs.", | ||
| "type": "integer" | ||
| }, | ||
| "inProgressJobs": { | ||
| "description": "Count of in-progress jobs.", | ||
| "type": "integer" | ||
| } | ||
| } | ||
| }, | ||
| "MonitoringSummary": { | ||
| "description": "Summary of the replication monitoring data for this vault.", | ||
| "type": "object", | ||
| "properties": { | ||
| "unHealthyVmCount": { | ||
| "description": "Count of unhealthy VMs.", | ||
| "type": "integer" | ||
| }, | ||
| "unHealthyProviderCount": { | ||
| "description": "Count of unhealthy replication providers.", | ||
| "type": "integer" | ||
| }, | ||
| "eventsCount": { | ||
| "description": "Count of all critical warnings.", | ||
| "type": "integer" | ||
| } | ||
| } | ||
| }, | ||
| "ReplicationUsage": { | ||
| "description": "Replication usages of a vault.", | ||
| "type": "object", | ||
| "properties": { | ||
| "monitoringSummary": { | ||
| "$ref": "#/definitions/MonitoringSummary", | ||
| "description": "Summary of the replication monitoring data for this vault." | ||
| }, | ||
| "jobsSummary": { | ||
| "$ref": "#/definitions/JobsSummary", | ||
| "description": "Summary of the replication jobs data for this vault." | ||
| }, | ||
| "protectedItemCount": { | ||
| "description": "Number of replication protected items for this vault.", | ||
| "type": "integer" | ||
| }, | ||
| "recoveryPlanCount": { | ||
| "description": "Number of replication recovery plans for this vault.", | ||
| "type": "integer" | ||
| } | ||
| } | ||
| }, | ||
| "ReplicationUsageList": { | ||
| "description": "Replication usages for vault.", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "The list of replication usages for the given vault.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ReplicationUsage" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "SubscriptionId": { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "description": "The subscription Id.", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| "ResourceGroupName": { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "description": "The name of the resource group where the recovery services vault is present.", | ||
| "required": true, | ||
| "x-ms-parameter-location": "method", | ||
| "type": "string" | ||
| }, | ||
| "VaultName": { | ||
| "name": "vaultName", | ||
| "in": "path", | ||
| "description": "The name of the recovery services vault.", | ||
| "required": true, | ||
| "x-ms-parameter-location": "method", | ||
| "type": "string" | ||
| }, | ||
| "ApiVersion": { | ||
| "name": "api-version", | ||
| "in": "query", | ||
| "description": "Client Api Version.", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "flow": "implicit", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account." | ||
| } | ||
| } | ||
| }, | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Please maintain consistency with parameter ordering, either put
SubscriptionIdandApiVersiontogether at the beginning or at the end of the parameters section