Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
218 changes: 218 additions & 0 deletions arm-recoveryservices/2015-11-10/swagger/replicationusages.json
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"

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.

nit: Please maintain consistency with parameter ordering, either put SubscriptionId and ApiVersion together at the beginning or at the end of the parameters section

},
{
"$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"

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.

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"
]
}
]
}
Loading