-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add replica creation parameters to Postgres ResourceProvider for SDK (#…
…5379) * Add replica creation parameters to Postgres ResourceProvider for SDK * Add replica creation parameters to Postgres ResourceProvider for SDK * Add replica creation parameters to Postgres ResourceProvider for SDK * Add replica creation parameters to Postgres ResourceProvider for SDK * Add replica creation parameters to Postgres ResourceProvider for SDK
- Loading branch information
1 parent
f8b84af
commit 5ab2c18
Showing
4 changed files
with
320 additions
and
3 deletions.
There are no files selected for viewing
156 changes: 156 additions & 0 deletions
156
...ce-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/ReplicasListByServer.json
This file contains 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,156 @@ | ||
{ | ||
"parameters": { | ||
"serverName": "testserver-master", | ||
"resourceGroupName": "TestGroup_WestCentralUS", | ||
"api-version": "2017-12-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"sku": { | ||
"name": "GP_Gen4_16", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen4", | ||
"capacity": 16 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica1.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-12T00:05:03.2695756+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica1", | ||
"name": "testserver-replica1", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
}, | ||
{ | ||
"sku": { | ||
"name": "GP_Gen4_16", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen4", | ||
"capacity": 16 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica2.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-12T00:05:03.2695756+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica2", | ||
"name": "testserver-replica2", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
}, | ||
{ | ||
"sku": { | ||
"name": "GP_Gen4_16", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen4", | ||
"capacity": 16 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica3.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-12T00:05:03.2695756+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica3", | ||
"name": "testserver-replica3", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
}, | ||
{ | ||
"sku": { | ||
"name": "GP_Gen4_16", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen4", | ||
"capacity": 16 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica4.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-12T00:05:03.2695756+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica4", | ||
"name": "testserver-replica4", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
}, | ||
{ | ||
"sku": { | ||
"name": "GP_Gen4_16", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen4", | ||
"capacity": 16 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica5.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-12T00:05:03.2695756+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica5", | ||
"name": "testserver-replica5", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/ServerCreateReplicaMode.json
This file contains 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,84 @@ | ||
{ | ||
"parameters": { | ||
"serverName": "testserver-replica1", | ||
"resourceGroupName": "TestGroup_WestCentralUS", | ||
"api-version": "2017-12-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"parameters": { | ||
"location": "westcentralus", | ||
"properties": { | ||
"createMode": "Replica", | ||
"sourceServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master" | ||
}, | ||
"sku": { | ||
"name": "GP_Gen5_2", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen5", | ||
"capacity": 2 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"sku": { | ||
"name": "GP_Gen5_2", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen5", | ||
"capacity": 2 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica1.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-20T00:17:56.677+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica1", | ||
"name": "testserver-replica1", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"name": "GP_Gen5_2", | ||
"tier": "GeneralPurpose", | ||
"family": "Gen4", | ||
"capacity": 2 | ||
}, | ||
"properties": { | ||
"administratorLogin": "postgres", | ||
"storageProfile": { | ||
"storageMB": 2048000, | ||
"backupRetentionDays": 7, | ||
"geoRedundantBackup": "Disabled" | ||
}, | ||
"version": "9.6", | ||
"sslEnforcement": "Disabled", | ||
"userVisibleState": "Ready", | ||
"fullyQualifiedDomainName": "testserver-replica1.postgres.database.azure.com", | ||
"earliestRestoreDate": "2018-06-20T00:17:56.677+00:00", | ||
"replicationRole": "Replica", | ||
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master", | ||
"replicaCapacity": 0 | ||
}, | ||
"location": "westcentralus", | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica1", | ||
"name": "testserver-replica1", | ||
"type": "Microsoft.DBforPostgreSQL/servers" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
This file contains 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
This file contains 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