Skip to content

Commit

Permalink
Adding extension routing API
Browse files Browse the repository at this point in the history
  • Loading branch information
amchandn committed Apr 8, 2022
1 parent 0ae3841 commit 0ca2e93
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,60 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.DataProtection/backupInstances": {
"get": {
"tags": [
"BackupInstancesExtensionRouting"
],
"description": "Gets a list backup instances associated with a tracked resource",
"operationId": "BackupInstancesExtensionRouting_List",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/ResourceProviderNamespace"
},
{
"$ref": "#/parameters/ResourceType"
},
{
"$ref": "#/parameters/ResourceName"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupInstanceResourceList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List BackupInstances in a Vault": {
"$ref": "./examples/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -6471,6 +6525,28 @@
"description": "Client Api Version.",
"required": true,
"type": "string"
},
"ResourceProviderNamespace": {
"name": "resourceProviderNamespace",
"in": "path",
"description": "ResourceProvider for the resource to be protected using Microsoft.DataProtection",
"required": true,
"type": "string"
},
"ResourceType": {
"name": "resourceType",
"in": "path",
"description": "Type of the resource to be protected using Microsoft.DataProtection",
"required": true,
"type": "string"
},
"ResourceName": {
"name": "resourceName",
"in": "path",
"description": "The name of the resource to be protected using Microsoft.DataProtection",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "000pikumar",
"resourceProviderNamespace": "Microsoft.DBforPostgreSQL",
"resourceType": "servers",
"resourceName": "viveksipgtest",
"api-version": "2022-03-31-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2",
"name": "harshitbi2",
"type": "Microsoft.DataProtection/backupVaults/backupInstances",
"properties": {
"friendlyName": "harshitbi2",
"dataSourceInfo": {
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
"resourceUri": "",
"datasourceType": "OssDB",
"resourceName": "testdb",
"resourceType": "OssDB",
"resourceLocation": "",
"objectType": "Datasource"
},
"dataSourceSetInfo": {
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resourceUri": "",
"datasourceType": "OssDB",
"resourceName": "viveksipgtest",
"resourceType": "OssDB",
"resourceLocation": "",
"objectType": "DatasourceSet"
},
"policyInfo": {
"policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
"policyVersion": "3.2"
},
"protectionStatus": {
"status": "NotProtected"
},
"provisioningState": "Provisioning",
"objectType": "BackupInstance"
}
}
]
}
}
}
}

0 comments on commit 0ca2e93

Please sign in to comment.