Skip to content
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

Introdicing new API's for addDisk, removeDisk, resolveHealthErrors #6

Merged
merged 5 commits into from
Feb 9, 2019
Merged
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
@@ -0,0 +1,29 @@
{
"parameters":{
"api-version":"2018-07-10",
"replicatedProtectedItemName":"f8491e4f-817a-40dd-a90c-af773978c75b",
"protectionContainerName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179",
"fabricName":"cloud1",
"resourceName":"vault1",
"resourceGroupName":"resourceGroupPS1",
"subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a",
"input":{
"properties":{
"providerSpecificDetails": {
"instanceType":"A2A",
"vmDisks": [
{
"diskUri" : "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd",
"recoveryAureStorageAccountId" : "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage",
"primaryStagingAzureStorageAccountId" : "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage"
}
]
}
}
}
},
"responses":{
"202":{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters":{
"api-version":"2018-07-10",
"replicatedProtectedItemName":"f8491e4f-817a-40dd-a90c-af773978c75b",
"protectionContainerName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179",
"fabricName":"cloud1",
"resourceName":"vault1",
"resourceGroupName":"resourceGroupPS1",
"subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a",
"input":{
"properties":{
"providerSpecificDetails":{
"instanceType": "A2A",
"vmDisksUris": [
"https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd"
]
}
}
}
},
"responses":{
"202":{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters":{
"api-version":"2018-07-10",
"replicatedProtectedItemName":"f8491e4f-817a-40dd-a90c-af773978c75b",
"protectionContainerName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179",
"fabricName":"cloud1",
"resourceName":"vault1",
"resourceGroupName":"resourceGroupPS1",
"subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a",
"input":{
"properties":{
"healthErrors":[
{
"healthErrorId":"3:8020"
}
]
}
}
},
"responses":{
"202":{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2755,6 +2755,77 @@
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks": {
"post": {
"tags": [
"ReplicationProtectedItems"
],
"summary": "Add disk(s) for protection.",
"description": "Operation to add disks(s) to the replication protected item.",
"operationId": "ReplicationProtectedItems_AddDisks",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ResourceName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "fabricName",
"in": "path",
"description": "Unique fabric name.",
"required": true,
"type": "string"
},
{
"name": "protectionContainerName",
"in": "path",
"description": "Protection container name.",
"required": true,
"type": "string"
},
{
"name": "replicatedProtectedItemName",
"in": "path",
"description": "Replication protected item name.",
"required": true,
"type": "string"
},
{
"name": "addDisksInput",
"in": "body",
"description": "Add disks input.",
"required": true,
"schema": {
"$ref": "#/definitions/AddDisksInput"
}
}
],
"responses": {
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Add disk(s) for protection.": {
"$ref": "./examples/ReplicationProtectedItems_AddDisks.json"
}
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint": {
"post": {
"tags": [
Expand Down Expand Up @@ -3180,6 +3251,77 @@
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks": {
"post": {
"tags": [
"ReplicationProtectedItems"
],
"summary": "Removes disk(s).",
"description": "Operation to remove disk(s) from the replication protected item.",
"operationId": "ReplicationProtectedItems_RemoveDisks",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ResourceName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "fabricName",
"in": "path",
"description": "Unique fabric name.",
"required": true,
"type": "string"
},
{
"name": "protectionContainerName",
"in": "path",
"description": "Protection container name.",
"required": true,
"type": "string"
},
{
"name": "replicatedProtectedItemName",
"in": "path",
"description": "Replication protected item name.",
"required": true,
"type": "string"
},
{
"name": "removeDisksInput",
"in": "body",
"description": "Remove disks input.",
"required": true,
"schema": {
"$ref": "#/definitions/RemoveDisksInput"
}
}
],
"responses": {
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Removes disk(s).": {
"$ref": "./examples/ReplicationProtectedItems_RemoveDisks.json"
}
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication": {
"post": {
"tags": [
Expand Down Expand Up @@ -3322,6 +3464,77 @@
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/ResolveHealthErrors": {
"post": {
"tags": [
"ReplicationProtectedItems"
],
"summary": "Resolve health errors.",
"description": "Operation to resolve health issues of the replication protected item.",
"operationId": "ReplicationProtectedItems_ResolveHealthErrors",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ResourceName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "fabricName",
"in": "path",
"description": "Unique fabric name.",
"required": true,
"type": "string"
},
{
"name": "protectionContainerName",
"in": "path",
"description": "Protection container name.",
"required": true,
"type": "string"
},
{
"name": "replicatedProtectedItemName",
"in": "path",
"description": "Replication protected item name.",
"required": true,
"type": "string"
},
{
"name": "resolveHealthInput",
"in": "body",
"description": "Health issue input object.",
"required": true,
"schema": {
"$ref": "#/definitions/ResolveHealthInput"
}
}
],
"responses": {
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Resolve health errors.": {
"$ref": "./examples/ReplicationProtectedItems_ResolveHealthErrors.json"
}
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/targetComputeSizes": {
"get": {
"tags": [
Expand Down Expand Up @@ -7189,6 +7402,17 @@
"description": "The data pending at source virtual machine in MB.",
"type": "number"
},
"diskState": {
"description": "The disk state.",
"type": "string"
},
"allowedDiskLevelOperation": {
"description": "The disk level operations list.",
"type": "array",
"items": {
"type": "string"
}
},
"isDiskEncrypted": {
"description": "A value indicating whether vm has encrypted os disk or not.",
"type": "boolean"
Expand Down Expand Up @@ -7283,6 +7507,17 @@
"description": "The data pending at source virtual machine in MB.",
"type": "number"
},
"diskState": {
"description": "The disk state.",
"type": "string"
},
"allowedDiskLevelOperation": {
"description": "The disk level operations list.",
"type": "array",
"items": {
"type": "string"
}
},
"isDiskEncrypted": {
"description": "A value indicating whether vm has encrypted os disk or not.",
"type": "boolean"
Expand Down