From f3b6992f51814dff1f364f66b6dd7513e08d37f0 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Mon, 19 Dec 2022 12:18:12 +0300 Subject: [PATCH 01/13] Adds base for updating Microsoft.DBforPostgreSQL from version preview/2020-10-05-privatepreview to version 2022-11-08 --- .../examples/CheckNameAvailability.json | 20 + .../2022-11-08/examples/ConfigurationGet.json | 45 + .../examples/ConfigurationListByServer.json | 80 + .../ConfigurationListByServerGroup.json | 144 ++ .../examples/ConfigurationUpdate.json | 53 + .../examples/FirewallRuleCreate.json | 56 + .../examples/FirewallRuleDelete.json | 14 + .../2022-11-08/examples/FirewallRuleGet.json | 30 + .../FirewallRuleListByServerGroup.json | 50 + .../2022-11-08/examples/OperationList.json | 197 ++ .../2022-11-08/examples/RoleCreate.json | 49 + .../2022-11-08/examples/RoleDelete.json | 14 + .../examples/RoleListByServerGroup.json | 44 + .../stable/2022-11-08/examples/ServerGet.json | 42 + .../examples/ServerGroupAddNode.json | 40 + .../examples/ServerGroupCreate.json | 88 + .../examples/ServerGroupCreatePITR.json | 58 + .../ServerGroupCreateReadReplica.json | 55 + .../examples/ServerGroupDelete.json | 13 + .../2022-11-08/examples/ServerGroupGet.json | 102 + .../2022-11-08/examples/ServerGroupList.json | 244 ++ .../ServerGroupListByResourceGroup.json | 243 ++ .../examples/ServerGroupRestart.json | 12 + .../examples/ServerGroupScaleCompute.json | 40 + .../examples/ServerGroupScaleStorage.json | 40 + .../2022-11-08/examples/ServerGroupStart.json | 12 + .../2022-11-08/examples/ServerGroupStop.json | 12 + .../examples/ServerGroupUpdate.json | 58 + .../ServerGroupUpdateMaintenanceWindow.json | 38 + .../examples/ServerListByServerGroup.json | 103 + .../stable/2022-11-08/postgresqlhsc.json | 2263 +++++++++++++++++ 31 files changed, 4259 insertions(+) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..4fe17d1c1617 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "api-version": "2020-10-05-privatepreview", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json new file mode 100644 index 000000000000..c0abc3e3fedd --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "serverGroupName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Enable input of NULL elements in arrays.", + "dataType": "Boolean", + "allowedValues": "on,off", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "on", + "defaultValue": "on", + "source": "system-default" + }, + { + "role": "Worker", + "value": "off", + "defaultValue": "on", + "source": "user-override" + } + ] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..c05f4bc2c80a --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "serverGroupName": "hsctestsg", + "serverName": "testserver", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/application_name", + "name": "application_name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "", + "description": "Sets the application name to be reported in statistics and logs.", + "defaultValue": "", + "dataType": "String", + "allowedValues": "[A-Za-z0-9._-]*", + "source": "system-default" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on", + "description": "Enables input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/autovacuum", + "name": "autovacuum", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on", + "description": "Starts the autovacuum subprocess.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json new file mode 100644 index 000000000000..598f41849cf8 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Enable input of NULL elements in arrays.", + "dataType": "Boolean", + "allowedValues": "on,off", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "on", + "defaultValue": "on", + "source": "system-default" + }, + { + "role": "Worker", + "value": "off", + "defaultValue": "on", + "source": "user-override" + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/backslash_quote", + "name": "backslash_quote", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets whether \"\\'\" is allowed in string literals.", + "dataType": "Enumeration", + "allowedValues": "safe_encoding,on,off", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "off", + "defaultValue": "safe_encoding", + "source": "user-override" + }, + { + "role": "Worker", + "value": "safe_encoding", + "defaultValue": "safe_encoding", + "source": "system-default" + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/work_mem", + "name": "work_mem", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.", + "dataType": "Integer", + "allowedValues": "4096-2097151", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "158720", + "defaultValue": "158720", + "source": "system-default" + }, + { + "role": "Worker", + "value": "115712", + "defaultValue": "115712", + "source": "system-default" + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/client_encoding", + "name": "client_encoding", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets the client's character set encoding.", + "dataType": "Enumeration", + "allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" + }, + { + "role": "Worker", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json new file mode 100644 index 000000000000..f206a02d5d9c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "serverGroupName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "properties": { + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "on" + }, + { + "role": "Worker", + "value": "off" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "on" + }, + { + "role": "Worker", + "value": "off" + } + ] + } + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..e7e6f44dc26a --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "firewallRuleName": "rule1", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..e0a6a1ea64cb --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "firewallRuleName": "rule1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..03d9d1ea6db3 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "firewallRuleName": "rule1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json new file mode 100644 index 000000000000..25d59179ee70 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json new file mode 100644 index 000000000000..be0464cc5513 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json @@ -0,0 +1,197 @@ +{ + "parameters": { + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server Group", + "operation": "List/Get PostgreSQL Server Groups", + "description": "Return the list of server groups or gets the properties for the specified server group." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server Group", + "operation": "Create/Update PostgreSQL Server Group", + "description": "Creates a server group with the specified parameters or update the properties or tags for the specified server group." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server Grouo", + "operation": "Delete PostgreSQL Server Group", + "description": "Deletes an existing server group." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "List/Get PostgreSQL Servers of Server Group", + "description": "Return the list of servers of server group or gets the properties for the specified server from server group." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Configurations", + "operation": "List/Get Configurations of Server", + "description": "Return the list of configurations for a server or gets the value for the specified configuration." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Configurations", + "operation": "List/Get Configurations of Server Group", + "description": "Return the list of configurations for a server group or gets the value for the specified configuration." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Configurations", + "operation": "Update Configurations of Server Group", + "description": "Update an value of configurations." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "List/Get Firewall Rules", + "description": "Return the list of firewall rules for a server group or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Create/Update Firewall Rule", + "description": "Creates a firewall rule with the specified parameters or update an existing rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Get database metric definitions", + "description": "Return types of metrics that are available for databases" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "cpu_percent", + "displayName": "CPU percent", + "displayDescription": "CPU percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "memory_percent", + "displayName": "Memory percent", + "displayDescription": "Memory percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "io_consumption_percent", + "displayName": "IO percent", + "displayDescription": "IO percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "storage_percent", + "displayName": "Storage percentage", + "displayDescription": "Storage percentage", + "unit": "Percent", + "aggregationType": "Average" + }, + { + "name": "storage_used", + "displayName": "Storage used", + "displayDescription": "Storage used", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "storage_limit", + "displayName": "Storage limit", + "displayDescription": "Storage limit", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "active_connections", + "displayName": "Total active connections", + "displayDescription": "Total active connections", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "connections_failed", + "displayName": "Total failed connections", + "displayDescription": "Total failed connections", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Read diagnostic setting", + "description": "Gets the disagnostic setting for the resource" + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json new file mode 100644 index 000000000000..4eeb3d7b8af1 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "roleName": "role1", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "properties": { + "password": "secret" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {} + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {} + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json new file mode 100644 index 000000000000..00c8976be9b6 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "roleName": "role1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json new file mode 100644 index 000000000000..3f1dab1c35f9 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "pgtestsvc4", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {} + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role2", + "name": "role2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {} + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json new file mode 100644 index 000000000000..2ef5eea9c482 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg1", + "serverName": "hsctestsg1-c", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-c", + "name": "hsctestsg1-c", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "role": "Coordinator", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "state": "Ready", + "haState": "Healthy" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json new file mode 100644 index 000000000000..4a44d0a9dff3 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "location": "westus", + "properties": { + "serverRoleGroups": [ + { + "name": "", + "role": "Worker", + "serverCount": 10 + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json new file mode 100644 index 000000000000..b70f5859c3aa --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "location": "westus", + "properties": { + "administratorLogin": "citus", + "administratorLoginPassword": "password", + "backupRetentionDays": 35, + "delegatedSubnetArguments": { + "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" + }, + "privateDnsZoneArguments": { + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" + }, + "enableMx": true, + "enableZfs": false, + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "GeneralPurpose", + "vCores": 4, + "storageQuotaInMb": 524288, + "enableHa": true + }, + { + "name": "", + "role": "Worker", + "serverCount": 3, + "serverEdition": "MemoryOptimized", + "vCores": 4, + "storageQuotaInMb": 524288, + "enableHa": false + } + ] + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json new file mode 100644 index 000000000000..4c5f783b395a --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "location": "westus", + "properties": { + "createMode": "PointInTimeRestore", + "pointInTimeUTC": "2017-12-14T00:00:37.467Z", + "sourceLocation": "eastus", + "sourceSubscriptionId": "dddddddd-dddd-dddd-dddd-dddddddddddd", + "sourceResourceGroupName": "SourceGroup", + "sourceServerGroupName": "pgtests-source-server-group", + "enableMx": true, + "enableZfs": false + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json new file mode 100644 index 000000000000..1fbc862ba238 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "location": "westus", + "properties": { + "createMode": "ReadReplica", + "sourceLocation": "eastus", + "sourceSubscriptionId": "dddddddd-dddd-dddd-dddd-dddddddddddd", + "sourceResourceGroupName": "SourceGroup", + "sourceServerGroupName": "pgtests-source-server-group" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json new file mode 100644 index 000000000000..6f3ac1d856d9 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "testservergroup", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json new file mode 100644 index 000000000000..2d60c2327deb --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "delegatedSubnetArguments": { + "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" + }, + "privateDnsZoneArguments": { + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" + }, + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "sourceServerGroup": null, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 3, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json new file mode 100644 index 000000000000..5277f4beddd0 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json @@ -0,0 +1,244 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2020-10-05-privatepreview&$top=3&$skiptoken=skiptoken", + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "delegatedSubnetArguments": { + "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" + }, + "privateDnsZoneArguments": { + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" + }, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2" + ], + "sourceServerGroup": null, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 3, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ] + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", + "name": "hsctestsg2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp2": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "readReplicas": null, + "sourceServerGroup": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg2-c", + "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 2, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg2-w0", + "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w1", + "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" + } + ] + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg3", + "name": "hsctestsg3", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp3": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "delegatedSubnetArguments": { + "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" + }, + "privateDnsZoneArguments": { + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" + }, + "readReplicas": null, + "sourceServerGroup": null, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg3-c", + "fullyQualifiedDomainName": "hsctestsg3-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 3, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg3-w0", + "fullyQualifiedDomainName": "hsctestsg3-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg3-w1", + "fullyQualifiedDomainName": "hsctestsg3-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg3-w2", + "fullyQualifiedDomainName": "hsctestsg3-w2.postgres.database.azure.com" + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json new file mode 100644 index 000000000000..5049c2284e44 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json @@ -0,0 +1,243 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2020-10-05-privatepreview&$top=3&$skiptoken=skiptoken", + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "delegatedSubnetArguments": { + "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" + }, + "privateDnsZoneArguments": { + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" + }, + "readReplicas": null, + "sourceServerGroup": null, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 3, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ] + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", + "name": "hsctestsg2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp2": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "readReplicas": null, + "sourceServerGroup": null, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg2-c", + "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 2, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg2-w0", + "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w1", + "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" + } + ] + } + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg3", + "name": "hsctestsg3", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp3": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "enableMx": true, + "enableZfs": false, + "state": "Ready", + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "resourceProviderType": "Meru", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "delegatedSubnetArguments": { + "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" + }, + "privateDnsZoneArguments": { + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" + }, + "readReplicas": null, + "sourceServerGroup": null, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "serverNames": [ + { + "name": "hsctestsg3-c", + "fullyQualifiedDomainName": "hsctestsg3-c.postgres.database.azure.com" + } + ] + }, + { + "name": "", + "role": "Worker", + "serverCount": 3, + "serverEdition": "GeneralPurpose", + "storageQuotaInMb": 10000, + "vCores": 8, + "enableHa": false, + "enablePublicIp": false, + "serverNames": [ + { + "name": "hsctestsg3-w0", + "fullyQualifiedDomainName": "hsctestsg3-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg3-w1", + "fullyQualifiedDomainName": "hsctestsg3-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg3-w2", + "fullyQualifiedDomainName": "hsctestsg3-w2.postgres.database.azure.com" + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json new file mode 100644 index 000000000000..bc35e1d9ec94 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json new file mode 100644 index 000000000000..1b6308aeae07 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "location": "westus", + "properties": { + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "vCores": 16 + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json new file mode 100644 index 000000000000..d57f10c2e040 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "location": "westus", + "properties": { + "serverRoleGroups": [ + { + "name": "", + "role": "Worker", + "storageQuotaInMb": 8388608 + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json new file mode 100644 index 000000000000..bc35e1d9ec94 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json new file mode 100644 index 000000000000..bc35e1d9ec94 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json new file mode 100644 index 000000000000..691b78bec5d9 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "properties": { + "postgresqlVersion": "12", + "administratorLoginPassword": "secret", + "backupRetentionDays": 30, + "serverRoleGroups": [ + { + "name": "", + "role": "Coordinator", + "serverCount": 1, + "serverEdition": "GeneralPurpose", + "vCores": 8, + "storageQuotaInMb": 1048576, + "enableHa": false + }, + { + "name": "", + "role": "Worker", + "serverCount": 4, + "serverEdition": "MemoryOptimized", + "vCores": 4, + "storageQuotaInMb": 524288, + "enableHa": true + } + ] + }, + "tags": { + "ElasticServer": "2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json new file mode 100644 index 000000000000..b576fe4b4bd3 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg", + "api-version": "2020-10-05-privatepreview", + "parameters": { + "properties": { + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {}, + "location": "westus2" + } + }, + "202": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json new file mode 100644 index 000000000000..1ec9d60845ac --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverGroupName": "hsctestsg1", + "api-version": "2020-10-05-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-c", + "name": "hsctestsg1-c", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "standbyAvailabilityZone": "2", + "role": "Coordinator", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIp": true, + "state": "Ready", + "haState": "Healthy" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-w0", + "name": "hsctestsg1-w0", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com", + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "standbyAvailabilityZone": "", + "role": "Worker", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": false, + "enablePublicIp": false, + "state": "Ready", + "haState": "NotEnabled" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-w1", + "name": "hsctestsg1-w1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com", + "administratorLogin": "citus", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "standbyAvailabilityZone": "", + "role": "Worker", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": false, + "enablePublicIp": false, + "state": "Ready", + "haState": "NotEnabled" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json new file mode 100644 index 000000000000..51e7d1080a1a --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -0,0 +1,2263 @@ +{ + "swagger": "2.0", + "info": { + "title": "HyperscaleCitusManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL Hyperscale (Citus) resources including server groups, servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations.", + "version": "2020-10-05-privatepreview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/serverGroupsv2": { + "get": { + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_List", + "x-ms-examples": { + "List all the server groups": { + "$ref": "./examples/ServerGroupList.json" + } + }, + "description": "List all the server groups in a given subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2": { + "get": { + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_ListByResourceGroup", + "x-ms-examples": { + "List the server groups by resource group": { + "$ref": "./examples/ServerGroupListByResourceGroup.json" + } + }, + "description": "List all the server groups in a given resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}": { + "put": { + "description": "Creates a new server group with servers.", + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a new server group": { + "$ref": "./examples/ServerGroupCreate.json" + }, + "Create a new server group as a point in time restore": { + "$ref": "./examples/ServerGroupCreatePITR.json" + }, + "Create a new server group as a read replica": { + "$ref": "./examples/ServerGroupCreateReadReplica.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerGroup" + }, + "description": "The required parameters for creating or updating a server group." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ServerGroup" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "description": "Gets information about a server group.", + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_Get", + "x-ms-examples": { + "Get the server group": { + "$ref": "./examples/ServerGroupGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "description": "Deletes a server group together with servers in it.", + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_Delete", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete the server group": { + "$ref": "./examples/ServerGroupDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "description": "Updates an existing server group. The request body can contain one to many of the properties present in the normal server group definition.", + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_Update", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update the server group": { + "$ref": "./examples/ServerGroupUpdate.json" + }, + "Scale compute": { + "$ref": "./examples/ServerGroupScaleCompute.json" + }, + "Scale storage": { + "$ref": "./examples/ServerGroupScaleStorage.json" + }, + "Add new worker nodes": { + "$ref": "./examples/ServerGroupAddNode.json" + }, + "Update customer maintenance window": { + "$ref": "./examples/ServerGroupUpdateMaintenanceWindow.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerGroupForUpdate" + }, + "description": "The parameters for updating a server group." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroup" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers": { + "get": { + "description": "Lists servers of a server group.", + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByServerGroup", + "x-ms-examples": { + "List servers of the server group": { + "$ref": "./examples/ServerListByServerGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers/{serverName}": { + "get": { + "description": "Gets information about a server in server group.", + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "Get the server of server group": { + "$ref": "./examples/ServerGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupServer" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers/{serverName}/configurations": { + "get": { + "description": "List all the configurations of a server in server group.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServer", + "x-ms-examples": { + "List configurations of the server that in the server group": { + "$ref": "./examples/ConfigurationListByServer.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations": { + "get": { + "description": "List all the configurations of a server group.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServerGroup", + "x-ms-examples": { + "List configurations of the server group": { + "$ref": "./examples/ConfigurationListByServerGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations/{configurationName}": { + "patch": { + "description": "Updates configuration of server role groups in a server group", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Update", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update single configuration of the server group": { + "$ref": "./examples/ConfigurationUpdate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerGroupConfiguration" + }, + "description": "The required parameters for updating a server group configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupConfiguration" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "description": "Gets information about single server group configuration.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "Get single configuration of the server group": { + "$ref": "./examples/ConfigurationGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerGroupConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/firewallRules/{firewallRuleName}": { + "put": { + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a firewall rule of the server group": { + "$ref": "./examples/FirewallRuleCreate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The required parameters for creating or updating a firewall rule." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "description": "Deletes a server group firewall rule.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete the firewall rule of the server group": { + "$ref": "./examples/FirewallRuleDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "description": "Gets information about a server group firewall rule.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "Get the firewall rule of the server group": { + "$ref": "./examples/FirewallRuleGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/firewallRules": { + "get": { + "description": "List all the firewall rules in a given server group.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByServerGroup", + "x-ms-examples": { + "List firewall rules of the server group": { + "$ref": "./examples/FirewallRuleListByServerGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/roles/{roleName}": { + "put": { + "tags": [ + "Roles" + ], + "operationId": "Roles_Create", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "RoleCreate": { + "$ref": "./examples/RoleCreate.json" + } + }, + "description": "Creates a new role or updates an existing role.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/RoleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Role" + }, + "description": "The required parameters for creating or updating a role." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Role" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Roles" + ], + "operationId": "Roles_Delete", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "RoleDelete": { + "$ref": "./examples/RoleDelete.json" + } + }, + "description": "Deletes a server group role.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + }, + { + "$ref": "#/parameters/RoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/roles": { + "get": { + "tags": [ + "Roles" + ], + "operationId": "Roles_ListByServerGroup", + "x-ms-examples": { + "RoleList": { + "$ref": "./examples/RoleListByServerGroup.json" + } + }, + "description": "List all the roles in a given server group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/restart": { + "post": { + "description": "Restarts the server group.", + "tags": [ + "ServerGroupOperations" + ], + "operationId": "ServerGroups_Restart", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Restart all servers in the server group": { + "$ref": "./examples/ServerGroupRestart.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/start": { + "post": { + "description": "Starts the server group.", + "tags": [ + "ServerGroupOperations" + ], + "operationId": "ServerGroups_Start", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start all servers in the server group": { + "$ref": "./examples/ServerGroupStart.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/stop": { + "post": { + "description": "Stops the server group.", + "tags": [ + "ServerGroupOperations" + ], + "operationId": "ServerGroups_Stop", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Stop all servers in the server group": { + "$ref": "./examples/ServerGroupStop.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability": { + "post": { + "description": "Check the availability of name for resource", + "tags": [ + "ServerGroups" + ], + "operationId": "ServerGroups_CheckNameAvailability", + "x-ms-examples": { + "Check name availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.DBForPostgreSql/operations": { + "get": { + "description": "Lists all of the available REST API operations.", + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "List all available operations": { + "$ref": "./examples/OperationList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "PostgreSQLVersion": { + "type": "string", + "description": "The PostgreSQL version.", + "enum": [ + "11", + "12" + ], + "x-ms-enum": { + "name": "PostgreSQLVersion", + "modelAsString": true + } + }, + "CitusVersion": { + "type": "string", + "description": "The Citus version.", + "enum": [ + "8.3", + "9.0", + "9.1", + "9.2", + "9.3", + "9.4", + "9.5" + ], + "x-ms-enum": { + "name": "CitusVersion", + "modelAsString": true + } + }, + "ServerState": { + "type": "string", + "description": "A state of a server group/server that is visible to user.", + "enum": [ + "Ready", + "Dropping", + "Disabled", + "Starting", + "Stopping", + "Stopped", + "Updating", + "Provisioning" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + }, + "readOnly": true + }, + "ServerHaState": { + "type": "string", + "description": "A state of a server role group/server that is visible to user for HA feature.", + "enum": [ + "NotEnabled", + "CreatingStandby", + "ReplicatingData", + "FailingOver", + "Healthy", + "RemovingStandby", + "NotSync" + ], + "x-ms-enum": { + "name": "ServerHaState", + "modelAsString": true + }, + "readOnly": true + }, + "ServerRole": { + "type": "string", + "description": "The role of a server.", + "enum": [ + "Coordinator", + "Worker" + ], + "x-ms-enum": { + "name": "ServerRole", + "modelAsString": true + } + }, + "FullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true + }, + "ServerProperties": { + "description": "The properties of a server.", + "properties": { + "serverEdition": { + "type": "string", + "description": "The edition of a server (default: GeneralPurpose).", + "enum": [ + "GeneralPurpose", + "MemoryOptimized" + ], + "x-ms-enum": { + "name": "ServerEdition", + "modelAsString": true + } + }, + "storageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB (max: 2097152 = 2TiB)." + }, + "vCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64)." + }, + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the server." + }, + "enablePublicIp": { + "type": "boolean", + "description": "If public IP is requested or not for a server.", + "readOnly": true + } + } + }, + "ServerRoleGroupList": { + "type": "array", + "description": "The list of server role groups.", + "items": { + "$ref": "#/definitions/ServerRoleGroup" + }, + "x-ms-identifiers": [ + "name" + ], + "minItems": 1, + "maxItems": 2, + "uniqueItems": true + }, + "ServerRoleGroup": { + "description": "Represents a server role group.", + "allOf": [ + { + "$ref": "#/definitions/ServerProperties" + } + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the server role group." + }, + "role": { + "$ref": "#/definitions/ServerRole", + "description": "The role of servers in the server role group." + }, + "serverCount": { + "type": "integer", + "format": "int32", + "description": "The number of servers in the server role group." + }, + "serverNames": { + "type": "array", + "description": "The list of server names in the server role group.", + "items": { + "$ref": "#/definitions/ServerNameItem" + }, + "x-ms-identifiers": [ + "name" + ], + "readOnly": true, + "uniqueItems": true + } + } + }, + "ServerNameItem": { + "description": "The name object for a server.", + "properties": { + "name": { + "type": "string", + "description": "The name of a server." + }, + "fullyQualifiedDomainName": { + "$ref": "#/definitions/FullyQualifiedDomainName", + "description": "The fully qualified domain name of a server." + } + } + }, + "ServerGroupServerProperties": { + "description": "The properties of a server in server group.", + "allOf": [ + { + "$ref": "#/definitions/ServerProperties" + } + ], + "properties": { + "fullyQualifiedDomainName": { + "$ref": "#/definitions/FullyQualifiedDomainName", + "description": "The fully qualified domain name of a server." + }, + "role": { + "$ref": "#/definitions/ServerRole", + "description": "The role of server in the server group." + }, + "state": { + "$ref": "#/definitions/ServerState", + "description": "A state of a server that is visible to user." + }, + "haState": { + "$ref": "#/definitions/ServerHaState", + "description": "A state of a server group that is visible to user for HA feature." + }, + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a servers in server group." + }, + "postgresqlVersion": { + "$ref": "#/definitions/PostgreSQLVersion", + "description": "The PostgreSQL version of server." + }, + "citusVersion": { + "$ref": "#/definitions/CitusVersion", + "description": "The Citus version of server." + }, + "availabilityZone": { + "type": "string", + "description": "Availability Zone information of the server group." + }, + "standbyAvailabilityZone": { + "type": "string", + "description": "Standby Availability Zone information of the server group." + } + } + }, + "ServerGroupServer": { + "description": "Represents a server in a server group.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/ServerGroupServerProperties", + "description": "The properties of a server in a server group.", + "x-ms-client-flatten": true + } + } + }, + "ServerGroupServerListResult": { + "description": "A list of servers in a server group.", + "properties": { + "value": { + "type": "array", + "description": "The list of servers in a server group.", + "items": { + "$ref": "#/definitions/ServerGroupServer" + } + } + } + }, + "ServerGroupForUpdate": { + "description": "Represents a server group for update.", + "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "properties": { + "$ref": "#/definitions/ServerGroupPropertiesForUpdate", + "x-ms-client-flatten": true, + "description": "Properties of the server group." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + } + }, + "ServerGroupPropertiesForUpdate": { + "description": "The properties used to update a server group.", + "properties": { + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "The password of the administrator login." + }, + "backupRetentionDays": { + "type": "integer", + "format": "int32", + "description": "The backup retention days for server group." + }, + "postgresqlVersion": { + "$ref": "#/definitions/PostgreSQLVersion", + "description": "The PostgreSQL version of server group." + }, + "citusVersion": { + "$ref": "#/definitions/CitusVersion", + "description": "The Citus version of server group." + }, + "enableShardsOnCoordinator": { + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the server group." + }, + "serverRoleGroups": { + "$ref": "#/definitions/ServerRoleGroupList", + "description": "The list of server role groups." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a server group." + }, + "availabilityZone": { + "type": "string", + "description": "Availability Zone information of the server group." + }, + "standbyAvailabilityZone": { + "type": "string", + "description": "Standby Availability Zone information of the server group." + } + } + }, + "ServerGroupListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerGroup" + }, + "description": "The list of server groups" + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string", + "readOnly": true + } + }, + "description": "A list of server groups." + }, + "ServerGroup": { + "description": "Represents a server group for create.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/ServerGroupProperties", + "x-ms-client-flatten": true, + "description": "Properties of the server group create." + } + } + }, + "ServerGroupProperties": { + "description": "The properties used to create a new server group.", + "properties": { + "createMode": { + "type": "string", + "description": "The mode to create a new server group.", + "enum": [ + "Default", + "PointInTimeRestore", + "ReadReplica" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + }, + "x-ms-mutability": [ + "create" + ] + }, + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of servers in server group. Can only be specified when the server is being created (and is required for creation).", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "The password of the administrator login." + }, + "backupRetentionDays": { + "type": "integer", + "format": "int32", + "description": "The backup retention days for server group." + }, + "postgresqlVersion": { + "$ref": "#/definitions/PostgreSQLVersion", + "description": "The PostgreSQL version of server group." + }, + "citusVersion": { + "$ref": "#/definitions/CitusVersion", + "description": "The Citus version of server group." + }, + "enableMx": { + "type": "boolean", + "description": "If Citus MX is enabled or not for the server group.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "enableZfs": { + "type": "boolean", + "description": "If ZFS compression is enabled or not for the server group.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "enableShardsOnCoordinator": { + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the server group." + }, + "state": { + "$ref": "#/definitions/ServerState", + "description": "A state of a server group that is visible to user." + }, + "earliestRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The earliest restore point time (ISO8601 format) for server group.", + "readOnly": true + }, + "resourceProviderType": { + "type": "string", + "description": "The resource provider type of server group.", + "enum": [ + "Meru", + "Marlin" + ], + "x-ms-enum": { + "name": "ResourceProviderType", + "modelAsString": true + }, + "readOnly": true + }, + "serverRoleGroups": { + "$ref": "#/definitions/ServerRoleGroupList", + "description": "The list of server role groups." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a server group." + }, + "availabilityZone": { + "type": "string", + "description": "Availability Zone information of the server group." + }, + "standbyAvailabilityZone": { + "type": "string", + "description": "Standby Availability Zone information of the server group." + }, + "delegatedSubnetArguments": { + "description": "The delegated subnet arguments for a server group.", + "properties": { + "subnetArmResourceId": { + "type": "string", + "description": "delegated subnet arm resource id." + } + } + }, + "privateDnsZoneArguments": { + "description": "The private dns zone arguments for a server group.", + "properties": { + "privateDnsZoneArmResourceId": { + "type": "string", + "description": "private dns zone arm resource id." + } + } + }, + "readReplicas": { + "type": "array", + "description": "The array of read replica server groups.", + "items": { + "type": "string" + }, + "readOnly": true, + "uniqueItems": true + }, + "sourceServerGroup": { + "type": "string", + "description": "The source server group id for read replica server groups.", + "readOnly": true + }, + "sourceSubscriptionId": { + "type": "string", + "description": "The source subscription id to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", + "x-ms-mutability": [ + "create" + ] + }, + "sourceResourceGroupName": { + "type": "string", + "description": "The source resource group name to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", + "x-ms-mutability": [ + "create" + ] + }, + "sourceServerGroupName": { + "type": "string", + "description": "The source server group name to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", + "x-ms-mutability": [ + "create" + ] + }, + "sourceLocation": { + "type": "string", + "description": "The source server group location to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", + "x-ms-mutability": [ + "create" + ] + }, + "pointInTimeUTC": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'", + "x-ms-mutability": [ + "create" + ] + } + } + }, + "MaintenanceWindow": { + "type": "object", + "description": "Maintenance window of a server group.", + "properties": { + "customWindow": { + "type": "string", + "description": "indicates whether custom window is enabled or disabled" + }, + "startHour": { + "type": "integer", + "format": "int32", + "description": "start hour for maintenance window" + }, + "startMinute": { + "type": "integer", + "format": "int32", + "description": "start minute for maintenance window" + }, + "dayOfWeek": { + "type": "integer", + "format": "int32", + "description": "day of week for maintenance window" + } + } + }, + "ServerGroupConfiguration": { + "description": "Represents the configuration list of server role groups in a server group.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/ServerGroupConfigurationProperties", + "description": "The properties of server group configuration.", + "x-ms-client-flatten": true + } + } + }, + "ServerGroupConfigurationProperties": { + "description": "The properties of server group configuration.", + "properties": { + "description": { + "type": "string", + "description": "Description of the configuration.", + "readOnly": true + }, + "dataType": { + "type": "string", + "description": "Data type of the configuration.", + "enum": [ + "Boolean", + "Numeric", + "Integer", + "Enumeration" + ], + "x-ms-enum": { + "name": "ConfigurationDataType", + "modelAsString": true + }, + "readOnly": true + }, + "allowedValues": { + "type": "string", + "description": "Allowed values of the configuration.", + "readOnly": true + }, + "serverRoleGroupConfigurations": { + "type": "array", + "description": "The list of server role group configuration values.", + "items": { + "$ref": "#/definitions/ServerRoleGroupConfiguration" + }, + "x-ms-identifiers": [], + "uniqueItems": true + } + }, + "required": [ + "serverRoleGroupConfigurations" + ] + }, + "ServerRoleGroupConfiguration": { + "description": "Represents server role group configuration value.", + "properties": { + "role": { + "$ref": "#/definitions/ServerRole", + "description": "The role of servers in the server role group." + }, + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "defaultValue": { + "type": "string", + "description": "Default value of the configuration.", + "readOnly": true + }, + "source": { + "type": "string", + "description": "Source of the configuration.", + "readOnly": true + } + }, + "required": [ + "role", + "value" + ] + }, + "ServerGroupConfigurationListResult": { + "description": "A list of server group configurations.", + "properties": { + "value": { + "type": "array", + "description": "The list of server group configurations.", + "items": { + "$ref": "#/definitions/ServerGroupConfiguration" + } + }, + "nextLink": { + "type": "string", + "description": "Link to retrieve next page of results.", + "readOnly": true + } + } + }, + "ServerConfigurationProperties": { + "description": "The properties of a configuration.", + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the configuration.", + "readOnly": true + }, + "defaultValue": { + "type": "string", + "description": "Default value of the configuration.", + "readOnly": true + }, + "dataType": { + "type": "string", + "description": "Data type of the configuration.", + "enum": [ + "Boolean", + "Numeric", + "Integer", + "Enumeration" + ], + "x-ms-enum": { + "name": "ConfigurationDataType", + "modelAsString": true + }, + "readOnly": true + }, + "allowedValues": { + "type": "string", + "description": "Allowed values of the configuration.", + "readOnly": true + } + }, + "required": [ + "value" + ] + }, + "ServerConfiguration": { + "description": "Represents a configuration.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/ServerConfigurationProperties", + "description": "The properties of a configuration.", + "x-ms-client-flatten": true + } + } + }, + "ServerConfigurationListResult": { + "description": "A list of server configurations.", + "properties": { + "value": { + "type": "array", + "description": "The list of server configurations.", + "items": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "nextLink": { + "type": "string", + "description": "Link to retrieve next page of results.", + "readOnly": true + } + } + }, + "FirewallRuleProperties": { + "description": "The properties of a server group firewall rule.", + "properties": { + "startIpAddress": { + "type": "string", + "description": "The start IP address of the server group firewall rule. Must be IPv4 format.", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + }, + "endIpAddress": { + "type": "string", + "description": "The end IP address of the server group firewall rule. Must be IPv4 format.", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ] + }, + "FirewallRule": { + "description": "Represents a server group firewall rule.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + } + }, + "required": [ + "properties" + ] + }, + "FirewallRuleListResult": { + "description": "A list of firewall rules.", + "properties": { + "value": { + "type": "array", + "description": "The list of firewall rules in a server group.", + "items": { + "$ref": "#/definitions/FirewallRule" + } + } + } + }, + "RoleProperties": { + "properties": { + "password": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "The password of the server group role." + } + }, + "required": [ + "password" + ], + "description": "The properties of a server group role." + }, + "Role": { + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "$ref": "#/definitions/RoleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a role." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a server group role." + }, + "RoleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "description": "The list of roles in a server group." + } + }, + "description": "A list of roles." + }, + "OperationDisplay": { + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "type": "string", + "description": "Operation resource provider name.", + "readOnly": true + }, + "resource": { + "type": "string", + "description": "Resource on which the operation is performed.", + "readOnly": true + }, + "operation": { + "type": "string", + "description": "Localized friendly name for the operation.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Operation description.", + "readOnly": true + } + } + }, + "Operation": { + "description": "REST API operation definition.", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "The localized display information for this particular operation or action." + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The intended executor of the operation.", + "enum": [ + "NotSpecified", + "user", + "system" + ], + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false, + "description": "Additional descriptions for the operation." + } + } + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string", + "readOnly": true + } + } + }, + "NameAvailabilityRequest": { + "description": "Request from client to check resource name availability.", + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforPostgreSQL/serverGroupsv2" + ], + "description": "Resource type used for verification.", + "x-ms-enum": { + "name": "CheckNameAvailabilityResourceType", + "modelAsString": false + } + } + }, + "required": [ + "name", + "type" + ] + }, + "NameAvailability": { + "description": "Represents a resource name availability.", + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "name": { + "type": "string", + "description": "name of the PostgreSQL server." + }, + "type": { + "type": "string", + "description": "type of the server" + } + } + }, + "CloudError": { + "x-ms-external": true, + "description": "An error response from the Batch service.", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "The error." + } + } + }, + "CloudErrorBody": { + "x-ms-external": true, + "description": "An error response from the Batch service.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "description": "A list of additional details about the error.", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "x-ms-identifiers": [ + "code" + ] + } + } + } + }, + "parameters": { + "ServerGroupNameParameter": { + "name": "serverGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server group.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server group configuration.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "FirewallRuleNameParameter": { + "name": "firewallRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server group firewall rule.", + "x-ms-parameter-location": "method" + }, + "RoleNameParameter": { + "name": "roleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server group role name.", + "x-ms-parameter-location": "method" + } + } +} From 0fa78ee307b9bd7a6375592261e3c52540f4da85 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Mon, 19 Dec 2022 12:18:18 +0300 Subject: [PATCH 02/13] Updates readme --- .../postgresqlhsc/resource-manager/readme.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/readme.md b/specification/postgresqlhsc/resource-manager/readme.md index d9e6f548ae33..58062a0e5781 100644 --- a/specification/postgresqlhsc/resource-manager/readme.md +++ b/specification/postgresqlhsc/resource-manager/readme.md @@ -24,17 +24,26 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor These are the global settings for the PostgreSQL Hyperscale API. -```yaml +``` yaml title: Microsoft PostgreSQL Hyperscale openapi-type: arm -tag: package-2020-10-05-privatepreview +tag: package-2022-11 ``` + +### Tag: package-2022-11 + +These settings apply only when `--tag=package-2022-11` is specified on the command line. + +```yaml $(tag) == 'package-2022-11' +input-file: + - Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +``` ### Tag: package-2020-10-05-privatepreview These settings apply only when `--tag=package-2020-10-05-privatepreview` is specified on the command line. -```yaml $(tag) == 'package-2020-10-05-privatepreview' +``` yaml $(tag) == 'package-2020-10-05-privatepreview' input-file: - Microsoft.DBforPostgreSQL/preview/2020-10-05-privatepreview/postgresqlhsc.json ``` @@ -48,7 +57,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -```yaml $(swagger-to-sdk) +``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-python-track2 @@ -91,5 +100,3 @@ See configuration in [readme.typescript.md](./readme.typescript.md) ## CSharp See configuration in [readme.csharp.md](./readme.csharp.md) - - From c344166b87bd78ec2154c8cde0b6d1d6ecc929d5 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Mon, 19 Dec 2022 12:18:21 +0300 Subject: [PATCH 03/13] Updates API version in new specs and examples --- .../stable/2022-11-08/examples/CheckNameAvailability.json | 2 +- .../stable/2022-11-08/examples/ConfigurationGet.json | 2 +- .../stable/2022-11-08/examples/ConfigurationListByServer.json | 2 +- .../2022-11-08/examples/ConfigurationListByServerGroup.json | 2 +- .../stable/2022-11-08/examples/ConfigurationUpdate.json | 2 +- .../stable/2022-11-08/examples/FirewallRuleCreate.json | 2 +- .../stable/2022-11-08/examples/FirewallRuleDelete.json | 2 +- .../stable/2022-11-08/examples/FirewallRuleGet.json | 2 +- .../2022-11-08/examples/FirewallRuleListByServerGroup.json | 2 +- .../stable/2022-11-08/examples/OperationList.json | 2 +- .../stable/2022-11-08/examples/RoleCreate.json | 2 +- .../stable/2022-11-08/examples/RoleDelete.json | 2 +- .../stable/2022-11-08/examples/RoleListByServerGroup.json | 2 +- .../stable/2022-11-08/examples/ServerGet.json | 2 +- .../stable/2022-11-08/examples/ServerGroupAddNode.json | 2 +- .../stable/2022-11-08/examples/ServerGroupCreate.json | 2 +- .../stable/2022-11-08/examples/ServerGroupCreatePITR.json | 2 +- .../2022-11-08/examples/ServerGroupCreateReadReplica.json | 2 +- .../stable/2022-11-08/examples/ServerGroupDelete.json | 2 +- .../stable/2022-11-08/examples/ServerGroupGet.json | 2 +- .../stable/2022-11-08/examples/ServerGroupList.json | 4 ++-- .../2022-11-08/examples/ServerGroupListByResourceGroup.json | 4 ++-- .../stable/2022-11-08/examples/ServerGroupRestart.json | 2 +- .../stable/2022-11-08/examples/ServerGroupScaleCompute.json | 2 +- .../stable/2022-11-08/examples/ServerGroupScaleStorage.json | 2 +- .../stable/2022-11-08/examples/ServerGroupStart.json | 2 +- .../stable/2022-11-08/examples/ServerGroupStop.json | 2 +- .../stable/2022-11-08/examples/ServerGroupUpdate.json | 2 +- .../examples/ServerGroupUpdateMaintenanceWindow.json | 2 +- .../stable/2022-11-08/examples/ServerListByServerGroup.json | 2 +- .../stable/2022-11-08/postgresqlhsc.json | 2 +- 31 files changed, 33 insertions(+), 33 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json index 4fe17d1c1617..f8e192c06c6e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "nameAvailabilityRequest": { "name": "name1", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json index c0abc3e3fedd..ae4e31177714 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestResourceGroup", "serverGroupName": "hsctestsg", "configurationName": "array_nulls", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json index c05f4bc2c80a..1f32059bd1fa 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestResourceGroup", "serverGroupName": "hsctestsg", "serverName": "testserver", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json index 598f41849cf8..b0e2eba24883 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json index f206a02d5d9c..baa9c67ccb7e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestResourceGroup", "serverGroupName": "hsctestsg", "configurationName": "array_nulls", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "properties": { "serverRoleGroupConfigurations": [ diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json index e7e6f44dc26a..4fd7f107ba94 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", "firewallRuleName": "rule1", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "properties": { "startIpAddress": "0.0.0.0", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json index e0a6a1ea64cb..32725ea2131b 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", "firewallRuleName": "rule1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": {}, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json index 03d9d1ea6db3..b727c3bad00b 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", "firewallRuleName": "rule1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json index 25d59179ee70..037f64737d4d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json index be0464cc5513..eb78e5a1b800 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json index 4eeb3d7b8af1..0405d7f621c2 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", "roleName": "role1", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "properties": { "password": "secret" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json index 00c8976be9b6..6a9693f46570 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", "roleName": "role1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": {}, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json index 3f1dab1c35f9..3096c7eaa9e7 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "pgtestsvc4", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json index 2ef5eea9c482..6d4ea4accb9d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg1", "serverName": "hsctestsg1-c", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json index 4a44d0a9dff3..7926b9413c12 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "location": "westus", "properties": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json index b70f5859c3aa..18ed9a3a0d74 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "location": "westus", "properties": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json index 4c5f783b395a..5e86a9d4692e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "location": "westus", "properties": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json index 1fbc862ba238..cc824e68f229 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "location": "westus", "properties": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json index 6f3ac1d856d9..7be033e6cd4e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "testservergroup", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": {}, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json index 2d60c2327deb..74b3774e9d0c 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json index 5277f4beddd0..6c2e089372f2 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json @@ -1,12 +1,12 @@ { "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2020-10-05-privatepreview&$top=3&$skiptoken=skiptoken", + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2022-11-08&$top=3&$skiptoken=skiptoken", "value": [ { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json index 5049c2284e44..fa661f414d9c 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json @@ -2,12 +2,12 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2020-10-05-privatepreview&$top=3&$skiptoken=skiptoken", + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2022-11-08&$top=3&$skiptoken=skiptoken", "value": [ { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json index bc35e1d9ec94..800e6c1a3890 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": {}, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json index 1b6308aeae07..05f5cfaa23e9 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "location": "westus", "properties": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json index d57f10c2e040..14b9b501fc99 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "location": "westus", "properties": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json index bc35e1d9ec94..800e6c1a3890 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": {}, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json index bc35e1d9ec94..800e6c1a3890 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": {}, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json index 691b78bec5d9..f21693b5c0a0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "properties": { "postgresqlVersion": "12", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json index b576fe4b4bd3..7bada1a16776 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg", - "api-version": "2020-10-05-privatepreview", + "api-version": "2022-11-08", "parameters": { "properties": { "maintenanceWindow": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json index 1ec9d60845ac..db064642bba0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", "serverGroupName": "hsctestsg1", - "api-version": "2020-10-05-privatepreview" + "api-version": "2022-11-08" }, "responses": { "200": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 51e7d1080a1a..358c4a1b86cc 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -3,7 +3,7 @@ "info": { "title": "HyperscaleCitusManagementClient", "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL Hyperscale (Citus) resources including server groups, servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations.", - "version": "2020-10-05-privatepreview" + "version": "2022-11-08" }, "host": "management.azure.com", "schemes": [ From af278a72acb702e898d22311fb002a7fcff6f07e Mon Sep 17 00:00:00 2001 From: mozansaka Date: Mon, 19 Dec 2022 14:26:14 +0300 Subject: [PATCH 04/13] empty commit (#21932) Co-authored-by: Ozan Saka From 69328fed8a84f29d93d093be6f3c097201f39bf1 Mon Sep 17 00:00:00 2001 From: mozansaka Date: Tue, 10 Jan 2023 13:44:29 +0300 Subject: [PATCH 05/13] 2022 11 08 (#22025) * Add private endpoint con. and private link endpoints * Add private link list example * Cluster related endpoint and exampled changes * Cluster changes and configuration updates * Long running operation header additions * Change server group to cluster * Add systemData to examples, fix private endpoint con. property * Fix private link resource name parameter * Fix INVALID_TYPE boolean given as strings * Update approve private endp. con. request body * Fix OBJECT_ADDITIONAL_PROPERTIES and READONLY_PROPERTY_NOT_ALLOWED_IN_REQUEST * Fix INVALID_TYPE * Fix ModelValidation Errors * Fix lint errors * Fix lint errors * Remove location from cluster examples * Update example details, fix common types * Update readme files, fix configuration example name * Fix SDK generation by removing wrong pageable tags * Update configuration response types, fix cluster name pattern * Update configuration example names * Readme changes and minor final state via fix * Fix indentation on suppression items * Update node count description, remove pec id * Update cluster examples * Style fix * Update description Co-authored-by: Ozan Saka Co-authored-by: Sena Gungor --- .../2022-11-08/examples/ClusterAddNode.json | 78 + .../2022-11-08/examples/ClusterCreate.json | 100 + .../examples/ClusterCreatePITR.json | 77 + .../examples/ClusterCreateReadReplica.json | 77 + .../2022-11-08/examples/ClusterDelete.json | 17 + .../2022-11-08/examples/ClusterGet.json | 78 + .../2022-11-08/examples/ClusterList.json | 136 + .../examples/ClusterListByResourceGroup.json | 145 ++ .../examples/ClusterPromoteReadReplica.json | 16 + .../2022-11-08/examples/ClusterRestart.json | 16 + .../examples/ClusterScaleCompute.json | 83 + .../examples/ClusterScaleStorage.json | 83 + .../2022-11-08/examples/ClusterStart.json | 17 + .../2022-11-08/examples/ClusterStop.json | 17 + .../2022-11-08/examples/ClusterUpdate.json | 98 + .../ClusterUpdateMaintenanceWindow.json | 84 + .../2022-11-08/examples/ConfigurationGet.json | 22 +- ...p.json => ConfigurationListByCluster.json} | 2 +- .../examples/ConfigurationListByServer.json | 2 +- .../ConfigurationUpdateCoordinator.json | 38 + ...date.json => ConfigurationUpdateNode.json} | 35 +- .../examples/FirewallRuleCreate.json | 30 +- .../examples/FirewallRuleDelete.json | 10 +- .../2022-11-08/examples/FirewallRuleGet.json | 2 +- ...up.json => FirewallRuleListByCluster.json} | 2 +- .../2022-11-08/examples/OperationList.json | 30 +- ...ivateEndpointConnectionCreateOrUpdate.json | 41 + .../PrivateEndpointConnectionsDelete.json | 18 + .../PrivateEndpointConnectionsGet.json | 40 + ...ivateEndpointConnectionsListByCluster.json | 70 + .../PrivateLinkResourceListByCluster.json | 60 + .../examples/PrivateLinkResourcesGet.json | 35 + .../2022-11-08/examples/RoleCreate.json | 27 +- .../2022-11-08/examples/RoleDelete.json | 10 +- ...erverGroup.json => RoleListByCluster.json} | 2 +- .../stable/2022-11-08/examples/ServerGet.json | 4 +- .../examples/ServerGroupAddNode.json | 40 - .../examples/ServerGroupCreate.json | 88 - .../examples/ServerGroupCreatePITR.json | 58 - .../ServerGroupCreateReadReplica.json | 55 - .../examples/ServerGroupDelete.json | 13 - .../2022-11-08/examples/ServerGroupGet.json | 102 - .../2022-11-08/examples/ServerGroupList.json | 244 -- .../ServerGroupListByResourceGroup.json | 243 -- .../examples/ServerGroupRestart.json | 12 - .../examples/ServerGroupScaleCompute.json | 40 - .../examples/ServerGroupScaleStorage.json | 40 - .../2022-11-08/examples/ServerGroupStart.json | 12 - .../2022-11-08/examples/ServerGroupStop.json | 12 - .../examples/ServerGroupUpdate.json | 58 - .../ServerGroupUpdateMaintenanceWindow.json | 38 - ...verGroup.json => ServerListByCluster.json} | 8 +- .../stable/2022-11-08/postgresqlhsc.json | 2191 +++++++++++------ .../resource-manager/readme.go.md | 15 +- .../resource-manager/readme.java.md | 21 +- .../postgresqlhsc/resource-manager/readme.md | 34 +- .../resource-manager/readme.python.md | 20 +- .../resource-manager/readme.ruby.md | 10 +- 58 files changed, 3004 insertions(+), 1952 deletions(-) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json rename specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/{ConfigurationListByServerGroup.json => ConfigurationListByCluster.json} (99%) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json rename specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/{ConfigurationUpdate.json => ConfigurationUpdateNode.json} (59%) rename specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/{FirewallRuleListByServerGroup.json => FirewallRuleListByCluster.json} (97%) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json rename specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/{RoleListByServerGroup.json => RoleListByCluster.json} (97%) delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json delete mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json rename specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/{ServerListByServerGroup.json => ServerListByCluster.json} (92%) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json new file mode 100644 index 000000000000..07e2d133d87e --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeCount": 2 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "preferredPrimaryZone": "1", + "nodeCount": 2, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w1", + "fullyQualifiedDomainName": "w1.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json new file mode 100644 index 000000000000..9f9d3103350c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "administratorLoginPassword": "p@ssword1234", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "enableHa": true, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "preferredPrimaryZone": "1" + }, + "tags": {} + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": {}, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 3, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w2", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w3", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json new file mode 100644 index 000000000000..f5a62c9cbba4 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "sourceLocation": "westus", + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json new file mode 100644 index 000000000000..f5a62c9cbba4 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "sourceLocation": "westus", + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json new file mode 100644 index 000000000000..b49831b5c006 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "testcluster", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json new file mode 100644 index 000000000000..db6ff92744b3 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json new file mode 100644 index 000000000000..0e8c3479ff09 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", + "name": "hsctestsg2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": true, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 1, + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg2-c", + "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w0", + "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-15T00:01:32.317Z", + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json new file mode 100644 index 000000000000..5c595cff905f --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", + "name": "hsctestsg2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": true, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg2-c", + "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w0", + "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w1", + "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-15T00:01:32.317Z", + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json new file mode 100644 index 000000000000..11093dc35e52 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json new file mode 100644 index 000000000000..11093dc35e52 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json new file mode 100644 index 000000000000..3a7a3d5988ed --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeVCores": 16 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json new file mode 100644 index 000000000000..fbe1db8dda33 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeStorageQuotaInMb": 2097152 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json new file mode 100644 index 000000000000..2b4d2791697b --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json new file mode 100644 index 000000000000..2b4d2791697b --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json new file mode 100644 index 000000000000..32bdff17f911 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "administratorLoginPassword": "newP@ssword1", + "coordinatorVCores": 16, + "nodeCount": 4, + "nodeVCores": 16 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 4, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w3", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json new file mode 100644 index 000000000000..de75568d4a8c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json index ae4e31177714..de0f5d25fa66 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "configurationName": "array_nulls", "api-version": "2022-11-08" }, "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", - "name": "array_nulls", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/client_encoding", + "name": "client_encoding", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", "systemData": { "createdBy": "user1", @@ -21,20 +21,20 @@ "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" }, "properties": { - "description": "Enable input of NULL elements in arrays.", - "dataType": "Boolean", - "allowedValues": "on,off", + "description": "Sets the client's character set encoding.", + "dataType": "Enumeration", + "allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", "serverRoleGroupConfigurations": [ { "role": "Coordinator", - "value": "on", - "defaultValue": "on", - "source": "system-default" + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" }, { "role": "Worker", - "value": "off", - "defaultValue": "on", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", "source": "user-override" } ] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json similarity index 99% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json index b0e2eba24883..5a23e3a93f92 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "api-version": "2022-11-08" }, "responses": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json index 1f32059bd1fa..04262e9e1a76 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "serverName": "testserver", "api-version": "2022-11-08" }, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json new file mode 100644 index 000000000000..c6398a388ad7 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "value": "on" + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/coordinator", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json similarity index 59% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json index baa9c67ccb7e..734fbd248ed8 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json @@ -2,30 +2,25 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "configurationName": "array_nulls", "api-version": "2022-11-08", "parameters": { "properties": { - "serverRoleGroupConfigurations": [ - { - "role": "Coordinator", - "value": "on" - }, - { - "role": "Worker", - "value": "off" - } - ] + "value": "off" } } }, "responses": { - "200": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, "body": { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/node", "systemData": { "createdBy": "user1", "createdByType": "User", @@ -35,19 +30,9 @@ "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" }, "properties": { - "serverRoleGroupConfigurations": [ - { - "role": "Coordinator", - "value": "on" - }, - { - "role": "Worker", - "value": "off" - } - ] + "value": "off" } } - }, - "202": {} + } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json index 4fd7f107ba94..71ae524fe5c1 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "firewallRuleName": "rule1", "api-version": "2022-11-08", "parameters": { @@ -13,7 +13,11 @@ } }, "responses": { - "201": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, "body": { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", "name": "rule1", @@ -31,26 +35,6 @@ "endIpAddress": "255.255.255.255" } } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "202": {} + } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json index 32725ea2131b..e28000660ec0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json @@ -2,13 +2,17 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "firewallRuleName": "rule1", "api-version": "2022-11-08" }, "responses": { - "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, "204": {} } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json index b727c3bad00b..baad985259ae 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "firewallRuleName": "rule1", "api-version": "2022-11-08" }, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json similarity index 97% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json index 037f64737d4d..0aaedac67e9d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "api-version": "2022-11-08" }, "responses": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json index eb78e5a1b800..71a53a67b6f3 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json @@ -10,27 +10,27 @@ "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/read", "display": { "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Group", - "operation": "List/Get PostgreSQL Server Groups", - "description": "Return the list of server groups or gets the properties for the specified server group." + "resource": "PostgreSQL Cluster", + "operation": "List/Get PostgreSQL Clusters", + "description": "Return the list of clusters or gets the properties for the specified cluster." } }, { "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/write", "display": { "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Group", - "operation": "Create/Update PostgreSQL Server Group", - "description": "Creates a server group with the specified parameters or update the properties or tags for the specified server group." + "resource": "PostgreSQL Cluster", + "operation": "Create/Update PostgreSQL Cluster", + "description": "Creates a cluster with the specified parameters or update the properties or tags for the specified cluster." } }, { "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/delete", "display": { "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Grouo", - "operation": "Delete PostgreSQL Server Group", - "description": "Deletes an existing server group." + "resource": "PostgreSQL Cluster", + "operation": "Delete PostgreSQL Cluster", + "description": "Deletes an existing cluster." } }, { @@ -38,8 +38,8 @@ "display": { "provider": "Microsoft DB for PostgreSQL", "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers of Server Group", - "description": "Return the list of servers of server group or gets the properties for the specified server from server group." + "operation": "List/Get PostgreSQL Servers of Cluster", + "description": "Return the list of servers of cluster or gets the properties for the specified server from cluster." } }, { @@ -56,8 +56,8 @@ "display": { "provider": "Microsoft DB for PostgreSQL", "resource": "Configurations", - "operation": "List/Get Configurations of Server Group", - "description": "Return the list of configurations for a server group or gets the value for the specified configuration." + "operation": "List/Get Configurations of Cluster", + "description": "Return the list of configurations for a cluster or gets the value for the specified configuration." } }, { @@ -65,7 +65,7 @@ "display": { "provider": "Microsoft DB for PostgreSQL", "resource": "Configurations", - "operation": "Update Configurations of Server Group", + "operation": "Update Configurations of Cluster", "description": "Update an value of configurations." } }, @@ -75,7 +75,7 @@ "provider": "Microsoft DB for PostgreSQL", "resource": "Firewall Rules", "operation": "List/Get Firewall Rules", - "description": "Return the list of firewall rules for a server group or gets the properties for the specified firewall rule." + "description": "Return the list of firewall rules for a cluster or gets the properties for the specified firewall rule." } }, { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json new file mode 100644 index 000000000000..e7100d2351e1 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json new file mode 100644 index 000000000000..6811e35bc97c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json new file mode 100644 index 000000000000..35ffc01ec728 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "groupIds": [ + "coordinator" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json new file mode 100644 index 000000000000..8f99450efbbc --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "groupIds": [ + "coordinator" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name-2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name-2" + }, + "groupIds": [ + "worker-0" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json new file mode 100644 index 000000000000..0ba9732396bd --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateLinkResources/coordinator", + "name": "coordinator", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "groupId": "coordinator", + "requiredMembers": [ + "coordinator" + ], + "requiredZoneNames": [ + "privatelink.hsctestsg.postgres.database.azure.com" + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateLinkResources/worker-0", + "name": "worker-0", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "groupId": "worker-0", + "requiredMembers": [ + "worker-0" + ], + "requiredZoneNames": [ + "privatelink.hsctestsg.postgres.database.azure.com" + ] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json new file mode 100644 index 000000000000..0731977fd68d --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateLinkResourceName": "plr", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateLinkResources/plr", + "name": "plr", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "groupId": "coordinator", + "requiredMembers": [ + "coordinator" + ], + "requiredZoneNames": [ + "privatelink.hsctestsg.postgres.database.azure.com" + ] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json index 0405d7f621c2..4af3370772fb 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "roleName": "role1", "api-version": "2022-11-08", "parameters": { @@ -12,7 +12,11 @@ } }, "responses": { - "200": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, "body": { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", "name": "role1", @@ -27,23 +31,6 @@ }, "properties": {} } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", - "name": "role1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {} - } - }, - "202": {} + } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json index 6a9693f46570..d11688d7a6e7 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json @@ -2,13 +2,17 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "roleName": "role1", "api-version": "2022-11-08" }, "responses": { - "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, "204": {} } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json similarity index 97% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json index 3096c7eaa9e7..27967abaf9c6 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "api-version": "2022-11-08" }, "responses": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json index 6d4ea4accb9d..82ebb1d2c128 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", + "clusterName": "hsctestsg1", "serverName": "hsctestsg1-c", "api-version": "2022-11-08" }, @@ -22,11 +22,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "2", "role": "Coordinator", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json deleted file mode 100644 index 7926b9413c12..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "serverRoleGroups": [ - { - "name": "", - "role": "Worker", - "serverCount": 10 - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json deleted file mode 100644 index 18ed9a3a0d74..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "administratorLogin": "citus", - "administratorLoginPassword": "password", - "backupRetentionDays": 35, - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "enableMx": true, - "enableZfs": false, - "postgresqlVersion": "12", - "citusVersion": "9.5", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "GeneralPurpose", - "vCores": 4, - "storageQuotaInMb": 524288, - "enableHa": true - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "MemoryOptimized", - "vCores": 4, - "storageQuotaInMb": 524288, - "enableHa": false - } - ] - }, - "tags": { - "ElasticServer": "1" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json deleted file mode 100644 index 5e86a9d4692e..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "createMode": "PointInTimeRestore", - "pointInTimeUTC": "2017-12-14T00:00:37.467Z", - "sourceLocation": "eastus", - "sourceSubscriptionId": "dddddddd-dddd-dddd-dddd-dddddddddddd", - "sourceResourceGroupName": "SourceGroup", - "sourceServerGroupName": "pgtests-source-server-group", - "enableMx": true, - "enableZfs": false - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json deleted file mode 100644 index cc824e68f229..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "createMode": "ReadReplica", - "sourceLocation": "eastus", - "sourceSubscriptionId": "dddddddd-dddd-dddd-dddd-dddddddddddd", - "sourceResourceGroupName": "SourceGroup", - "sourceServerGroupName": "pgtests-source-server-group" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json deleted file mode 100644 index 7be033e6cd4e..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "testservergroup", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json deleted file mode 100644 index 74b3774e9d0c..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "name": "hsctestsg1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp1": "string", - "additionalProp2": "string", - "additionalProp3": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "maintenanceWindow": { - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0, - "customWindow": "Disabled" - }, - "readReplicas": [ - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" - ], - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg1-c", - "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg1-w0", - "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w1", - "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w2", - "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json deleted file mode 100644 index 6c2e089372f2..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "api-version": "2022-11-08" - }, - "responses": { - "200": { - "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2022-11-08&$top=3&$skiptoken=skiptoken", - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "name": "hsctestsg1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp1": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": [ - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2" - ], - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg1-c", - "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg1-w0", - "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w1", - "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w2", - "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", - "name": "hsctestsg2", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp2": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "readReplicas": null, - "sourceServerGroup": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg2-c", - "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 2, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg2-w0", - "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg2-w1", - "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg3", - "name": "hsctestsg3", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp3": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg3-c", - "fullyQualifiedDomainName": "hsctestsg3-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg3-w0", - "fullyQualifiedDomainName": "hsctestsg3-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w1", - "fullyQualifiedDomainName": "hsctestsg3-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w2", - "fullyQualifiedDomainName": "hsctestsg3-w2.postgres.database.azure.com" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json deleted file mode 100644 index fa661f414d9c..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "api-version": "2022-11-08" - }, - "responses": { - "200": { - "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2022-11-08&$top=3&$skiptoken=skiptoken", - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "name": "hsctestsg1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp1": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg1-c", - "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg1-w0", - "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w1", - "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w2", - "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", - "name": "hsctestsg2", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp2": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg2-c", - "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 2, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg2-w0", - "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg2-w1", - "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg3", - "name": "hsctestsg3", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp3": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg3-c", - "fullyQualifiedDomainName": "hsctestsg3-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg3-w0", - "fullyQualifiedDomainName": "hsctestsg3-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w1", - "fullyQualifiedDomainName": "hsctestsg3-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w2", - "fullyQualifiedDomainName": "hsctestsg3-w2.postgres.database.azure.com" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json deleted file mode 100644 index 800e6c1a3890..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json deleted file mode 100644 index 05f5cfaa23e9..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "vCores": 16 - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json deleted file mode 100644 index 14b9b501fc99..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "serverRoleGroups": [ - { - "name": "", - "role": "Worker", - "storageQuotaInMb": 8388608 - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json deleted file mode 100644 index 800e6c1a3890..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json deleted file mode 100644 index 800e6c1a3890..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json deleted file mode 100644 index f21693b5c0a0..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "properties": { - "postgresqlVersion": "12", - "administratorLoginPassword": "secret", - "backupRetentionDays": 30, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "GeneralPurpose", - "vCores": 8, - "storageQuotaInMb": 1048576, - "enableHa": false - }, - { - "name": "", - "role": "Worker", - "serverCount": 4, - "serverEdition": "MemoryOptimized", - "vCores": 4, - "storageQuotaInMb": 524288, - "enableHa": true - } - ] - }, - "tags": { - "ElasticServer": "2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json deleted file mode 100644 index 7bada1a16776..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "properties": { - "maintenanceWindow": { - "dayOfWeek": 0, - "startHour": 8, - "startMinute": 0, - "customWindow": "Enabled" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json similarity index 92% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json index db064642bba0..50c3dbc6aac2 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", + "clusterName": "hsctestsg1", "api-version": "2022-11-08" }, "responses": { @@ -23,11 +23,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "2", "role": "Coordinator", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, @@ -52,11 +50,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "", "role": "Worker", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, @@ -81,11 +77,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "", "role": "Worker", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 358c4a1b86cc..5014e5d16f30 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "HyperscaleCitusManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL Hyperscale (Citus) resources including server groups, servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations.", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Cosmos DB for PostgreSQL resources including clusters, servers, configurations, firewall rules, roles, private endpoint connections and private link resources.", "version": "2022-11-08" }, "host": "management.azure.com", @@ -34,37 +34,37 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/serverGroupsv2": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2": { "get": { "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_List", + "operationId": "Clusters_List", "x-ms-examples": { - "List all the server groups": { - "$ref": "./examples/ServerGroupList.json" + "List all the clusters": { + "$ref": "./examples/ClusterList.json" } }, - "description": "List all the server groups in a given subscription.", + "description": "List all the clusters in a given subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupListResult" + "$ref": "#/definitions/ClusterListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -73,40 +73,40 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2": { "get": { "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_ListByResourceGroup", + "operationId": "Clusters_ListByResourceGroup", "x-ms-examples": { - "List the server groups by resource group": { - "$ref": "./examples/ServerGroupListByResourceGroup.json" + "List the clusters by resource group": { + "$ref": "./examples/ClusterListByResourceGroup.json" } }, - "description": "List all the server groups in a given resource group.", + "description": "List all the clusters in a given resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupListResult" + "$ref": "#/definitions/ClusterListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -115,144 +115,154 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}": { "put": { - "description": "Creates a new server group with servers.", + "description": "Creates a new cluster with servers.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_CreateOrUpdate", + "operationId": "Clusters_CreateOrUpdate", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Create a new server group": { - "$ref": "./examples/ServerGroupCreate.json" + "Create a new cluster": { + "$ref": "./examples/ClusterCreate.json" }, - "Create a new server group as a point in time restore": { - "$ref": "./examples/ServerGroupCreatePITR.json" + "Create a new cluster as a point in time restore": { + "$ref": "./examples/ClusterCreatePITR.json" }, - "Create a new server group as a read replica": { - "$ref": "./examples/ServerGroupCreateReadReplica.json" + "Create a new cluster as a read replica": { + "$ref": "./examples/ClusterCreateReadReplica.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/Cluster" }, - "description": "The required parameters for creating or updating a server group." + "description": "The required parameters for creating or updating a cluster." } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerGroup" - } - }, "201": { "description": "Created", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + }, "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "get": { - "description": "Gets information about a server group.", + "description": "Gets information about a cluster.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_Get", + "operationId": "Clusters_Get", "x-ms-examples": { - "Get the server group": { - "$ref": "./examples/ServerGroupGet.json" + "Get the cluster": { + "$ref": "./examples/ClusterGet.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "delete": { - "description": "Deletes a server group together with servers in it.", + "description": "Deletes a cluster together with servers in it.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_Delete", + "operationId": "Clusters_Delete", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Delete the server group": { - "$ref": "./examples/ServerGroupDelete.json" + "Delete the cluster": { + "$ref": "./examples/ClusterDelete.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -260,114 +270,122 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "patch": { - "description": "Updates an existing server group. The request body can contain one to many of the properties present in the normal server group definition.", + "description": "Updates an existing cluster. The request body can contain one to many of the properties present in the normal cluster definition.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_Update", + "operationId": "Clusters_Update", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Update the server group": { - "$ref": "./examples/ServerGroupUpdate.json" + "Update the cluster": { + "$ref": "./examples/ClusterUpdate.json" }, "Scale compute": { - "$ref": "./examples/ServerGroupScaleCompute.json" + "$ref": "./examples/ClusterScaleCompute.json" }, "Scale storage": { - "$ref": "./examples/ServerGroupScaleStorage.json" + "$ref": "./examples/ClusterScaleStorage.json" }, "Add new worker nodes": { - "$ref": "./examples/ServerGroupAddNode.json" + "$ref": "./examples/ClusterAddNode.json" }, "Update customer maintenance window": { - "$ref": "./examples/ServerGroupUpdateMaintenanceWindow.json" + "$ref": "./examples/ClusterUpdateMaintenanceWindow.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerGroupForUpdate" + "$ref": "#/definitions/ClusterForUpdate" }, - "description": "The parameters for updating a server group." + "description": "The parameters for updating a cluster." } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + }, "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers": { "get": { - "description": "Lists servers of a server group.", + "description": "Lists servers of a cluster.", "tags": [ "Servers" ], - "operationId": "Servers_ListByServerGroup", + "operationId": "Servers_ListByCluster", "x-ms-examples": { - "List servers of the server group": { - "$ref": "./examples/ServerListByServerGroup.json" + "List servers of the cluster": { + "$ref": "./examples/ServerListByCluster.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupServerListResult" + "$ref": "#/definitions/ClusterServerListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -376,30 +394,30 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers/{serverName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}": { "get": { - "description": "Gets information about a server in server group.", + "description": "Gets information about a server in cluster.", "tags": [ "Servers" ], "operationId": "Servers_Get", "x-ms-examples": { - "Get the server of server group": { + "Get the server of cluster": { "$ref": "./examples/ServerGet.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ServerNameParameter" @@ -409,42 +427,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupServer" + "$ref": "#/definitions/ClusterServer" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers/{serverName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}/configurations": { "get": { - "description": "List all the configurations of a server in server group.", + "description": "List all the configurations of a server in cluster.", "tags": [ "Configurations" ], "operationId": "Configurations_ListByServer", "x-ms-examples": { - "List configurations of the server that in the server group": { + "List configurations of the server that in the cluster": { "$ref": "./examples/ConfigurationListByServer.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ServerNameParameter" @@ -460,7 +478,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -469,43 +487,43 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations": { "get": { - "description": "List all the configurations of a server group.", + "description": "List all the configurations of a cluster.", "tags": [ "Configurations" ], - "operationId": "Configurations_ListByServerGroup", + "operationId": "Configurations_ListByCluster", "x-ms-examples": { - "List configurations of the server group": { - "$ref": "./examples/ConfigurationListByServerGroup.json" + "List configurations of the cluster": { + "$ref": "./examples/ConfigurationListByCluster.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupConfigurationListResult" + "$ref": "#/definitions/ClusterConfigurationListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -514,31 +532,79 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations/{configurationName}": { - "patch": { - "description": "Updates configuration of server role groups in a server group", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}": { + "get": { + "description": "Gets information of a configuration for coordinator and nodes.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "Get configuration details.": { + "$ref": "./examples/ConfigurationGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}/coordinator": { + "put": { + "description": "Updates configuration of coordinator in a cluster", "tags": [ "Configurations" ], - "operationId": "Configurations_Update", + "operationId": "Configurations_UpdateCoordinator", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Update single configuration of the server group": { - "$ref": "./examples/ConfigurationUpdate.json" + "Update single configuration of coordinator": { + "$ref": "./examples/ConfigurationUpdateCoordinator.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" @@ -548,74 +614,102 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/ServerConfigurationRequest" }, - "description": "The required parameters for updating a server group configuration." + "description": "The required parameters for updating a cluster configuration." } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/ServerConfiguration" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } - }, - "get": { - "description": "Gets information about single server group configuration.", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}/node": { + "put": { + "description": "Updates configuration of nodes in a cluster", "tags": [ "Configurations" ], - "operationId": "Configurations_Get", + "operationId": "Configurations_UpdateNode", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Get single configuration of the server group": { - "$ref": "./examples/ConfigurationGet.json" + "Update single configuration of nodes": { + "$ref": "./examples/ConfigurationUpdateNode.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerConfigurationRequest" + }, + "description": "The required parameters for updating a cluster configuration." } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/ServerConfiguration" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/firewallRules/{firewallRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules/{firewallRuleName}": { "put": { "description": "Creates a new firewall rule or updates an existing firewall rule.", "tags": [ @@ -623,23 +717,26 @@ ], "operationId": "FirewallRules_CreateOrUpdate", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Create a firewall rule of the server group": { + "Create a firewall rule of the cluster": { "$ref": "./examples/FirewallRuleCreate.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -655,64 +752,71 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { "$ref": "#/definitions/FirewallRule" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "delete": { - "description": "Deletes a server group firewall rule.", + "description": "Deletes a cluster firewall rule.", "tags": [ "FirewallRules" ], "operationId": "FirewallRules_Delete", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Delete the firewall rule of the server group": { + "Delete the firewall rule of the cluster": { "$ref": "./examples/FirewallRuleDelete.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -720,34 +824,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "get": { - "description": "Gets information about a server group firewall rule.", + "description": "Gets information about a cluster firewall rule.", "tags": [ "FirewallRules" ], "operationId": "FirewallRules_Get", "x-ms-examples": { - "Get the firewall rule of the server group": { + "Get the firewall rule of the cluster": { "$ref": "./examples/FirewallRuleGet.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -763,36 +867,36 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/firewallRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules": { "get": { - "description": "List all the firewall rules in a given server group.", + "description": "List all the firewall rules in a given cluster.", "tags": [ "FirewallRules" ], - "operationId": "FirewallRules_ListByServerGroup", + "operationId": "FirewallRules_ListByCluster", "x-ms-examples": { - "List firewall rules of the server group": { - "$ref": "./examples/FirewallRuleListByServerGroup.json" + "List firewall rules of the cluster": { + "$ref": "./examples/FirewallRuleListByCluster.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -805,7 +909,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -814,13 +918,16 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/roles/{roleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}": { "put": { "tags": [ "Roles" ], "operationId": "Roles_Create", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "RoleCreate": { "$ref": "./examples/RoleCreate.json" @@ -829,16 +936,16 @@ "description": "Creates a new role or updates an existing role.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/RoleNameParameter" @@ -854,25 +961,24 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Role" - } - }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { "$ref": "#/definitions/Role" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } @@ -883,35 +989,43 @@ ], "operationId": "Roles_Delete", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "RoleDelete": { "$ref": "./examples/RoleDelete.json" } }, - "description": "Deletes a server group role.", + "description": "Deletes a cluster role.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/RoleNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -919,36 +1033,36 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/roles": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles": { "get": { "tags": [ "Roles" ], - "operationId": "Roles_ListByServerGroup", + "operationId": "Roles_ListByCluster", "x-ms-examples": { "RoleList": { - "$ref": "./examples/RoleListByServerGroup.json" + "$ref": "./examples/RoleListByCluster.json" } }, - "description": "List all the roles in a given server group.", + "description": "List all the roles in a given cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -961,7 +1075,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -970,74 +1084,85 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart": { "post": { - "description": "Restarts the server group.", + "description": "Restarts the cluster.", "tags": [ - "ServerGroupOperations" + "ClusterOperations" ], - "operationId": "ServerGroups_Restart", + "operationId": "Clusters_Restart", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Restart all servers in the server group": { - "$ref": "./examples/ServerGroupRestart.json" + "Restart all servers in the cluster": { + "$ref": "./examples/ClusterRestart.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start": { "post": { - "description": "Starts the server group.", + "description": "Starts the cluster.", "tags": [ - "ServerGroupOperations" + "ClusterOperations" ], - "operationId": "ServerGroups_Start", + "operationId": "Clusters_Start", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Start all servers in the server group": { - "$ref": "./examples/ServerGroupStart.json" + "Start all servers in the cluster": { + "$ref": "./examples/ClusterStart.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -1045,42 +1170,53 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop": { "post": { - "description": "Stops the server group.", + "description": "Stops the cluster.", "tags": [ - "ServerGroupOperations" + "ClusterOperations" ], - "operationId": "ServerGroups_Stop", + "operationId": "Clusters_Stop", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Stop all servers in the server group": { - "$ref": "./examples/ServerGroupStop.json" + "Stop all servers in the cluster": { + "$ref": "./examples/ClusterStop.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -1088,24 +1224,83 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote": { + "post": { + "description": "Promote the read replica cluster.", + "tags": [ + "ClusterOperations" + ], + "operationId": "Clusters_PromoteReadReplica", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Promote the read replica": { + "$ref": "./examples/ClusterPromoteReadReplica.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { "post": { "description": "Check the availability of name for resource", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_CheckNameAvailability", + "operationId": "Clusters_CheckNameAvailability", "x-ms-examples": { "Check name availability": { "$ref": "./examples/CheckNameAvailability.json" @@ -1113,10 +1308,10 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { "name": "nameAvailabilityRequest", @@ -1138,13 +1333,13 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/providers/Microsoft.DBForPostgreSql/operations": { + "/providers/Microsoft.DBforPostgreSQL/operations": { "get": { "description": "Lists all of the available REST API operations.", "tags": [ @@ -1158,7 +1353,7 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1171,7 +1366,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -1179,191 +1374,363 @@ "nextLinkName": null } } - } - }, - "definitions": { - "PostgreSQLVersion": { - "type": "string", - "description": "The PostgreSQL version.", - "enum": [ - "11", - "12" - ], - "x-ms-enum": { - "name": "PostgreSQLVersion", - "modelAsString": true - } - }, - "CitusVersion": { - "type": "string", - "description": "The Citus version.", - "enum": [ - "8.3", - "9.0", - "9.1", - "9.2", - "9.3", - "9.4", - "9.5" - ], - "x-ms-enum": { - "name": "CitusVersion", - "modelAsString": true - } - }, - "ServerState": { - "type": "string", - "description": "A state of a server group/server that is visible to user.", - "enum": [ - "Ready", - "Dropping", - "Disabled", - "Starting", - "Stopping", - "Stopped", - "Updating", - "Provisioning" - ], - "x-ms-enum": { - "name": "ServerState", - "modelAsString": true - }, - "readOnly": true - }, - "ServerHaState": { - "type": "string", - "description": "A state of a server role group/server that is visible to user for HA feature.", - "enum": [ - "NotEnabled", - "CreatingStandby", - "ReplicatingData", - "FailingOver", - "Healthy", - "RemovingStandby", - "NotSync" - ], - "x-ms-enum": { - "name": "ServerHaState", - "modelAsString": true - }, - "readOnly": true - }, - "ServerRole": { - "type": "string", - "description": "The role of a server.", - "enum": [ - "Coordinator", - "Worker" - ], - "x-ms-enum": { - "name": "ServerRole", - "modelAsString": true - } - }, - "FullyQualifiedDomainName": { - "type": "string", - "description": "The fully qualified domain name of a server.", - "readOnly": true }, - "ServerProperties": { - "description": "The properties of a server.", - "properties": { - "serverEdition": { - "type": "string", - "description": "The edition of a server (default: GeneralPurpose).", - "enum": [ - "GeneralPurpose", - "MemoryOptimized" - ], - "x-ms-enum": { - "name": "ServerEdition", - "modelAsString": true + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections": { + "get": { + "description": "Gets list of private endpoint connections on a cluster.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_ListByCluster", + "x-ms-examples": { + "Gets list of private endpoint connections on a cluster.": { + "$ref": "./examples/PrivateEndpointConnectionsListByCluster.json" } }, - "storageQuotaInMb": { - "type": "integer", - "format": "int64", - "description": "The storage of a server in MB (max: 2097152 = 2TiB)." - }, - "vCores": { - "type": "integer", - "format": "int64", - "description": "The vCores count of a server (max: 64)." - }, - "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the server." + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } }, - "enablePublicIp": { - "type": "boolean", - "description": "If public IP is requested or not for a server.", - "readOnly": true + "x-ms-pageable": { + "nextLinkName": null } } }, - "ServerRoleGroupList": { - "type": "array", - "description": "The list of server role groups.", - "items": { - "$ref": "#/definitions/ServerRoleGroup" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "description": "Gets private endpoint connection.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Get", + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateEndpointConnectionsGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProperty" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } }, - "x-ms-identifiers": [ - "name" - ], - "minItems": 1, - "maxItems": 2, - "uniqueItems": true + "put": { + "description": "Approve or reject a private endpoint connection with a given name.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name": { + "$ref": "./examples/PrivateEndpointConnectionCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionActionRequest" + }, + "description": "The required parameters for approving a private endpoint connection." + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProperty" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "description": "Deletes a private endpoint connection with a given name.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionsDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } }, - "ServerRoleGroup": { - "description": "Represents a server role group.", - "allOf": [ - { - "$ref": "#/definitions/ServerProperties" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources": { + "get": { + "description": "Gets the private link resources for cluster.", + "tags": [ + "PrivateLinkResources" + ], + "operationId": "PrivateLinkResources_ListByCluster", + "x-ms-examples": { + "Gets the private link resources for cluster.": { + "$ref": "./examples/PrivateLinkResourceListByCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}": { + "get": { + "description": "Gets a private link resource for cluster.", + "tags": [ + "PrivateLinkResources" + ], + "operationId": "PrivateLinkResources_Get", + "x-ms-examples": { + "Gets a private link resource for cluster.": { + "$ref": "./examples/PrivateLinkResourcesGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateLinkResourceName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ServerRole": { + "type": "string", + "description": "The role of a server.", + "enum": [ + "Coordinator", + "Worker" ], + "x-ms-enum": { + "name": "ServerRole", + "modelAsString": true + } + }, + "ServerProperties": { + "type": "object", + "description": "The properties of a server.", "properties": { - "name": { + "serverEdition": { "type": "string", - "description": "The name of the server role group." + "description": "The edition of a server" }, - "role": { - "$ref": "#/definitions/ServerRole", - "description": "The role of servers in the server role group." + "storageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." }, - "serverCount": { + "vCores": { "type": "integer", - "format": "int32", - "description": "The number of servers in the server role group." + "format": "int64", + "description": "The vCores count of a server (max: 64)." }, - "serverNames": { - "type": "array", - "description": "The list of server names in the server role group.", - "items": { - "$ref": "#/definitions/ServerNameItem" - }, - "x-ms-identifiers": [ - "name" - ], - "readOnly": true, - "uniqueItems": true + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the server." + }, + "enablePublicIp": { + "type": "boolean", + "description": "If public IP is requested or not for a server.", + "readOnly": true } } }, "ServerNameItem": { "description": "The name object for a server.", + "type": "object", "properties": { "name": { "type": "string", "description": "The name of a server." }, "fullyQualifiedDomainName": { - "$ref": "#/definitions/FullyQualifiedDomainName", - "description": "The fully qualified domain name of a server." + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true } } }, - "ServerGroupServerProperties": { - "description": "The properties of a server in server group.", + "ClusterServerProperties": { + "description": "The properties of a server in cluster.", + "type": "object", "allOf": [ { "$ref": "#/definitions/ServerProperties" @@ -1371,85 +1738,75 @@ ], "properties": { "fullyQualifiedDomainName": { - "$ref": "#/definitions/FullyQualifiedDomainName", - "description": "The fully qualified domain name of a server." + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true }, "role": { "$ref": "#/definitions/ServerRole", - "description": "The role of server in the server group." + "description": "The role of server in the cluster." }, "state": { - "$ref": "#/definitions/ServerState", - "description": "A state of a server that is visible to user." + "type": "string", + "description": "A state of a cluster/server that is visible to user.", + "readOnly": true }, "haState": { - "$ref": "#/definitions/ServerHaState", - "description": "A state of a server group that is visible to user for HA feature." + "type": "string", + "description": "A state of HA feature for the cluster.", + "readOnly": true }, - "administratorLogin": { + "availabilityZone": { "type": "string", - "description": "The administrator's login name of a servers in server group." + "description": "Availability Zone information of the server." }, "postgresqlVersion": { - "$ref": "#/definitions/PostgreSQLVersion", + "type": "string", "description": "The PostgreSQL version of server." }, "citusVersion": { - "$ref": "#/definitions/CitusVersion", - "description": "The Citus version of server." - }, - "availabilityZone": { "type": "string", - "description": "Availability Zone information of the server group." - }, - "standbyAvailabilityZone": { - "type": "string", - "description": "Standby Availability Zone information of the server group." + "description": "The Citus version of server." } } }, - "ServerGroupServer": { - "description": "Represents a server in a server group.", + "ClusterServer": { + "description": "Represents a server in a cluster.", + "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { - "$ref": "#/definitions/ServerGroupServerProperties", - "description": "The properties of a server in a server group.", + "$ref": "#/definitions/ClusterServerProperties", + "description": "The properties of a server in a cluster.", "x-ms-client-flatten": true } } }, - "ServerGroupServerListResult": { - "description": "A list of servers in a server group.", + "ClusterServerListResult": { + "description": "A list of servers in a cluster.", + "type": "object", "properties": { "value": { "type": "array", - "description": "The list of servers in a server group.", + "description": "The list of servers in a cluster.", "items": { - "$ref": "#/definitions/ServerGroupServer" + "$ref": "#/definitions/ClusterServer" } } } }, - "ServerGroupForUpdate": { - "description": "Represents a server group for update.", + "ClusterForUpdate": { + "description": "Represents a cluster for update.", + "type": "object", "properties": { - "location": { - "type": "string", - "description": "The location the resource resides in." - }, "properties": { - "$ref": "#/definitions/ServerGroupPropertiesForUpdate", + "$ref": "#/definitions/ClusterPropertiesForUpdate", "x-ms-client-flatten": true, - "description": "Properties of the server group." + "description": "Properties of the cluster." }, "tags": { "type": "object", @@ -1460,8 +1817,9 @@ } } }, - "ServerGroupPropertiesForUpdate": { - "description": "The properties used to update a server group.", + "ClusterPropertiesForUpdate": { + "description": "The properties used to update a cluster.", + "type": "object", "properties": { "administratorLoginPassword": { "type": "string", @@ -1473,105 +1831,132 @@ ], "description": "The password of the administrator login." }, - "backupRetentionDays": { - "type": "integer", - "format": "int32", - "description": "The backup retention days for server group." - }, "postgresqlVersion": { - "$ref": "#/definitions/PostgreSQLVersion", - "description": "The PostgreSQL version of server group." + "type": "string", + "description": "The PostgreSQL version of the cluster." }, "citusVersion": { - "$ref": "#/definitions/CitusVersion", - "description": "The Citus version of server group." + "type": "string", + "description": "The Citus version of the cluster." }, "enableShardsOnCoordinator": { "type": "boolean", - "description": "If shards on coordinator is enabled or not for the server group." + "description": "If shards on coordinator is enabled or not for the cluster." }, - "serverRoleGroups": { - "$ref": "#/definitions/ServerRoleGroupList", - "description": "The list of server role groups." + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the cluster." }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a server group." + "preferredPrimaryZone": { + "type": "string", + "description": "Preferred primary zone for the cluster" }, - "availabilityZone": { + "coordinatorServerEdition": { "type": "string", - "description": "Availability Zone information of the server group." + "description": "The edition of the coordinator (default: GeneralPurpose)." }, - "standbyAvailabilityZone": { + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of the coordinator in MB." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of the coordinator (max: 64)." + }, + "coordinatorEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for the coordinator." + }, + "nodeServerEdition": { "type": "string", - "description": "Standby Availability Zone information of the server group." + "description": "The edition of a node (default: MemoryOptimized)." + }, + "nodeCount": { + "type": "integer", + "format": "int64", + "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1." + }, + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a node in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a node (max: 64)." + }, + "nodeEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a node.", + "readOnly": true + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a cluster." } } }, - "ServerGroupListResult": { + "ClusterListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" }, - "description": "The list of server groups" + "description": "The list of clusters" }, "nextLink": { - "description": "The link used to get the next page of operations.", + "description": "The link used to get the next page of cluster list.", "type": "string", "readOnly": true } }, - "description": "A list of server groups." + "description": "A list of clusters." }, - "ServerGroup": { - "description": "Represents a server group for create.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], + "Cluster": { + "description": "Represents a cluster for create.", + "type": "object", "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { - "$ref": "#/definitions/ServerGroupProperties", + "$ref": "#/definitions/ClusterProperties", "x-ms-client-flatten": true, - "description": "Properties of the server group create." - } - } - }, - "ServerGroupProperties": { - "description": "The properties used to create a new server group.", - "properties": { - "createMode": { - "type": "string", - "description": "The mode to create a new server group.", - "enum": [ - "Default", - "PointInTimeRestore", - "ReadReplica" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true + "description": "Properties of the cluster create." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, "x-ms-mutability": [ - "create" - ] + "read", + "create", + "update" + ], + "description": "Resource tags." }, - "administratorLogin": { + "location": { "type": "string", - "description": "The administrator's login name of servers in server group. Can only be specified when the server is being created (and is required for creation).", "x-ms-mutability": [ - "create", - "read" - ] - }, + "read", + "create" + ], + "description": "The geo-location where the resource lives" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Resource" + } + ] + }, + "ClusterProperties": { + "description": "The properties used to create a new cluster.", + "type": "object", + "properties": { "administratorLoginPassword": { "type": "string", "x-ms-secret": true, @@ -1580,153 +1965,245 @@ "create", "update" ], - "description": "The password of the administrator login." - }, - "backupRetentionDays": { - "type": "integer", - "format": "int32", - "description": "The backup retention days for server group." + "description": "The password of the administrator login. Required for creation." }, "postgresqlVersion": { - "$ref": "#/definitions/PostgreSQLVersion", - "description": "The PostgreSQL version of server group." + "type": "string", + "description": "The PostgreSQL version of cluster." }, "citusVersion": { - "$ref": "#/definitions/CitusVersion", - "description": "The Citus version of server group." + "type": "string", + "description": "The Citus version of cluster." + }, + "enableShardsOnCoordinator": { + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." + }, + "earliestRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The earliest restore point time (ISO8601 format) for the cluster.", + "readOnly": true + }, + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the cluster." + }, + "preferredPrimaryZone": { + "type": "string", + "description": "Preferred primary zone for the cluster" + }, + "coordinatorServerEdition": { + "type": "string", + "description": "The edition of the coordinator (default: GeneralPurpose). Required for creation." + }, + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of the coordinator in MB. Required for creation." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of the coordinator (max: 64). Required for creation." + }, + "coordinatorEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for the coordinator." + }, + "nodeServerEdition": { + "type": "string", + "description": "The edition of a node (default: MemoryOptimized)." + }, + "nodeCount": { + "type": "integer", + "format": "int64", + "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1." }, - "enableMx": { + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a node in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a node (max: 64)." + }, + "nodeEnablePublicIpAccess": { "type": "boolean", - "description": "If Citus MX is enabled or not for the server group.", + "description": "If public IP is requested or not for a node." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a cluster." + }, + "sourceResourceId": { + "type": "string", + "description": "The source resource id to restore from. It's required for 'PointInTimeRestore' or 'ReadReplica' operations", "x-ms-mutability": [ - "create", - "read" + "create" ] }, - "enableZfs": { - "type": "boolean", - "description": "If ZFS compression is enabled or not for the server group.", + "sourceLocation": { + "type": "string", + "description": "The source cluster location to restore from. It's required for 'PointInTimeRestore' or 'ReadReplica' operations", "x-ms-mutability": [ - "create", - "read" + "create" ] + } + } + }, + "ClusterResponse": { + "description": "Represents a cluster in response body.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ClusterResponseProperties", + "x-ms-client-flatten": true, + "description": "Properties of the cluster response body." + } + } + }, + "ClusterResponseProperties": { + "description": "Properties of the cluster response body.", + "type": "object", + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of the servers in the cluster." }, - "enableShardsOnCoordinator": { - "type": "boolean", - "description": "If shards on coordinator is enabled or not for the server group." + "provisioningState": { + "type": "string", + "description": "Provisioning state of the cluster", + "readOnly": true }, "state": { - "$ref": "#/definitions/ServerState", - "description": "A state of a server group that is visible to user." - }, - "earliestRestoreTime": { "type": "string", - "format": "date-time", - "description": "The earliest restore point time (ISO8601 format) for server group.", + "description": "A state of a cluster/server that is visible to user.", "readOnly": true }, - "resourceProviderType": { + "postgresqlVersion": { "type": "string", - "description": "The resource provider type of server group.", - "enum": [ - "Meru", - "Marlin" - ], - "x-ms-enum": { - "name": "ResourceProviderType", - "modelAsString": true - }, - "readOnly": true + "description": "The PostgreSQL version of cluster." }, - "serverRoleGroups": { - "$ref": "#/definitions/ServerRoleGroupList", - "description": "The list of server role groups." + "citusVersion": { + "type": "string", + "description": "The Citus version of cluster." }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a server group." + "description": "Maintenance window of a cluster." }, - "availabilityZone": { + "preferredPrimaryZone": { "type": "string", - "description": "Availability Zone information of the server group." + "description": "Preferred primary zone for the cluster" }, - "standbyAvailabilityZone": { + "enableShardsOnCoordinator": { + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." + }, + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the server." + }, + "coordinatorServerEdition": { "type": "string", - "description": "Standby Availability Zone information of the server group." + "description": "The edition of a coordinator server (default: GeneralPurpose)." }, - "delegatedSubnetArguments": { - "description": "The delegated subnet arguments for a server group.", - "properties": { - "subnetArmResourceId": { - "type": "string", - "description": "delegated subnet arm resource id." - } - } + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64)." + }, + "coordinatorEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a server." + }, + "nodeServerEdition": { + "type": "string", + "description": "The edition of a node server (default: MemoryOptimized)." + }, + "nodeCount": { + "type": "integer", + "format": "int64", + "description": "Worker node count of the cluster" + }, + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64)." }, - "privateDnsZoneArguments": { - "description": "The private dns zone arguments for a server group.", - "properties": { - "privateDnsZoneArmResourceId": { - "type": "string", - "description": "private dns zone arm resource id." - } - } + "nodeEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a server.", + "readOnly": true }, - "readReplicas": { + "serverNames": { "type": "array", - "description": "The array of read replica server groups.", + "description": "The list of server names in the cluster", "items": { - "type": "string" + "$ref": "#/definitions/ServerNameItem" }, + "x-ms-identifiers": [ + "name" + ], "readOnly": true, "uniqueItems": true }, - "sourceServerGroup": { + "sourceResourceId": { "type": "string", - "description": "The source server group id for read replica server groups.", + "description": "The resource id of source cluster for read replica clusters.", "readOnly": true }, - "sourceSubscriptionId": { - "type": "string", - "description": "The source subscription id to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, - "sourceResourceGroupName": { - "type": "string", - "description": "The source resource group name to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, - "sourceServerGroupName": { - "type": "string", - "description": "The source server group name to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, "sourceLocation": { "type": "string", - "description": "The source server group location to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] + "description": "The location of source cluster for read replica clusters.", + "readOnly": true + }, + "readReplicas": { + "type": "array", + "description": "The array of read replica clusters.", + "items": { + "type": "string" + }, + "readOnly": true, + "uniqueItems": true }, - "pointInTimeUTC": { + "earliestRestoreTime": { "type": "string", "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'", - "x-ms-mutability": [ - "create" - ] + "description": "The earliest restore point time (ISO8601 format) for the cluster.", + "readOnly": true + }, + "privateEndpointConnections": { + "description": "The private endpoint connections for a cluster.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true } } }, "MaintenanceWindow": { "type": "object", - "description": "Maintenance window of a server group.", + "description": "Maintenance window of a cluster.", "properties": { "customWindow": { "type": "string", @@ -1749,27 +2226,9 @@ } } }, - "ServerGroupConfiguration": { - "description": "Represents the configuration list of server role groups in a server group.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, - "properties": { - "$ref": "#/definitions/ServerGroupConfigurationProperties", - "description": "The properties of server group configuration.", - "x-ms-client-flatten": true - } - } - }, - "ServerGroupConfigurationProperties": { - "description": "The properties of server group configuration.", + "ConfigurationProperties": { + "description": "The properties of configuration.", + "type": "object", "properties": { "description": { "type": "string", @@ -1796,6 +2255,10 @@ "description": "Allowed values of the configuration.", "readOnly": true }, + "requiresRestart": { + "type": "boolean", + "description": "If configuration change requires restart." + }, "serverRoleGroupConfigurations": { "type": "array", "description": "The list of server role group configuration values.", @@ -1810,8 +2273,25 @@ "serverRoleGroupConfigurations" ] }, + "Configuration": { + "description": "Represents configuration details for coordinator and node.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "description": "The properties of configuration.", + "x-ms-client-flatten": true + } + } + }, "ServerRoleGroupConfiguration": { "description": "Represents server role group configuration value.", + "type": "object", "properties": { "role": { "$ref": "#/definitions/ServerRole", @@ -1837,14 +2317,15 @@ "value" ] }, - "ServerGroupConfigurationListResult": { - "description": "A list of server group configurations.", + "ClusterConfigurationListResult": { + "description": "A list of cluster configurations.", + "type": "object", "properties": { "value": { "type": "array", - "description": "The list of server group configurations.", + "description": "The list of cluster configurations.", "items": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/Configuration" } }, "nextLink": { @@ -1856,6 +2337,7 @@ }, "ServerConfigurationProperties": { "description": "The properties of a configuration.", + "type": "object", "properties": { "value": { "type": "string", @@ -1895,24 +2377,42 @@ "type": "string", "description": "Allowed values of the configuration.", "readOnly": true + }, + "requiresRestart": { + "type": "boolean", + "description": "If configuration change requires restart." } }, "required": [ "value" ] }, + "ServerConfigurationRequest": { + "description": "Represents a configuration.", + "type": "object", + "properties": { + "properties": { + "description": "Represents a configuration properties", + "type": "object", + "properties": { + "value": { + "description": "Represents the value of a configuration.", + "type": "string" + } + }, + "x-ms-client-flatten": true + } + } + }, "ServerConfiguration": { "description": "Represents a configuration.", + "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { "$ref": "#/definitions/ServerConfigurationProperties", "description": "The properties of a configuration.", @@ -1922,6 +2422,7 @@ }, "ServerConfigurationListResult": { "description": "A list of server configurations.", + "type": "object", "properties": { "value": { "type": "array", @@ -1938,16 +2439,17 @@ } }, "FirewallRuleProperties": { - "description": "The properties of a server group firewall rule.", + "description": "The properties of a cluster firewall rule.", + "type": "object", "properties": { "startIpAddress": { "type": "string", - "description": "The start IP address of the server group firewall rule. Must be IPv4 format.", + "description": "The start IP address of the cluster firewall rule. Must be IPv4 format.", "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" }, "endIpAddress": { "type": "string", - "description": "The end IP address of the server group firewall rule. Must be IPv4 format.", + "description": "The end IP address of the cluster firewall rule. Must be IPv4 format.", "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" } }, @@ -1957,17 +2459,14 @@ ] }, "FirewallRule": { - "description": "Represents a server group firewall rule.", + "description": "Represents a cluster firewall rule.", + "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { "$ref": "#/definitions/FirewallRuleProperties", "x-ms-client-flatten": true, @@ -1980,10 +2479,11 @@ }, "FirewallRuleListResult": { "description": "A list of firewall rules.", + "type": "object", "properties": { "value": { "type": "array", - "description": "The list of firewall rules in a server group.", + "description": "The list of firewall rules in a cluster.", "items": { "$ref": "#/definitions/FirewallRule" } @@ -2000,32 +2500,30 @@ "create", "update" ], - "description": "The password of the server group role." + "description": "The password of the cluster role." } }, "required": [ "password" ], - "description": "The properties of a server group role." + "description": "The properties of a cluster role.", + "type": "object" }, "Role": { + "description": "Represents a cluster role.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { "$ref": "#/definitions/RoleProperties", "x-ms-client-flatten": true, "description": "The properties of a role." } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a server group role." + } }, "RoleListResult": { "properties": { @@ -2034,13 +2532,15 @@ "items": { "$ref": "#/definitions/Role" }, - "description": "The list of roles in a server group." + "description": "The list of roles in a cluster." } }, - "description": "A list of roles." + "description": "A list of roles.", + "type": "object" }, "OperationDisplay": { "description": "Display metadata associated with the operation.", + "type": "object", "properties": { "provider": { "type": "string", @@ -2066,6 +2566,7 @@ }, "Operation": { "description": "REST API operation definition.", + "type": "object", "properties": { "name": { "type": "string", @@ -2130,6 +2631,7 @@ }, "NameAvailabilityRequest": { "description": "Request from client to check resource name availability.", + "type": "object", "properties": { "name": { "type": "string", @@ -2154,6 +2656,7 @@ }, "NameAvailability": { "description": "Represents a resource name availability.", + "type": "object", "properties": { "message": { "type": "string", @@ -2165,62 +2668,242 @@ }, "name": { "type": "string", - "description": "name of the PostgreSQL server." + "description": "name of the cluster." }, "type": { "type": "string", - "description": "type of the server" + "description": "type of the cluster" + } + } + }, + "PrivateEndpointProperty": { + "type": "object", + "description": "Property to represent resource id of the private endpoint.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the private endpoint." + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionSimpleProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionProperty": { + "description": "A private endpoint connection property", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionActionRequest": { + "description": "A private endpoint connection", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionActionRequestProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private endpoint connection." } } }, - "CloudError": { - "x-ms-external": true, - "description": "An error response from the Batch service.", + "PrivateEndpointConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionProperty" + }, + "description": "The list of private endpoint connections" + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "A list of private endpoint connections." + }, + "PrivateLinkResource": { + "description": "A private link resource", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "The error." + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private link resource." } } }, - "CloudErrorBody": { - "x-ms-external": true, - "description": "An error response from the Batch service.", + "PrivateLinkResourceProperties": { + "description": "Properties of a private link resource.", + "type": "object", "properties": { - "code": { + "groupId": { "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + "description": "The private link resource group id." }, - "message": { + "requiredMembers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource required member names." + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource zone names." + } + } + }, + "PrivateLinkResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "description": "The list of private link resources." + }, + "nextLink": { + "description": "The link used to get the next page of private link resources.", "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." + "readOnly": true + } + }, + "description": "A list of private link resources." + }, + "PrivateEndpointConnectionActionRequestProperties": { + "description": "The properties used to create a private endpoint connection", + "type": "object", + "properties": { + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionState", + "description": "Connection state of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionProperties": { + "description": "The properties in private endpoint connection", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "groupIds": { + "type": "array", + "description": "Group ids of the private endpoint connection.", + "items": { + "type": "string" + } }, - "target": { + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + }, + "provisioningState": { "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." + "description": "State of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionSimpleProperties": { + "description": "The properties in private endpoint connection", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." }, - "details": { + "groupIds": { "type": "array", - "description": "A list of additional details about the error.", + "description": "Group ids of the private endpoint connection.", "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "x-ms-identifiers": [ - "code" - ] + "type": "string" + } + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "description": "The properties in private link service connection state", + "properties": { + "actionsRequired": { + "type": "string", + "description": "The actions required for private link service connection." + }, + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "status": { + "type": "string", + "description": "The private link service connection status." + } + } + }, + "PrivateLinkServiceConnectionState": { + "type": "object", + "description": "The private link service connection state", + "properties": { + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "status": { + "type": "string", + "description": "The private link service connection status." } } } }, "parameters": { - "ServerGroupNameParameter": { - "name": "serverGroupName", + "ClusterNameParameter": { + "name": "clusterName", "in": "path", "required": true, "type": "string", - "description": "The name of the server group.", - "minLength": 1, - "maxLength": 90, + "description": "The name of the cluster.", + "pattern": "^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(?`. +``` yaml $(tag) == 'package-2022-11' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/package-2022-11-08/$(namespace) +``` +### Tag: package-2020-10-05-privatepreview + +These settings apply only when `--tag=package-2020-10-05-privatepreview` is specified on the command line. +Please also specify `--go-sdk-folder=`. + ``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-05-preview/$(namespace) -``` \ No newline at end of file +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/package-2020-10-05-privatepreview/$(namespace) +``` diff --git a/specification/postgresqlhsc/resource-manager/readme.java.md b/specification/postgresqlhsc/resource-manager/readme.java.md index 385f5789d20d..ff19df810ab9 100644 --- a/specification/postgresqlhsc/resource-manager/readme.java.md +++ b/specification/postgresqlhsc/resource-manager/readme.java.md @@ -16,18 +16,31 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-postgresqlhsc ``` yaml $(java) && $(multiapi) batch: + - tag: package-2022-11-08 - tag: package-2020-10-05-privatepreview ``` +### Tag: package-2022-11-08 and java + +These settings apply only when `--tag=package-2022-11-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2022-11'-08 && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.postgresqlhsc.v2022-11-08 + output-folder: $(azure-libraries-for-java-folder)/sdk/postgresqlhsc/mgmt-v2022-11-08 +regenerate-manager: true +generate-interface: true +``` ### Tag: package-2020-10-05-privatepreview and java These settings apply only when `--tag=package-2020-10-05-privatepreview --java` is specified on the command line. Please also specify `--azure-libraries-for-java-folder=`. -``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2020-10-05-privatepreview'-08 && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.postgresqlhsc.v2020_10_05_privatepreview - output-folder: $(azure-libraries-for-java-folder)/sdk/postgresqlhsc/mgmt-v2020_10_05_privatepreview + namespace: com.microsoft.azure.management.postgresqlhsc.v2020-10-05-privatepreview + output-folder: $(azure-libraries-for-java-folder)/sdk/postgresqlhsc/mgmt-v2020-10-05-privatepreview regenerate-manager: true generate-interface: true -``` \ No newline at end of file +``` diff --git a/specification/postgresqlhsc/resource-manager/readme.md b/specification/postgresqlhsc/resource-manager/readme.md index 58062a0e5781..9918639296be 100644 --- a/specification/postgresqlhsc/resource-manager/readme.md +++ b/specification/postgresqlhsc/resource-manager/readme.md @@ -2,7 +2,7 @@ > see https://aka.ms/autorest -This is the AutoRest configuration file for PostgreSQL Hyperscale. +This is the AutoRest configuration file for Cosmos DB for PostgreSQL. ## Getting Started @@ -22,32 +22,50 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor ### Basic Information -These are the global settings for the PostgreSQL Hyperscale API. +These are the global settings for the Cosmos DB for PostgreSQL API. ``` yaml -title: Microsoft PostgreSQL Hyperscale +title: Cosmos DB for PostgreSQL openapi-type: arm -tag: package-2022-11 +tag: package-2022-11-08 ``` -### Tag: package-2022-11 +### Tag: package-2022-11-08 -These settings apply only when `--tag=package-2022-11` is specified on the command line. +These settings apply only when `--tag=package-2022-11-08` is specified on the command line. -```yaml $(tag) == 'package-2022-11' +```yaml $(tag) == 'package-2022-11-08' input-file: - Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json ``` + ### Tag: package-2020-10-05-privatepreview These settings apply only when `--tag=package-2020-10-05-privatepreview` is specified on the command line. -``` yaml $(tag) == 'package-2020-10-05-privatepreview' +```yaml $(tag) == 'package-2020-10-05-privatepreview' input-file: - Microsoft.DBforPostgreSQL/preview/2020-10-05-privatepreview/postgresqlhsc.json ``` +## Suppression +``` yaml +directive: +- suppress: PathResourceProviderNamePascalCase + from: postgresqlhsc.json + reason: Service provider name Microsoft.DBforPostgreSQL directly violates this rule. +- suppress: ConsistentPatchProperties + from: postgresqlhsc.json + reason: we only support admin password inside request body and don't return it +- suppress: CreateOperationAsyncResponseValidation + from: postgresqlhsc.json + reason: Our control plane returns 202 for most of the put async operation other than cluster creation. +- suppress: LongRunningResponseStatusCode + from: postgresqlhsc.json + reason: Our control plane returns 202 for most of the put async operation other than cluster creation. +``` + --- # Code Generation diff --git a/specification/postgresqlhsc/resource-manager/readme.python.md b/specification/postgresqlhsc/resource-manager/readme.python.md index 7d7ec37c547d..e3fe2a275e4a 100644 --- a/specification/postgresqlhsc/resource-manager/readme.python.md +++ b/specification/postgresqlhsc/resource-manager/readme.python.md @@ -2,9 +2,6 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. - -These settings apply only when `--track2` is specified on the command line. ``` yaml $(python) azure-arm: true @@ -14,22 +11,7 @@ package-version: 1.0.0b1 no-namespace-folders: true ``` -### Python multi-api - -Generate all API versions currently shipped for this package - -```yaml $(python) -clear-output-folder: true -batch: - - tag: package-2020-10-05-privatepreview -``` - -### Tag: package-2020-10-05-privatepreview and python - -These settings apply only when `--tag=package-2020-10-05-privatepreview --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(python) +``` yaml $(python) namespace: azure.mgmt.rdbms.postgresqlhsc output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresqlhsc ``` diff --git a/specification/postgresqlhsc/resource-manager/readme.ruby.md b/specification/postgresqlhsc/resource-manager/readme.ruby.md index e2b0df6e4488..bb7aee55736a 100644 --- a/specification/postgresqlhsc/resource-manager/readme.ruby.md +++ b/specification/postgresqlhsc/resource-manager/readme.ruby.md @@ -4,16 +4,16 @@ These settings apply only when `--ruby` is specified on the command line. ```yaml package-name: azure_mgmt_postgresqlhsc -package-version: 2020-10-05-privatepreview +package-version: package-2022-11-08 azure-arm: true ``` -### Tag: package-2020-10-05-privatepreview and ruby +### Tag: package-2022-11-08 and ruby -These settings apply only when `--tag=package-2020-10-05-privatepreview --ruby` is specified on the command line. +These settings apply only when `--tag=package-2022-11-08 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2020-10-05-privatepreview' && $(ruby) -namespace: "Azure::PostgreSQLHSC::Mgmt::V2020_10_05_privatepreview" +```yaml $(tag) == 'package-2022-11-08' && $(ruby) +namespace: "Azure::PostgreSQLHSC::Mgmt::Vpackage-2022-11-08" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_postgresqlhsc/lib ``` \ No newline at end of file From b0bf06cd6d91e292e079d40ca47f88e17c2f9d0e Mon Sep 17 00:00:00 2001 From: mozansaka Date: Tue, 10 Jan 2023 14:26:41 +0300 Subject: [PATCH 06/13] Fix credscan password (#22127) Co-authored-by: Ozan Saka --- .../stable/2022-11-08/examples/ClusterCreate.json | 2 +- .../stable/2022-11-08/examples/ClusterUpdate.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json index 9f9d3103350c..eda0337d4797 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -7,7 +7,7 @@ "parameters": { "location": "westus", "properties": { - "administratorLoginPassword": "p@ssword1234", + "administratorLoginPassword": "password", "postgresqlVersion": "15", "citusVersion": "11.1", "enableHa": true, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json index 32bdff17f911..dd74ff2d8c72 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -6,7 +6,7 @@ "api-version": "2022-11-08", "parameters": { "properties": { - "administratorLoginPassword": "newP@ssword1", + "administratorLoginPassword": "password", "coordinatorVCores": 16, "nodeCount": 4, "nodeVCores": 16 From 48616bab53408d1b19e4c2c348116ce7984ac77e Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 19 Jan 2023 14:12:46 +0300 Subject: [PATCH 07/13] Add required parameters (#22244) --- .../stable/2022-11-08/postgresqlhsc.json | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 5014e5d16f30..164a5da9561f 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -1470,6 +1470,10 @@ "PrivateEndpointConnections" ], "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "Approve or reject a private endpoint connection with a given name": { "$ref": "./examples/PrivateEndpointConnectionCreateOrUpdate.json" @@ -2018,7 +2022,7 @@ "nodeCount": { "type": "integer", "format": "int64", - "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1." + "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1. Required for creation." }, "nodeStorageQuotaInMb": { "type": "integer", @@ -2400,9 +2404,15 @@ "type": "string" } }, + "required": [ + "value" + ], "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ] }, "ServerConfiguration": { "description": "Represents a configuration.", @@ -2523,7 +2533,10 @@ "x-ms-client-flatten": true, "description": "The properties of a role." } - } + }, + "required": [ + "properties" + ] }, "RoleListResult": { "properties": { @@ -2602,7 +2615,7 @@ "type": "object" }, "readOnly": true, - "x-ms-client-flatten": false, + "x-ms-client-flatten": true, "description": "Additional descriptions for the operation." } } @@ -2727,7 +2740,10 @@ "x-ms-client-flatten": true, "description": "Properties of the private endpoint connection." } - } + }, + "required": [ + "properties" + ] }, "PrivateEndpointConnectionListResult": { "type": "object", @@ -2813,7 +2829,10 @@ "$ref": "#/definitions/PrivateLinkServiceConnectionState", "description": "Connection state of the private endpoint connection." } - } + }, + "required": [ + "privateLinkServiceConnectionState" + ] }, "PrivateEndpointConnectionProperties": { "description": "The properties in private endpoint connection", From e455a41b6c519ea1f68b8f9d32e12e198a3626cf Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 26 Jan 2023 16:48:13 +0300 Subject: [PATCH 08/13] Add 200 resp. code to put&patch, change boolean to enum (#22290) * Add 200 resp. code to put&patch, change boolean to enum * Update 200 responses * Update 200 response schemas, enum casing * Update configuration put requests * Remove role no-op case * fix private endp con list error, remove 200 code from role example * Add coord/node config list endpoints * fix sdk errors * add 200 resp for configuration put requests * Update readme --- .../examples/CheckNameAvailability.json | 2 +- .../2022-11-08/examples/ClusterAddNode.json | 67 ++- .../2022-11-08/examples/ClusterCreate.json | 81 +++- .../examples/ClusterCreatePITR.json | 64 ++- .../examples/ClusterCreateReadReplica.json | 64 ++- .../2022-11-08/examples/ClusterGet.json | 8 +- .../2022-11-08/examples/ClusterList.json | 16 +- .../examples/ClusterListByResourceGroup.json | 16 +- .../examples/ClusterScaleCompute.json | 72 ++- .../examples/ClusterScaleStorage.json | 72 ++- .../2022-11-08/examples/ClusterUpdate.json | 84 +++- .../ClusterUpdateMaintenanceWindow.json | 68 ++- .../ConfigurationUpdateCoordinator.json | 18 + .../examples/ConfigurationUpdateNode.json | 18 + .../examples/FirewallRuleCreate.json | 19 + ...ivateEndpointConnectionCreateOrUpdate.json | 18 + .../stable/2022-11-08/examples/ServerGet.json | 4 +- .../examples/ServerListByCluster.json | 12 +- .../stable/2022-11-08/postgresqlhsc.json | 446 ++++++++++-------- .../postgresqlhsc/resource-manager/readme.md | 3 + 20 files changed, 889 insertions(+), 263 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json index f8e192c06c6e..8dd85be507c6 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json @@ -10,7 +10,7 @@ "responses": { "200": { "body": { - "nameAvailable": true, + "nameAvailable": "true", "message": "", "name": "name1", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json index 07e2d133d87e..f3686fbe3a24 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json @@ -11,6 +11,65 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "preferredPrimaryZone": "1", + "nodeCount": 2, + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w1", + "fullyQualifiedDomainName": "w1.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "enableHa": "true", + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -41,15 +100,15 @@ }, "preferredPrimaryZone": "1", "nodeCount": 2, - "enableShardsOnCoordinator": false, + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg-c", @@ -66,7 +125,7 @@ ], "sourceResourceId": null, "sourceLocation": null, - "enableHa": true, + "enableHa": "true", "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json index eda0337d4797..5bb277d8d27d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -10,23 +10,88 @@ "administratorLoginPassword": "password", "postgresqlVersion": "15", "citusVersion": "11.1", - "enableHa": true, - "enableShardsOnCoordinator": false, + "enableHa": "true", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "preferredPrimaryZone": "1" }, "tags": {} } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": {}, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 3, + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w2", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w3", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "enableHa": "true", + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + }, "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -60,15 +125,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 3, - "enableShardsOnCoordinator": false, + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg-c", @@ -89,7 +154,7 @@ ], "sourceResourceId": null, "sourceLocation": null, - "enableHa": true, + "enableHa": "true", "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json index f5a62c9cbba4..bdccfb6650f1 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json @@ -13,6 +13,62 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "enableHa": "true", + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -44,15 +100,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 1, - "enableShardsOnCoordinator": false, + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg-c", @@ -65,7 +121,7 @@ ], "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", "sourceLocation": "westus", - "enableHa": true, + "enableHa": "true", "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json index f5a62c9cbba4..bdccfb6650f1 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json @@ -13,6 +13,62 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "enableHa": "true", + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -44,15 +100,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 1, - "enableShardsOnCoordinator": false, + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg-c", @@ -65,7 +121,7 @@ ], "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", "sourceLocation": "westus", - "enableHa": true, + "enableHa": "true", "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json index db6ff92744b3..a358bc1406cd 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json @@ -38,17 +38,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json index 0e8c3479ff09..7555398a1ed6 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json @@ -37,17 +37,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", @@ -101,17 +101,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": true, - "enableShardsOnCoordinator": false, + "enableHa": "true", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 1, "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg2-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json index 5c595cff905f..5f0f59bbf05c 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json @@ -38,17 +38,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", @@ -106,17 +106,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": true, - "enableShardsOnCoordinator": false, + "enableHa": "true", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg2-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json index 3a7a3d5988ed..945def2c71de 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json @@ -11,6 +11,70 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": "false", + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -41,17 +105,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json index fbe1db8dda33..faf9b0198b39 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json @@ -11,6 +11,70 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": "false", + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -41,17 +105,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json index dd74ff2d8c72..a067960a44bd 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -14,6 +14,82 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": "false", + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 4, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w3", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -50,17 +126,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 4, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json index de75568d4a8c..c58041fcaf49 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json @@ -16,6 +16,66 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": "false", + "enableShardsOnCoordinator": "false", + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": "true", + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": "false", + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", @@ -46,17 +106,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": false, - "enableShardsOnCoordinator": false, + "enableHa": "false", + "enableShardsOnCoordinator": "false", "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": true, + "coordinatorEnablePublicIpAccess": "true", "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": false, + "nodeEnablePublicIpAccess": "false", "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json index c6398a388ad7..6a61ac0ba0eb 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json @@ -12,6 +12,24 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/coordinator", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on" + } + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json index 734fbd248ed8..0f5739497d9a 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json @@ -12,6 +12,24 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/node", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "off" + } + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json index 71ae524fe5c1..ce9b77225c5e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -13,6 +13,25 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json index e7100d2351e1..65783a2c081d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json @@ -15,6 +15,24 @@ } }, "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json index 82ebb1d2c128..ff7af99e393a 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -29,8 +29,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": true, - "enablePublicIp": true, + "enableHa": "true", + "enablePublicIp": "true", "state": "Ready", "haState": "Healthy" } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json index 50c3dbc6aac2..56da286a649b 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json @@ -30,8 +30,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": true, - "enablePublicIp": true, + "enableHa": "true", + "enablePublicIp": "true", "state": "Ready", "haState": "Healthy" } @@ -57,8 +57,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": false, - "enablePublicIp": false, + "enableHa": "false", + "enablePublicIp": "false", "state": "Ready", "haState": "NotEnabled" } @@ -84,8 +84,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": false, - "enablePublicIp": false, + "enableHa": "false", + "enablePublicIp": "false", "state": "Ready", "haState": "NotEnabled" } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 164a5da9561f..5c825a2fbf92 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -161,6 +161,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterResponse" + } + }, "201": { "description": "Created", "headers": { @@ -326,6 +332,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterResponse" + } + }, "202": { "description": "Accepted", "headers": { @@ -577,7 +589,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}/coordinator": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/coordinatorConfigurations/{configurationName}": { "put": { "description": "Updates configuration of coordinator in a cluster", "tags": [ @@ -620,6 +632,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, "202": { "description": "Accepted", "schema": { @@ -643,7 +661,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}/node": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/nodeConfigurations/{configurationName}": { "put": { "description": "Updates configuration of nodes in a cluster", "tags": [ @@ -686,6 +704,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, "202": { "description": "Accepted", "schema": { @@ -752,6 +776,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, "202": { "description": "Accepted", "schema": { @@ -1453,7 +1483,7 @@ "200": { "description": "Successfully retrieved a specified private endpoint connection.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProperty" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" } }, "default": { @@ -1506,10 +1536,16 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProperty" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" }, "headers": { "location": { @@ -1662,7 +1698,7 @@ "200": { "description": "Successfully retrieved private link resources.", "schema": { - "$ref": "#/definitions/PrivateLinkResource" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkResource" } }, "default": { @@ -1707,13 +1743,29 @@ "description": "The vCores count of a server (max: 64)." }, "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the server." + "type": "string", + "description": "If high availability is enabled or not for the server.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableHaEnum", + "modelAsString": true + } }, "enablePublicIp": { - "type": "boolean", + "type": "string", "description": "If public IP is requested or not for a server.", - "readOnly": true + "readOnly": true, + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enablePublicIpEnum", + "modelAsString": true + } } } }, @@ -1844,12 +1896,28 @@ "description": "The Citus version of the cluster." }, "enableShardsOnCoordinator": { - "type": "boolean", - "description": "If shards on coordinator is enabled or not for the cluster." + "type": "string", + "description": "If shards on coordinator is enabled or not for the cluster.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableShardsOnCoordinatorEnum", + "modelAsString": true + } }, "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the cluster." + "type": "string", + "description": "If high availability is enabled or not for the cluster.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableHaEnum", + "modelAsString": true + } }, "preferredPrimaryZone": { "type": "string", @@ -1870,8 +1938,16 @@ "description": "The vCores count of the coordinator (max: 64)." }, "coordinatorEnablePublicIpAccess": { - "type": "boolean", - "description": "If public IP is requested or not for the coordinator." + "type": "string", + "description": "If public IP is requested or not for the coordinator.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "coordinatorEnablePublicIpEnum", + "modelAsString": true + } }, "nodeServerEdition": { "type": "string", @@ -1893,9 +1969,17 @@ "description": "The vCores count of a node (max: 64)." }, "nodeEnablePublicIpAccess": { - "type": "boolean", + "type": "string", "description": "If public IP is requested or not for a node.", - "readOnly": true + "readOnly": true, + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "nodeEnablePublicIpEnum", + "modelAsString": true + } }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", @@ -1929,31 +2013,11 @@ "$ref": "#/definitions/ClusterProperties", "x-ms-client-flatten": true, "description": "Properties of the cluster create." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ], - "description": "The geo-location where the resource lives" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" } ] }, @@ -1980,8 +2044,16 @@ "description": "The Citus version of cluster." }, "enableShardsOnCoordinator": { - "type": "boolean", - "description": "If shards on coordinator is enabled or not for the cluster." + "type": "string", + "description": "If shards on coordinator is enabled or not for the cluster.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableShardsOnCoordinatorEnum", + "modelAsString": true + } }, "earliestRestoreTime": { "type": "string", @@ -1990,8 +2062,16 @@ "readOnly": true }, "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the cluster." + "type": "string", + "description": "If high availability is enabled or not for the cluster.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableHaEnum", + "modelAsString": true + } }, "preferredPrimaryZone": { "type": "string", @@ -2012,8 +2092,16 @@ "description": "The vCores count of the coordinator (max: 64). Required for creation." }, "coordinatorEnablePublicIpAccess": { - "type": "boolean", - "description": "If public IP is requested or not for the coordinator." + "type": "string", + "description": "If public IP is requested or not for the coordinator.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "coordinatorEnablePublicIpEnum", + "modelAsString": true + } }, "nodeServerEdition": { "type": "string", @@ -2035,8 +2123,16 @@ "description": "The vCores count of a node (max: 64)." }, "nodeEnablePublicIpAccess": { - "type": "boolean", - "description": "If public IP is requested or not for a node." + "type": "string", + "description": "If public IP is requested or not for a node.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "nodeEnablePublicIpEnum", + "modelAsString": true + } }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", @@ -2109,12 +2205,28 @@ "description": "Preferred primary zone for the cluster" }, "enableShardsOnCoordinator": { - "type": "boolean", - "description": "If shards on coordinator is enabled or not for the cluster." + "type": "string", + "description": "If shards on coordinator is enabled or not for the cluster.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableShardsOnCoordinatorEnum", + "modelAsString": true + } }, "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the server." + "type": "string", + "description": "If high availability is enabled or not for the server.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "enableHaEnum", + "modelAsString": true + } }, "coordinatorServerEdition": { "type": "string", @@ -2131,8 +2243,16 @@ "description": "The vCores count of a server (max: 64)." }, "coordinatorEnablePublicIpAccess": { - "type": "boolean", - "description": "If public IP is requested or not for a server." + "type": "string", + "description": "If public IP is requested or not for a server.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "coordinatorEnablePublicIpEnum", + "modelAsString": true + } }, "nodeServerEdition": { "type": "string", @@ -2154,9 +2274,17 @@ "description": "The vCores count of a server (max: 64)." }, "nodeEnablePublicIpAccess": { - "type": "boolean", + "type": "string", "description": "If public IP is requested or not for a server.", - "readOnly": true + "readOnly": true, + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "nodeEnablePublicIpEnum", + "modelAsString": true + } }, "serverNames": { "type": "array", @@ -2199,7 +2327,7 @@ "description": "The private endpoint connections for a cluster.", "type": "array", "items": { - "$ref": "#/definitions/PrivateEndpointConnection" + "$ref": "#/definitions/SimplePrivateEndpointConnection" }, "readOnly": true } @@ -2260,8 +2388,16 @@ "readOnly": true }, "requiresRestart": { - "type": "boolean", - "description": "If configuration change requires restart." + "type": "string", + "description": "If configuration change requires restart.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "requiresRestartEnum", + "modelAsString": true + } }, "serverRoleGroupConfigurations": { "type": "array", @@ -2383,8 +2519,16 @@ "readOnly": true }, "requiresRestart": { - "type": "boolean", - "description": "If configuration change requires restart." + "type": "string", + "description": "If configuration change requires restart.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "requiresRestartEnum", + "modelAsString": true + } } }, "required": [ @@ -2593,7 +2737,15 @@ }, "isDataAction": { "description": "Indicates whether the operation is a data action", - "type": "boolean" + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "isDataActionEnum", + "modelAsString": true + } }, "origin": { "type": "string", @@ -2676,8 +2828,16 @@ "description": "Error Message." }, "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available." + "type": "string", + "description": "Indicates whether the resource name is available.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "nameAvailableEnum", + "modelAsString": true + } }, "name": { "type": "string", @@ -2699,7 +2859,7 @@ } } }, - "PrivateEndpointConnection": { + "SimplePrivateEndpointConnection": { "description": "A private endpoint connection", "type": "object", "allOf": [ @@ -2715,21 +2875,18 @@ } } }, - "PrivateEndpointConnectionProperty": { - "description": "A private endpoint connection property", + "PrivateEndpointConnectionListResult": { "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" - } - ], "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "x-ms-client-flatten": true, - "description": "Properties of the private endpoint connection." + "value": { + "type": "array", + "description": "Array of private endpoint connections.", + "items": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } } - } + }, + "description": "List of private endpoint connections associated with the specified resource." }, "PrivateEndpointConnectionActionRequest": { "description": "A private endpoint connection", @@ -2745,88 +2902,12 @@ "properties" ] }, - "PrivateEndpointConnectionListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateEndpointConnectionProperty" - }, - "description": "The list of private endpoint connections" - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - }, - "description": "A list of private endpoint connections." - }, - "PrivateLinkResource": { - "description": "A private link resource", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties", - "x-ms-client-flatten": true, - "description": "Properties of the private link resource." - } - } - }, - "PrivateLinkResourceProperties": { - "description": "Properties of a private link resource.", - "type": "object", - "properties": { - "groupId": { - "type": "string", - "description": "The private link resource group id." - }, - "requiredMembers": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The private link resource required member names." - }, - "requiredZoneNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The private link resource zone names." - } - } - }, - "PrivateLinkResourceListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkResource" - }, - "description": "The list of private link resources." - }, - "nextLink": { - "description": "The link used to get the next page of private link resources.", - "type": "string", - "readOnly": true - } - }, - "description": "A list of private link resources." - }, "PrivateEndpointConnectionActionRequestProperties": { "description": "The properties used to create a private endpoint connection", "type": "object", "properties": { "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionState", + "$ref": "#/definitions/PrivateLinkServiceConnectionRequestState", "description": "Connection state of the private endpoint connection." } }, @@ -2834,31 +2915,6 @@ "privateLinkServiceConnectionState" ] }, - "PrivateEndpointConnectionProperties": { - "description": "The properties in private endpoint connection", - "type": "object", - "properties": { - "privateEndpoint": { - "$ref": "#/definitions/PrivateEndpointProperty", - "description": "Private endpoint which the connection belongs to." - }, - "groupIds": { - "type": "array", - "description": "Group ids of the private endpoint connection.", - "items": { - "type": "string" - } - }, - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", - "description": "Connection state of the private endpoint connection." - }, - "provisioningState": { - "type": "string", - "description": "State of the private endpoint connection." - } - } - }, "PrivateEndpointConnectionSimpleProperties": { "description": "The properties in private endpoint connection", "type": "object", @@ -2875,42 +2931,36 @@ } }, "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", - "description": "Connection state of the private endpoint connection." + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkServiceConnectionState" } } }, - "PrivateLinkServiceConnectionStateProperty": { + "PrivateLinkServiceConnectionRequestState": { "type": "object", - "description": "The properties in private link service connection state", + "description": "The private link service connection state", "properties": { - "actionsRequired": { - "type": "string", - "description": "The actions required for private link service connection." - }, "description": { "type": "string", - "description": "The private link service connection description." + "description": "The reason for approval/rejection of the connection." }, "status": { "type": "string", - "description": "The private link service connection status." + "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." } } }, - "PrivateLinkServiceConnectionState": { + "PrivateLinkResourceListResult": { "type": "object", - "description": "The private link service connection state", "properties": { - "description": { - "type": "string", - "description": "The private link service connection description." - }, - "status": { - "type": "string", - "description": "The private link service connection status." + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkResource" + } } - } + }, + "description": "A list of private link resources." } }, "parameters": { @@ -2970,7 +3020,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the private endpoint connection.", + "description": "The name of the private endpoint connection associated with the Azure resource.", "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" }, diff --git a/specification/postgresqlhsc/resource-manager/readme.md b/specification/postgresqlhsc/resource-manager/readme.md index 9918639296be..0fb723188cb3 100644 --- a/specification/postgresqlhsc/resource-manager/readme.md +++ b/specification/postgresqlhsc/resource-manager/readme.md @@ -64,6 +64,9 @@ directive: - suppress: LongRunningResponseStatusCode from: postgresqlhsc.json reason: Our control plane returns 202 for most of the put async operation other than cluster creation. +- suppress: NestedResourcesMustHaveListOperation + from: postgresqlhsc.json + reason: We already have get/list endpoints for Configuration that covers both cases, node configurations and coordinator configurations. ``` --- From 4517b0117f05a98411d68a9ce929bd960821ca0d Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Fri, 27 Jan 2023 16:54:56 +0300 Subject: [PATCH 09/13] Fix arm feedbacks (#22334) * Fix arm feedbacks * Add pointInTimeUTC * Update passwords and readme file --- .../examples/CheckNameAvailability.json | 2 +- .../2022-11-08/examples/ClusterAddNode.json | 17 +- .../2022-11-08/examples/ClusterCreate.json | 27 +- .../examples/ClusterCreatePITR.json | 21 +- .../examples/ClusterCreateReadReplica.json | 17 +- .../2022-11-08/examples/ClusterDelete.json | 1 + .../2022-11-08/examples/ClusterGet.json | 9 +- .../2022-11-08/examples/ClusterList.json | 18 +- .../examples/ClusterListByResourceGroup.json | 18 +- .../examples/ClusterScaleCompute.json | 17 +- .../examples/ClusterScaleStorage.json | 17 +- .../2022-11-08/examples/ClusterUpdate.json | 18 +- .../ClusterUpdateMaintenanceWindow.json | 17 +- .../2022-11-08/examples/RoleCreate.json | 22 +- .../stable/2022-11-08/examples/ServerGet.json | 4 +- .../examples/ServerListByCluster.json | 12 +- .../stable/2022-11-08/postgresqlhsc.json | 245 +++++------------- .../postgresqlhsc/resource-manager/readme.md | 3 + 18 files changed, 200 insertions(+), 285 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json index 8dd85be507c6..f8e192c06c6e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json @@ -10,7 +10,7 @@ "responses": { "200": { "body": { - "nameAvailable": "true", + "nameAvailable": true, "message": "", "name": "name1", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json index f3686fbe3a24..6c8ee3fc39b5 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json @@ -37,15 +37,15 @@ }, "preferredPrimaryZone": "1", "nodeCount": 2, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -62,7 +62,8 @@ ], "sourceResourceId": null, "sourceLocation": null, - "enableHa": "true", + "pointInTimeUTC": null, + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] @@ -100,15 +101,15 @@ }, "preferredPrimaryZone": "1", "nodeCount": 2, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -125,7 +126,7 @@ ], "sourceResourceId": null, "sourceLocation": null, - "enableHa": "true", + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json index 5bb277d8d27d..f45b57722c4f 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -7,20 +7,20 @@ "parameters": { "location": "westus", "properties": { - "administratorLoginPassword": "password", + "administratorLoginPassword": "p@ssword1234", "postgresqlVersion": "15", "citusVersion": "11.1", - "enableHa": "true", - "enableShardsOnCoordinator": "false", + "enableHa": true, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "preferredPrimaryZone": "1" }, "tags": {} @@ -56,15 +56,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 3, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -85,7 +85,8 @@ ], "sourceResourceId": null, "sourceLocation": null, - "enableHa": "true", + "pointInTimeUTC": null, + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] @@ -125,15 +126,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 3, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -154,7 +155,7 @@ ], "sourceResourceId": null, "sourceLocation": null, - "enableHa": "true", + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json index bdccfb6650f1..6ab896e68aeb 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json @@ -8,7 +8,7 @@ "location": "westus", "properties": { "sourceLocation": "westus", - "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster" + "pointInTimeUTC": "2017-12-14T00:00:37.467Z" } } }, @@ -40,15 +40,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 1, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -59,9 +59,10 @@ "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" } ], - "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "pointInTimeUTC": "2017-12-14T00:00:37.467Z", + "sourceResourceId": null, "sourceLocation": "westus", - "enableHa": "true", + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] @@ -100,15 +101,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 1, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -121,7 +122,7 @@ ], "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", "sourceLocation": "westus", - "enableHa": "true", + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json index bdccfb6650f1..1f3cda1cea0c 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json @@ -40,15 +40,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 1, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -61,7 +61,8 @@ ], "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", "sourceLocation": "westus", - "enableHa": "true", + "pointInTimeUTC": null, + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] @@ -100,15 +101,15 @@ "administratorLogin": "citus", "preferredPrimaryZone": "1", "nodeCount": 1, - "enableShardsOnCoordinator": "false", + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg-c", @@ -121,7 +122,7 @@ ], "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", "sourceLocation": "westus", - "enableHa": "true", + "enableHa": true, "readReplicas": [], "earliestRestoreTime": null, "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json index b49831b5c006..16c286a8ed0e 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json @@ -6,6 +6,7 @@ "api-version": "2022-11-08" }, "responses": { + "200": {}, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json index a358bc1406cd..03b63a867f73 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json @@ -38,17 +38,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -65,6 +65,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json index 7555398a1ed6..afff56bd3d06 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json @@ -37,17 +37,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -64,6 +64,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" @@ -101,17 +102,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "true", - "enableShardsOnCoordinator": "false", + "enableHa": true, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 1, "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg2-c", @@ -124,6 +125,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [], "earliestRestoreTime": "2020-09-15T00:01:32.317Z", "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json index 5f0f59bbf05c..d7f82a5c8a66 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json @@ -38,17 +38,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -69,6 +69,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" @@ -106,17 +107,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "true", - "enableShardsOnCoordinator": "false", + "enableHa": true, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 524288, "coordinatorVCores": 4, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 524288, "nodeVCores": 8, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg2-c", @@ -133,6 +134,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [], "earliestRestoreTime": "2020-09-15T00:01:32.317Z", "privateEndpointConnections": [] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json index 945def2c71de..08f864cce8c4 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json @@ -37,17 +37,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -68,6 +68,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [], "earliestRestoreTime": "2020-09-14T00:00:37.467Z", "privateEndpointConnections": [] @@ -105,17 +106,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json index faf9b0198b39..fb466824bb0d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json @@ -37,17 +37,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -68,6 +68,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [], "earliestRestoreTime": "2020-09-14T00:00:37.467Z", "privateEndpointConnections": [] @@ -105,17 +106,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 3, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json index a067960a44bd..a52514dd01b5 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -6,7 +6,7 @@ "api-version": "2022-11-08", "parameters": { "properties": { - "administratorLoginPassword": "password", + "administratorLoginPassword": "newP@ssword1", "coordinatorVCores": 16, "nodeCount": 4, "nodeVCores": 16 @@ -46,17 +46,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 4, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -126,17 +126,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 4, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json index c58041fcaf49..6106915afb52 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json @@ -42,17 +42,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", @@ -69,6 +69,7 @@ ], "sourceResourceId": null, "sourceLocation": null, + "pointInTimeUTC": null, "readReplicas": [], "earliestRestoreTime": "2020-09-14T00:00:37.467Z", "privateEndpointConnections": [] @@ -106,17 +107,17 @@ }, "administratorLogin": "citus", "preferredPrimaryZone": "1", - "enableHa": "false", - "enableShardsOnCoordinator": "false", + "enableHa": false, + "enableShardsOnCoordinator": false, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 2097152, "coordinatorVCores": 16, - "coordinatorEnablePublicIpAccess": "true", + "coordinatorEnablePublicIpAccess": true, "nodeServerEdition": "MemoryOptimized", "nodeCount": 2, "nodeStorageQuotaInMb": 2097152, "nodeVCores": 16, - "nodeEnablePublicIpAccess": "false", + "nodeEnablePublicIpAccess": false, "serverNames": [ { "name": "hsctestsg1-c", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json index 4af3370772fb..a173ebc2cefc 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -7,11 +7,31 @@ "api-version": "2022-11-08", "parameters": { "properties": { - "password": "secret" + "password": "p@ssword1234" } } }, "responses": { + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {} + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json index ff7af99e393a..82ebb1d2c128 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -29,8 +29,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": "true", - "enablePublicIp": "true", + "enableHa": true, + "enablePublicIp": true, "state": "Ready", "haState": "Healthy" } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json index 56da286a649b..50c3dbc6aac2 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json @@ -30,8 +30,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": "true", - "enablePublicIp": "true", + "enableHa": true, + "enablePublicIp": true, "state": "Ready", "haState": "Healthy" } @@ -57,8 +57,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": "false", - "enablePublicIp": "false", + "enableHa": false, + "enablePublicIp": false, "state": "Ready", "haState": "NotEnabled" } @@ -84,8 +84,8 @@ "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, "vCores": 4, - "enableHa": "false", - "enablePublicIp": "false", + "enableHa": false, + "enablePublicIp": false, "state": "Ready", "haState": "NotEnabled" } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 5c825a2fbf92..7d106f1d7e30 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -259,6 +259,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "202": { "description": "Accepted", "headers": { @@ -595,7 +598,7 @@ "tags": [ "Configurations" ], - "operationId": "Configurations_UpdateCoordinator", + "operationId": "Configurations_CreateOrUpdateCoordinator", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -667,7 +670,7 @@ "tags": [ "Configurations" ], - "operationId": "Configurations_UpdateNode", + "operationId": "Configurations_CreateOrUpdateNode", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -991,6 +994,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Role" + } + }, "202": { "description": "Accepted", "schema": { @@ -1743,29 +1752,13 @@ "description": "The vCores count of a server (max: 64)." }, "enableHa": { - "type": "string", - "description": "If high availability is enabled or not for the server.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableHaEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If high availability is enabled or not for the server." }, "enablePublicIp": { - "type": "string", + "type": "boolean", "description": "If public IP is requested or not for a server.", - "readOnly": true, - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enablePublicIpEnum", - "modelAsString": true - } + "readOnly": true } } }, @@ -1896,28 +1889,12 @@ "description": "The Citus version of the cluster." }, "enableShardsOnCoordinator": { - "type": "string", - "description": "If shards on coordinator is enabled or not for the cluster.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableShardsOnCoordinatorEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." }, "enableHa": { - "type": "string", - "description": "If high availability is enabled or not for the cluster.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableHaEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If high availability is enabled or not for the cluster." }, "preferredPrimaryZone": { "type": "string", @@ -1938,16 +1915,8 @@ "description": "The vCores count of the coordinator (max: 64)." }, "coordinatorEnablePublicIpAccess": { - "type": "string", - "description": "If public IP is requested or not for the coordinator.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "coordinatorEnablePublicIpEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If public IP is requested or not for the coordinator." }, "nodeServerEdition": { "type": "string", @@ -1969,17 +1938,9 @@ "description": "The vCores count of a node (max: 64)." }, "nodeEnablePublicIpAccess": { - "type": "string", + "type": "boolean", "description": "If public IP is requested or not for a node.", - "readOnly": true, - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "nodeEnablePublicIpEnum", - "modelAsString": true - } + "readOnly": true }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", @@ -2044,16 +2005,8 @@ "description": "The Citus version of cluster." }, "enableShardsOnCoordinator": { - "type": "string", - "description": "If shards on coordinator is enabled or not for the cluster.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableShardsOnCoordinatorEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." }, "earliestRestoreTime": { "type": "string", @@ -2062,16 +2015,8 @@ "readOnly": true }, "enableHa": { - "type": "string", - "description": "If high availability is enabled or not for the cluster.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableHaEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If high availability is enabled or not for the cluster." }, "preferredPrimaryZone": { "type": "string", @@ -2092,16 +2037,8 @@ "description": "The vCores count of the coordinator (max: 64). Required for creation." }, "coordinatorEnablePublicIpAccess": { - "type": "string", - "description": "If public IP is requested or not for the coordinator.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "coordinatorEnablePublicIpEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If public IP is requested or not for the coordinator." }, "nodeServerEdition": { "type": "string", @@ -2123,16 +2060,8 @@ "description": "The vCores count of a node (max: 64)." }, "nodeEnablePublicIpAccess": { - "type": "string", - "description": "If public IP is requested or not for a node.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "nodeEnablePublicIpEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If public IP is requested or not for a node." }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", @@ -2140,14 +2069,22 @@ }, "sourceResourceId": { "type": "string", - "description": "The source resource id to restore from. It's required for 'PointInTimeRestore' or 'ReadReplica' operations", + "description": "The source resource id to restore from. It's required to create 'ReadReplica'", "x-ms-mutability": [ "create" ] }, "sourceLocation": { "type": "string", - "description": "The source cluster location to restore from. It's required for 'PointInTimeRestore' or 'ReadReplica' operations", + "description": "The source cluster location to restore from. It's required for creating 'PointInTimeRestore' or 'ReadReplica' operations", + "x-ms-mutability": [ + "create" + ] + }, + "pointInTimeUTC": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required to create 'PointInTimeRestore'", "x-ms-mutability": [ "create" ] @@ -2205,28 +2142,12 @@ "description": "Preferred primary zone for the cluster" }, "enableShardsOnCoordinator": { - "type": "string", - "description": "If shards on coordinator is enabled or not for the cluster.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableShardsOnCoordinatorEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." }, "enableHa": { - "type": "string", - "description": "If high availability is enabled or not for the server.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "enableHaEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If high availability is enabled or not for the server." }, "coordinatorServerEdition": { "type": "string", @@ -2243,16 +2164,8 @@ "description": "The vCores count of a server (max: 64)." }, "coordinatorEnablePublicIpAccess": { - "type": "string", - "description": "If public IP is requested or not for a server.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "coordinatorEnablePublicIpEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If public IP is requested or not for a server." }, "nodeServerEdition": { "type": "string", @@ -2274,17 +2187,9 @@ "description": "The vCores count of a server (max: 64)." }, "nodeEnablePublicIpAccess": { - "type": "string", + "type": "boolean", "description": "If public IP is requested or not for a server.", - "readOnly": true, - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "nodeEnablePublicIpEnum", - "modelAsString": true - } + "readOnly": true }, "serverNames": { "type": "array", @@ -2308,6 +2213,12 @@ "description": "The location of source cluster for read replica clusters.", "readOnly": true }, + "pointInTimeUTC": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from.", + "readOnly": true + }, "readReplicas": { "type": "array", "description": "The array of read replica clusters.", @@ -2388,16 +2299,8 @@ "readOnly": true }, "requiresRestart": { - "type": "string", - "description": "If configuration change requires restart.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "requiresRestartEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If configuration change requires restart." }, "serverRoleGroupConfigurations": { "type": "array", @@ -2519,16 +2422,8 @@ "readOnly": true }, "requiresRestart": { - "type": "string", - "description": "If configuration change requires restart.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "requiresRestartEnum", - "modelAsString": true - } + "type": "boolean", + "description": "If configuration change requires restart." } }, "required": [ @@ -2737,15 +2632,7 @@ }, "isDataAction": { "description": "Indicates whether the operation is a data action", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "isDataActionEnum", - "modelAsString": true - } + "type": "boolean" }, "origin": { "type": "string", @@ -2828,16 +2715,8 @@ "description": "Error Message." }, "nameAvailable": { - "type": "string", - "description": "Indicates whether the resource name is available.", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "nameAvailableEnum", - "modelAsString": true - } + "type": "boolean", + "description": "Indicates whether the resource name is available." }, "name": { "type": "string", diff --git a/specification/postgresqlhsc/resource-manager/readme.md b/specification/postgresqlhsc/resource-manager/readme.md index 0fb723188cb3..c129bca82ad7 100644 --- a/specification/postgresqlhsc/resource-manager/readme.md +++ b/specification/postgresqlhsc/resource-manager/readme.md @@ -67,6 +67,9 @@ directive: - suppress: NestedResourcesMustHaveListOperation from: postgresqlhsc.json reason: We already have get/list endpoints for Configuration that covers both cases, node configurations and coordinator configurations. +- suppress: EnumInsteadOfBoolean + from: postgresqlhsc.json + reason: It's been used as boolean since 2019 by internal teams and also private preview customers like Azure Portal and we have no plans to use any values other than true/false. ``` --- From 255879667efd8140fae295b4bb52ab836269ee08 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Tue, 31 Jan 2023 13:58:10 +0300 Subject: [PATCH 10/13] Update response codes to 201, address feedbacks (#22386) * Update response codes to 201 * Add server configuration get * Update password * Fix duplicate operation id * Update configuration example files * Update configuration example files --- .../2022-11-08/examples/ClusterCreate.json | 2 +- .../examples/ConfigurationGetCoordinator.json | 29 +++ .../examples/ConfigurationGetNode.json | 29 +++ .../examples/ConfigurationListByCluster.json | 12 +- .../examples/ConfigurationListByServer.json | 9 +- .../ConfigurationUpdateCoordinator.json | 2 +- .../examples/ConfigurationUpdateNode.json | 2 +- .../examples/FirewallRuleCreate.json | 2 +- .../2022-11-08/examples/FirewallRuleGet.json | 3 +- .../examples/FirewallRuleListByCluster.json | 6 +- ...ivateEndpointConnectionCreateOrUpdate.json | 2 +- .../2022-11-08/examples/RoleCreate.json | 4 +- .../stable/2022-11-08/examples/RoleGet.json | 33 +++ .../examples/RoleListByCluster.json | 8 +- .../stable/2022-11-08/postgresqlhsc.json | 188 ++++++++++++++++-- 15 files changed, 295 insertions(+), 36 deletions(-) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleGet.json diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json index f45b57722c4f..b3b585547755 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -7,7 +7,7 @@ "parameters": { "location": "westus", "properties": { - "administratorLoginPassword": "p@ssword1234", + "administratorLoginPassword": "password", "postgresqlVersion": "15", "citusVersion": "11.1", "enableHa": true, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json new file mode 100644 index 000000000000..5198efc5f2cc --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/coordinatorConfigurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/coordinatorConfigurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json new file mode 100644 index 000000000000..7f9b1f095d42 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/nodeConfigurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/nodeConfigurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "off" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json index 5a23e3a93f92..2eb94b5bbfb8 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json @@ -38,7 +38,8 @@ "defaultValue": "on", "source": "user-override" } - ] + ], + "provisioningState": "Succeeded" } }, { @@ -70,7 +71,8 @@ "defaultValue": "safe_encoding", "source": "system-default" } - ] + ], + "provisioningState": "Succeeded" } }, { @@ -102,7 +104,8 @@ "defaultValue": "115712", "source": "system-default" } - ] + ], + "provisioningState": "Succeeded" } }, { @@ -134,7 +137,8 @@ "defaultValue": "sql_ascii", "source": "user-override" } - ] + ], + "provisioningState": "Succeeded" } } ] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json index 04262e9e1a76..d338f7238486 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json @@ -28,7 +28,8 @@ "defaultValue": "", "dataType": "String", "allowedValues": "[A-Za-z0-9._-]*", - "source": "system-default" + "source": "system-default", + "provisioningState": "Succeeded" } }, { @@ -49,7 +50,8 @@ "defaultValue": "on", "dataType": "Boolean", "allowedValues": "on,off", - "source": "system-default" + "source": "system-default", + "provisioningState": "Succeeded" } }, { @@ -70,7 +72,8 @@ "defaultValue": "on", "dataType": "Boolean", "allowedValues": "on,off", - "source": "system-default" + "source": "system-default", + "provisioningState": "Succeeded" } } ] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json index 6a61ac0ba0eb..075dd6bd9192 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json @@ -30,7 +30,7 @@ } } }, - "202": { + "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json index 0f5739497d9a..eaf081871787 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json @@ -30,7 +30,7 @@ } } }, - "202": { + "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json index ce9b77225c5e..43133f7698f0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -32,7 +32,7 @@ } } }, - "202": { + "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json index baad985259ae..f144f64b7e12 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json @@ -22,7 +22,8 @@ }, "properties": { "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" + "endIpAddress": "255.255.255.255", + "provisioningState": "Succeeded" } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json index 0aaedac67e9d..f979e08c8e6f 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json @@ -23,7 +23,8 @@ }, "properties": { "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" + "endIpAddress": "255.255.255.255", + "provisioningState": "Succeeded" } }, { @@ -40,7 +41,8 @@ }, "properties": { "startIpAddress": "1.0.0.0", - "endIpAddress": "255.0.0.0" + "endIpAddress": "255.0.0.0", + "provisioningState": "Succeeded" } } ] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json index 65783a2c081d..447d337421bf 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json @@ -33,7 +33,7 @@ } } }, - "202": { + "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json index a173ebc2cefc..9466324c2693 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -7,7 +7,7 @@ "api-version": "2022-11-08", "parameters": { "properties": { - "password": "p@ssword1234" + "password": "password" } } }, @@ -32,7 +32,7 @@ "properties": {} } }, - "202": { + "201": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleGet.json new file mode 100644 index 000000000000..6df359ae34af --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "roleName": "role1", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json index 27967abaf9c6..d76f6465d488 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json @@ -21,7 +21,9 @@ "lastModifiedByType": "User", "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" }, - "properties": {} + "properties": { + "provisioningState": "Succeeded" + } }, { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role2", @@ -35,7 +37,9 @@ "lastModifiedByType": "User", "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" }, - "properties": {} + "properties": { + "provisioningState": "Succeeded" + } } ] } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 7d106f1d7e30..b6cf75afd359 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -593,6 +593,49 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/coordinatorConfigurations/{configurationName}": { + "get": { + "description": "Gets information of a configuration for coordinator.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_GetCoordinator", + "x-ms-examples": { + "Get configuration details for coordinator.": { + "$ref": "./examples/ConfigurationGetCoordinator.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, "put": { "description": "Updates configuration of coordinator in a cluster", "tags": [ @@ -641,7 +684,7 @@ "$ref": "#/definitions/ServerConfiguration" } }, - "202": { + "201": { "description": "Accepted", "schema": { "$ref": "#/definitions/ServerConfiguration" @@ -665,6 +708,49 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/nodeConfigurations/{configurationName}": { + "get": { + "description": "Gets information of a configuration for node.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_GetNode", + "x-ms-examples": { + "Get configuration details for node.": { + "$ref": "./examples/ConfigurationGetNode.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, "put": { "description": "Updates configuration of nodes in a cluster", "tags": [ @@ -713,7 +799,7 @@ "$ref": "#/definitions/ServerConfiguration" } }, - "202": { + "201": { "description": "Accepted", "schema": { "$ref": "#/definitions/ServerConfiguration" @@ -785,7 +871,7 @@ "$ref": "#/definitions/FirewallRule" } }, - "202": { + "201": { "description": "Accepted", "schema": { "$ref": "#/definitions/FirewallRule" @@ -952,6 +1038,49 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}": { + "get": { + "description": "Gets information about a cluster role.", + "tags": [ + "Roles" + ], + "operationId": "Roles_Get", + "x-ms-examples": { + "Get the role of the cluster": { + "$ref": "./examples/RoleGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/RoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Role" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, "put": { "tags": [ "Roles" @@ -1000,7 +1129,7 @@ "$ref": "#/definitions/Role" } }, - "202": { + "201": { "description": "Accepted", "schema": { "$ref": "#/definitions/Role" @@ -1551,7 +1680,7 @@ "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" } }, - "202": { + "201": { "description": "Accepted", "schema": { "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" @@ -2310,6 +2439,11 @@ }, "x-ms-identifiers": [], "uniqueItems": true + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the configuration", + "readOnly": true } }, "required": [ @@ -2423,7 +2557,13 @@ }, "requiresRestart": { "type": "boolean", - "description": "If configuration change requires restart." + "description": "If configuration change requires restart.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the configuration", + "readOnly": true } }, "required": [ @@ -2435,17 +2575,8 @@ "type": "object", "properties": { "properties": { - "description": "Represents a configuration properties", - "type": "object", - "properties": { - "value": { - "description": "Represents the value of a configuration.", - "type": "string" - } - }, - "required": [ - "value" - ], + "$ref": "#/definitions/ServerConfigurationRequestProperties", + "description": "The properties of a configuration.", "x-ms-client-flatten": true } }, @@ -2453,6 +2584,19 @@ "properties" ] }, + "ServerConfigurationRequestProperties": { + "description": "The properties of a server configuration request.", + "type": "object", + "properties": { + "value": { + "description": "Represents the value of a configuration.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, "ServerConfiguration": { "description": "Represents a configuration.", "type": "object", @@ -2500,6 +2644,11 @@ "type": "string", "description": "The end IP address of the cluster firewall rule. Must be IPv4 format.", "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the firewall rule", + "readOnly": true } }, "required": [ @@ -2550,6 +2699,11 @@ "update" ], "description": "The password of the cluster role." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the cluster role", + "readOnly": true } }, "required": [ From 7fd77d2b8c1957a52e950eeb838fa742c0829163 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Tue, 31 Jan 2023 15:15:48 +0300 Subject: [PATCH 11/13] Fix credscan issue (#22389) --- .../stable/2022-11-08/examples/ClusterUpdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json index a52514dd01b5..22ded184d272 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -6,7 +6,7 @@ "api-version": "2022-11-08", "parameters": { "properties": { - "administratorLoginPassword": "newP@ssword1", + "administratorLoginPassword": "newpassword", "coordinatorVCores": 16, "nodeCount": 4, "nodeVCores": 16 From f1da0a451cfd9bdc509645684ea210ff5a89acfb Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Wed, 1 Feb 2023 16:57:36 +0300 Subject: [PATCH 12/13] Fix PutRequestResponseScheme error (#22408) * Fix PutRequestResponseScheme error * Update readme file * Update x-ms-mutability * Update property description --- .../stable/2022-11-08/postgresqlhsc.json | 265 ++++-------------- .../postgresqlhsc/resource-manager/readme.md | 12 - 2 files changed, 47 insertions(+), 230 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index b6cf75afd359..1a42ec93490d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -164,7 +164,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ClusterResponse" + "$ref": "#/definitions/Cluster" } }, "201": { @@ -178,7 +178,7 @@ } }, "schema": { - "$ref": "#/definitions/ClusterResponse" + "$ref": "#/definitions/Cluster" } }, "default": { @@ -218,7 +218,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ClusterResponse" + "$ref": "#/definitions/Cluster" } }, "default": { @@ -338,7 +338,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ClusterResponse" + "$ref": "#/definitions/Cluster" } }, "202": { @@ -352,7 +352,7 @@ } }, "schema": { - "$ref": "#/definitions/ClusterResponse" + "$ref": "#/definitions/Cluster" } }, "default": { @@ -672,7 +672,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerConfigurationRequest" + "$ref": "#/definitions/ServerConfiguration" }, "description": "The required parameters for updating a cluster configuration." } @@ -787,7 +787,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerConfigurationRequest" + "$ref": "#/definitions/ServerConfiguration" }, "description": "The required parameters for updating a cluster configuration." } @@ -1668,7 +1668,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionActionRequest" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" }, "description": "The required parameters for approving a private endpoint connection." } @@ -2083,7 +2083,7 @@ "value": { "type": "array", "items": { - "$ref": "#/definitions/ClusterResponse" + "$ref": "#/definitions/Cluster" }, "description": "The list of clusters" }, @@ -2096,13 +2096,13 @@ "description": "A list of clusters." }, "Cluster": { - "description": "Represents a cluster for create.", + "description": "Represents a cluster.", "type": "object", "properties": { "properties": { "$ref": "#/definitions/ClusterProperties", "x-ms-client-flatten": true, - "description": "Properties of the cluster create." + "description": "Properties of the cluster." } }, "allOf": [ @@ -2112,9 +2112,14 @@ ] }, "ClusterProperties": { - "description": "The properties used to create a new cluster.", + "description": "Properties of the cluster.", "type": "object", "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of the servers in the cluster.", + "readOnly": true + }, "administratorLoginPassword": { "type": "string", "x-ms-secret": true, @@ -2125,125 +2130,6 @@ ], "description": "The password of the administrator login. Required for creation." }, - "postgresqlVersion": { - "type": "string", - "description": "The PostgreSQL version of cluster." - }, - "citusVersion": { - "type": "string", - "description": "The Citus version of cluster." - }, - "enableShardsOnCoordinator": { - "type": "boolean", - "description": "If shards on coordinator is enabled or not for the cluster." - }, - "earliestRestoreTime": { - "type": "string", - "format": "date-time", - "description": "The earliest restore point time (ISO8601 format) for the cluster.", - "readOnly": true - }, - "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the cluster." - }, - "preferredPrimaryZone": { - "type": "string", - "description": "Preferred primary zone for the cluster" - }, - "coordinatorServerEdition": { - "type": "string", - "description": "The edition of the coordinator (default: GeneralPurpose). Required for creation." - }, - "coordinatorStorageQuotaInMb": { - "type": "integer", - "format": "int64", - "description": "The storage of the coordinator in MB. Required for creation." - }, - "coordinatorVCores": { - "type": "integer", - "format": "int64", - "description": "The vCores count of the coordinator (max: 64). Required for creation." - }, - "coordinatorEnablePublicIpAccess": { - "type": "boolean", - "description": "If public IP is requested or not for the coordinator." - }, - "nodeServerEdition": { - "type": "string", - "description": "The edition of a node (default: MemoryOptimized)." - }, - "nodeCount": { - "type": "integer", - "format": "int64", - "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1. Required for creation." - }, - "nodeStorageQuotaInMb": { - "type": "integer", - "format": "int64", - "description": "The storage of a node in MB." - }, - "nodeVCores": { - "type": "integer", - "format": "int64", - "description": "The vCores count of a node (max: 64)." - }, - "nodeEnablePublicIpAccess": { - "type": "boolean", - "description": "If public IP is requested or not for a node." - }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a cluster." - }, - "sourceResourceId": { - "type": "string", - "description": "The source resource id to restore from. It's required to create 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, - "sourceLocation": { - "type": "string", - "description": "The source cluster location to restore from. It's required for creating 'PointInTimeRestore' or 'ReadReplica' operations", - "x-ms-mutability": [ - "create" - ] - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required to create 'PointInTimeRestore'", - "x-ms-mutability": [ - "create" - ] - } - } - }, - "ClusterResponse": { - "description": "Represents a cluster in response body.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ClusterResponseProperties", - "x-ms-client-flatten": true, - "description": "Properties of the cluster response body." - } - } - }, - "ClusterResponseProperties": { - "description": "Properties of the cluster response body.", - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of the servers in the cluster." - }, "provisioningState": { "type": "string", "description": "Provisioning state of the cluster", @@ -2280,17 +2166,17 @@ }, "coordinatorServerEdition": { "type": "string", - "description": "The edition of a coordinator server (default: GeneralPurpose)." + "description": "The edition of a coordinator server (default: GeneralPurpose). Required for creation." }, "coordinatorStorageQuotaInMb": { "type": "integer", "format": "int64", - "description": "The storage of a server in MB." + "description": "The storage of a server in MB. Required for creation." }, "coordinatorVCores": { "type": "integer", "format": "int64", - "description": "The vCores count of a server (max: 64)." + "description": "The vCores count of a server (max: 64). Required for creation." }, "coordinatorEnablePublicIpAccess": { "type": "boolean", @@ -2303,7 +2189,7 @@ "nodeCount": { "type": "integer", "format": "int64", - "description": "Worker node count of the cluster" + "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1. Required for creation." }, "nodeStorageQuotaInMb": { "type": "integer", @@ -2317,8 +2203,7 @@ }, "nodeEnablePublicIpAccess": { "type": "boolean", - "description": "If public IP is requested or not for a server.", - "readOnly": true + "description": "If public IP is requested or not for a server." }, "serverNames": { "type": "array", @@ -2334,19 +2219,16 @@ }, "sourceResourceId": { "type": "string", - "description": "The resource id of source cluster for read replica clusters.", - "readOnly": true + "description": "The resource id of source cluster for read replica clusters." }, "sourceLocation": { "type": "string", - "description": "The location of source cluster for read replica clusters.", - "readOnly": true + "description": "The location of source cluster for read replica clusters." }, "pointInTimeUTC": { "type": "string", "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from.", - "readOnly": true + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." }, "readReplicas": { "type": "array", @@ -2441,7 +2323,7 @@ "uniqueItems": true }, "provisioningState": { - "type": "string", + "$ref": "#/definitions/ProvisioningState", "description": "Provisioning state of the configuration", "readOnly": true } @@ -2561,8 +2443,8 @@ "readOnly": true }, "provisioningState": { - "type": "string", - "description": "Provisioning state of the configuration", + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the configuration.", "readOnly": true } }, @@ -2570,33 +2452,6 @@ "value" ] }, - "ServerConfigurationRequest": { - "description": "Represents a configuration.", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ServerConfigurationRequestProperties", - "description": "The properties of a configuration.", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "ServerConfigurationRequestProperties": { - "description": "The properties of a server configuration request.", - "type": "object", - "properties": { - "value": { - "description": "Represents the value of a configuration.", - "type": "string" - } - }, - "required": [ - "value" - ] - }, "ServerConfiguration": { "description": "Represents a configuration.", "type": "object", @@ -2646,8 +2501,8 @@ "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" }, "provisioningState": { - "type": "string", - "description": "Provisioning state of the firewall rule", + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the firewall rule.", "readOnly": true } }, @@ -2701,8 +2556,8 @@ "description": "The password of the cluster role." }, "provisioningState": { - "type": "string", - "description": "Provisioning state of the cluster role", + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the role", "readOnly": true } }, @@ -2921,33 +2776,6 @@ }, "description": "List of private endpoint connections associated with the specified resource." }, - "PrivateEndpointConnectionActionRequest": { - "description": "A private endpoint connection", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionActionRequestProperties", - "x-ms-client-flatten": true, - "description": "Properties of the private endpoint connection." - } - }, - "required": [ - "properties" - ] - }, - "PrivateEndpointConnectionActionRequestProperties": { - "description": "The properties used to create a private endpoint connection", - "type": "object", - "properties": { - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionRequestState", - "description": "Connection state of the private endpoint connection." - } - }, - "required": [ - "privateLinkServiceConnectionState" - ] - }, "PrivateEndpointConnectionSimpleProperties": { "description": "The properties in private endpoint connection", "type": "object", @@ -2968,20 +2796,6 @@ } } }, - "PrivateLinkServiceConnectionRequestState": { - "type": "object", - "description": "The private link service connection state", - "properties": { - "description": { - "type": "string", - "description": "The reason for approval/rejection of the connection." - }, - "status": { - "type": "string", - "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." - } - } - }, "PrivateLinkResourceListResult": { "type": "object", "properties": { @@ -2994,6 +2808,21 @@ } }, "description": "A list of private link resources." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Canceled", + "InProgress", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } } }, "parameters": { diff --git a/specification/postgresqlhsc/resource-manager/readme.md b/specification/postgresqlhsc/resource-manager/readme.md index c129bca82ad7..e1616ab932f9 100644 --- a/specification/postgresqlhsc/resource-manager/readme.md +++ b/specification/postgresqlhsc/resource-manager/readme.md @@ -55,18 +55,6 @@ directive: - suppress: PathResourceProviderNamePascalCase from: postgresqlhsc.json reason: Service provider name Microsoft.DBforPostgreSQL directly violates this rule. -- suppress: ConsistentPatchProperties - from: postgresqlhsc.json - reason: we only support admin password inside request body and don't return it -- suppress: CreateOperationAsyncResponseValidation - from: postgresqlhsc.json - reason: Our control plane returns 202 for most of the put async operation other than cluster creation. -- suppress: LongRunningResponseStatusCode - from: postgresqlhsc.json - reason: Our control plane returns 202 for most of the put async operation other than cluster creation. -- suppress: NestedResourcesMustHaveListOperation - from: postgresqlhsc.json - reason: We already have get/list endpoints for Configuration that covers both cases, node configurations and coordinator configurations. - suppress: EnumInsteadOfBoolean from: postgresqlhsc.json reason: It's been used as boolean since 2019 by internal teams and also private preview customers like Azure Portal and we have no plans to use any values other than true/false. From 8fb4aadb2b5a114d29ea5c2e3d53939f2f992b0c Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 23 Feb 2023 16:03:27 +0300 Subject: [PATCH 13/13] Fix server properties (#22772) * Fix server properties --- .../stable/2022-11-08/examples/ServerGet.json | 6 ++++-- .../examples/ServerListByCluster.json | 18 ++++++++++++------ .../stable/2022-11-08/postgresqlhsc.json | 12 +++++++++++- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json index 82ebb1d2c128..66d4c5366df0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -30,9 +30,11 @@ "storageQuotaInMb": 10000, "vCores": 4, "enableHa": true, - "enablePublicIp": true, + "enablePublicIpAccess": true, "state": "Ready", - "haState": "Healthy" + "haState": "Healthy", + "administratorLogin": "citus", + "isReadOnly": false } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json index 50c3dbc6aac2..a9e44fd7fca9 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json @@ -31,9 +31,11 @@ "storageQuotaInMb": 10000, "vCores": 4, "enableHa": true, - "enablePublicIp": true, + "enablePublicIpAccess": true, "state": "Ready", - "haState": "Healthy" + "haState": "Healthy", + "administratorLogin": "citus", + "isReadOnly": false } }, { @@ -58,9 +60,11 @@ "storageQuotaInMb": 10000, "vCores": 4, "enableHa": false, - "enablePublicIp": false, + "enablePublicIpAccess": false, "state": "Ready", - "haState": "NotEnabled" + "haState": "NotEnabled", + "administratorLogin": "citus", + "isReadOnly": false } }, { @@ -85,9 +89,11 @@ "storageQuotaInMb": 10000, "vCores": 4, "enableHa": false, - "enablePublicIp": false, + "enablePublicIpAccess": false, "state": "Ready", - "haState": "NotEnabled" + "haState": "NotEnabled", + "administratorLogin": "citus", + "isReadOnly": false } } ] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 1a42ec93490d..b224b69fb9fc 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -1884,10 +1884,20 @@ "type": "boolean", "description": "If high availability is enabled or not for the server." }, - "enablePublicIp": { + "enablePublicIpAccess": { "type": "boolean", "description": "If public IP is requested or not for a server.", "readOnly": true + }, + "isReadOnly": { + "type": "boolean", + "description": "If server database is set to read-only by system maintenance depending on high disk space usage.", + "readOnly": true + }, + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of the servers in the cluster.", + "readOnly": true } } },