Skip to content

Commit fafe13b

Browse files
hikewalrsergey-shandar
authored andcommitted
Adding the contracts and examples for the VaultSettings APIs. (#4) (#6006)
1 parent ab3c6bb commit fafe13b

4 files changed

Lines changed: 292 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"vaultSettingName": "default",
4+
"api-version": "2018-07-10",
5+
"resourceName": "vault1",
6+
"resourceGroupName": "resourceGroupPS1",
7+
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a",
8+
"input": {
9+
"properties": {
10+
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationVaultSettings/default",
18+
"name": "default",
19+
"type": "Microsoft.RecoveryServices/vaults/replicationVaultSettings",
20+
"properties": {
21+
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
22+
}
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"vaultSettingName": "default",
4+
"api-version": "2018-07-10",
5+
"resourceName": "vault1",
6+
"resourceGroupName": "resourceGroupPS1",
7+
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationVaultSettings/default",
13+
"name": "default",
14+
"type": "Microsoft.RecoveryServices/vaults/replicationVaultSettings",
15+
"properties": {
16+
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
17+
}
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-07-10",
4+
"resourceName": "vault1",
5+
"resourceGroupName": "resourceGroupPS1",
6+
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationVaultSettings/default",
14+
"name": "default",
15+
"type": "Microsoft.RecoveryServices/vaults/replicationVaultSettings",
16+
"properties": {
17+
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
18+
}
19+
}
20+
],
21+
"nextLink": null
22+
}
23+
}
24+
}
25+
}

specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7112,6 +7112,153 @@
71127112
}
71137113
}
71147114
},
7115+
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings": {
7116+
"get": {
7117+
"tags": [
7118+
"ReplicationVaultSetting"
7119+
],
7120+
"summary": "Gets the list of vault setting.",
7121+
"description": "Gets the list of vault setting. This includes the Migration Hub connection settings.",
7122+
"operationId": "ReplicationVaultSetting_List",
7123+
"produces": [
7124+
"application/json"
7125+
],
7126+
"parameters": [
7127+
{
7128+
"$ref": "#/parameters/ApiVersion"
7129+
},
7130+
{
7131+
"$ref": "#/parameters/ResourceName"
7132+
},
7133+
{
7134+
"$ref": "#/parameters/ResourceGroupName"
7135+
},
7136+
{
7137+
"$ref": "#/parameters/SubscriptionId"
7138+
}
7139+
],
7140+
"responses": {
7141+
"200": {
7142+
"description": "OK",
7143+
"schema": {
7144+
"$ref": "#/definitions/VaultSettingCollection"
7145+
}
7146+
}
7147+
},
7148+
"x-ms-pageable": {
7149+
"nextLinkName": "nextLink"
7150+
},
7151+
"x-ms-examples": {
7152+
"Gets the list of vault setting.": {
7153+
"$ref": "./examples/ReplicationVaultSetting_List.json"
7154+
}
7155+
}
7156+
}
7157+
},
7158+
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}": {
7159+
"get": {
7160+
"tags": [
7161+
"ReplicationVaultSetting"
7162+
],
7163+
"summary": "Gets the vault setting.",
7164+
"description": "Gets the vault setting. This includes the Migration Hub connection settings.",
7165+
"operationId": "ReplicationVaultSetting_Get",
7166+
"produces": [
7167+
"application/json"
7168+
],
7169+
"parameters": [
7170+
{
7171+
"$ref": "#/parameters/ApiVersion"
7172+
},
7173+
{
7174+
"$ref": "#/parameters/ResourceName"
7175+
},
7176+
{
7177+
"$ref": "#/parameters/ResourceGroupName"
7178+
},
7179+
{
7180+
"$ref": "#/parameters/SubscriptionId"
7181+
},
7182+
{
7183+
"name": "vaultSettingName",
7184+
"in": "path",
7185+
"description": "Vault setting name.",
7186+
"required": true,
7187+
"type": "string"
7188+
}
7189+
],
7190+
"responses": {
7191+
"200": {
7192+
"description": "OK",
7193+
"schema": {
7194+
"$ref": "#/definitions/VaultSetting"
7195+
}
7196+
}
7197+
},
7198+
"x-ms-examples": {
7199+
"Gets the vault setting.": {
7200+
"$ref": "./examples/ReplicationVaultSetting_Get.json"
7201+
}
7202+
}
7203+
},
7204+
"put": {
7205+
"tags": [
7206+
"ReplicationVaultSetting"
7207+
],
7208+
"summary": "Updates vault setting. A vault setting object is a singleton per vault and it is always present by default.",
7209+
"description": "The operation to configure vault setting.",
7210+
"operationId": "ReplicationVaultSetting_Create",
7211+
"consumes": [
7212+
"application/json"
7213+
],
7214+
"produces": [
7215+
"application/json"
7216+
],
7217+
"parameters": [
7218+
{
7219+
"$ref": "#/parameters/ApiVersion"
7220+
},
7221+
{
7222+
"$ref": "#/parameters/ResourceName"
7223+
},
7224+
{
7225+
"$ref": "#/parameters/ResourceGroupName"
7226+
},
7227+
{
7228+
"$ref": "#/parameters/SubscriptionId"
7229+
},
7230+
{
7231+
"name": "vaultSettingName",
7232+
"in": "path",
7233+
"description": "Vault setting name.",
7234+
"required": true,
7235+
"type": "string"
7236+
},
7237+
{
7238+
"name": "input",
7239+
"in": "body",
7240+
"description": "Vault setting creation input.",
7241+
"required": true,
7242+
"schema": {
7243+
"$ref": "#/definitions/VaultSettingCreationInput"
7244+
}
7245+
}
7246+
],
7247+
"responses": {
7248+
"200": {
7249+
"description": "OK",
7250+
"schema": {
7251+
"$ref": "#/definitions/VaultSetting"
7252+
}
7253+
}
7254+
},
7255+
"x-ms-examples": {
7256+
"Updates vault setting. A vault setting object is a singleton per vault and it is always present by default.": {
7257+
"$ref": "./examples/ReplicationVaultSetting_Create.json"
7258+
}
7259+
}
7260+
}
7261+
},
71157262
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationvCenters": {
71167263
"get": {
71177264
"tags": [
@@ -16164,6 +16311,74 @@
1616416311
}
1616516312
}
1616616313
},
16314+
"VaultSetting": {
16315+
"description": "Vault setting.",
16316+
"type": "object",
16317+
"allOf": [
16318+
{
16319+
"$ref": "#/definitions/Resource"
16320+
}
16321+
],
16322+
"properties": {
16323+
"properties": {
16324+
"$ref": "#/definitions/VaultSettingProperties",
16325+
"description": "The vault setting properties."
16326+
}
16327+
}
16328+
},
16329+
"VaultSettingCollection": {
16330+
"description": "Vault setting collection.",
16331+
"type": "object",
16332+
"properties": {
16333+
"value": {
16334+
"description": "The list of vault setting.",
16335+
"type": "array",
16336+
"items": {
16337+
"$ref": "#/definitions/VaultSetting"
16338+
}
16339+
},
16340+
"nextLink": {
16341+
"description": "The value of next link.",
16342+
"type": "string"
16343+
}
16344+
}
16345+
},
16346+
"VaultSettingCreationInput": {
16347+
"description": "Input to create vault setting.",
16348+
"required": [
16349+
"properties"
16350+
],
16351+
"type": "object",
16352+
"properties": {
16353+
"properties": {
16354+
"$ref": "#/definitions/VaultSettingCreationInputProperties",
16355+
"description": "Vault setting creation input properties."
16356+
}
16357+
}
16358+
},
16359+
"VaultSettingCreationInputProperties": {
16360+
"description": "Input to create vault setting.",
16361+
"required": [
16362+
"migrationSolutionId"
16363+
],
16364+
"type": "object",
16365+
"properties": {
16366+
"migrationSolutionId": {
16367+
"description": "The migration solution Id.",
16368+
"type": "string"
16369+
}
16370+
}
16371+
},
16372+
"VaultSettingProperties": {
16373+
"description": "Vault setting properties.",
16374+
"type": "object",
16375+
"properties": {
16376+
"migrationSolutionId": {
16377+
"description": "The migration solution ARM Id.",
16378+
"type": "string"
16379+
}
16380+
}
16381+
},
1616716382
"VCenter": {
1616816383
"description": "vCenter definition.",
1616916384
"type": "object",
@@ -17384,6 +17599,11 @@
1738417599
"description": "The service endpoint.",
1738517600
"type": "string",
1738617601
"readOnly": true
17602+
},
17603+
"serviceResourceId": {
17604+
"description": "The service resource Id.",
17605+
"type": "string",
17606+
"readOnly": true
1738717607
}
1738817608
},
1738917609
"x-ms-discriminator-value": "VMwareV2"

0 commit comments

Comments
 (0)