From fdd4ac537bfb21e6d2687767d184f8a4dafcd34a Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Wed, 27 Dec 2017 14:22:47 -0800 Subject: [PATCH 01/23] Swagger changes for PGSQL new business model --- .../examples/CheckNameAvailability.json | 19 + .../examples/ConfigurationCreateOrUpdate.json | 33 + .../2017-12-01/examples/ConfigurationGet.json | 26 + .../examples/ConfigurationListByServer.json | 1056 +++++++++ .../2017-12-01/examples/DatabaseCreate.json | 40 + .../2017-12-01/examples/DatabaseDelete.json | 14 + .../2017-12-01/examples/DatabaseGet.json | 22 + .../examples/DatabaseListByServer.json | 34 + .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 14 + .../2017-12-01/examples/FirewallRuleGet.json | 22 + .../examples/FirewallRuleListByServer.json | 34 + .../examples/LogFileListByServer.json | 42 + .../2017-12-01/examples/OperationList.json | 194 ++ .../examples/PerformanceTiersList.json | 62 + .../PerformanceTiersListByLocation.json | 63 + .../2017-12-01/examples/ServerCreate.json | 90 + .../2017-12-01/examples/ServerDelete.json | 13 + .../2017-12-01/examples/ServerGet.json | 39 + .../2017-12-01/examples/ServerList.json | 95 + .../examples/ServerListByResourceGroup.json | 96 + .../2017-12-01/examples/ServerUpdate.json | 44 + .../VirtualNetworkRulesCreateOrUpdate.json | 40 + .../examples/VirtualNetworkRulesDelete.json | 20 + .../examples/VirtualNetworkRulesGet.json | 23 + .../examples/VirtualNetworkRulesList.json | 37 + .../2017-12-01/postgresql.json | 1957 +++++++++++++++++ 27 files changed, 4169 insertions(+) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..5a991b056504 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforPostgreSQL" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "reason": "" + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json new file mode 100644 index 000000000000..c2b82a6e662b --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "value": "off", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "off", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json new file mode 100644 index 000000000000..d97cd94623a2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "on", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..d1acb37c40a6 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json @@ -0,0 +1,1056 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "on", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "safe_encoding", + "description": "Sets whether \"\\'\" is allowed in string literals.", + "defaultValue": "safe_encoding", + "dataType": "Enumeration", + "allowedValues": "safe_encoding,on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/backslash_quote", + "name": "backslash_quote", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "hex", + "description": "Sets the output format for bytea.", + "defaultValue": "hex", + "dataType": "Enumeration", + "allowedValues": "escape,hex", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/bytea_output", + "name": "bytea_output", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Check function bodies during CREATE FUNCTION.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/check_function_bodies", + "name": "check_function_bodies", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "sql_ascii", + "description": "Sets the client's character set encoding.", + "defaultValue": "sql_ascii", + "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", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/client_encoding", + "name": "client_encoding", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "notice", + "description": "Sets the message levels that are sent to the client.", + "defaultValue": "notice", + "dataType": "Enumeration", + "allowedValues": "debug5,debug4,debug3,debug2,debug1,log,notice,warning,error", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/client_min_messages", + "name": "client_min_messages", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "partition", + "description": "Enables the planner to use constraints to optimize queries.", + "defaultValue": "partition", + "dataType": "Enumeration", + "allowedValues": "partition,on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/constraint_exclusion", + "name": "constraint_exclusion", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.005", + "description": "Sets the planner's estimate of the cost of processing each index entry during an index scan.", + "defaultValue": "0.005", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_index_tuple_cost", + "name": "cpu_index_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.0025", + "description": "Sets the planner's estimate of the cost of processing each operator or function call.", + "defaultValue": "0.0025", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_operator_cost", + "name": "cpu_operator_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.01", + "description": "Sets the planner's estimate of the cost of processing each tuple (row).", + "defaultValue": "0.01", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_tuple_cost", + "name": "cpu_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.1", + "description": "Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved.", + "defaultValue": "0.1", + "dataType": "Numeric", + "allowedValues": "0-1", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cursor_tuple_fraction", + "name": "cursor_tuple_fraction", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "iso, mdy", + "description": "Sets the display format for date and time values.", + "defaultValue": "iso, mdy", + "dataType": "String", + "allowedValues": "(iso|postgres|sql|german)\\,\\s(dmy|mdy|ymd)", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/datestyle", + "name": "datestyle", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "1000", + "description": "Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.", + "defaultValue": "1000", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/deadlock_timeout", + "name": "deadlock_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each query's parse tree.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_parse", + "name": "debug_print_parse", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each query's execution plan.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_plan", + "name": "debug_print_plan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each query's rewritten parse tree.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_rewritten", + "name": "debug_print_rewritten", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "100", + "description": "Sets the default statistics target.", + "defaultValue": "100", + "dataType": "Integer", + "allowedValues": "1-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_statistics_target", + "name": "default_statistics_target", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "pg_catalog.english", + "description": "Sets default text search configuration.", + "defaultValue": "pg_catalog.english", + "dataType": "String", + "allowedValues": "[A-Za-z\\._]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_text_search_config", + "name": "default_text_search_config", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Sets the default deferrable status of new transactions.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_deferrable", + "name": "default_transaction_deferrable", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "read committed", + "description": "Sets the transaction isolation level of each new transaction.", + "defaultValue": "read committed", + "dataType": "Enumeration", + "allowedValues": "serializable,repeatable read,read committed,read uncommitted", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_isolation", + "name": "default_transaction_isolation", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Sets the default read-only status of new transactions.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_read_only", + "name": "default_transaction_read_only", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Create new tables with OIDs by default.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_with_oids", + "name": "default_with_oids", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of bitmap-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_bitmapscan", + "name": "enable_bitmapscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of hashed aggregation plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_hashagg", + "name": "enable_hashagg", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of hash join plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_hashjoin", + "name": "enable_hashjoin", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of index-only-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_indexonlyscan", + "name": "enable_indexonlyscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of index-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_indexscan", + "name": "enable_indexscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of materialization.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_material", + "name": "enable_material", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of merge join plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_mergejoin", + "name": "enable_mergejoin", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of nested-loop join plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_nestloop", + "name": "enable_nestloop", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of sequential-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_seqscan", + "name": "enable_seqscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of explicit sort steps.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_sort", + "name": "enable_sort", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of TID scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_tidscan", + "name": "enable_tidscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Warn about backslash escapes in ordinary string literals.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/escape_string_warning", + "name": "escape_string_warning", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Terminate session on any error.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/exit_on_error", + "name": "exit_on_error", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the number of digits displayed for floating-point values.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "-15-3", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/extra_float_digits", + "name": "extra_float_digits", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "8", + "description": "Sets the FROM-list size beyond which subqueries are not collapsed.", + "defaultValue": "8", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/from_collapse_limit", + "name": "from_collapse_limit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables genetic query optimization.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo", + "name": "geqo", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "5", + "description": "GEQO: effort is used to set the default for other GEQO parameters.", + "defaultValue": "5", + "dataType": "Integer", + "allowedValues": "1-10", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_effort", + "name": "geqo_effort", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "GEQO: number of iterations of the algorithm.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_generations", + "name": "geqo_generations", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "GEQO: number of individuals in the population.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_pool_size", + "name": "geqo_pool_size", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.0", + "description": "GEQO: seed for random path selection.", + "defaultValue": "0.0", + "dataType": "Numeric", + "allowedValues": "0-1", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_seed", + "name": "geqo_seed", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "2.0", + "description": "GEQO: selective pressure within the population.", + "defaultValue": "2.0", + "dataType": "Numeric", + "allowedValues": "1.5-2", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_selection_bias", + "name": "geqo_selection_bias", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "12", + "description": "Sets the threshold of FROM items beyond which GEQO is used.", + "defaultValue": "12", + "dataType": "Integer", + "allowedValues": "2-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_threshold", + "name": "geqo_threshold", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed result for exact search by GIN.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/gin_fuzzy_search_limit", + "name": "gin_fuzzy_search_limit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "postgres", + "description": "Sets the display format for interval values.", + "defaultValue": "postgres", + "dataType": "Enumeration", + "allowedValues": "postgres,postgres_verbose,sql_standard,iso_8601", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/intervalstyle", + "name": "intervalstyle", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "8", + "description": "Sets the FROM-list size beyond which JOIN constructs are not flattened.", + "defaultValue": "8", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/join_collapse_limit", + "name": "join_collapse_limit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/lock_timeout", + "name": "lock_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each checkpoint.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_checkpoints", + "name": "log_checkpoints", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each successful connection.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_connections", + "name": "log_connections", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs end of a session, including duration.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_disconnections", + "name": "log_disconnections", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs the duration of each completed SQL statement.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_duration", + "name": "log_duration", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "default", + "description": "Sets the verbosity of logged messages.", + "defaultValue": "default", + "dataType": "Enumeration", + "allowedValues": "terse,default,verbose", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_error_verbosity", + "name": "log_error_verbosity", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs long lock waits.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_lock_waits", + "name": "log_lock_waits", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "-1", + "description": "Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.", + "defaultValue": "-1", + "dataType": "Integer", + "allowedValues": "-1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_duration_statement", + "name": "log_min_duration_statement", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "error", + "description": "Causes all statements generating error at or above this level to be logged.", + "defaultValue": "error", + "dataType": "Enumeration", + "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_error_statement", + "name": "log_min_error_statement", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "warning", + "description": "Sets the message levels that are logged.", + "defaultValue": "warning", + "dataType": "Enumeration", + "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_messages", + "name": "log_min_messages", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "none", + "description": "Sets the type of statements logged.", + "defaultValue": "none", + "dataType": "Enumeration", + "allowedValues": "none,ddl,mod,all", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_statement", + "name": "log_statement", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "64", + "description": "Sets the maximum number of locks per transaction.", + "defaultValue": "64", + "dataType": "Integer", + "allowedValues": "10-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_locks_per_transaction", + "name": "max_locks_per_transaction", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "64", + "description": "Sets the maximum number of predicate locks per transaction.", + "defaultValue": "64", + "dataType": "Integer", + "allowedValues": "10-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_pred_locks_per_transaction", + "name": "max_pred_locks_per_transaction", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum number of simultaneously prepared transactions.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-8388607", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_prepared_transactions", + "name": "max_prepared_transactions", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "When generating SQL fragments, quote all identifiers.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/quote_all_identifiers", + "name": "quote_all_identifiers", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "4.0", + "description": "Sets the planner's estimate of the cost of a nonsequentially fetched disk page.", + "defaultValue": "4.0", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/random_page_cost", + "name": "random_page_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "\"$user\", public", + "description": "Sets the schema search order for names that are not schema-qualified.", + "defaultValue": "\"$user\", public", + "dataType": "String", + "allowedValues": "[A-Za-z.\"$, ]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/search_path", + "name": "search_path", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "1.0", + "description": "Sets the planner's estimate of the cost of a sequentially fetched disk page.", + "defaultValue": "1.0", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/seq_page_cost", + "name": "seq_page_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Causes subtables to be included by default in various commands.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/sql_inheritance", + "name": "sql_inheritance", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Causes '...' strings to treat backslashes literally.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/standard_conforming_strings", + "name": "standard_conforming_strings", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/statement_timeout", + "name": "statement_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enable synchronized sequential scans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/synchronize_seqscans", + "name": "synchronize_seqscans", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Sets the current transaction's synchronization level.", + "defaultValue": "on", + "dataType": "Enumeration", + "allowedValues": "local,remote_write,on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/synchronous_commit", + "name": "synchronous_commit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Treats \"expr=NULL\" as \"expr IS NULL\".", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/transform_null_equals", + "name": "transform_null_equals", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "base64", + "description": "Sets how binary values are to be encoded in XML.", + "defaultValue": "base64", + "dataType": "Enumeration", + "allowedValues": "base64,hex", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/xmlbinary", + "name": "xmlbinary", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "content", + "description": "Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.", + "defaultValue": "content", + "dataType": "Enumeration", + "allowedValues": "content,document", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/xmloption", + "name": "xmloption", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Forces use of parallel query facilities.", + "defaultValue": "off", + "dataType": "Enumeration", + "allowedValues": "off,on,regress", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/force_parallel_mode", + "name": "force_parallel_mode", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed duration of any idling transaction.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/idle_in_transaction_session_timeout", + "name": "idle_in_transaction_session_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum number of parallel processes per executor node.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-1024", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_parallel_workers_per_gather", + "name": "max_parallel_workers_per_gather", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "8388608", + "description": "Sets the minimum size of relations to be considered for parallel scan.", + "defaultValue": "8388608", + "dataType": "Integer", + "allowedValues": "0-715827882", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/min_parallel_relation_size", + "name": "min_parallel_relation_size", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "1000", + "description": "Sets the planner's estimate of the cost of starting up worker processes for parallel query.", + "defaultValue": "1000", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/parallel_setup_cost", + "name": "parallel_setup_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.1", + "description": "Sets the planner's estimate of the cost of passing each tuple (row) from worker to master backend.", + "defaultValue": "0.1", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/parallel_tuple_cost", + "name": "parallel_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "3", + "description": "Sets how many days a log file is saved for.", + "defaultValue": "3", + "dataType": "Integer", + "allowedValues": "1-7", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_retention_days", + "name": "log_retention_days", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json new file mode 100644 index 000000000000..3245c04055fd --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "charset":"UTF8", + "collation":"English_United States.1252" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..6706a74576de --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..a2b6de88d3d2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json new file mode 100644 index 000000000000..8f721fa560c7 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db2", + "name": "db2", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..33b2aca7aff4 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "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/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "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/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..d8348f45a659 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..eb5bf7d32c58 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json new file mode 100644 index 000000000000..931fe7382303 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json new file mode 100644 index 000000000000..3c9fe3477a21 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "name": "postgresql-2017-06-22_010000.log", + "sizeInKB": 4, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-06-22T01:59:36+00:00", + "type": "text", + "url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_010000.log?sv=2015-04-05&sr=f&sig=gqIQsa6VyGyUNpzYYPWLP5gM%2BeF1so9GYbHKu6Zs0DM%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/logFiles/postgresql-2017-06-22_010000.log", + "name": "postgresql-2017-06-22_010000.log", + "type": "Microsoft.DBforPostgreSQL/servers/logFiles" + }, + { + "properties": { + "name": "postgresql-2017-06-22_020000.log", + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-06-22T02:19:36+00:00", + "type": "text", + "url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_020000.log?sv=2015-04-05&sr=f&sig=i99UWBlYfR0tKaxix8yHAOnfym4HV9Auto6BbZogyRs%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/logFiles/postgresql-2017-06-22_020000.log", + "name": "postgresql-2017-06-22_020000.log", + "type": "Microsoft.DBforPostgreSQL/servers/logFiles" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json new file mode 100644 index 000000000000..505cf310c48f --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json @@ -0,0 +1,194 @@ +{ + "parameters": { + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforPostgreSQL/locations/performanceTiers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Performance Tiers", + "operation": "List Performance Tiers", + "description": "Returns the list of Performance Tiers available." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "List/Get PostgreSQL Servers", + "description": "Return the list of servers or gets the properties for the specified server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "Create/Update PostgreSQL Server", + "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "Delete PostgreSQL Server", + "description": "Deletes an existing server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/performanceTiers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Performance Tiers", + "operation": "List Performance Tiers", + "description": "Returns the list of Performance Tiers available." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/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 or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/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/servers/firewallRules/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/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": "compute_limit", + "displayName": "Compute Unit limit", + "displayDescription": "Compute Unit limit", + "unit": "Count", + "aggregationType": "Average" + }, + { + "name": "compute_consumption_percent", + "displayName": "Compute Unit percentage", + "displayDescription": "Compute Unit percentage", + "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/servers/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/servers/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" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json new file mode 100644 index 000000000000..40cce901017d --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Basic", + "backupRetentionDays": 7, + "serviceLevelObjectives": [ + { + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "PGSQLB50" + }, + { + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "PGSQLB100" + } + ] + }, + { + "id": "Standard", + "backupRetentionDays": 35, + "serviceLevelObjectives": [ + { + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "PGSQLS100" + }, + { + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "PGSQLS200" + }, + { + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "PGSQLS400" + }, + { + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "PGSQLS800" + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json new file mode 100644 index 000000000000..289fa6eedc9e --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "WestUS" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Basic", + "backupRetentionDays": 7, + "serviceLevelObjectives": [ + { + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "PGSQLB50" + }, + { + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "PGSQLB100" + } + ] + }, + { + "id": "Standard", + "backupRetentionDays": 35, + "serviceLevelObjectives": [ + { + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "PGSQLS100" + }, + { + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "PGSQLS200" + }, + { + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "PGSQLS400" + }, + { + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "PGSQLS800" + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json new file mode 100644 index 000000000000..bdf9b0808a83 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "OneBox", + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "sslEnforcement": "Enabled", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "createMode": "Default" + }, + "sku": { + "name": "SkuName", + "tier": "Basic", + "capacity": 2, + "Family": "Gen4" + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "tags": { + "elasticServer": "1" + }, + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "tags": { + "elasticServer": "1" + }, + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" + } + } + }, + "202": {} + } \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json new file mode 100644 index 000000000000..6427e09c2b08 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json new file mode 100644 index 000000000000..b683c21bc02f --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json new file mode 100644 index 000000000000..6d6520ef7272 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json new file mode 100644 index 000000000000..51a10f295810 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json new file mode 100644 index 000000000000..2860618dae63 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "administratorLoginPassword":"newpassword", + "sslEnforcement": "Disabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sslEnforcement": "Disabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json new file mode 100644 index 000000000000..7e65de762b66 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json new file mode 100644 index 000000000000..ab046090dd70 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01", + "responses": { + "200": { + "body": "" + }, + "202": { + "body": "" + }, + "204": { + "body": "" + } + } +} +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json new file mode 100644 index 000000000000..65139ffd7cc5 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json new file mode 100644 index 000000000000..8171f2792cde --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json new file mode 100644 index 000000000000..723a360da390 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -0,0 +1,1957 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "version": "2017-12-01" + }, + "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}": { + "put": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Create", + "x-ms-examples": { + "ServerCreate": { "$ref": "./examples/ServerCreate.json" } + }, + "description": "Creates a new server, or will overwrite an existing server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerForCreate" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Update", + "x-ms-examples": { + "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" } + }, + "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerUpdateParameters" + }, + "description": "The required parameters for updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Delete", + "x-ms-examples": { + "ServerDelete": { "$ref": "./examples/ServerDelete.json" } + }, + "description": "Deletes a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "ServerGet": { "$ref": "./examples/ServerGet.json" } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByResourceGroup", + "x-ms-examples": { + "ServerListByResourceGroup": { "$ref": "./examples/ServerListByResourceGroup.json" } + }, + "description": "List all the servers in a given resource group.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_List", + "x-ms-examples": { + "ServerList": { "$ref": "./examples/ServerList.json" } + }, + "description": "List all the servers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}": { + "put": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-examples": { + "FirewallRuleCreate": { "$ref": "./examples/FirewallRuleCreate.json" } + }, + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$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" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "FirewallRuleDelete": { "$ref": "./examples/FirewallRuleDelete.json" } + }, + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "FirewallRuleGet": { "$ref": "./examples/FirewallRuleGet.json" } + }, + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules": { + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByServer", + "x-ms-examples": { + "FirewallRuleList": { "$ref": "./examples/FirewallRuleListByServer.json" } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a virtual network rule.", + "operationId": "VirtualNetworkRules_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-examples": { + "Gets a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesGet.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Creates or updates an existing virtual network rule.", + "operationId": "VirtualNetworkRules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "The requested virtual Network Rule Resource state.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + ], + "responses": { + "200": { + "description": "Successfully updated a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "201": { + "description": "Successfully created a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Deletes the virtual network rule with the given name.", + "operationId": "VirtualNetworkRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the virtual network rule." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "The specified virtual network rule does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a list of virtual network rules in a server.", + "operationId": "VirtualNetworkRules_ListByServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of virtual network rules.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRuleListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List virtual network rules": { + "$ref": "./examples/VirtualNetworkRulesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "DatabaseCreate": { "$ref": "./examples/DatabaseCreate.json" } + }, + "description": "Creates a new database or updates an existing database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The required parameters for creating or updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "x-ms-examples": { + "DatabaseDelete": { "$ref": "./examples/DatabaseDelete.json" } + }, + "description": "Deletes a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "x-ms-examples": { + "DatabaseGet": { "$ref": "./examples/DatabaseGet.json" } + }, + "description": "Gets information about a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "x-ms-examples": { + "DatabaseList": { "$ref": "./examples/DatabaseListByServer.json" } + }, + "description": "List all the databases in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}": { + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdate", + "x-ms-examples": { + "ConfigurationCreateOrUpdate": { "$ref": "./examples/ConfigurationCreateOrUpdate.json" } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Configuration" + }, + "description": "The required parameters for updating a server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "ConfigurationGet": { "$ref": "./examples/ConfigurationGet.json" } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServer", + "x-ms-examples": { + "ConfigurationList": { "$ref": "./examples/ConfigurationListByServer.json" } + }, + "description": "List all the configurations in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles": { + "get": { + "tags": [ + "LogFiles" + ], + "operationId": "LogFiles_ListByServer", + "x-ms-examples": { + "LogFileList": { "$ref": "./examples/LogFileListByServer.json" } + }, + "description": "List all the log files in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogFileListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/performanceTiers": { + "get": { + "tags": [ + "PerformanceTiers" + ], + "operationId": "PerformanceTiers_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersList.json" + } + }, + "description": "List all the performance tiers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { + "get": { + "tags": [ + "LocationBasedPerformanceTier" + ], + "operationId": "LocationBasedPerformanceTier_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersListByLocation.json" + } + }, + "description": "List all the performance tiers at specified location in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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" + } + } + } + } + }, + "/providers/Microsoft.DBforPostgreSQL/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationList": { "$ref": "./examples/OperationList.json" } + }, + "description": "Lists all of the available REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } + } + }, + "definitions": { + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "9.5", + "9.6" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "SslEnforcement": { + "type": "string", + "description": "Enable ssl enforcement or not when connect to server.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "SslEnforcementEnum", + "modelAsString": false + } + }, + "ProxyResource": { + "description": "Resource properties.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "Resource properties including location and tags for track resources.", + "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "location" + ] + }, + "ServerProperties": { + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "userVisibleState": { + "type": "string", + "description": "A state of a server that is visible to user.", + "enum": [ + "Ready", + "Dropping", + "Disabled" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + } + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server." + }, + "EarliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "Earliest restore point creation time (ISO8601 format)" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + } + }, + "description": "The properties of a server." + }, + "StorageProfile": { + "properties": { + "backupRetentionDays": { + "type": "integer", + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackup", + "modelAsString": true + } + }, + "storageMB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + }, + "createMode": { + "type": "string", + "description": "The mode to create a new server.", + "enum": [ + "Default", + "PointInTimeRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + } + } + }, + "description": "The properties used to create a new server." + }, + "ServerPropertiesForDefaultCreate": { + "x-ms-discriminator-value": "Default", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + } + }, + "required": [ + "administratorLogin", + "administratorLoginPassword" + ], + "description": "The properties used to create a new server." + }, + "ServerPropertiesForRestore": { + "x-ms-discriminator-value": "PointInTimeRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + } + }, + "required": [ + "sourceServerId", + "restorePointInTime" + ], + "description": "The properties to a new server by restoring from a backup." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, a letter + Number code, e.g. P3." + }, + "tier": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "The scale up/out capacity, representing server's compute units." + }, + "size": { + "type": "string", + "description": "The size code, to be interpreted by resource as appropriate." + }, + "family": { + "type": "string", + "description": "The family of hardware." + } + }, + "description": "Billing information related properties of a server." + }, + "Server": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerProperties", + "x-ms-client-flatten": true, + "description": "Properties of the server." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "ServerForCreate": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerPropertiesForCreate", + "x-ms-client-flatten": false, + "description": "Properties of the server." + }, + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "required": [ + "properties", + "location" + ], + "description": "Represents a server to be created." + }, + "ServerUpdateParameters": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "properties": { + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "The version of a server." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + } + }, + "x-ms-client-flatten": true, + "description": "The properties that can be updated for a server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "description": "Parameters allowd to update for a server." + }, + "ServerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Server" + }, + "description": "The list of servers" + } + }, + "description": "A list of servers." + }, + "FirewallRuleProperties": { + "properties": { + "startIpAddress": { + "type": "string", + "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])$", + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + }, + "endIpAddress": { + "type": "string", + "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])$", + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "FirewallRule": { + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + } + }, + "description": "A list of firewall rules." + }, + "VirtualNetworkRuleProperties": { + "description": "Properties of a virtual network rule.", + "required": [ + "virtualNetworkSubnetId" + ], + "type": "object", + "properties": { + "virtualNetworkSubnetId": { + "description": "The ARM resource id of the virtual network subnet.", + "type": "string" + }, + "ignoreMissingVnetServiceEndpoint": { + "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", + "type": "boolean" + }, + "state": { + "description": "Virtual Network Rule State", + "enum": [ + "Initializing", + "InProgress", + "Ready", + "Deleting", + "Unknown" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "VirtualNetworkRuleState", + "modelAsString": true + } + } + } + }, + "VirtualNetworkRule": { + "description": "A virtual network rule.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/VirtualNetworkRuleProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "VirtualNetworkRuleListResult": { + "description": "A list of virtual network rules.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "DatabaseProperties": { + "properties": { + "charset": { + "type": "string", + "description": "The charset of the database." + }, + "collation": { + "type": "string", + "description": "The collation of the database." + } + }, + "description": "The properties of a database." + }, + "Database": { + "properties": { + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "x-ms-client-flatten": true, + "description": "The properties of a database." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Database." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in a server" + } + }, + "description": "A List of databases." + }, + "ConfigurationProperties": { + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Description of the configuration." + }, + "defaultValue": { + "type": "string", + "readOnly": true, + "description": "Default value of the configuration." + }, + "dataType": { + "type": "string", + "readOnly": true, + "description": "Data type of the configuration." + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + } + }, + "description": "A list of server configurations." + }, + "OperationDisplay": { + "properties": { + "provider": { + "type": "string", + "readOnly": true, + "description": "Operation resource provider name." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "readOnly": true, + "description": "Localized friendly name for the operation." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Operation description." + } + }, + "description": "Display metadata associated with the operation." + }, + "Operation": { + "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." + }, + "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." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "The list of resource provider operations." + } + }, + "description": "A list of resource provider operations." + }, + "LogFileProperties": { + "properties": { + "name": { + "type": "string", + "description": "Log file name." + }, + "sizeInKB": { + "type": "integer", + "format": "int64", + "description": "Size of the log file." + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation timestamp of the log file." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Last modified timestamp of the log file." + }, + "type": { + "type": "string", + "description": "Type of the log file." + }, + "url": { + "type": "string", + "description": "The url to download the log file from." + } + }, + "description": "The properties of a log file." + }, + "LogFile": { + "properties": { + "name": { + "type": "string", + "description": "The name of the log file." + }, + "properties": { + "$ref": "#/definitions/LogFileProperties", + "x-ms-client-flatten": true, + "description": "The properties of the log file." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a log file." + }, + "LogFileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LogFile" + }, + "description": "The list of log files." + } + }, + "description": "A list of log files." + }, + "PerformanceTierServiceLevelObjectives": { + "properties": { + "id": { + "type": "string", + "description": "ID for the service level objective." + }, + "edition": { + "type": "string", + "description": "Edition of the performance tier." + }, + "dtu": { + "type": "integer", + "description": "Database throughput unit associated with the service level objective" + }, + "storageMB": { + "type": "integer", + "description": "Maximum storage in MB associated with the service level objective" + } + }, + "description": "Service level objectives for performance tier." + }, + "PerformanceTierProperties": { + "properties": { + "id": { + "type": "string", + "description": "ID of the performance tier." + }, + "backupRetentionDays": { + "type": "integer", + "description": "Backup retention in days for the performance tier edition" + }, + "serviceLevelObjectives": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierServiceLevelObjectives" + }, + "description": "Service level objectives associated with the performance tier" + } + }, + "description": "Performance tier properties" + }, + "PerformanceTierListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierProperties" + }, + "description": "The list of performance tiers" + } + }, + "description": "A list of performance tiers." + }, + "NameAvailabilityRequest": { + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." + }, + "NameAvailability": { + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "FirewallRuleNameParameter": { + "name": "firewallRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server firewall rule.", + "x-ms-parameter-location": "method" + }, + "virtualNetworkRuleNameParameter": { + "name": "virtualNetworkRuleName", + "in": "path", + "description": "The name of the virtual network rule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database.", + "x-ms-parameter-location": "method" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server configuration.", + "x-ms-parameter-location": "method" + }, + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file From af02fb17f942e6180eae25aff99413b27650f875 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 2 Jan 2018 13:40:55 -0800 Subject: [PATCH 02/23] Initial commit --- .../examples/CheckNameAvailability.json | 2 +- .../examples/ConfigurationCreateOrUpdate.json | 2 +- .../2017-12-01/examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationListByServer.json | 2 +- .../2017-12-01/examples/DatabaseCreate.json | 2 +- .../2017-12-01/examples/DatabaseDelete.json | 2 +- .../2017-12-01/examples/DatabaseGet.json | 2 +- .../examples/DatabaseListByServer.json | 2 +- .../examples/FirewallRuleCreate.json | 2 +- .../examples/FirewallRuleDelete.json | 2 +- .../2017-12-01/examples/FirewallRuleGet.json | 2 +- .../examples/FirewallRuleListByServer.json | 2 +- .../examples/LogFileListByServer.json | 2 +- .../2017-12-01/examples/OperationList.json | 2 +- .../examples/PerformanceTiersList.json | 2 +- .../2017-12-01/examples/ServerCreate.json | 63 ++++------- .../2017-12-01/examples/ServerDelete.json | 2 +- .../2017-12-01/examples/ServerGet.json | 32 +++--- .../2017-12-01/examples/ServerList.json | 100 +++++++---------- .../examples/ServerListByResourceGroup.json | 105 ++++++------------ .../2017-12-01/examples/ServerUpdate.json | 8 +- .../VirtualNetworkRulesCreateOrUpdate.json | 2 +- .../examples/VirtualNetworkRulesDelete.json | 4 +- .../examples/VirtualNetworkRulesGet.json | 2 +- .../examples/VirtualNetworkRulesList.json | 2 +- .../2017-12-01/postgresql.json | 78 ++++--------- 26 files changed, 155 insertions(+), 273 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json index 5a991b056504..206d8b5a6498 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "nameAvailabilityRequest": { "name": "name1", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json index c2b82a6e662b..20144aee3247 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json index d97cd94623a2..951fb59e1aae 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json index d1acb37c40a6..19802c224f4b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json index 3245c04055fd..b63a12e41e9b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json index 6706a74576de..600a8fd87165 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json index a2b6de88d3d2..4ea6aac9a4d3 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json index 8f721fa560c7..6bb09763b1be 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json index 33b2aca7aff4..7454e35e6a08 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json index d8348f45a659..7dde700aa259 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json index eb5bf7d32c58..534c07717684 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json index 931fe7382303..a6b877fa46b5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json index 3c9fe3477a21..3a03b74c9100 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json index 505cf310c48f..0649be041fb6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-12-01" + "api-version": "2017-04-30-preview" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json index 40cce901017d..98daf7136515 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json index bdf9b0808a83..4e88adf0ffdf 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -2,26 +2,21 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "OneBox", "properties": { "administratorLogin": "cloudsa", "administratorLoginPassword": "password", + "storageMB": 1024, "sslEnforcement": "Enabled", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, "createMode": "Default" }, "sku": { "name": "SkuName", "tier": "Basic", - "capacity": 2, - "Family": "Gen4" + "capacity": 100 }, "tags": { "ElasticServer": "1" @@ -35,26 +30,21 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 }, "tags": { "elasticServer": "1" }, - "administratorLogin": "cloudsa", - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } } }, "200": { @@ -63,28 +53,23 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 }, "tags": { "elasticServer": "1" }, - "administratorLogin": "cloudsa", - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" } } }, "202": {} - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json index 6427e09c2b08..50b9770f2180 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json index b683c21bc02f..c77294d8a56f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -12,27 +12,21 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, "tags": { "elasticServer": "1" }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json index 6d6520ef7272..6a5c925b7bbd 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -12,81 +12,63 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, "tags": { "elasticServer": "1" }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", - "name": "testserver1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", + "name": "serv1", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, "tags": { "elasticServer": "1" }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" + } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", - "name": "testserver2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforPostgreSQL/servers/serv2", + "name": "serv2", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, "tags": { "elasticServer": "1" }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv2.test-vm1.onebox.xdb.mscds.com" + } } ] } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json index 51a10f295810..39df40d8ac77 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -1,94 +1,55 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", + "name": "serv1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", - "name": "testserver1", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, + "tags": { + "elasticServer": "1" + }, + "properties": { "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", - "name": "testserver2", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, + "properties": { "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" } + } ] } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json index 2860618dae63..cab45b4c31d9 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ @@ -28,11 +28,7 @@ }, "properties": { "administratorLogin": "cloudsa", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, + "storageMB": 1024, "sslEnforcement": "Disabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json index 7e65de762b66..d4bc04372df4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview", "parameters": { "properties": { "ignoreMissingVnetServiceEndpoint": false, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json index ab046090dd70..94b5feeccec2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -4,7 +4,8 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01", + "api-version": "2017-04-30-preview" + }, "responses": { "200": { "body": "" @@ -16,5 +17,4 @@ "body": "" } } -} } \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json index 65139ffd7cc5..7dcf85e1c068 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" + "api-version": "2017-04-30-preview" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json index 8171f2792cde..e894431bdd51 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" + "api-version": "2017-04-30-preview" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index 723a360da390..1fd615c40c70 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "title": "PostgreSQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", - "version": "2017-12-01" + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.", + "version": "2017-04-30-preview" }, "host": "management.azure.com", "schemes": [ @@ -1153,6 +1153,12 @@ "type": "string", "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." }, + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The maximum storage allowed for a server." + }, "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1177,49 +1183,20 @@ "fullyQualifiedDomainName": { "type": "string", "description": "The fully qualified domain name of a server." - }, - "EarliestRestoreDate": { - "type": "string", - "format": "date-time", - "description": "Earliest restore point creation time (ISO8601 format)" - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." } }, "description": "The properties of a server." }, - "StorageProfile": { - "properties": { - "backupRetentionDays": { - "type": "integer", - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "type": "string", - "description": "The tier of the particular SKU, e.g. Basic.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "GeoRedundantBackup", - "modelAsString": true - } - }, - "storageMB": { - "type": "integer", - "format": "int32", - "description": "Max storage allowed for a server." - } - }, - "description": "Storage Profile properties of a server" - }, "ServerPropertiesForCreate": { "discriminator": "createMode", "required": [ "createMode" ], - "properties": { + "properties": { + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The maximum storage allowed for a server." + }, "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1228,21 +1205,6 @@ "$ref": "#/definitions/SslEnforcement", "description": "Enable ssl enforcement or not when connect to server." }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - }, "createMode": { "type": "string", "description": "The mode to create a new server.", @@ -1397,9 +1359,11 @@ }, "properties": { "properties": { - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The max storage allowed for a server." }, "administratorLoginPassword": { "type": "string", @@ -1954,4 +1918,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From a9e65995734cac2a92b6bdeb7b8facae8d3ae940 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 2 Jan 2018 13:42:58 -0800 Subject: [PATCH 03/23] Changes for new API version 2017-12-01 --- .../examples/CheckNameAvailability.json | 2 +- .../examples/ConfigurationCreateOrUpdate.json | 2 +- .../2017-12-01/examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationListByServer.json | 2 +- .../2017-12-01/examples/DatabaseCreate.json | 2 +- .../2017-12-01/examples/DatabaseDelete.json | 2 +- .../2017-12-01/examples/DatabaseGet.json | 2 +- .../examples/DatabaseListByServer.json | 2 +- .../examples/FirewallRuleCreate.json | 2 +- .../examples/FirewallRuleDelete.json | 2 +- .../2017-12-01/examples/FirewallRuleGet.json | 2 +- .../examples/FirewallRuleListByServer.json | 2 +- .../examples/LogFileListByServer.json | 2 +- .../2017-12-01/examples/OperationList.json | 2 +- .../examples/PerformanceTiersList.json | 2 +- .../2017-12-01/examples/ServerCreate.json | 63 +++++++---- .../2017-12-01/examples/ServerDelete.json | 2 +- .../2017-12-01/examples/ServerGet.json | 32 +++--- .../2017-12-01/examples/ServerList.json | 100 ++++++++++------- .../examples/ServerListByResourceGroup.json | 105 ++++++++++++------ .../2017-12-01/examples/ServerUpdate.json | 8 +- .../VirtualNetworkRulesCreateOrUpdate.json | 2 +- .../examples/VirtualNetworkRulesDelete.json | 4 +- .../examples/VirtualNetworkRulesGet.json | 2 +- .../examples/VirtualNetworkRulesList.json | 2 +- .../2017-12-01/postgresql.json | 78 +++++++++---- 26 files changed, 273 insertions(+), 155 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json index 206d8b5a6498..5a991b056504 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "nameAvailabilityRequest": { "name": "name1", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json index 20144aee3247..c2b82a6e662b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json index 951fb59e1aae..d97cd94623a2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json index 19802c224f4b..d1acb37c40a6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json index b63a12e41e9b..3245c04055fd 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json index 600a8fd87165..6706a74576de 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json index 4ea6aac9a4d3..a2b6de88d3d2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json index 6bb09763b1be..8f721fa560c7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json index 7454e35e6a08..33b2aca7aff4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json index 7dde700aa259..d8348f45a659 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json index 534c07717684..eb5bf7d32c58 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json index a6b877fa46b5..931fe7382303 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json index 3a03b74c9100..3c9fe3477a21 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json index 0649be041fb6..505cf310c48f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json index 98daf7136515..40cce901017d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json index 4e88adf0ffdf..bdf9b0808a83 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -2,21 +2,26 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "OneBox", "properties": { "administratorLogin": "cloudsa", "administratorLoginPassword": "password", - "storageMB": 1024, "sslEnforcement": "Enabled", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "createMode": "Default" }, "sku": { "name": "SkuName", "tier": "Basic", - "capacity": 100 + "capacity": 2, + "Family": "Gen4" }, "tags": { "ElasticServer": "1" @@ -30,21 +35,26 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" } }, "200": { @@ -53,23 +63,28 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" } } }, "202": {} - } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json index 50b9770f2180..6427e09c2b08 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json index c77294d8a56f..b683c21bc02f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -12,21 +12,27 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json index 6a5c925b7bbd..6d6520ef7272 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -12,63 +12,81 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", - "name": "serv1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforPostgreSQL/servers/serv2", - "name": "serv2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv2.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } ] } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json index 39df40d8ac77..51a10f295810 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -1,55 +1,94 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", - "name": "serv1", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, - "tags": { - "elasticServer": "1" - }, - "properties": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, - "tags": { - "elasticServer": "1" + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, - "properties": { + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } - } ] } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json index cab45b4c31d9..2860618dae63 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ @@ -28,7 +28,11 @@ }, "properties": { "administratorLogin": "cloudsa", - "storageMB": 1024, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sslEnforcement": "Disabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json index d4bc04372df4..7e65de762b66 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "parameters": { "properties": { "ignoreMissingVnetServiceEndpoint": false, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json index 94b5feeccec2..ab046090dd70 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -4,8 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" - }, + "api-version": "2017-12-01", "responses": { "200": { "body": "" @@ -17,4 +16,5 @@ "body": "" } } +} } \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json index 7dcf85e1c068..65139ffd7cc5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json index e894431bdd51..8171f2792cde 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index 1fd615c40c70..723a360da390 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "title": "PostgreSQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.", - "version": "2017-04-30-preview" + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "version": "2017-12-01" }, "host": "management.azure.com", "schemes": [ @@ -1153,12 +1153,6 @@ "type": "string", "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." }, - "storageMB": { - "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The maximum storage allowed for a server." - }, "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1183,20 +1177,49 @@ "fullyQualifiedDomainName": { "type": "string", "description": "The fully qualified domain name of a server." + }, + "EarliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "Earliest restore point creation time (ISO8601 format)" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." } }, "description": "The properties of a server." }, - "ServerPropertiesForCreate": { - "discriminator": "createMode", - "required": [ "createMode" ], + "StorageProfile": { "properties": { - "storageMB": { + "backupRetentionDays": { "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The maximum storage allowed for a server." + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackup", + "modelAsString": true + } }, + "storageMB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1205,6 +1228,21 @@ "$ref": "#/definitions/SslEnforcement", "description": "Enable ssl enforcement or not when connect to server." }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + }, "createMode": { "type": "string", "description": "The mode to create a new server.", @@ -1359,11 +1397,9 @@ }, "properties": { "properties": { - "storageMB": { - "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The max storage allowed for a server." + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." }, "administratorLoginPassword": { "type": "string", @@ -1918,4 +1954,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From c7d19aaa64782ba599afd7e4906b112a94eb7796 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 2 Jan 2018 14:51:46 -0800 Subject: [PATCH 04/23] Nit changes --- .../2017-12-01/examples/ServerCreate.json | 6 +++--- .../2017-12-01/examples/VirtualNetworkRulesDelete.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json index bdf9b0808a83..8509217ae15c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -82,9 +82,9 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" - } + "EarliestRestoreDate": "null" } }, "202": {} - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json index ab046090dd70..0748e9fc127f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -4,7 +4,8 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01", + "api-version": "2017-12-01" + }, "responses": { "200": { "body": "" @@ -16,5 +17,4 @@ "body": "" } } -} } \ No newline at end of file From 229f2624ee0331d446ed522f74c164ec2c4f7986 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Mon, 8 Jan 2018 13:14:51 -0800 Subject: [PATCH 05/23] Updating Readme.md --- .../postgresql/resource-manager/readme.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index e03a4fc48506..364be1b3f67f 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -40,6 +40,16 @@ input-file: ``` +### Tag: package-2017-12-01 + +These settings apply only when `--tag=package-2017-12-01` is specified on the command line. + +``` yaml $(tag) == 'package-2017-12-01' +input-file: +- Microsoft.DBforPostgreSQL/2017-12-01-preview/postgresql.json +``` + + --- # Code Generation @@ -91,3 +101,13 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2017-12-01' && $(go) +output-folder: $(go-sdk-folder)/services/postgresql/mgmt/2017-04-30-preview/postgresql +``` From 222df72c05706aaa353bb08d5ee030caf6540fa5 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 9 Jan 2018 11:50:50 -0800 Subject: [PATCH 06/23] Rectifying readme file --- .../postgresql/resource-manager/readme.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 364be1b3f67f..409b028974dd 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -26,13 +26,13 @@ These are the global settings for the Sql API. ``` yaml openapi-type: arm -tag: package-2017-04-preview +tag: package-2017-04-30-preview ``` -### Tag: package-2017-04-preview +### Tag: package-2017-04-30-preview -These settings apply only when `--tag=package-2017-04-preview` is specified on the command line. +These settings apply only when `--tag=package-2017-04-30-preview` is specified on the command line. ``` yaml $(tag) == 'package-2017-04-preview' input-file: @@ -46,7 +46,7 @@ These settings apply only when `--tag=package-2017-12-01` is specified on the co ``` yaml $(tag) == 'package-2017-12-01' input-file: -- Microsoft.DBforPostgreSQL/2017-12-01-preview/postgresql.json +- Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json ``` @@ -93,12 +93,12 @@ go: clear-output-folder: true ``` -### Tag: package-2017-04-preview and go +### Tag: package-2017-04-30-preview and go -These settings apply only when `--tag=package-2017-04-preview --go` is specified on the command line. +These settings apply only when `--tag=package-2017-04-30-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2017-04-preview' && $(go) +``` yaml $(tag) == 'package-2017-04-30-preview' && $(go) output-folder: $(go-sdk-folder)/services/postgresql/mgmt/2017-04-30-preview/postgresql ``` @@ -109,5 +109,5 @@ These settings apply only when `--tag=package-2017-12-01 --go` is specified on t Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2017-12-01' && $(go) -output-folder: $(go-sdk-folder)/services/postgresql/mgmt/2017-04-30-preview/postgresql +output-folder: $(go-sdk-folder)/services/postgresql/mgmt/2017-12-01/postgresql ``` From 1f2461883150904fbfc68f63fe2a2cbae0b4755d Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Wed, 10 Jan 2018 14:56:09 -0800 Subject: [PATCH 07/23] readme.md --- specification/postgresql/resource-manager/readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 42dd12451d11..2c9ff9d32f6f 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -26,13 +26,13 @@ These are the global settings for the Sql API. ``` yaml openapi-type: arm -tag: package-2017-04-30-preview +tag: package-2017-04-preview ``` -### Tag: package-2017-04-30-preview +### Tag: package-2017-04-preview -These settings apply only when `--tag=package-2017-04-30-preview` is specified on the command line. +These settings apply only when `--tag=package-2017-04-preview` is specified on the command line. ``` yaml $(tag) == 'package-2017-04-preview' input-file: @@ -93,12 +93,12 @@ go: clear-output-folder: true ``` -### Tag: package-2017-04-30-preview and go +### Tag: package-2017-04-preview and go -These settings apply only when `--tag=package-2017-04-30-preview --go` is specified on the command line. +These settings apply only when `--tag=package-2017-04-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2017-04-30-preview' && $(go) +``` yaml $(tag) == 'package-2017-04-preview' && $(go) output-folder: $(go-sdk-folder)/services/postgresql/mgmt/2017-04-30-preview/postgresql ``` From 2fa2c6fc1bbaab07f2d7836751a3ebd62e6d01c5 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Wed, 10 Jan 2018 17:23:20 -0800 Subject: [PATCH 08/23] Bug resolved for performace tier operation --- .../PerformanceTiersListByLocation.json | 89 +++++++++++++------ .../2017-12-01/postgresql.json | 61 +++++-------- 2 files changed, 82 insertions(+), 68 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json index 289fa6eedc9e..05678be5a5bd 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -9,50 +9,83 @@ "body": { "value": [ { - "id": "Basic", - "backupRetentionDays": 7, + "Id": "Basic", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 1024000, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "PGSQLB50" + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_B_Gen4_1", + "VCore": 1 }, { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "PGSQLB100" + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_B_Gen4_2", + "VCore": 2 } ] }, { - "id": "Standard", - "backupRetentionDays": 35, + "Id": "GeneralPurpose", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "PGSQLS100" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_2", + "VCore": 2 }, { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "PGSQLS200" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_4", + "VCore": 4 }, { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "PGSQLS400" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_8", + "VCore": 8 }, { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "PGSQLS800" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_32", + "VCore": 32 + } + ] + }, + { + "Id": "MemoryOptimized", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, + "serviceLevelObjectives": [ + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_2", + "VCore": 2 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_8", + "VCore": 4 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_16", + "VCore": 8 } ] } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index 723a360da390..df4a5eaddffa 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -945,39 +945,6 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/performanceTiers": { - "get": { - "tags": [ - "PerformanceTiers" - ], - "operationId": "PerformanceTiers_List", - "x-ms-examples": { - "PerformanceTiersList": { - "$ref": "./examples/PerformanceTiersList.json" - } - }, - "description": "List all the performance tiers in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PerformanceTierListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { "get": { "tags": [ @@ -1805,13 +1772,13 @@ "type": "string", "description": "Edition of the performance tier." }, - "dtu": { + "vCore": { "type": "integer", - "description": "Database throughput unit associated with the service level objective" + "description": "VCore associated with the service level objective" }, - "storageMB": { - "type": "integer", - "description": "Maximum storage in MB associated with the service level objective" + "hardwareGeneration": { + "type": "string", + "description": "Hardware generation associated with the service level objective" } }, "description": "Service level objectives for performance tier." @@ -1822,9 +1789,23 @@ "type": "string", "description": "ID of the performance tier." }, - "backupRetentionDays": { + "maxBackupRetentionDays":{ "type": "integer", - "description": "Backup retention in days for the performance tier edition" + "description": "Maximum Backup retention in days for the performance tier edition" + }, + "minBackupRetentionDays": { + "type": "integer", + "description": "Minimum Backup retention in days for the performance tier edition" + }, + "maxStorageMB":{ + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + }, + "minStorageMB":{ + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." }, "serviceLevelObjectives": { "type": "array", From 2ab458cccc844f65273e2cb81236fee8e6d70203 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 11:25:30 -0800 Subject: [PATCH 09/23] GEO_Restore additions --- .../2017-12-01/postgresql.json | 124 ++++++++++-------- 1 file changed, 72 insertions(+), 52 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index df4a5eaddffa..9f5a28e725e2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -1,8 +1,8 @@ { "swagger": "2.0", "info": { - "title": "PostgreSQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "title": "MySQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", "version": "2017-12-01" }, "host": "management.azure.com", @@ -34,16 +34,16 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}": { "put": { "tags": [ "Servers" ], - "operationId": "Servers_Create", + "operationId": "Servers_CreateOrUpdate", "x-ms-examples": { "ServerCreate": { "$ref": "./examples/ServerCreate.json" } }, - "description": "Creates a new server, or will overwrite an existing server.", + "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -200,7 +200,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers": { "get": { "tags": [ "Servers" @@ -234,7 +234,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers": { "get": { "tags": [ "Servers" @@ -265,7 +265,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}": { "put": { "tags": [ "FirewallRules" @@ -395,7 +395,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules": { "get": { "tags": [ "FirewallRules" @@ -432,7 +432,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { "get": { "tags": [ "VirtualNetworkRules" @@ -577,7 +577,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules": { "get": { "tags": [ "VirtualNetworkRules" @@ -619,7 +619,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}": { "put": { "tags": [ "Databases" @@ -749,7 +749,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases": { "get": { "tags": [ "Databases" @@ -786,7 +786,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}": { "put": { "tags": [ "Configurations" @@ -871,7 +871,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations": { "get": { "tags": [ "Configurations" @@ -908,7 +908,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles": { "get": { "tags": [ "LogFiles" @@ -945,7 +945,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers": { "get": { "tags": [ "LocationBasedPerformanceTier" @@ -981,7 +981,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { "post": { "tags": [ "CheckNameAvailability" @@ -1007,6 +1007,7 @@ }, "description": "The required parameters for checking if resource name is available." } + ], "responses": { "200": { @@ -1018,7 +1019,7 @@ } } }, - "/providers/Microsoft.DBforPostgreSQL/operations": { + "/providers/Microsoft.DBforMySQL/operations": { "get": { "tags": [ "Operations" @@ -1049,8 +1050,8 @@ "type": "string", "description": "The version of a server.", "enum": [ - "9.5", - "9.6" + "5.6", + "5.7" ], "x-ms-enum": { "name": "ServerVersion", @@ -1215,7 +1216,8 @@ "description": "The mode to create a new server.", "enum": [ "Default", - "PointInTimeRestore" + "PointInTimeRestore", + "GeoRestore" ], "x-ms-enum": { "name": "CreateMode", @@ -1273,6 +1275,24 @@ ], "description": "The properties to a new server by restoring from a backup." }, + "ServerPropertiesForGeoRestore": { + "x-ms-discriminator-value": "GeoRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + } + }, + "required": [ + "sourceServerId" + ], + "description": "The properties to a new server by restoring from a geo replicated backup." + }, "Sku": { "properties": { "name": { @@ -1830,37 +1850,37 @@ "description": "A list of performance tiers." }, "NameAvailabilityRequest": { - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Resource name to verify." - }, - "type": { - "type": "string", - "description": "Resource type used for verification." - } - }, - "description": "Request from client to check resource name availability." + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." }, "NameAvailability": { - "properties": { - "message": { - "type": "string", - "description": "Error Message." - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available." - }, - "reason": { - "type": "string", - "description": "Reason for name being unavailable." - } - }, - "description": "Represents a resource name availability." + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." } }, "parameters": { @@ -1935,4 +1955,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 1efc51c440e2a695594596a1a0f9c481f871de60 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 11:26:48 -0800 Subject: [PATCH 10/23] Initial commit for MYSQL swagger --- .../examples/CheckNameAvailability.json | 19 + .../examples/ConfigurationCreateOrUpdate.json | 33 + .../2017-12-01/examples/ConfigurationGet.json | 26 + .../examples/ConfigurationListByServer.json | 276 +++ .../2017-12-01/examples/DatabaseCreate.json | 40 + .../2017-12-01/examples/DatabaseDelete.json | 14 + .../2017-12-01/examples/DatabaseGet.json | 22 + .../examples/DatabaseListByServer.json | 34 + .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 14 + .../2017-12-01/examples/FirewallRuleGet.json | 22 + .../examples/FirewallRuleListByServer.json | 34 + .../examples/LogFileListByServer.json | 42 + .../2017-12-01/examples/OperationList.json | 185 ++ .../examples/PerformanceTiersList.json | 62 + .../PerformanceTiersListByLocation.json | 63 + .../2017-12-01/examples/ServerCreate.json | 75 + .../2017-12-01/examples/ServerDelete.json | 13 + .../2017-12-01/examples/ServerGet.json | 33 + .../2017-12-01/examples/ServerList.json | 77 + .../examples/ServerListByResourceGroup.json | 57 + .../2017-12-01/examples/ServerUpdate.json | 40 + .../VirtualNetworkRulesCreateOrUpdate.json | 40 + .../examples/VirtualNetworkRulesDelete.json | 20 + .../examples/VirtualNetworkRulesGet.json | 23 + .../examples/VirtualNetworkRulesList.json | 37 + .../2017-12-01/mysql.json | 1922 +++++++++++++++++ 27 files changed, 3263 insertions(+) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..57b9438f93ed --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforMySQL" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "reason": "" + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json new file mode 100644 index 000000000000..d6d44aff8c30 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "configurationName": "event_scheduler", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "value": "ON", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "ON", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json new file mode 100644 index 000000000000..28cd43dc862c --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "configurationName": "event_scheduler", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "OFF", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..275bb1cce4b4 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json @@ -0,0 +1,276 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "OFF", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "4", + "description": "Number of digits by which to increase the scale of the result of division operations.", + "defaultValue": "4", + "dataType": "Integer", + "allowedValues": "0-30", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/div_precision_increment", + "name": "div_precision_increment", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "1024", + "description": "Maximum allowed result length in bytes for the GROUP_CONCAT().", + "defaultValue": "1024", + "dataType": "Integer", + "allowedValues": "4-16777216", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/group_concat_max_len", + "name": "group_concat_max_len", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "ON", + "description": "Whether innodb adaptive hash indexes are enabled or disabled.", + "defaultValue": "ON", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/innodb_adaptive_hash_index", + "name": "innodb_adaptive_hash_index", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "50", + "description": "The length of time in seconds an InnoDB transaction waits for a row lock before giving up.", + "defaultValue": "50", + "dataType": "Integer", + "allowedValues": "1-3600", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/innodb_lock_wait_timeout", + "name": "innodb_lock_wait_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "1800", + "description": "Number of seconds the server waits for activity on an interactive connection before closing it.", + "defaultValue": "1800", + "dataType": "Integer", + "allowedValues": "10-1800", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/interactive_timeout", + "name": "interactive_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Logs queries that are expected to retrieve all rows to slow query log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_queries_not_using_indexes", + "name": "log_queries_not_using_indexes", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Limits the number of such queries per minute that can be written to the slow query log.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-4294967295", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_throttle_queries_not_using_indexes", + "name": "log_throttle_queries_not_using_indexes", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Include slow administrative statements in the statements written to the slow query log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_slow_admin_statements", + "name": "log_slow_admin_statements", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "This variable applies when binary logging is enabled. It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,FALSE", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_bin_trust_function_creators", + "name": "log_bin_trust_function_creators", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "10", + "description": "If a query takes longer than this many seconds, the server increments the Slow_queries status variable.", + "defaultValue": "10", + "dataType": "Numeric", + "allowedValues": "1-1E+100", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/long_query_time", + "name": "long_query_time", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Can be used to cause queries which examine fewer than the stated number of rows not to be logged.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-18446744073709551615", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/min_examined_row_limit", + "name": "min_examined_row_limit", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Enable or disable the slow query log", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/slow_query_log", + "name": "slow_query_log", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "", + "description": "The current server SQL mode.", + "defaultValue": "", + "dataType": "Set", + "allowedValues": ",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/sql_mode", + "name": "sql_mode", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "120", + "description": "The number of seconds the server waits for activity on a noninteractive connection before closing it.", + "defaultValue": "120", + "dataType": "Integer", + "allowedValues": "60-240", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/wait_timeout", + "name": "wait_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "1129667931", + "description": "The server ID, used in replication to give each master and slave a unique identity.", + "defaultValue": "1000", + "dataType": "Integer", + "allowedValues": "1000-4294967295", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/server_id", + "name": "server_id", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "536870912", + "description": "The maximum size of one packet or any generated/intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function.", + "defaultValue": "536870912", + "dataType": "Integer", + "allowedValues": "1024-1073741824", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/max_allowed_packet", + "name": "max_allowed_packet", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "60", + "description": "The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect.", + "defaultValue": "60", + "dataType": "Integer", + "allowedValues": "30-3600", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/slave_net_timeout", + "name": "slave_net_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "SYSTEM", + "description": "The server time zone", + "defaultValue": "SYSTEM", + "dataType": "String", + "allowedValues": "[+|-][0]{0,1}[0-9]:[0-5][0-9]|[+|-][1][0-2]:[0-5][0-9]|SYSTEM", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/time_zone", + "name": "time_zone", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "latin1", + "description": "Use charset_name as the default server character set.", + "defaultValue": "latin1", + "dataType": "Enumeration", + "allowedValues": "BIG5,DEC8,CP850,HP8,KOI8R,LATIN1,LATIN2,SWE7,ASCII,UJIS,SJIS,HEBREW,TIS620,EUCKR,KOI8U,GB2312,GREEK,CP1250,GBK,LATIN5,ARMSCII8,UTF8,UCS2,CP866,KEYBCS2,MACCE,MACROMAN,CP852,LATIN7,UTF8MB4,CP1251,UTF16,CP1256,CP1257,UTF32,BINARY,GEOSTD8,CP932,EUCJPMS", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/character_set_server", + "name": "character_set_server", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json new file mode 100644 index 000000000000..3b2601ec7762 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "charset":"utf8", + "collation":"utf8_general_ci" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..600a8fd87165 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..cb7cf4e9e0bc --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json new file mode 100644 index 000000000000..8de5b643abed --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db2", + "name": "db2", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..0fd24aeca93c --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "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.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..7dde700aa259 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..81b79fac78fd --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json new file mode 100644 index 000000000000..e3626d5616a4 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json new file mode 100644 index 000000000000..e6b662e34a16 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "name": "mysql-slow-testserver-2017042102.log", + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-04-21T03:02:23+00:00", + "type": "slowlog", + "url": "https://wasd2orcasseas1aelsfse0.file.core.windows.net/52bd047495b3459b95185a1738cbaeac/serverlogs/mysql-slow-testserver-2017042102.log?sv=2015-04-05&sr=f&sig=zt6C6CBMygNbwzbDw5qcU%2F3duOgP9ZERQ8aWJr7fnuM%3D&se=2017-04-21T04%3A02%3A33Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/mysql-slow-testserver-2017042102.log", + "name": "mysql-slow-testserver-2017042102.log", + "type": "Microsoft.DBforMySQL/servers/logFiles" + }, + { + "properties": { + "name": "mysql-slow-testserver-2017042202.log", + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-04-22T03:02:23+00:00", + "type": "slowlog", + "url": "https://wasd2orcasseas1aelsfse0.file.core.windows.net/52bd047495b3459b95185a1738cbaeac/serverlogs/mysql-slow-testserver-2017042202.log?sv=2015-04-05&sr=f&sig=zt6C6CBMygNbwzbDw5qcU%2F3duOgP9ZERQ8aWJr7fnuM%3D&se=2017-04-22T04%3A02%3A33Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/mysql-slow-testserver-2017042202.log", + "name": "mysql-slow-testserver-2017042202.log", + "type": "Microsoft.DBforMySQL/servers/logFiles" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json new file mode 100644 index 000000000000..a3346c8be6dc --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforMySQL/servers/firewallRules/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "List/Get Firewall Rules", + "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/firewallRules/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "Create/Update Firewall Rule", + "description": "Creates a firewall rule with the specified parameters or update an existing rule." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/firewallRules/delete", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "List/Get MySQL Servers", + "description": "Return the list of servers or gets the properties for the specified server." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "Create/Update MySQL Server", + "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/delete", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "Delete MySQL Server", + "description": "Deletes an existing server." + } + }, + { + "name": "Microsoft.DBforMySQL/performanceTiers/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Performance Tiers", + "operation": "List Performance Tiers", + "description": "Returns the list of Performance Tiers available." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft DB for MySQL", + "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": "compute_limit", + "displayName": "Compute limit", + "displayDescription": "Compute limit", + "unit": "Count", + "aggregationType": "Average" + }, + { + "name": "compute_consumption_percent", + "displayName": "Compute percentage", + "displayDescription": "Compute percentage", + "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.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Read diagnostic setting", + "description": "Gets the disagnostic setting for the resource" + } + }, + { + "name": "Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json new file mode 100644 index 000000000000..463ea5f6c716 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Basic", + "backupRetentionDays": 7, + "serviceLevelObjectives": [ + { + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "MYSQLB50" + }, + { + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "MYSQLB100" + } + ] + }, + { + "id": "Standard", + "backupRetentionDays": 35, + "serviceLevelObjectives": [ + { + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "MYSQLS100" + }, + { + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "MYSQLS200" + }, + { + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "MYSQLS400" + }, + { + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "MYSQLS800" + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json new file mode 100644 index 000000000000..4025aa45560f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "WestUS" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Basic", + "backupRetentionDays": 7, + "serviceLevelObjectives": [ + { + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "MYSQLB50" + }, + { + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "MYSQLB100" + } + ] + }, + { + "id": "Standard", + "backupRetentionDays": 35, + "serviceLevelObjectives": [ + { + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "MYSQLS100" + }, + { + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "MYSQLS200" + }, + { + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "MYSQLS400" + }, + { + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "MYSQLS800" + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json new file mode 100644 index 000000000000..26e96603f4f5 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "OneBox", + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "storageMB": 1024, + "sslEnforcement": "Enabled", + "createMode": "Default" + }, + "sku": { + "name": "SkuName", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json new file mode 100644 index 000000000000..50b9770f2180 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json new file mode 100644 index 000000000000..209d045467be --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json new file mode 100644 index 000000000000..1f52a4ae74c7 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/serv1", + "name": "serv1", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforMySQL/servers/serv2", + "name": "serv2", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv2.test-vm1.onebox.xdb.mscds.com" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json new file mode 100644 index 000000000000..ca3ef13688e9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/serv1", + "name": "serv1", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json new file mode 100644 index 000000000000..baeb419e3728 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "administratorLoginPassword":"newpassword", + "sslEnforcement": "Disabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "MYSQLS3M100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement": "Disabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json new file mode 100644 index 000000000000..21e251e153a0 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview", + "parameters": { + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json new file mode 100644 index 000000000000..94b5feeccec2 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": "" + }, + "202": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json new file mode 100644 index 000000000000..cbb69959a346 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json new file mode 100644 index 000000000000..b687ec244874 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json new file mode 100644 index 000000000000..c718b9283f98 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json @@ -0,0 +1,1922 @@ +{ + "swagger": "2.0", + "info": { + "title": "MySQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.", + "version": "2017-04-30-preview" + }, + "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}": { + "put": { + "tags": [ + "Servers" + ], + "operationId": "Servers_CreateOrUpdate", + "x-ms-examples": { + "ServerCreate": { "$ref": "./examples/ServerCreate.json" } + }, + "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerForCreate" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Update", + "x-ms-examples": { + "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" } + }, + "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerUpdateParameters" + }, + "description": "The required parameters for updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Delete", + "x-ms-examples": { + "ServerDelete": { "$ref": "./examples/ServerDelete.json" } + }, + "description": "Deletes a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "ServerGet": { "$ref": "./examples/ServerGet.json" } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByResourceGroup", + "x-ms-examples": { + "ServerListByResourceGroup": { "$ref": "./examples/ServerListByResourceGroup.json" } + }, + "description": "List all the servers in a given resource group.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_List", + "x-ms-examples": { + "ServerList": { "$ref": "./examples/ServerList.json" } + }, + "description": "List all the servers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}": { + "put": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-examples": { + "FirewallRuleCreate": { "$ref": "./examples/FirewallRuleCreate.json" } + }, + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$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" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "FirewallRuleDelete": { "$ref": "./examples/FirewallRuleDelete.json" } + }, + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "FirewallRuleGet": { "$ref": "./examples/FirewallRuleGet.json" } + }, + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules": { + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByServer", + "x-ms-examples": { + "FirewallRuleList": { "$ref": "./examples/FirewallRuleListByServer.json" } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a virtual network rule.", + "operationId": "VirtualNetworkRules_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-examples": { + "Gets a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesGet.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Creates or updates an existing virtual network rule.", + "operationId": "VirtualNetworkRules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "The requested virtual Network Rule Resource state.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + ], + "responses": { + "200": { + "description": "Successfully updated a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "201": { + "description": "Successfully created a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Deletes the virtual network rule with the given name.", + "operationId": "VirtualNetworkRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the virtual network rule." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "The specified virtual network rule does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a list of virtual network rules in a server.", + "operationId": "VirtualNetworkRules_ListByServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of virtual network rules.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRuleListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List virtual network rules": { + "$ref": "./examples/VirtualNetworkRulesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "DatabaseCreate": { "$ref": "./examples/DatabaseCreate.json" } + }, + "description": "Creates a new database or updates an existing database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The required parameters for creating or updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "x-ms-examples": { + "DatabaseDelete": { "$ref": "./examples/DatabaseDelete.json" } + }, + "description": "Deletes a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "x-ms-examples": { + "DatabaseGet": { "$ref": "./examples/DatabaseGet.json" } + }, + "description": "Gets information about a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "x-ms-examples": { + "DatabaseList": { "$ref": "./examples/DatabaseListByServer.json" } + }, + "description": "List all the databases in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}": { + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdate", + "x-ms-examples": { + "ConfigurationCreateOrUpdate": { "$ref": "./examples/ConfigurationCreateOrUpdate.json" } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Configuration" + }, + "description": "The required parameters for updating a server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "ConfigurationGet": { "$ref": "./examples/ConfigurationGet.json" } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServer", + "x-ms-examples": { + "ConfigurationList": { "$ref": "./examples/ConfigurationListByServer.json" } + }, + "description": "List all the configurations in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles": { + "get": { + "tags": [ + "LogFiles" + ], + "operationId": "LogFiles_ListByServer", + "x-ms-examples": { + "LogFileList": { "$ref": "./examples/LogFileListByServer.json" } + }, + "description": "List all the log files in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogFileListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/performanceTiers": { + "get": { + "tags": [ + "PerformanceTiers" + ], + "operationId": "PerformanceTiers_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersList.json" + } + }, + "description": "List all the performance tiers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers": { + "get": { + "tags": [ + "LocationBasedPerformanceTier" + ], + "operationId": "LocationBasedPerformanceTier_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersListByLocation.json" + } + }, + "description": "List all the performance tiers at specified location in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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" + } + } + } + } + }, + "/providers/Microsoft.DBforMySQL/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationList": { "$ref": "./examples/OperationList.json" } + }, + "description": "Lists all of the available REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } + } + }, + "definitions": { + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "5.6", + "5.7" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "SslEnforcement": { + "type": "string", + "description": "Enable ssl enforcement or not when connect to server.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "SslEnforcementEnum", + "modelAsString": false + } + }, + "ProxyResource": { + "description": "Resource properties.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "Resource properties including location and tags for track resources.", + "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "location" + ] + }, + "ServerProperties": { + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The maximum storage allowed for a server." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "userVisibleState": { + "type": "string", + "description": "A state of a server that is visible to user.", + "enum": [ + "Ready", + "Dropping", + "Disabled" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + } + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server." + } + }, + "description": "The properties of a server." + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The maximum storage allowed for a server." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "createMode": { + "type": "string", + "description": "The mode to create a new server.", + "enum": [ + "Default", + "PointInTimeRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + } + } + }, + "description": "The properties used to create a new server." + }, + "ServerPropertiesForDefaultCreate": { + "x-ms-discriminator-value": "Default", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + } + }, + "required": [ + "administratorLogin", + "administratorLoginPassword" + ], + "description": "The properties used to create a new server." + }, + "ServerPropertiesForRestore": { + "x-ms-discriminator-value": "PointInTimeRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + } + }, + "required": [ + "sourceServerId", + "restorePointInTime" + ], + "description": "The properties to a new server by restoring from a backup." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, a letter + Number code, e.g. P3." + }, + "tier": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "The scale up/out capacity, representing server's compute units." + }, + "size": { + "type": "string", + "description": "The size code, to be interpreted by resource as appropriate." + }, + "family": { + "type": "string", + "description": "The family of hardware." + } + }, + "description": "Billing information related properties of a server." + }, + "Server": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerProperties", + "x-ms-client-flatten": true, + "description": "Properties of the server." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "ServerForCreate": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerPropertiesForCreate", + "x-ms-client-flatten": false, + "description": "Properties of the server." + }, + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "required": [ + "properties", + "location" + ], + "description": "Represents a server to be created." + }, + "ServerUpdateParameters": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "properties": { + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The max storage allowed for a server." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "The version of a server." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + } + }, + "x-ms-client-flatten": true, + "description": "The properties that can be updated for a server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "description": "Parameters allowd to update for a server." + }, + "ServerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Server" + }, + "description": "The list of servers" + } + }, + "description": "A list of servers." + }, + "FirewallRuleProperties": { + "properties": { + "startIpAddress": { + "type": "string", + "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])$", + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + }, + "endIpAddress": { + "type": "string", + "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])$", + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "FirewallRule": { + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + } + }, + "description": "A list of firewall rules." + }, + "VirtualNetworkRuleProperties": { + "description": "Properties of a virtual network rule.", + "required": [ + "virtualNetworkSubnetId" + ], + "type": "object", + "properties": { + "virtualNetworkSubnetId": { + "description": "The ARM resource id of the virtual network subnet.", + "type": "string" + }, + "ignoreMissingVnetServiceEndpoint": { + "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", + "type": "boolean" + }, + "state": { + "description": "Virtual Network Rule State", + "enum": [ + "Initializing", + "InProgress", + "Ready", + "Deleting", + "Unknown" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "VirtualNetworkRuleState", + "modelAsString": true + } + } + } + }, + "VirtualNetworkRule": { + "description": "A virtual network rule.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/VirtualNetworkRuleProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "VirtualNetworkRuleListResult": { + "description": "A list of virtual network rules.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "DatabaseProperties": { + "properties": { + "charset": { + "type": "string", + "description": "The charset of the database." + }, + "collation": { + "type": "string", + "description": "The collation of the database." + } + }, + "description": "The properties of a database." + }, + "Database": { + "properties": { + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "x-ms-client-flatten": true, + "description": "The properties of a database." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Database." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in a server" + } + }, + "description": "A List of databases." + }, + "ConfigurationProperties": { + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Description of the configuration." + }, + "defaultValue": { + "type": "string", + "readOnly": true, + "description": "Default value of the configuration." + }, + "dataType": { + "type": "string", + "readOnly": true, + "description": "Data type of the configuration." + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + } + }, + "description": "A list of server configurations." + }, + "OperationDisplay": { + "properties": { + "provider": { + "type": "string", + "readOnly": true, + "description": "Operation resource provider name." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "readOnly": true, + "description": "Localized friendly name for the operation." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Operation description." + } + }, + "description": "Display metadata associated with the operation." + }, + "Operation": { + "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." + }, + "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." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "The list of resource provider operations." + } + }, + "description": "A list of resource provider operations." + }, + "LogFileProperties": { + "properties": { + "name": { + "type": "string", + "description": "Log file name." + }, + "sizeInKB": { + "type": "integer", + "format": "int64", + "description": "Size of the log file." + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation timestamp of the log file." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Last modified timestamp of the log file." + }, + "type": { + "type": "string", + "description": "Type of the log file." + }, + "url": { + "type": "string", + "description": "The url to download the log file from." + } + }, + "description": "The properties of a log file." + }, + "LogFile": { + "properties": { + "name": { + "type": "string", + "description": "The name of the log file." + }, + "properties": { + "$ref": "#/definitions/LogFileProperties", + "x-ms-client-flatten": true, + "description": "The properties of the log file." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a log file." + }, + "LogFileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LogFile" + }, + "description": "The list of log files." + } + }, + "description": "A list of log files." + }, + "PerformanceTierServiceLevelObjectives": { + "properties": { + "id": { + "type": "string", + "description": "ID for the service level objective." + }, + "edition": { + "type": "string", + "description": "Edition of the performance tier." + }, + "dtu": { + "type": "integer", + "description": "Database throughput unit associated with the service level objective" + }, + "storageMB": { + "type": "integer", + "description": "Maximum storage in MB associated with the service level objective" + } + }, + "description": "Service level objectives for performance tier." + }, + "PerformanceTierProperties": { + "properties": { + "id": { + "type": "string", + "description": "ID of the performance tier." + }, + "backupRetentionDays": { + "type": "integer", + "description": "Backup retention in days for the performance tier edition" + }, + "serviceLevelObjectives": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierServiceLevelObjectives" + }, + "description": "Service level objectives associated with the performance tier" + } + }, + "description": "Performance tier properties" + }, + "PerformanceTierListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierProperties" + }, + "description": "The list of performance tiers" + } + }, + "description": "A list of performance tiers." + }, + "NameAvailabilityRequest": { + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." + }, + "NameAvailability": { + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "FirewallRuleNameParameter": { + "name": "firewallRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server firewall rule.", + "x-ms-parameter-location": "method" + }, + "virtualNetworkRuleNameParameter": { + "name": "virtualNetworkRuleName", + "in": "path", + "description": "The name of the virtual network rule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database.", + "x-ms-parameter-location": "method" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server configuration.", + "x-ms-parameter-location": "method" + }, + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} From d07b46ce45140da40986837ad04ffb699075bda1 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 11:42:46 -0800 Subject: [PATCH 11/23] nit --- .../2017-12-01/postgresql.json | 103 +++++++++--------- 1 file changed, 51 insertions(+), 52 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index 9f5a28e725e2..3db298b84a8b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -1,8 +1,8 @@ { "swagger": "2.0", "info": { - "title": "MySQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "title": "PostgreSQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", "version": "2017-12-01" }, "host": "management.azure.com", @@ -34,16 +34,16 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}": { "put": { "tags": [ "Servers" ], - "operationId": "Servers_CreateOrUpdate", + "operationId": "Servers_Create", "x-ms-examples": { "ServerCreate": { "$ref": "./examples/ServerCreate.json" } }, - "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", + "description": "Creates a new server, or will overwrite an existing server.", "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -200,7 +200,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers": { "get": { "tags": [ "Servers" @@ -234,7 +234,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers": { "get": { "tags": [ "Servers" @@ -265,7 +265,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}": { "put": { "tags": [ "FirewallRules" @@ -395,7 +395,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules": { "get": { "tags": [ "FirewallRules" @@ -432,7 +432,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { "get": { "tags": [ "VirtualNetworkRules" @@ -577,7 +577,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules": { "get": { "tags": [ "VirtualNetworkRules" @@ -619,7 +619,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}": { "put": { "tags": [ "Databases" @@ -749,7 +749,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases": { "get": { "tags": [ "Databases" @@ -786,7 +786,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}": { "put": { "tags": [ "Configurations" @@ -871,7 +871,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations": { "get": { "tags": [ "Configurations" @@ -908,7 +908,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles": { "get": { "tags": [ "LogFiles" @@ -945,7 +945,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { "get": { "tags": [ "LocationBasedPerformanceTier" @@ -981,7 +981,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { "post": { "tags": [ "CheckNameAvailability" @@ -1007,7 +1007,6 @@ }, "description": "The required parameters for checking if resource name is available." } - ], "responses": { "200": { @@ -1019,7 +1018,7 @@ } } }, - "/providers/Microsoft.DBforMySQL/operations": { + "/providers/Microsoft.DBforPostgreSQL/operations": { "get": { "tags": [ "Operations" @@ -1050,8 +1049,8 @@ "type": "string", "description": "The version of a server.", "enum": [ - "5.6", - "5.7" + "9.5", + "9.6" ], "x-ms-enum": { "name": "ServerVersion", @@ -1850,37 +1849,37 @@ "description": "A list of performance tiers." }, "NameAvailabilityRequest": { - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Resource name to verify." - }, - "type": { - "type": "string", - "description": "Resource type used for verification." - } - }, - "description": "Request from client to check resource name availability." + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." }, "NameAvailability": { - "properties": { - "message": { - "type": "string", - "description": "Error Message." - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available." - }, - "reason": { - "type": "string", - "description": "Reason for name being unavailable." - } - }, - "description": "Represents a resource name availability." + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." } }, "parameters": { @@ -1955,4 +1954,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From f4f6971d307c9390f830449d334cf3d36e1d7467 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 11:53:31 -0800 Subject: [PATCH 12/23] Swagger changes for mysql 2017-12-01 --- .../2017-12-01/mysql.json | 78 ++++++++++++++----- 1 file changed, 57 insertions(+), 21 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json index c718b9283f98..1ad07a1e15fd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "title": "MySQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.", - "version": "2017-04-30-preview" + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "version": "2017-12-01" }, "host": "management.azure.com", "schemes": [ @@ -1154,12 +1154,6 @@ "type": "string", "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." }, - "storageMB": { - "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The maximum storage allowed for a server." - }, "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1184,20 +1178,49 @@ "fullyQualifiedDomainName": { "type": "string", "description": "The fully qualified domain name of a server." + }, + "EarliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "Earliest restore point creation time (ISO8601 format)" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." } }, "description": "The properties of a server." }, - "ServerPropertiesForCreate": { - "discriminator": "createMode", - "required": [ "createMode" ], + "StorageProfile": { "properties": { - "storageMB": { + "backupRetentionDays": { "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The maximum storage allowed for a server." + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackup", + "modelAsString": true + } }, + "storageMB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1206,6 +1229,21 @@ "$ref": "#/definitions/SslEnforcement", "description": "Enable ssl enforcement or not when connect to server." }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + }, "createMode": { "type": "string", "description": "The mode to create a new server.", @@ -1360,11 +1398,9 @@ }, "properties": { "properties": { - "storageMB": { - "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The max storage allowed for a server." + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." }, "administratorLoginPassword": { "type": "string", @@ -1919,4 +1955,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 31d068df2d2289cbc48af68fb36143382e7e0e49 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 13:09:59 -0800 Subject: [PATCH 13/23] Swagger for mysql 2017-12-01 --- .../examples/CheckNameAvailability.json | 2 +- .../examples/ConfigurationCreateOrUpdate.json | 22 ++-- .../2017-12-01/examples/ConfigurationGet.json | 20 ++-- .../examples/ConfigurationListByServer.json | 2 +- .../2017-12-01/examples/DatabaseCreate.json | 22 ++-- .../2017-12-01/examples/DatabaseDelete.json | 2 +- .../2017-12-01/examples/DatabaseGet.json | 10 +- .../examples/DatabaseListByServer.json | 18 +-- .../examples/FirewallRuleCreate.json | 10 +- .../examples/FirewallRuleDelete.json | 2 +- .../2017-12-01/examples/FirewallRuleGet.json | 6 +- .../examples/FirewallRuleListByServer.json | 10 +- .../examples/LogFileListByServer.json | 2 +- .../2017-12-01/examples/OperationList.json | 2 +- .../examples/PerformanceTiersList.json | 62 ---------- .../PerformanceTiersListByLocation.json | 89 ++++++++++----- .../2017-12-01/examples/ServerCreate.json | 69 ++++++----- .../2017-12-01/examples/ServerDelete.json | 2 +- .../2017-12-01/examples/ServerGet.json | 36 +++--- .../2017-12-01/examples/ServerList.json | 108 ++++++++++-------- .../examples/ServerListByResourceGroup.json | 105 +++++++++++------ .../2017-12-01/examples/ServerUpdate.json | 14 ++- .../VirtualNetworkRulesCreateOrUpdate.json | 10 +- .../examples/VirtualNetworkRulesDelete.json | 4 +- .../examples/VirtualNetworkRulesGet.json | 6 +- .../examples/VirtualNetworkRulesList.json | 10 +- 26 files changed, 349 insertions(+), 296 deletions(-) delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json index 57b9438f93ed..4543f9ced197 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "nameAvailabilityRequest": { "name": "name1", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json index d6d44aff8c30..c2b82a6e662b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -1,13 +1,13 @@ { "parameters": { - "configurationName": "event_scheduler", + "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ - "value": "ON", + "value": "off", "source": "user-override" } } @@ -16,16 +16,16 @@ "200": { "body": { "properties": { - "value": "ON", - "description": "Indicates the status of the Event Scheduler.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF,DISABLED", + "value": "off", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", "source": "user-override" }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", - "name": "event_scheduler", - "type": "Microsoft.DBforMySQL/servers/configurations" + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" } }, "202": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json index 28cd43dc862c..d97cd94623a2 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json @@ -1,25 +1,25 @@ { "parameters": { - "configurationName": "event_scheduler", + "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { "properties": { - "value": "OFF", - "description": "Indicates the status of the Event Scheduler.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF,DISABLED", + "value": "on", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", "source": "system-default" }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", - "name": "event_scheduler", - "type": "Microsoft.DBforMySQL/servers/configurations" + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json index 275bb1cce4b4..6997276e5cbd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json index 3b2601ec7762..3245c04055fd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json @@ -3,35 +3,35 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ - "charset":"utf8", - "collation":"utf8_general_ci" + "charset":"UTF8", + "collation":"English_United States.1252" } } }, "responses": { "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", + "type": "Microsoft.DBforPostgreSQL/servers/databases", "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" + "charset": "UTF8", + "collation": "English_United States.1252" } } }, "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", + "type": "Microsoft.DBforPostgreSQL/servers/databases", "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" + "charset": "UTF8", + "collation": "English_United States.1252" } } }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json index 600a8fd87165..6706a74576de 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json index cb7cf4e9e0bc..a2b6de88d3d2 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json @@ -3,18 +3,18 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", + "type": "Microsoft.DBforPostgreSQL/servers/databases", "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" + "charset": "UTF8", + "collation": "English_United States.1252" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json index 8de5b643abed..8f721fa560c7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -10,21 +10,21 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", + "type": "Microsoft.DBforPostgreSQL/servers/databases", "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" + "charset": "UTF8", + "collation": "English_United States.1252" } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db2", "name": "db2", - "type": "Microsoft.DBforMySQL/servers/databases", + "type": "Microsoft.DBforPostgreSQL/servers/databases", "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" + "charset": "UTF8", + "collation": "English_United States.1252" } } ] diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json index 0fd24aeca93c..33b2aca7aff4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ @@ -15,9 +15,9 @@ "responses": { "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" @@ -26,9 +26,9 @@ }, "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json index 7dde700aa259..d8348f45a659 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json index 81b79fac78fd..eb5bf7d32c58 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json @@ -3,15 +3,15 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json index e3626d5616a4..931fe7382303 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -10,18 +10,18 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule2", "name": "rule2", - "type": "Microsoft.DBforMySQL/servers/firewallRules", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", "properties": { "startIpAddress": "1.0.0.0", "endIpAddress": "255.0.0.0" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json index e6b662e34a16..acddbf5b7002 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json index a3346c8be6dc..fdf7d2efea87 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json deleted file mode 100644 index 463ea5f6c716..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersList.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2017-04-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "Basic", - "backupRetentionDays": 7, - "serviceLevelObjectives": [ - { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "MYSQLB50" - }, - { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "MYSQLB100" - } - ] - }, - { - "id": "Standard", - "backupRetentionDays": 35, - "serviceLevelObjectives": [ - { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "MYSQLS100" - }, - { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "MYSQLS200" - }, - { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "MYSQLS400" - }, - { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "MYSQLS800" - } - ] - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json index 4025aa45560f..05678be5a5bd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -9,50 +9,83 @@ "body": { "value": [ { - "id": "Basic", - "backupRetentionDays": 7, + "Id": "Basic", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 1024000, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "MYSQLB50" + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_B_Gen4_1", + "VCore": 1 }, { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "MYSQLB100" + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_B_Gen4_2", + "VCore": 2 } ] }, { - "id": "Standard", - "backupRetentionDays": 35, + "Id": "GeneralPurpose", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "MYSQLS100" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_2", + "VCore": 2 }, { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "MYSQLS200" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_4", + "VCore": 4 }, { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "MYSQLS400" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_8", + "VCore": 8 }, { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "MYSQLS800" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_32", + "VCore": 32 + } + ] + }, + { + "Id": "MemoryOptimized", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, + "serviceLevelObjectives": [ + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_2", + "VCore": 2 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_8", + "VCore": 4 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_16", + "VCore": 8 } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json index 26e96603f4f5..8509217ae15c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json @@ -2,21 +2,26 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "OneBox", "properties": { "administratorLogin": "cloudsa", "administratorLoginPassword": "password", - "storageMB": 1024, "sslEnforcement": "Enabled", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "createMode": "Default" }, "sku": { "name": "SkuName", "tier": "Basic", - "capacity": 100 + "capacity": 2, + "Family": "Gen4" }, "tags": { "ElasticServer": "1" @@ -26,48 +31,58 @@ "responses": { "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" } }, "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" } }, "202": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json index 50b9770f2180..6427e09c2b08 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json index 209d045467be..b683c21bc02f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json @@ -2,31 +2,37 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json index 1f52a4ae74c7..6d6520ef7272 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -8,67 +8,85 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/serv1", - "name": "serv1", - "type": "Microsoft.DBforMySQL/servers", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforMySQL/servers/serv2", - "name": "serv2", - "type": "Microsoft.DBforMySQL/servers", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv2.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json index ca3ef13688e9..51a10f295810 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -1,55 +1,94 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/serv1", - "name": "serv1", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 - }, - "tags": { - "elasticServer": "1" - }, - "properties": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "sku": { - "name": "MYSQLS3M100", - "tier": "Basic", - "capacity": 100 + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, - "tags": { - "elasticServer": "1" + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, - "properties": { + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } - } ] } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json index baeb419e3728..2860618dae63 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ @@ -14,12 +14,12 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", + "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", "sku": { - "name": "MYSQLS3M100", + "name": "PGSQLB100", "tier": "Basic", "capacity": 100 }, @@ -28,7 +28,11 @@ }, "properties": { "administratorLogin": "cloudsa", - "storageMB": 1024, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sslEnforcement": "Disabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json index 21e251e153a0..7e65de762b66 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "parameters": { "properties": { "ignoreMissingVnetServiceEndpoint": false, @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" @@ -26,9 +26,9 @@ }, "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json index 94b5feeccec2..0748e9fc127f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -4,8 +4,8 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" - }, + "api-version": "2017-12-01" + }, "responses": { "200": { "body": "" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json index cbb69959a346..65139ffd7cc5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -4,14 +4,14 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "state": "Ready", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json index b687ec244874..8171f2792cde 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -4,16 +4,16 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "state": "Ready", @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "state": "Ready", From 07a66c517966bf47eb05e19ebfc585448aa22818 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 14:05:36 -0800 Subject: [PATCH 14/23] Swagger modifications for mysql --- .../examples/ConfigurationCreateOrUpdate.json | 4 +- .../2017-12-01/examples/ConfigurationGet.json | 4 +- .../2017-12-01/examples/DatabaseCreate.json | 8 +- .../2017-12-01/examples/DatabaseGet.json | 4 +- .../examples/DatabaseListByServer.json | 8 +- .../examples/FirewallRuleCreate.json | 8 +- .../2017-12-01/examples/FirewallRuleGet.json | 4 +- .../examples/FirewallRuleListByServer.json | 8 +- .../PerformanceTiersListByLocation.json | 91 ++++++------------- .../2017-12-01/examples/ServerCreate.json | 8 +- .../2017-12-01/examples/ServerGet.json | 4 +- .../2017-12-01/examples/ServerList.json | 12 +-- .../examples/ServerListByResourceGroup.json | 12 +-- .../2017-12-01/examples/ServerUpdate.json | 4 +- .../VirtualNetworkRulesCreateOrUpdate.json | 8 +- .../examples/VirtualNetworkRulesDelete.json | 2 +- .../examples/VirtualNetworkRulesGet.json | 4 +- .../examples/VirtualNetworkRulesList.json | 8 +- .../2017-12-01/mysql.json | 33 ------- 19 files changed, 84 insertions(+), 150 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json index c2b82a6e662b..4deef0d0e4f1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -23,9 +23,9 @@ "allowedValues": "on,off", "source": "user-override" }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" + "type": "Microsoft.DBforMySQL/servers/configurations" } }, "202": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json index d97cd94623a2..e2a87000ca32 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json @@ -17,9 +17,9 @@ "allowedValues": "on,off", "source": "system-default" }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" + "type": "Microsoft.DBforMySQL/servers/configurations" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json index 3245c04055fd..7f6218487a35 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json @@ -15,9 +15,9 @@ "responses": { "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", + "type": "Microsoft.DBforMySQL/servers/databases", "properties": { "charset": "UTF8", "collation": "English_United States.1252" @@ -26,9 +26,9 @@ }, "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", + "type": "Microsoft.DBforMySQL/servers/databases", "properties": { "charset": "UTF8", "collation": "English_United States.1252" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json index a2b6de88d3d2..24bd2a0616fb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", + "type": "Microsoft.DBforMySQL/servers/databases", "properties": { "charset": "UTF8", "collation": "English_United States.1252" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json index 8f721fa560c7..2dee8ad55cd9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json @@ -10,18 +10,18 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", + "type": "Microsoft.DBforMySQL/servers/databases", "properties": { "charset": "UTF8", "collation": "English_United States.1252" } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db2", "name": "db2", - "type": "Microsoft.DBforPostgreSQL/servers/databases", + "type": "Microsoft.DBforMySQL/servers/databases", "properties": { "charset": "UTF8", "collation": "English_United States.1252" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json index 33b2aca7aff4..9d9cee7bb309 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json @@ -15,9 +15,9 @@ "responses": { "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "type": "Microsoft.DBforMySQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" @@ -26,9 +26,9 @@ }, "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "type": "Microsoft.DBforMySQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json index eb5bf7d32c58..e78102ff408a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "type": "Microsoft.DBforMySQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json index 931fe7382303..40de6a14928d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -10,18 +10,18 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "type": "Microsoft.DBforMySQL/servers/firewallRules", "properties": { "startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255" } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule2", "name": "rule2", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "type": "Microsoft.DBforMySQL/servers/firewallRules", "properties": { "startIpAddress": "1.0.0.0", "endIpAddress": "255.0.0.0" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json index 05678be5a5bd..27b88169b4f9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, @@ -9,83 +9,50 @@ "body": { "value": [ { - "Id": "Basic", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 1024000, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, + "id": "Basic", + "backupRetentionDays": 7, "serviceLevelObjectives": [ { - "Edition": "Basic", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_B_Gen4_1", - "VCore": 1 + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "MYSQLB50" }, { - "Edition": "Basic", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_B_Gen4_2", - "VCore": 2 + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "MYSQLB100" } ] }, { - "Id": "GeneralPurpose", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 2097152, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, + "id": "Standard", + "backupRetentionDays": 35, "serviceLevelObjectives": [ { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_2", - "VCore": 2 + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "MYSQLS100" }, { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_4", - "VCore": 4 + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "MYSQLS200" }, { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_8", - "VCore": 8 + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "MYSQLS400" }, { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_32", - "VCore": 32 - } - ] - }, - { - "Id": "MemoryOptimized", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 2097152, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, - "serviceLevelObjectives": [ - { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_2", - "VCore": 2 - }, - { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_8", - "VCore": 4 - }, - { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_16", - "VCore": 8 + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "MYSQLS800" } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json index 8509217ae15c..becc024291fe 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json @@ -31,9 +31,9 @@ "responses": { "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "storageProfile": { "StorageMB": 128000, @@ -59,9 +59,9 @@ }, "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "storageProfile": { "StorageMB": 128000, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json index b683c21bc02f..9b250b5fc3c5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json @@ -8,9 +8,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json index 6d6520ef7272..5d743e31178e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" @@ -35,9 +35,9 @@ "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", "name": "testserver1", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" @@ -62,9 +62,9 @@ "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", "name": "testserver2", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json index 51a10f295810..5b12c946eb92 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" @@ -36,9 +36,9 @@ "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", "name": "testserver1", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" @@ -63,9 +63,9 @@ "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", "name": "testserver2", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "tags": { "elasticServer": "1" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json index 2860618dae63..d336f49266dd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json @@ -14,9 +14,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", + "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "sku": { "name": "PGSQLB100", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json index 7e65de762b66..e7baa8266bbd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" @@ -26,9 +26,9 @@ }, "201": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json index 0748e9fc127f..fb3336a3e4b5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -5,7 +5,7 @@ "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", "api-version": "2017-12-01" - }, + }, "responses": { "200": { "body": "" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json index 65139ffd7cc5..50f18a6578e2 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "state": "Ready", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json index 8171f2792cde..459eed49d500 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -11,9 +11,9 @@ "body": { "value": [ { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "state": "Ready", @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", "properties": { "ignoreMissingVnetServiceEndpoint": false, "state": "Ready", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json index 1ad07a1e15fd..4eccb6e4f0eb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json @@ -945,39 +945,6 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/performanceTiers": { - "get": { - "tags": [ - "PerformanceTiers" - ], - "operationId": "PerformanceTiers_List", - "x-ms-examples": { - "PerformanceTiersList": { - "$ref": "./examples/PerformanceTiersList.json" - } - }, - "description": "List all the performance tiers in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PerformanceTierListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers": { "get": { "tags": [ From 9d24a83047fb2609ef7f696d5c02acdeabe23281 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 14:13:33 -0800 Subject: [PATCH 15/23] Removing files --- .../examples/CheckNameAvailability.json | 19 - .../examples/ConfigurationCreateOrUpdate.json | 33 - .../2017-12-01/examples/ConfigurationGet.json | 26 - .../examples/ConfigurationListByServer.json | 276 --- .../2017-12-01/examples/DatabaseCreate.json | 40 - .../2017-12-01/examples/DatabaseDelete.json | 14 - .../2017-12-01/examples/DatabaseGet.json | 22 - .../examples/DatabaseListByServer.json | 34 - .../examples/FirewallRuleCreate.json | 40 - .../examples/FirewallRuleDelete.json | 14 - .../2017-12-01/examples/FirewallRuleGet.json | 22 - .../examples/FirewallRuleListByServer.json | 34 - .../examples/LogFileListByServer.json | 42 - .../2017-12-01/examples/OperationList.json | 185 -- .../PerformanceTiersListByLocation.json | 63 - .../2017-12-01/examples/ServerCreate.json | 90 - .../2017-12-01/examples/ServerDelete.json | 13 - .../2017-12-01/examples/ServerGet.json | 39 - .../2017-12-01/examples/ServerList.json | 95 - .../examples/ServerListByResourceGroup.json | 96 - .../2017-12-01/examples/ServerUpdate.json | 44 - .../VirtualNetworkRulesCreateOrUpdate.json | 40 - .../examples/VirtualNetworkRulesDelete.json | 20 - .../examples/VirtualNetworkRulesGet.json | 23 - .../examples/VirtualNetworkRulesList.json | 37 - .../2017-12-01/mysql.json | 1925 ----------------- 26 files changed, 3286 deletions(-) delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json deleted file mode 100644 index 4543f9ced197..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "nameAvailabilityRequest": { - "name": "name1", - "type": "Microsoft.DBforMySQL" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "message": "", - "reason": "" - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json deleted file mode 100644 index 4deef0d0e4f1..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "configurationName": "array_nulls", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties":{ - "value": "off", - "source": "user-override" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "value": "off", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "user-override" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforMySQL/servers/configurations" - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json deleted file mode 100644 index e2a87000ca32..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "configurationName": "array_nulls", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "properties": { - "value": "on", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforMySQL/servers/configurations" - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json deleted file mode 100644 index 6997276e5cbd..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json +++ /dev/null @@ -1,276 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "value": "OFF", - "description": "Indicates the status of the Event Scheduler.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF,DISABLED", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", - "name": "event_scheduler", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "4", - "description": "Number of digits by which to increase the scale of the result of division operations.", - "defaultValue": "4", - "dataType": "Integer", - "allowedValues": "0-30", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/div_precision_increment", - "name": "div_precision_increment", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "1024", - "description": "Maximum allowed result length in bytes for the GROUP_CONCAT().", - "defaultValue": "1024", - "dataType": "Integer", - "allowedValues": "4-16777216", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/group_concat_max_len", - "name": "group_concat_max_len", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "ON", - "description": "Whether innodb adaptive hash indexes are enabled or disabled.", - "defaultValue": "ON", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/innodb_adaptive_hash_index", - "name": "innodb_adaptive_hash_index", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "50", - "description": "The length of time in seconds an InnoDB transaction waits for a row lock before giving up.", - "defaultValue": "50", - "dataType": "Integer", - "allowedValues": "1-3600", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/innodb_lock_wait_timeout", - "name": "innodb_lock_wait_timeout", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "1800", - "description": "Number of seconds the server waits for activity on an interactive connection before closing it.", - "defaultValue": "1800", - "dataType": "Integer", - "allowedValues": "10-1800", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/interactive_timeout", - "name": "interactive_timeout", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "OFF", - "description": "Logs queries that are expected to retrieve all rows to slow query log.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_queries_not_using_indexes", - "name": "log_queries_not_using_indexes", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Limits the number of such queries per minute that can be written to the slow query log.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-4294967295", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_throttle_queries_not_using_indexes", - "name": "log_throttle_queries_not_using_indexes", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "OFF", - "description": "Include slow administrative statements in the statements written to the slow query log.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_slow_admin_statements", - "name": "log_slow_admin_statements", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "OFF", - "description": "This variable applies when binary logging is enabled. It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF,FALSE", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_bin_trust_function_creators", - "name": "log_bin_trust_function_creators", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "10", - "description": "If a query takes longer than this many seconds, the server increments the Slow_queries status variable.", - "defaultValue": "10", - "dataType": "Numeric", - "allowedValues": "1-1E+100", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/long_query_time", - "name": "long_query_time", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Can be used to cause queries which examine fewer than the stated number of rows not to be logged.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-18446744073709551615", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/min_examined_row_limit", - "name": "min_examined_row_limit", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "OFF", - "description": "Enable or disable the slow query log", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/slow_query_log", - "name": "slow_query_log", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "", - "description": "The current server SQL mode.", - "defaultValue": "", - "dataType": "Set", - "allowedValues": ",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/sql_mode", - "name": "sql_mode", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "120", - "description": "The number of seconds the server waits for activity on a noninteractive connection before closing it.", - "defaultValue": "120", - "dataType": "Integer", - "allowedValues": "60-240", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/wait_timeout", - "name": "wait_timeout", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "1129667931", - "description": "The server ID, used in replication to give each master and slave a unique identity.", - "defaultValue": "1000", - "dataType": "Integer", - "allowedValues": "1000-4294967295", - "source": "user-override" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/server_id", - "name": "server_id", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "536870912", - "description": "The maximum size of one packet or any generated/intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function.", - "defaultValue": "536870912", - "dataType": "Integer", - "allowedValues": "1024-1073741824", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/max_allowed_packet", - "name": "max_allowed_packet", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "60", - "description": "The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect.", - "defaultValue": "60", - "dataType": "Integer", - "allowedValues": "30-3600", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/slave_net_timeout", - "name": "slave_net_timeout", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "SYSTEM", - "description": "The server time zone", - "defaultValue": "SYSTEM", - "dataType": "String", - "allowedValues": "[+|-][0]{0,1}[0-9]:[0-5][0-9]|[+|-][1][0-2]:[0-5][0-9]|SYSTEM", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/time_zone", - "name": "time_zone", - "type": "Microsoft.DBforMySQL/servers/configurations" - }, - { - "properties": { - "value": "latin1", - "description": "Use charset_name as the default server character set.", - "defaultValue": "latin1", - "dataType": "Enumeration", - "allowedValues": "BIG5,DEC8,CP850,HP8,KOI8R,LATIN1,LATIN2,SWE7,ASCII,UJIS,SJIS,HEBREW,TIS620,EUCKR,KOI8U,GB2312,GREEK,CP1250,GBK,LATIN5,ARMSCII8,UTF8,UCS2,CP866,KEYBCS2,MACCE,MACROMAN,CP852,LATIN7,UTF8MB4,CP1251,UTF16,CP1256,CP1257,UTF32,BINARY,GEOSTD8,CP932,EUCJPMS", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/character_set_server", - "name": "character_set_server", - "type": "Microsoft.DBforMySQL/servers/configurations" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json deleted file mode 100644 index 7f6218487a35..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties":{ - "charset":"UTF8", - "collation":"English_United States.1252" - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json deleted file mode 100644 index 6706a74576de..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json deleted file mode 100644 index 24bd2a0616fb..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json deleted file mode 100644 index 2dee8ad55cd9..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db2", - "name": "db2", - "type": "Microsoft.DBforMySQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json deleted file mode 100644 index 9d9cee7bb309..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "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.DBforMySQL/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json deleted file mode 100644 index d8348f45a659..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json deleted file mode 100644 index e78102ff408a..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json deleted file mode 100644 index 40de6a14928d..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule2", - "name": "rule2", - "type": "Microsoft.DBforMySQL/servers/firewallRules", - "properties": { - "startIpAddress": "1.0.0.0", - "endIpAddress": "255.0.0.0" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json deleted file mode 100644 index acddbf5b7002..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "name": "mysql-slow-testserver-2017042102.log", - "sizeInKB": 1, - "createdTime": "0001-01-01T00:00:00+00:00", - "lastModifiedTime": "2017-04-21T03:02:23+00:00", - "type": "slowlog", - "url": "https://wasd2orcasseas1aelsfse0.file.core.windows.net/52bd047495b3459b95185a1738cbaeac/serverlogs/mysql-slow-testserver-2017042102.log?sv=2015-04-05&sr=f&sig=zt6C6CBMygNbwzbDw5qcU%2F3duOgP9ZERQ8aWJr7fnuM%3D&se=2017-04-21T04%3A02%3A33Z&sp=r" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/mysql-slow-testserver-2017042102.log", - "name": "mysql-slow-testserver-2017042102.log", - "type": "Microsoft.DBforMySQL/servers/logFiles" - }, - { - "properties": { - "name": "mysql-slow-testserver-2017042202.log", - "sizeInKB": 1, - "createdTime": "0001-01-01T00:00:00+00:00", - "lastModifiedTime": "2017-04-22T03:02:23+00:00", - "type": "slowlog", - "url": "https://wasd2orcasseas1aelsfse0.file.core.windows.net/52bd047495b3459b95185a1738cbaeac/serverlogs/mysql-slow-testserver-2017042202.log?sv=2015-04-05&sr=f&sig=zt6C6CBMygNbwzbDw5qcU%2F3duOgP9ZERQ8aWJr7fnuM%3D&se=2017-04-22T04%3A02%3A33Z&sp=r" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/mysql-slow-testserver-2017042202.log", - "name": "mysql-slow-testserver-2017042202.log", - "type": "Microsoft.DBforMySQL/servers/logFiles" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json deleted file mode 100644 index fdf7d2efea87..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.DBforMySQL/servers/firewallRules/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Firewall Rules", - "operation": "List/Get Firewall Rules", - "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." - } - }, - { - "name": "Microsoft.DBforMySQL/servers/firewallRules/write", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Firewall Rules", - "operation": "Create/Update Firewall Rule", - "description": "Creates a firewall rule with the specified parameters or update an existing rule." - } - }, - { - "name": "Microsoft.DBforMySQL/servers/firewallRules/delete", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Firewall Rules", - "operation": "Delete Firewall Rule", - "description": "Deletes an existing firewall rule." - } - }, - { - "name": "Microsoft.DBforMySQL/servers/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "MySQL Server", - "operation": "List/Get MySQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforMySQL/servers/write", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "MySQL Server", - "operation": "Create/Update MySQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforMySQL/servers/delete", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "MySQL Server", - "operation": "Delete MySQL Server", - "description": "Deletes an existing server." - } - }, - { - "name": "Microsoft.DBforMySQL/performanceTiers/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Performance Tiers", - "operation": "List Performance Tiers", - "description": "Returns the list of Performance Tiers available." - } - }, - { - "name": "Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft DB for MySQL", - "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": "compute_limit", - "displayName": "Compute limit", - "displayDescription": "Compute limit", - "unit": "Count", - "aggregationType": "Average" - }, - { - "name": "compute_consumption_percent", - "displayName": "Compute percentage", - "displayDescription": "Compute percentage", - "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.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Database Metric Definition", - "operation": "Read diagnostic setting", - "description": "Gets the disagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Database Metric Definition", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json deleted file mode 100644 index 27b88169b4f9..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "locationName": "WestUS" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "Basic", - "backupRetentionDays": 7, - "serviceLevelObjectives": [ - { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "MYSQLB50" - }, - { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "MYSQLB100" - } - ] - }, - { - "id": "Standard", - "backupRetentionDays": 35, - "serviceLevelObjectives": [ - { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "MYSQLS100" - }, - { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "MYSQLS200" - }, - { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "MYSQLS400" - }, - { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "MYSQLS800" - } - ] - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json deleted file mode 100644 index becc024291fe..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "location": "OneBox", - "properties": { - "administratorLogin": "cloudsa", - "administratorLoginPassword": "password", - "sslEnforcement": "Enabled", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "createMode": "Default" - }, - "sku": { - "name": "SkuName", - "tier": "Basic", - "capacity": 2, - "Family": "Gen4" - }, - "tags": { - "ElasticServer": "1" - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "tags": { - "elasticServer": "1" - }, - "administratorLogin": "cloudsa", - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "tags": { - "elasticServer": "1" - }, - "administratorLogin": "cloudsa", - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json deleted file mode 100644 index 6427e09c2b08..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json deleted file mode 100644 index 9b250b5fc3c5..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json deleted file mode 100644 index 5d743e31178e..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", - "name": "testserver1", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", - "name": "testserver2", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json deleted file mode 100644 index 5b12c946eb92..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", - "name": "testserver1", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", - "name": "testserver2", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json deleted file mode 100644 index d336f49266dd..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties":{ - "administratorLoginPassword":"newpassword", - "sslEnforcement": "Disabled" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, - "tags": { - "elasticServer": "1" - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sslEnforcement": "Disabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json deleted file mode 100644 index e7baa8266bbd..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01", - "parameters": { - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json deleted file mode 100644 index fb3336a3e4b5..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json deleted file mode 100644 index 50f18a6578e2..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "state": "Ready", - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json deleted file mode 100644 index 459eed49d500..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "state": "Ready", - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "state": "Ready", - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json deleted file mode 100644 index 4eccb6e4f0eb..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json +++ /dev/null @@ -1,1925 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "MySQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", - "version": "2017-12-01" - }, - "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}": { - "put": { - "tags": [ - "Servers" - ], - "operationId": "Servers_CreateOrUpdate", - "x-ms-examples": { - "ServerCreate": { "$ref": "./examples/ServerCreate.json" } - }, - "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServerForCreate" - }, - "description": "The required parameters for creating or updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Update", - "x-ms-examples": { - "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" } - }, - "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServerUpdateParameters" - }, - "description": "The required parameters for updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Delete", - "x-ms-examples": { - "ServerDelete": { "$ref": "./examples/ServerDelete.json" } - }, - "description": "Deletes a server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Get", - "x-ms-examples": { - "ServerGet": { "$ref": "./examples/ServerGet.json" } - }, - "description": "Gets information about a server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_ListByResourceGroup", - "x-ms-examples": { - "ServerListByResourceGroup": { "$ref": "./examples/ServerListByResourceGroup.json" } - }, - "description": "List all the servers in a given resource group.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_List", - "x-ms-examples": { - "ServerList": { "$ref": "./examples/ServerList.json" } - }, - "description": "List all the servers in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}": { - "put": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_CreateOrUpdate", - "x-ms-examples": { - "FirewallRuleCreate": { "$ref": "./examples/FirewallRuleCreate.json" } - }, - "description": "Creates a new firewall rule or updates an existing firewall rule.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$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" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Delete", - "x-ms-examples": { - "FirewallRuleDelete": { "$ref": "./examples/FirewallRuleDelete.json" } - }, - "description": "Deletes a server firewall rule.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Get", - "x-ms-examples": { - "FirewallRuleGet": { "$ref": "./examples/FirewallRuleGet.json" } - }, - "description": "Gets information about a server firewall rule.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules": { - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_ListByServer", - "x-ms-examples": { - "FirewallRuleList": { "$ref": "./examples/FirewallRuleListByServer.json" } - }, - "description": "List all the firewall rules in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRuleListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { - "get": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Gets a virtual network rule.", - "operationId": "VirtualNetworkRules_Get", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/virtualNetworkRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved a specified virtual network rule.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." - } - }, - "x-ms-examples": { - "Gets a virtual network rule": { - "$ref": "./examples/VirtualNetworkRulesGet.json" - } - } - }, - "put": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Creates or updates an existing virtual network rule.", - "operationId": "VirtualNetworkRules_CreateOrUpdate", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/virtualNetworkRuleNameParameter" - }, - { - "name": "parameters", - "in": "body", - "description": "The requested virtual Network Rule Resource state.", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - } - ], - "responses": { - "200": { - "description": "Successfully updated a virtual network rule.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." - }, - "202": { - "description": "Accepted" - }, - "201": { - "description": "Successfully created a virtual network rule.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update a virtual network rule": { - "$ref": "./examples/VirtualNetworkRulesCreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Deletes the virtual network rule with the given name.", - "operationId": "VirtualNetworkRules_Delete", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/virtualNetworkRuleNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully deleted the virtual network rule." - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "The specified virtual network rule does not exist." - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a virtual network rule": { - "$ref": "./examples/VirtualNetworkRulesDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules": { - "get": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Gets a list of virtual network rules in a server.", - "operationId": "VirtualNetworkRules_ListByServer", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of virtual network rules.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRuleListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List virtual network rules": { - "$ref": "./examples/VirtualNetworkRulesList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}": { - "put": { - "tags": [ - "Databases" - ], - "operationId": "Databases_CreateOrUpdate", - "x-ms-examples": { - "DatabaseCreate": { "$ref": "./examples/DatabaseCreate.json" } - }, - "description": "Creates a new database or updates an existing database.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Database" - }, - "description": "The required parameters for creating or updating a database." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Databases" - ], - "operationId": "Databases_Delete", - "x-ms-examples": { - "DatabaseDelete": { "$ref": "./examples/DatabaseDelete.json" } - }, - "description": "Deletes a database.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_Get", - "x-ms-examples": { - "DatabaseGet": { "$ref": "./examples/DatabaseGet.json" } - }, - "description": "Gets information about a database.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_ListByServer", - "x-ms-examples": { - "DatabaseList": { "$ref": "./examples/DatabaseListByServer.json" } - }, - "description": "List all the databases in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}": { - "put": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_CreateOrUpdate", - "x-ms-examples": { - "ConfigurationCreateOrUpdate": { "$ref": "./examples/ConfigurationCreateOrUpdate.json" } - }, - "description": "Updates a configuration of a server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Configuration" - }, - "description": "The required parameters for updating a server configuration." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Get", - "x-ms-examples": { - "ConfigurationGet": { "$ref": "./examples/ConfigurationGet.json" } - }, - "description": "Gets information about a configuration of server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations": { - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_ListByServer", - "x-ms-examples": { - "ConfigurationList": { "$ref": "./examples/ConfigurationListByServer.json" } - }, - "description": "List all the configurations in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConfigurationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles": { - "get": { - "tags": [ - "LogFiles" - ], - "operationId": "LogFiles_ListByServer", - "x-ms-examples": { - "LogFileList": { "$ref": "./examples/LogFileListByServer.json" } - }, - "description": "List all the log files in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LogFileListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers": { - "get": { - "tags": [ - "LocationBasedPerformanceTier" - ], - "operationId": "LocationBasedPerformanceTier_List", - "x-ms-examples": { - "PerformanceTiersList": { - "$ref": "./examples/PerformanceTiersListByLocation.json" - } - }, - "description": "List all the performance tiers at specified location in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PerformanceTierListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { - "post": { - "tags": [ - "CheckNameAvailability" - ], - "operationId": "CheckNameAvailability_Execute", - "x-ms-examples": { - "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" } - }, - "description": "Check the availability of name for resource", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/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" - } - } - } - } - }, - "/providers/Microsoft.DBforMySQL/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "x-ms-examples": { - "OperationList": { "$ref": "./examples/OperationList.json" } - }, - "description": "Lists all of the available REST API operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - } - } - } - }, - "definitions": { - "ServerVersion": { - "type": "string", - "description": "The version of a server.", - "enum": [ - "5.6", - "5.7" - ], - "x-ms-enum": { - "name": "ServerVersion", - "modelAsString": true - } - }, - "SslEnforcement": { - "type": "string", - "description": "Enable ssl enforcement or not when connect to server.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "SslEnforcementEnum", - "modelAsString": false - } - }, - "ProxyResource": { - "description": "Resource properties.", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource ID" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - } - }, - "x-ms-azure-resource": true - }, - "TrackedResource": { - "description": "Resource properties including location and tags for track resources.", - "properties": { - "location": { - "type": "string", - "description": "The location the resource resides in." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "required": [ - "location" - ] - }, - "ServerProperties": { - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "Server version." - }, - "sslEnforcement": { - "$ref": "#/definitions/SslEnforcement", - "description": "Enable ssl enforcement or not when connect to server." - }, - "userVisibleState": { - "type": "string", - "description": "A state of a server that is visible to user.", - "enum": [ - "Ready", - "Dropping", - "Disabled" - ], - "x-ms-enum": { - "name": "ServerState", - "modelAsString": true - } - }, - "fullyQualifiedDomainName": { - "type": "string", - "description": "The fully qualified domain name of a server." - }, - "EarliestRestoreDate": { - "type": "string", - "format": "date-time", - "description": "Earliest restore point creation time (ISO8601 format)" - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - } - }, - "description": "The properties of a server." - }, - "StorageProfile": { - "properties": { - "backupRetentionDays": { - "type": "integer", - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "type": "string", - "description": "The tier of the particular SKU, e.g. Basic.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "GeoRedundantBackup", - "modelAsString": true - } - }, - "storageMB": { - "type": "integer", - "format": "int32", - "description": "Max storage allowed for a server." - } - }, - "description": "Storage Profile properties of a server" - }, - "ServerPropertiesForCreate": { - "discriminator": "createMode", - "required": [ "createMode" ], - "properties": { - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "Server version." - }, - "sslEnforcement": { - "$ref": "#/definitions/SslEnforcement", - "description": "Enable ssl enforcement or not when connect to server." - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - }, - "createMode": { - "type": "string", - "description": "The mode to create a new server.", - "enum": [ - "Default", - "PointInTimeRestore" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - } - } - }, - "description": "The properties used to create a new server." - }, - "ServerPropertiesForDefaultCreate": { - "x-ms-discriminator-value": "Default", - "allOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - } - ], - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - } - }, - "required": [ - "administratorLogin", - "administratorLoginPassword" - ], - "description": "The properties used to create a new server." - }, - "ServerPropertiesForRestore": { - "x-ms-discriminator-value": "PointInTimeRestore", - "allOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - } - ], - "properties": { - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." - } - }, - "required": [ - "sourceServerId", - "restorePointInTime" - ], - "description": "The properties to a new server by restoring from a backup." - }, - "Sku": { - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, a letter + Number code, e.g. P3." - }, - "tier": { - "type": "string", - "description": "The tier of the particular SKU, e.g. Basic.", - "enum": [ - "Basic", - "Standard" - ], - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - }, - "capacity": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "The scale up/out capacity, representing server's compute units." - }, - "size": { - "type": "string", - "description": "The size code, to be interpreted by resource as appropriate." - }, - "family": { - "type": "string", - "description": "The family of hardware." - } - }, - "description": "Billing information related properties of a server." - }, - "Server": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerProperties", - "x-ms-client-flatten": true, - "description": "Properties of the server." - } - }, - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Represents a server." - }, - "ServerForCreate": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerPropertiesForCreate", - "x-ms-client-flatten": false, - "description": "Properties of the server." - }, - "location": { - "type": "string", - "description": "The location the resource resides in." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "required": [ - "properties", - "location" - ], - "description": "Represents a server to be created." - }, - "ServerUpdateParameters": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "properties": { - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "The version of a server." - }, - "sslEnforcement": { - "$ref": "#/definitions/SslEnforcement", - "description": "Enable ssl enforcement or not when connect to server." - } - }, - "x-ms-client-flatten": true, - "description": "The properties that can be updated for a server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "description": "Parameters allowd to update for a server." - }, - "ServerListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Server" - }, - "description": "The list of servers" - } - }, - "description": "A list of servers." - }, - "FirewallRuleProperties": { - "properties": { - "startIpAddress": { - "type": "string", - "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])$", - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - }, - "endIpAddress": { - "type": "string", - "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])$", - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "startIpAddress", - "endIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "FirewallRule": { - "properties": { - "properties": { - "$ref": "#/definitions/FirewallRuleProperties", - "x-ms-client-flatten": true, - "description": "The properties of a firewall rule." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "required": [ - "properties" - ], - "description": "Represents a server firewall rule." - }, - "FirewallRuleListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/FirewallRule" - }, - "description": "The list of firewall rules in a server." - } - }, - "description": "A list of firewall rules." - }, - "VirtualNetworkRuleProperties": { - "description": "Properties of a virtual network rule.", - "required": [ - "virtualNetworkSubnetId" - ], - "type": "object", - "properties": { - "virtualNetworkSubnetId": { - "description": "The ARM resource id of the virtual network subnet.", - "type": "string" - }, - "ignoreMissingVnetServiceEndpoint": { - "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", - "type": "boolean" - }, - "state": { - "description": "Virtual Network Rule State", - "enum": [ - "Initializing", - "InProgress", - "Ready", - "Deleting", - "Unknown" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "VirtualNetworkRuleState", - "modelAsString": true - } - } - } - }, - "VirtualNetworkRule": { - "description": "A virtual network rule.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/VirtualNetworkRuleProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - } - }, - "VirtualNetworkRuleListResult": { - "description": "A list of virtual network rules.", - "type": "object", - "properties": { - "value": { - "description": "Array of results.", - "type": "array", - "items": { - "$ref": "#/definitions/VirtualNetworkRule" - }, - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "DatabaseProperties": { - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "Database": { - "properties": { - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "x-ms-client-flatten": true, - "description": "The properties of a database." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a Database." - }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases housed in a server" - } - }, - "description": "A List of databases." - }, - "ConfigurationProperties": { - "properties": { - "value": { - "type": "string", - "description": "Value of the configuration." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Description of the configuration." - }, - "defaultValue": { - "type": "string", - "readOnly": true, - "description": "Default value of the configuration." - }, - "dataType": { - "type": "string", - "readOnly": true, - "description": "Data type of the configuration." - }, - "allowedValues": { - "type": "string", - "readOnly": true, - "description": "Allowed values of the configuration." - }, - "source": { - "type": "string", - "description": "Source of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "Configuration": { - "properties": { - "properties": { - "$ref": "#/definitions/ConfigurationProperties", - "x-ms-client-flatten": true, - "description": "The properties of a configuration." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a Configuration." - }, - "ConfigurationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Configuration" - }, - "description": "The list of server configurations." - } - }, - "description": "A list of server configurations." - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "readOnly": true, - "description": "Operation resource provider name." - }, - "resource": { - "type": "string", - "readOnly": true, - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "readOnly": true, - "description": "Localized friendly name for the operation." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Operation description." - } - }, - "description": "Display metadata associated with the operation." - }, - "Operation": { - "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." - }, - "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." - } - }, - "description": "REST API operation definition." - }, - "OperationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "The list of resource provider operations." - } - }, - "description": "A list of resource provider operations." - }, - "LogFileProperties": { - "properties": { - "name": { - "type": "string", - "description": "Log file name." - }, - "sizeInKB": { - "type": "integer", - "format": "int64", - "description": "Size of the log file." - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation timestamp of the log file." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Last modified timestamp of the log file." - }, - "type": { - "type": "string", - "description": "Type of the log file." - }, - "url": { - "type": "string", - "description": "The url to download the log file from." - } - }, - "description": "The properties of a log file." - }, - "LogFile": { - "properties": { - "name": { - "type": "string", - "description": "The name of the log file." - }, - "properties": { - "$ref": "#/definitions/LogFileProperties", - "x-ms-client-flatten": true, - "description": "The properties of the log file." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a log file." - }, - "LogFileListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LogFile" - }, - "description": "The list of log files." - } - }, - "description": "A list of log files." - }, - "PerformanceTierServiceLevelObjectives": { - "properties": { - "id": { - "type": "string", - "description": "ID for the service level objective." - }, - "edition": { - "type": "string", - "description": "Edition of the performance tier." - }, - "dtu": { - "type": "integer", - "description": "Database throughput unit associated with the service level objective" - }, - "storageMB": { - "type": "integer", - "description": "Maximum storage in MB associated with the service level objective" - } - }, - "description": "Service level objectives for performance tier." - }, - "PerformanceTierProperties": { - "properties": { - "id": { - "type": "string", - "description": "ID of the performance tier." - }, - "backupRetentionDays": { - "type": "integer", - "description": "Backup retention in days for the performance tier edition" - }, - "serviceLevelObjectives": { - "type": "array", - "items": { - "$ref": "#/definitions/PerformanceTierServiceLevelObjectives" - }, - "description": "Service level objectives associated with the performance tier" - } - }, - "description": "Performance tier properties" - }, - "PerformanceTierListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PerformanceTierProperties" - }, - "description": "The list of performance tiers" - } - }, - "description": "A list of performance tiers." - }, - "NameAvailabilityRequest": { - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Resource name to verify." - }, - "type": { - "type": "string", - "description": "Resource type used for verification." - } - }, - "description": "Request from client to check resource name availability." - }, - "NameAvailability": { - "properties": { - "message": { - "type": "string", - "description": "Error Message." - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available." - }, - "reason": { - "type": "string", - "description": "Reason for name being unavailable." - } - }, - "description": "Represents a resource name availability." - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The subscription ID that identifies an Azure subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the request." - }, - "ResourceGroupParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", - "x-ms-parameter-location": "method" - }, - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method" - }, - "FirewallRuleNameParameter": { - "name": "firewallRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server firewall rule.", - "x-ms-parameter-location": "method" - }, - "virtualNetworkRuleNameParameter": { - "name": "virtualNetworkRuleName", - "in": "path", - "description": "The name of the virtual network rule.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "DatabaseNameParameter": { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database.", - "x-ms-parameter-location": "method" - }, - "ConfigurationNameParameter": { - "name": "configurationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server configuration.", - "x-ms-parameter-location": "method" - }, - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file From 54f7c73730a5a79ddc59bd4470b66def56e2efd4 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 15:33:35 -0800 Subject: [PATCH 16/23] MYSQL performace tier and geo restore additions --- .../examples/CheckNameAvailability.json | 19 + .../examples/ConfigurationCreateOrUpdate.json | 33 + .../2017-12-01/examples/ConfigurationGet.json | 26 + .../examples/ConfigurationListByServer.json | 276 +++ .../2017-12-01/examples/DatabaseCreate.json | 40 + .../2017-12-01/examples/DatabaseDelete.json | 14 + .../2017-12-01/examples/DatabaseGet.json | 22 + .../examples/DatabaseListByServer.json | 34 + .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 14 + .../2017-12-01/examples/FirewallRuleGet.json | 22 + .../examples/FirewallRuleListByServer.json | 34 + .../examples/LogFileListByServer.json | 42 + .../2017-12-01/examples/OperationList.json | 185 ++ .../PerformanceTiersListByLocation.json | 96 + .../2017-12-01/examples/ServerCreate.json | 90 + .../2017-12-01/examples/ServerDelete.json | 13 + .../2017-12-01/examples/ServerGet.json | 39 + .../2017-12-01/examples/ServerList.json | 95 + .../examples/ServerListByResourceGroup.json | 96 + .../2017-12-01/examples/ServerUpdate.json | 44 + .../VirtualNetworkRulesCreateOrUpdate.json | 40 + .../examples/VirtualNetworkRulesDelete.json | 20 + .../examples/VirtualNetworkRulesGet.json | 23 + .../examples/VirtualNetworkRulesList.json | 37 + .../2017-12-01/mysql.json | 1958 +++++++++++++++++ .../examples/PerformanceTiersList.json | 62 - 27 files changed, 3352 insertions(+), 62 deletions(-) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..4543f9ced197 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/CheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforMySQL" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "reason": "" + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json new file mode 100644 index 000000000000..4deef0d0e4f1 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "value": "off", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "off", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json new file mode 100644 index 000000000000..e2a87000ca32 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "on", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..6997276e5cbd --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ConfigurationListByServer.json @@ -0,0 +1,276 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "OFF", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "4", + "description": "Number of digits by which to increase the scale of the result of division operations.", + "defaultValue": "4", + "dataType": "Integer", + "allowedValues": "0-30", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/div_precision_increment", + "name": "div_precision_increment", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "1024", + "description": "Maximum allowed result length in bytes for the GROUP_CONCAT().", + "defaultValue": "1024", + "dataType": "Integer", + "allowedValues": "4-16777216", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/group_concat_max_len", + "name": "group_concat_max_len", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "ON", + "description": "Whether innodb adaptive hash indexes are enabled or disabled.", + "defaultValue": "ON", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/innodb_adaptive_hash_index", + "name": "innodb_adaptive_hash_index", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "50", + "description": "The length of time in seconds an InnoDB transaction waits for a row lock before giving up.", + "defaultValue": "50", + "dataType": "Integer", + "allowedValues": "1-3600", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/innodb_lock_wait_timeout", + "name": "innodb_lock_wait_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "1800", + "description": "Number of seconds the server waits for activity on an interactive connection before closing it.", + "defaultValue": "1800", + "dataType": "Integer", + "allowedValues": "10-1800", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/interactive_timeout", + "name": "interactive_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Logs queries that are expected to retrieve all rows to slow query log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_queries_not_using_indexes", + "name": "log_queries_not_using_indexes", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Limits the number of such queries per minute that can be written to the slow query log.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-4294967295", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_throttle_queries_not_using_indexes", + "name": "log_throttle_queries_not_using_indexes", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Include slow administrative statements in the statements written to the slow query log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_slow_admin_statements", + "name": "log_slow_admin_statements", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "This variable applies when binary logging is enabled. It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,FALSE", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/log_bin_trust_function_creators", + "name": "log_bin_trust_function_creators", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "10", + "description": "If a query takes longer than this many seconds, the server increments the Slow_queries status variable.", + "defaultValue": "10", + "dataType": "Numeric", + "allowedValues": "1-1E+100", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/long_query_time", + "name": "long_query_time", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Can be used to cause queries which examine fewer than the stated number of rows not to be logged.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-18446744073709551615", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/min_examined_row_limit", + "name": "min_examined_row_limit", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Enable or disable the slow query log", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/slow_query_log", + "name": "slow_query_log", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "", + "description": "The current server SQL mode.", + "defaultValue": "", + "dataType": "Set", + "allowedValues": ",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/sql_mode", + "name": "sql_mode", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "120", + "description": "The number of seconds the server waits for activity on a noninteractive connection before closing it.", + "defaultValue": "120", + "dataType": "Integer", + "allowedValues": "60-240", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/wait_timeout", + "name": "wait_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "1129667931", + "description": "The server ID, used in replication to give each master and slave a unique identity.", + "defaultValue": "1000", + "dataType": "Integer", + "allowedValues": "1000-4294967295", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/server_id", + "name": "server_id", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "536870912", + "description": "The maximum size of one packet or any generated/intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function.", + "defaultValue": "536870912", + "dataType": "Integer", + "allowedValues": "1024-1073741824", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/max_allowed_packet", + "name": "max_allowed_packet", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "60", + "description": "The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect.", + "defaultValue": "60", + "dataType": "Integer", + "allowedValues": "30-3600", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/slave_net_timeout", + "name": "slave_net_timeout", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "SYSTEM", + "description": "The server time zone", + "defaultValue": "SYSTEM", + "dataType": "String", + "allowedValues": "[+|-][0]{0,1}[0-9]:[0-5][0-9]|[+|-][1][0-2]:[0-5][0-9]|SYSTEM", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/time_zone", + "name": "time_zone", + "type": "Microsoft.DBforMySQL/servers/configurations" + }, + { + "properties": { + "value": "latin1", + "description": "Use charset_name as the default server character set.", + "defaultValue": "latin1", + "dataType": "Enumeration", + "allowedValues": "BIG5,DEC8,CP850,HP8,KOI8R,LATIN1,LATIN2,SWE7,ASCII,UJIS,SJIS,HEBREW,TIS620,EUCKR,KOI8U,GB2312,GREEK,CP1250,GBK,LATIN5,ARMSCII8,UTF8,UCS2,CP866,KEYBCS2,MACCE,MACROMAN,CP852,LATIN7,UTF8MB4,CP1251,UTF16,CP1256,CP1257,UTF32,BINARY,GEOSTD8,CP932,EUCJPMS", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/character_set_server", + "name": "character_set_server", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json new file mode 100644 index 000000000000..7f6218487a35 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "charset":"UTF8", + "collation":"English_United States.1252" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..6706a74576de --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..24bd2a0616fb --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json new file mode 100644 index 000000000000..2dee8ad55cd9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/DatabaseListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db2", + "name": "db2", + "type": "Microsoft.DBforMySQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..9d9cee7bb309 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "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.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..d8348f45a659 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..e78102ff408a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json new file mode 100644 index 000000000000..40de6a14928d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforMySQL/servers/firewallRules", + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json new file mode 100644 index 000000000000..acddbf5b7002 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/LogFileListByServer.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "name": "mysql-slow-testserver-2017042102.log", + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-04-21T03:02:23+00:00", + "type": "slowlog", + "url": "https://wasd2orcasseas1aelsfse0.file.core.windows.net/52bd047495b3459b95185a1738cbaeac/serverlogs/mysql-slow-testserver-2017042102.log?sv=2015-04-05&sr=f&sig=zt6C6CBMygNbwzbDw5qcU%2F3duOgP9ZERQ8aWJr7fnuM%3D&se=2017-04-21T04%3A02%3A33Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/mysql-slow-testserver-2017042102.log", + "name": "mysql-slow-testserver-2017042102.log", + "type": "Microsoft.DBforMySQL/servers/logFiles" + }, + { + "properties": { + "name": "mysql-slow-testserver-2017042202.log", + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-04-22T03:02:23+00:00", + "type": "slowlog", + "url": "https://wasd2orcasseas1aelsfse0.file.core.windows.net/52bd047495b3459b95185a1738cbaeac/serverlogs/mysql-slow-testserver-2017042202.log?sv=2015-04-05&sr=f&sig=zt6C6CBMygNbwzbDw5qcU%2F3duOgP9ZERQ8aWJr7fnuM%3D&se=2017-04-22T04%3A02%3A33Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/mysql-slow-testserver-2017042202.log", + "name": "mysql-slow-testserver-2017042202.log", + "type": "Microsoft.DBforMySQL/servers/logFiles" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json new file mode 100644 index 000000000000..fdf7d2efea87 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/OperationList.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforMySQL/servers/firewallRules/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "List/Get Firewall Rules", + "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/firewallRules/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "Create/Update Firewall Rule", + "description": "Creates a firewall rule with the specified parameters or update an existing rule." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/firewallRules/delete", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "List/Get MySQL Servers", + "description": "Return the list of servers or gets the properties for the specified server." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "Create/Update MySQL Server", + "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/delete", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "Delete MySQL Server", + "description": "Deletes an existing server." + } + }, + { + "name": "Microsoft.DBforMySQL/performanceTiers/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Performance Tiers", + "operation": "List Performance Tiers", + "description": "Returns the list of Performance Tiers available." + } + }, + { + "name": "Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft DB for MySQL", + "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": "compute_limit", + "displayName": "Compute limit", + "displayDescription": "Compute limit", + "unit": "Count", + "aggregationType": "Average" + }, + { + "name": "compute_consumption_percent", + "displayName": "Compute percentage", + "displayDescription": "Compute percentage", + "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.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Read diagnostic setting", + "description": "Gets the disagnostic setting for the resource" + } + }, + { + "name": "Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json new file mode 100644 index 000000000000..c34af83e8401 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "WestUS" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "Id": "Basic", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 1024000, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, + "serviceLevelObjectives": [ + { + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "MySQL_B_Gen4_1", + "VCore": 1 + }, + { + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "MySQL_B_Gen4_2", + "VCore": 2 + } + ] + }, + { + "Id": "GeneralPurpose", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, + "serviceLevelObjectives": [ + { + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "MySQL_GP_Gen4_2", + "VCore": 2 + }, + { + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "MySQL_GP_Gen4_4", + "VCore": 4 + }, + { + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "MySQL_GP_Gen4_8", + "VCore": 8 + }, + { + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "MySQL_GP_Gen4_32", + "VCore": 32 + } + ] + }, + { + "Id": "MemoryOptimized", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, + "serviceLevelObjectives": [ + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "MySQL_MO_Gen5_2", + "VCore": 2 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "MySQL_MO_Gen5_8", + "VCore": 4 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "MySQL_MO_Gen5_16", + "VCore": 8 + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json new file mode 100644 index 000000000000..becc024291fe --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "OneBox", + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "sslEnforcement": "Enabled", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "createMode": "Default" + }, + "sku": { + "name": "SkuName", + "tier": "Basic", + "capacity": 2, + "Family": "Gen4" + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "tags": { + "elasticServer": "1" + }, + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "tags": { + "elasticServer": "1" + }, + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json new file mode 100644 index 000000000000..6427e09c2b08 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json new file mode 100644 index 000000000000..9b250b5fc3c5 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json new file mode 100644 index 000000000000..5d743e31178e --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json new file mode 100644 index 000000000000..5b12c946eb92 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json new file mode 100644 index 000000000000..d336f49266dd --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "administratorLoginPassword":"newpassword", + "sslEnforcement": "Disabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforMySQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sslEnforcement": "Disabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json new file mode 100644 index 000000000000..e7baa8266bbd --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json new file mode 100644 index 000000000000..fb3336a3e4b5 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": "" + }, + "202": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json new file mode 100644 index 000000000000..50f18a6578e2 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json new file mode 100644 index 000000000000..459eed49d500 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json new file mode 100644 index 000000000000..5790749b46f9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json @@ -0,0 +1,1958 @@ +{ + "swagger": "2.0", + "info": { + "title": "MySQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "version": "2017-12-01" + }, + "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}": { + "put": { + "tags": [ + "Servers" + ], + "operationId": "Servers_CreateOrUpdate", + "x-ms-examples": { + "ServerCreate": { "$ref": "./examples/ServerCreate.json" } + }, + "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerForCreate" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Update", + "x-ms-examples": { + "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" } + }, + "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerUpdateParameters" + }, + "description": "The required parameters for updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Delete", + "x-ms-examples": { + "ServerDelete": { "$ref": "./examples/ServerDelete.json" } + }, + "description": "Deletes a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "ServerGet": { "$ref": "./examples/ServerGet.json" } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByResourceGroup", + "x-ms-examples": { + "ServerListByResourceGroup": { "$ref": "./examples/ServerListByResourceGroup.json" } + }, + "description": "List all the servers in a given resource group.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_List", + "x-ms-examples": { + "ServerList": { "$ref": "./examples/ServerList.json" } + }, + "description": "List all the servers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}": { + "put": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-examples": { + "FirewallRuleCreate": { "$ref": "./examples/FirewallRuleCreate.json" } + }, + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$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" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "FirewallRuleDelete": { "$ref": "./examples/FirewallRuleDelete.json" } + }, + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "FirewallRuleGet": { "$ref": "./examples/FirewallRuleGet.json" } + }, + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules": { + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByServer", + "x-ms-examples": { + "FirewallRuleList": { "$ref": "./examples/FirewallRuleListByServer.json" } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a virtual network rule.", + "operationId": "VirtualNetworkRules_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-examples": { + "Gets a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesGet.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Creates or updates an existing virtual network rule.", + "operationId": "VirtualNetworkRules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "The requested virtual Network Rule Resource state.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + ], + "responses": { + "200": { + "description": "Successfully updated a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "201": { + "description": "Successfully created a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Deletes the virtual network rule with the given name.", + "operationId": "VirtualNetworkRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the virtual network rule." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "The specified virtual network rule does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a list of virtual network rules in a server.", + "operationId": "VirtualNetworkRules_ListByServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of virtual network rules.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRuleListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List virtual network rules": { + "$ref": "./examples/VirtualNetworkRulesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "DatabaseCreate": { "$ref": "./examples/DatabaseCreate.json" } + }, + "description": "Creates a new database or updates an existing database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The required parameters for creating or updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "x-ms-examples": { + "DatabaseDelete": { "$ref": "./examples/DatabaseDelete.json" } + }, + "description": "Deletes a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "x-ms-examples": { + "DatabaseGet": { "$ref": "./examples/DatabaseGet.json" } + }, + "description": "Gets information about a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "x-ms-examples": { + "DatabaseList": { "$ref": "./examples/DatabaseListByServer.json" } + }, + "description": "List all the databases in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}": { + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdate", + "x-ms-examples": { + "ConfigurationCreateOrUpdate": { "$ref": "./examples/ConfigurationCreateOrUpdate.json" } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Configuration" + }, + "description": "The required parameters for updating a server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "ConfigurationGet": { "$ref": "./examples/ConfigurationGet.json" } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServer", + "x-ms-examples": { + "ConfigurationList": { "$ref": "./examples/ConfigurationListByServer.json" } + }, + "description": "List all the configurations in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles": { + "get": { + "tags": [ + "LogFiles" + ], + "operationId": "LogFiles_ListByServer", + "x-ms-examples": { + "LogFileList": { "$ref": "./examples/LogFileListByServer.json" } + }, + "description": "List all the log files in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogFileListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers": { + "get": { + "tags": [ + "LocationBasedPerformanceTier" + ], + "operationId": "LocationBasedPerformanceTier_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersListByLocation.json" + } + }, + "description": "List all the performance tiers at specified location in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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" + } + } + } + } + }, + "/providers/Microsoft.DBforMySQL/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationList": { "$ref": "./examples/OperationList.json" } + }, + "description": "Lists all of the available REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } + } + }, + "definitions": { + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "5.6", + "5.7" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "SslEnforcement": { + "type": "string", + "description": "Enable ssl enforcement or not when connect to server.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "SslEnforcementEnum", + "modelAsString": false + } + }, + "ProxyResource": { + "description": "Resource properties.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "Resource properties including location and tags for track resources.", + "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "location" + ] + }, + "ServerProperties": { + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "userVisibleState": { + "type": "string", + "description": "A state of a server that is visible to user.", + "enum": [ + "Ready", + "Dropping", + "Disabled" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + } + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server." + }, + "EarliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "Earliest restore point creation time (ISO8601 format)" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + } + }, + "description": "The properties of a server." + }, + "StorageProfile": { + "properties": { + "backupRetentionDays": { + "type": "integer", + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackup", + "modelAsString": true + } + }, + "storageMB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + }, + "createMode": { + "type": "string", + "description": "The mode to create a new server.", + "enum": [ + "Default", + "PointInTimeRestore", + "GeoRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + } + } + }, + "description": "The properties used to create a new server." + }, + "ServerPropertiesForDefaultCreate": { + "x-ms-discriminator-value": "Default", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + } + }, + "required": [ + "administratorLogin", + "administratorLoginPassword" + ], + "description": "The properties used to create a new server." + }, + "ServerPropertiesForRestore": { + "x-ms-discriminator-value": "PointInTimeRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + } + }, + "required": [ + "sourceServerId", + "restorePointInTime" + ], + "description": "The properties to a new server by restoring from a backup." + }, + "ServerPropertiesForGeoRestore": { + "x-ms-discriminator-value": "GeoRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + } + }, + "required": [ + "sourceServerId" + ], + "description": "The properties to a new server by restoring from a geo replicated backup." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, a letter + Number code, e.g. P3." + }, + "tier": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "The scale up/out capacity, representing server's compute units." + }, + "size": { + "type": "string", + "description": "The size code, to be interpreted by resource as appropriate." + }, + "family": { + "type": "string", + "description": "The family of hardware." + } + }, + "description": "Billing information related properties of a server." + }, + "Server": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerProperties", + "x-ms-client-flatten": true, + "description": "Properties of the server." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "ServerForCreate": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerPropertiesForCreate", + "x-ms-client-flatten": false, + "description": "Properties of the server." + }, + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "required": [ + "properties", + "location" + ], + "description": "Represents a server to be created." + }, + "ServerUpdateParameters": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "properties": { + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "The version of a server." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + } + }, + "x-ms-client-flatten": true, + "description": "The properties that can be updated for a server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "description": "Parameters allowd to update for a server." + }, + "ServerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Server" + }, + "description": "The list of servers" + } + }, + "description": "A list of servers." + }, + "FirewallRuleProperties": { + "properties": { + "startIpAddress": { + "type": "string", + "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])$", + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + }, + "endIpAddress": { + "type": "string", + "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])$", + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "FirewallRule": { + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + } + }, + "description": "A list of firewall rules." + }, + "VirtualNetworkRuleProperties": { + "description": "Properties of a virtual network rule.", + "required": [ + "virtualNetworkSubnetId" + ], + "type": "object", + "properties": { + "virtualNetworkSubnetId": { + "description": "The ARM resource id of the virtual network subnet.", + "type": "string" + }, + "ignoreMissingVnetServiceEndpoint": { + "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", + "type": "boolean" + }, + "state": { + "description": "Virtual Network Rule State", + "enum": [ + "Initializing", + "InProgress", + "Ready", + "Deleting", + "Unknown" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "VirtualNetworkRuleState", + "modelAsString": true + } + } + } + }, + "VirtualNetworkRule": { + "description": "A virtual network rule.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/VirtualNetworkRuleProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "VirtualNetworkRuleListResult": { + "description": "A list of virtual network rules.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "DatabaseProperties": { + "properties": { + "charset": { + "type": "string", + "description": "The charset of the database." + }, + "collation": { + "type": "string", + "description": "The collation of the database." + } + }, + "description": "The properties of a database." + }, + "Database": { + "properties": { + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "x-ms-client-flatten": true, + "description": "The properties of a database." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Database." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in a server" + } + }, + "description": "A List of databases." + }, + "ConfigurationProperties": { + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Description of the configuration." + }, + "defaultValue": { + "type": "string", + "readOnly": true, + "description": "Default value of the configuration." + }, + "dataType": { + "type": "string", + "readOnly": true, + "description": "Data type of the configuration." + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + } + }, + "description": "A list of server configurations." + }, + "OperationDisplay": { + "properties": { + "provider": { + "type": "string", + "readOnly": true, + "description": "Operation resource provider name." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "readOnly": true, + "description": "Localized friendly name for the operation." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Operation description." + } + }, + "description": "Display metadata associated with the operation." + }, + "Operation": { + "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." + }, + "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." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "The list of resource provider operations." + } + }, + "description": "A list of resource provider operations." + }, + "LogFileProperties": { + "properties": { + "name": { + "type": "string", + "description": "Log file name." + }, + "sizeInKB": { + "type": "integer", + "format": "int64", + "description": "Size of the log file." + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation timestamp of the log file." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Last modified timestamp of the log file." + }, + "type": { + "type": "string", + "description": "Type of the log file." + }, + "url": { + "type": "string", + "description": "The url to download the log file from." + } + }, + "description": "The properties of a log file." + }, + "LogFile": { + "properties": { + "name": { + "type": "string", + "description": "The name of the log file." + }, + "properties": { + "$ref": "#/definitions/LogFileProperties", + "x-ms-client-flatten": true, + "description": "The properties of the log file." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a log file." + }, + "LogFileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LogFile" + }, + "description": "The list of log files." + } + }, + "description": "A list of log files." + }, + "PerformanceTierServiceLevelObjectives": { + "properties": { + "id": { + "type": "string", + "description": "ID for the service level objective." + }, + "edition": { + "type": "string", + "description": "Edition of the performance tier." + }, + "vCore": { + "type": "integer", + "description": "VCore associated with the service level objective" + }, + "hardwareGeneration": { + "type": "string", + "description": "Hardware generation associated with the service level objective" + } + }, + "description": "Service level objectives for performance tier." + }, + "PerformanceTierProperties": { + "properties": { + "id": { + "type": "string", + "description": "ID of the performance tier." + }, + "maxBackupRetentionDays":{ + "type": "integer", + "description": "Maximum Backup retention in days for the performance tier edition" + }, + "minBackupRetentionDays": { + "type": "integer", + "description": "Minimum Backup retention in days for the performance tier edition" + }, + "maxStorageMB":{ + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + }, + "minStorageMB":{ + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + }, + "serviceLevelObjectives": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierServiceLevelObjectives" + }, + "description": "Service level objectives associated with the performance tier" + } + }, + "description": "Performance tier properties" + }, + "PerformanceTierListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierProperties" + }, + "description": "The list of performance tiers" + } + }, + "description": "A list of performance tiers." + }, + "NameAvailabilityRequest": { + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." + }, + "NameAvailability": { + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "FirewallRuleNameParameter": { + "name": "firewallRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server firewall rule.", + "x-ms-parameter-location": "method" + }, + "virtualNetworkRuleNameParameter": { + "name": "virtualNetworkRuleName", + "in": "path", + "description": "The name of the virtual network rule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database.", + "x-ms-parameter-location": "method" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server configuration.", + "x-ms-parameter-location": "method" + }, + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json deleted file mode 100644 index 40cce901017d..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "Basic", - "backupRetentionDays": 7, - "serviceLevelObjectives": [ - { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "PGSQLB50" - }, - { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "PGSQLB100" - } - ] - }, - { - "id": "Standard", - "backupRetentionDays": 35, - "serviceLevelObjectives": [ - { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "PGSQLS100" - }, - { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "PGSQLS200" - }, - { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "PGSQLS400" - }, - { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "PGSQLS800" - } - ] - } - ] - } - } - } -} \ No newline at end of file From 379789c439946f032b95af217bce022de6adfb98 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 15:50:27 -0800 Subject: [PATCH 17/23] MYSQL examples update --- .../2017-12-01/examples/ServerCreate.json | 4 ++-- .../2017-12-01/examples/ServerGet.json | 4 ++-- .../2017-12-01/examples/ServerList.json | 12 +++++------ .../examples/ServerListByResourceGroup.json | 12 +++++------ .../2017-12-01/examples/ServerUpdate.json | 2 +- .../mysql/resource-manager/readme.md | 20 +++++++++++++++++++ 6 files changed, 37 insertions(+), 17 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json index becc024291fe..a905839f54f4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json @@ -43,7 +43,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -71,7 +71,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json index 9b250b5fc3c5..3547b4e27fc2 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json @@ -23,7 +23,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -32,7 +32,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json index 5d743e31178e..6510b72a0c68 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json @@ -23,7 +23,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -32,7 +32,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" }, { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", @@ -50,7 +50,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -59,7 +59,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" }, { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", @@ -77,7 +77,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -86,7 +86,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json index 5b12c946eb92..ccb7dcc544eb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -24,7 +24,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -33,7 +33,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" }, { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", @@ -51,7 +51,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -60,7 +60,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" }, { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", @@ -78,7 +78,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "MySQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -87,7 +87,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "Version": "5.6" } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json index d336f49266dd..f521ba3144d0 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json @@ -19,7 +19,7 @@ "type": "Microsoft.DBforMySQL/servers", "location": "onebox", "sku": { - "name": "PGSQLB100", + "name": "MySQLB100", "tier": "Basic", "capacity": 100 }, diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index cab82e89d4cc..a2871a289de4 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -40,6 +40,16 @@ input-file: ``` +### Tag: package-2017-12-01 + +These settings apply only when `--tag=package-2017-12-01` is specified on the command line. + +``` yaml $(tag) == 'package-2017-12-01' +input-file: +- Microsoft.DBforMySQL/2017-12-01/mysql.json +``` + + --- # Code Generation @@ -91,3 +101,13 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2017-12-01' && $(go) +output-folder: $(go-sdk-folder)/services/mysql/mgmt/2017-12-01/postgresql +``` \ No newline at end of file From d5035d5b79c15a436f5288e1eb5bed02b4eabdb9 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 17:05:49 -0800 Subject: [PATCH 18/23] deleting folder --- .../examples/CheckNameAvailability.json | 19 - .../examples/ConfigurationCreateOrUpdate.json | 33 - .../2017-12-01/examples/ConfigurationGet.json | 26 - .../examples/ConfigurationListByServer.json | 1056 --------- .../2017-12-01/examples/DatabaseCreate.json | 40 - .../2017-12-01/examples/DatabaseDelete.json | 14 - .../2017-12-01/examples/DatabaseGet.json | 22 - .../examples/DatabaseListByServer.json | 34 - .../examples/FirewallRuleCreate.json | 40 - .../examples/FirewallRuleDelete.json | 14 - .../2017-12-01/examples/FirewallRuleGet.json | 22 - .../examples/FirewallRuleListByServer.json | 34 - .../examples/LogFileListByServer.json | 42 - .../2017-12-01/examples/OperationList.json | 194 -- .../PerformanceTiersListByLocation.json | 96 - .../2017-12-01/examples/ServerCreate.json | 90 - .../2017-12-01/examples/ServerDelete.json | 13 - .../2017-12-01/examples/ServerGet.json | 39 - .../2017-12-01/examples/ServerList.json | 95 - .../examples/ServerListByResourceGroup.json | 96 - .../2017-12-01/examples/ServerUpdate.json | 44 - .../VirtualNetworkRulesCreateOrUpdate.json | 40 - .../examples/VirtualNetworkRulesDelete.json | 20 - .../examples/VirtualNetworkRulesGet.json | 23 - .../examples/VirtualNetworkRulesList.json | 37 - .../2017-12-01/postgresql.json | 1957 ----------------- 26 files changed, 4140 deletions(-) delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json deleted file mode 100644 index 5a991b056504..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "nameAvailabilityRequest": { - "name": "name1", - "type": "Microsoft.DBforPostgreSQL" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "message": "", - "reason": "" - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json deleted file mode 100644 index c2b82a6e662b..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "configurationName": "array_nulls", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties":{ - "value": "off", - "source": "user-override" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "value": "off", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "user-override" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json deleted file mode 100644 index d97cd94623a2..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "configurationName": "array_nulls", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "properties": { - "value": "on", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json deleted file mode 100644 index d1acb37c40a6..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json +++ /dev/null @@ -1,1056 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "value": "on", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "safe_encoding", - "description": "Sets whether \"\\'\" is allowed in string literals.", - "defaultValue": "safe_encoding", - "dataType": "Enumeration", - "allowedValues": "safe_encoding,on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/backslash_quote", - "name": "backslash_quote", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "hex", - "description": "Sets the output format for bytea.", - "defaultValue": "hex", - "dataType": "Enumeration", - "allowedValues": "escape,hex", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/bytea_output", - "name": "bytea_output", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Check function bodies during CREATE FUNCTION.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/check_function_bodies", - "name": "check_function_bodies", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "sql_ascii", - "description": "Sets the client's character set encoding.", - "defaultValue": "sql_ascii", - "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", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/client_encoding", - "name": "client_encoding", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "notice", - "description": "Sets the message levels that are sent to the client.", - "defaultValue": "notice", - "dataType": "Enumeration", - "allowedValues": "debug5,debug4,debug3,debug2,debug1,log,notice,warning,error", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/client_min_messages", - "name": "client_min_messages", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "partition", - "description": "Enables the planner to use constraints to optimize queries.", - "defaultValue": "partition", - "dataType": "Enumeration", - "allowedValues": "partition,on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/constraint_exclusion", - "name": "constraint_exclusion", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.005", - "description": "Sets the planner's estimate of the cost of processing each index entry during an index scan.", - "defaultValue": "0.005", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_index_tuple_cost", - "name": "cpu_index_tuple_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.0025", - "description": "Sets the planner's estimate of the cost of processing each operator or function call.", - "defaultValue": "0.0025", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_operator_cost", - "name": "cpu_operator_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.01", - "description": "Sets the planner's estimate of the cost of processing each tuple (row).", - "defaultValue": "0.01", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_tuple_cost", - "name": "cpu_tuple_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.1", - "description": "Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved.", - "defaultValue": "0.1", - "dataType": "Numeric", - "allowedValues": "0-1", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cursor_tuple_fraction", - "name": "cursor_tuple_fraction", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "iso, mdy", - "description": "Sets the display format for date and time values.", - "defaultValue": "iso, mdy", - "dataType": "String", - "allowedValues": "(iso|postgres|sql|german)\\,\\s(dmy|mdy|ymd)", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/datestyle", - "name": "datestyle", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1000", - "description": "Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.", - "defaultValue": "1000", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/deadlock_timeout", - "name": "deadlock_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each query's parse tree.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_parse", - "name": "debug_print_parse", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each query's execution plan.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_plan", - "name": "debug_print_plan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each query's rewritten parse tree.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_rewritten", - "name": "debug_print_rewritten", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "100", - "description": "Sets the default statistics target.", - "defaultValue": "100", - "dataType": "Integer", - "allowedValues": "1-10000", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_statistics_target", - "name": "default_statistics_target", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "pg_catalog.english", - "description": "Sets default text search configuration.", - "defaultValue": "pg_catalog.english", - "dataType": "String", - "allowedValues": "[A-Za-z\\._]+", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_text_search_config", - "name": "default_text_search_config", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Sets the default deferrable status of new transactions.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_deferrable", - "name": "default_transaction_deferrable", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "read committed", - "description": "Sets the transaction isolation level of each new transaction.", - "defaultValue": "read committed", - "dataType": "Enumeration", - "allowedValues": "serializable,repeatable read,read committed,read uncommitted", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_isolation", - "name": "default_transaction_isolation", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Sets the default read-only status of new transactions.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_read_only", - "name": "default_transaction_read_only", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Create new tables with OIDs by default.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_with_oids", - "name": "default_with_oids", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of bitmap-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_bitmapscan", - "name": "enable_bitmapscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of hashed aggregation plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_hashagg", - "name": "enable_hashagg", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of hash join plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_hashjoin", - "name": "enable_hashjoin", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of index-only-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_indexonlyscan", - "name": "enable_indexonlyscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of index-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_indexscan", - "name": "enable_indexscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of materialization.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_material", - "name": "enable_material", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of merge join plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_mergejoin", - "name": "enable_mergejoin", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of nested-loop join plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_nestloop", - "name": "enable_nestloop", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of sequential-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_seqscan", - "name": "enable_seqscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of explicit sort steps.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_sort", - "name": "enable_sort", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner's use of TID scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_tidscan", - "name": "enable_tidscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Warn about backslash escapes in ordinary string literals.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/escape_string_warning", - "name": "escape_string_warning", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Terminate session on any error.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/exit_on_error", - "name": "exit_on_error", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the number of digits displayed for floating-point values.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "-15-3", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/extra_float_digits", - "name": "extra_float_digits", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8", - "description": "Sets the FROM-list size beyond which subqueries are not collapsed.", - "defaultValue": "8", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/from_collapse_limit", - "name": "from_collapse_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables genetic query optimization.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo", - "name": "geqo", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "5", - "description": "GEQO: effort is used to set the default for other GEQO parameters.", - "defaultValue": "5", - "dataType": "Integer", - "allowedValues": "1-10", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_effort", - "name": "geqo_effort", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "GEQO: number of iterations of the algorithm.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_generations", - "name": "geqo_generations", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "GEQO: number of individuals in the population.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_pool_size", - "name": "geqo_pool_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.0", - "description": "GEQO: seed for random path selection.", - "defaultValue": "0.0", - "dataType": "Numeric", - "allowedValues": "0-1", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_seed", - "name": "geqo_seed", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "2.0", - "description": "GEQO: selective pressure within the population.", - "defaultValue": "2.0", - "dataType": "Numeric", - "allowedValues": "1.5-2", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_selection_bias", - "name": "geqo_selection_bias", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "12", - "description": "Sets the threshold of FROM items beyond which GEQO is used.", - "defaultValue": "12", - "dataType": "Integer", - "allowedValues": "2-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_threshold", - "name": "geqo_threshold", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed result for exact search by GIN.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/gin_fuzzy_search_limit", - "name": "gin_fuzzy_search_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "postgres", - "description": "Sets the display format for interval values.", - "defaultValue": "postgres", - "dataType": "Enumeration", - "allowedValues": "postgres,postgres_verbose,sql_standard,iso_8601", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/intervalstyle", - "name": "intervalstyle", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8", - "description": "Sets the FROM-list size beyond which JOIN constructs are not flattened.", - "defaultValue": "8", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/join_collapse_limit", - "name": "join_collapse_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/lock_timeout", - "name": "lock_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each checkpoint.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_checkpoints", - "name": "log_checkpoints", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each successful connection.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_connections", - "name": "log_connections", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs end of a session, including duration.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_disconnections", - "name": "log_disconnections", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs the duration of each completed SQL statement.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_duration", - "name": "log_duration", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "default", - "description": "Sets the verbosity of logged messages.", - "defaultValue": "default", - "dataType": "Enumeration", - "allowedValues": "terse,default,verbose", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_error_verbosity", - "name": "log_error_verbosity", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs long lock waits.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_lock_waits", - "name": "log_lock_waits", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_duration_statement", - "name": "log_min_duration_statement", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "error", - "description": "Causes all statements generating error at or above this level to be logged.", - "defaultValue": "error", - "dataType": "Enumeration", - "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_error_statement", - "name": "log_min_error_statement", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "warning", - "description": "Sets the message levels that are logged.", - "defaultValue": "warning", - "dataType": "Enumeration", - "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_messages", - "name": "log_min_messages", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "none", - "description": "Sets the type of statements logged.", - "defaultValue": "none", - "dataType": "Enumeration", - "allowedValues": "none,ddl,mod,all", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_statement", - "name": "log_statement", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "64", - "description": "Sets the maximum number of locks per transaction.", - "defaultValue": "64", - "dataType": "Integer", - "allowedValues": "10-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_locks_per_transaction", - "name": "max_locks_per_transaction", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "64", - "description": "Sets the maximum number of predicate locks per transaction.", - "defaultValue": "64", - "dataType": "Integer", - "allowedValues": "10-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_pred_locks_per_transaction", - "name": "max_pred_locks_per_transaction", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum number of simultaneously prepared transactions.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-8388607", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_prepared_transactions", - "name": "max_prepared_transactions", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "When generating SQL fragments, quote all identifiers.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/quote_all_identifiers", - "name": "quote_all_identifiers", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "4.0", - "description": "Sets the planner's estimate of the cost of a nonsequentially fetched disk page.", - "defaultValue": "4.0", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/random_page_cost", - "name": "random_page_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "\"$user\", public", - "description": "Sets the schema search order for names that are not schema-qualified.", - "defaultValue": "\"$user\", public", - "dataType": "String", - "allowedValues": "[A-Za-z.\"$, ]+", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/search_path", - "name": "search_path", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1.0", - "description": "Sets the planner's estimate of the cost of a sequentially fetched disk page.", - "defaultValue": "1.0", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/seq_page_cost", - "name": "seq_page_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Causes subtables to be included by default in various commands.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/sql_inheritance", - "name": "sql_inheritance", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Causes '...' strings to treat backslashes literally.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/standard_conforming_strings", - "name": "standard_conforming_strings", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/statement_timeout", - "name": "statement_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enable synchronized sequential scans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/synchronize_seqscans", - "name": "synchronize_seqscans", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Sets the current transaction's synchronization level.", - "defaultValue": "on", - "dataType": "Enumeration", - "allowedValues": "local,remote_write,on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/synchronous_commit", - "name": "synchronous_commit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Treats \"expr=NULL\" as \"expr IS NULL\".", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/transform_null_equals", - "name": "transform_null_equals", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "base64", - "description": "Sets how binary values are to be encoded in XML.", - "defaultValue": "base64", - "dataType": "Enumeration", - "allowedValues": "base64,hex", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/xmlbinary", - "name": "xmlbinary", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "content", - "description": "Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.", - "defaultValue": "content", - "dataType": "Enumeration", - "allowedValues": "content,document", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/xmloption", - "name": "xmloption", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Forces use of parallel query facilities.", - "defaultValue": "off", - "dataType": "Enumeration", - "allowedValues": "off,on,regress", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/force_parallel_mode", - "name": "force_parallel_mode", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed duration of any idling transaction.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/idle_in_transaction_session_timeout", - "name": "idle_in_transaction_session_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum number of parallel processes per executor node.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-1024", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_parallel_workers_per_gather", - "name": "max_parallel_workers_per_gather", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8388608", - "description": "Sets the minimum size of relations to be considered for parallel scan.", - "defaultValue": "8388608", - "dataType": "Integer", - "allowedValues": "0-715827882", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/min_parallel_relation_size", - "name": "min_parallel_relation_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1000", - "description": "Sets the planner's estimate of the cost of starting up worker processes for parallel query.", - "defaultValue": "1000", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/parallel_setup_cost", - "name": "parallel_setup_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.1", - "description": "Sets the planner's estimate of the cost of passing each tuple (row) from worker to master backend.", - "defaultValue": "0.1", - "dataType": "Numeric", - "allowedValues": "0-1.79769e+308", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/parallel_tuple_cost", - "name": "parallel_tuple_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "3", - "description": "Sets how many days a log file is saved for.", - "defaultValue": "3", - "dataType": "Integer", - "allowedValues": "1-7", - "source": "system-default" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_retention_days", - "name": "log_retention_days", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json deleted file mode 100644 index 3245c04055fd..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties":{ - "charset":"UTF8", - "collation":"English_United States.1252" - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json deleted file mode 100644 index 6706a74576de..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json deleted file mode 100644 index a2b6de88d3d2..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json deleted file mode 100644 index 8f721fa560c7..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db2", - "name": "db2", - "type": "Microsoft.DBforPostgreSQL/servers/databases", - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json deleted file mode 100644 index 33b2aca7aff4..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "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/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", - "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/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json deleted file mode 100644 index d8348f45a659..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json deleted file mode 100644 index eb5bf7d32c58..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json deleted file mode 100644 index 931fe7382303..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule2", - "name": "rule2", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", - "properties": { - "startIpAddress": "1.0.0.0", - "endIpAddress": "255.0.0.0" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json deleted file mode 100644 index 3c9fe3477a21..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "name": "postgresql-2017-06-22_010000.log", - "sizeInKB": 4, - "createdTime": "0001-01-01T00:00:00+00:00", - "lastModifiedTime": "2017-06-22T01:59:36+00:00", - "type": "text", - "url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_010000.log?sv=2015-04-05&sr=f&sig=gqIQsa6VyGyUNpzYYPWLP5gM%2BeF1so9GYbHKu6Zs0DM%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/logFiles/postgresql-2017-06-22_010000.log", - "name": "postgresql-2017-06-22_010000.log", - "type": "Microsoft.DBforPostgreSQL/servers/logFiles" - }, - { - "properties": { - "name": "postgresql-2017-06-22_020000.log", - "sizeInKB": 1, - "createdTime": "0001-01-01T00:00:00+00:00", - "lastModifiedTime": "2017-06-22T02:19:36+00:00", - "type": "text", - "url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_020000.log?sv=2015-04-05&sr=f&sig=i99UWBlYfR0tKaxix8yHAOnfym4HV9Auto6BbZogyRs%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/logFiles/postgresql-2017-06-22_020000.log", - "name": "postgresql-2017-06-22_020000.log", - "type": "Microsoft.DBforPostgreSQL/servers/logFiles" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json deleted file mode 100644 index 505cf310c48f..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.DBforPostgreSQL/locations/performanceTiers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Performance Tiers", - "operation": "List Performance Tiers", - "description": "Returns the list of Performance Tiers available." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Create/Update PostgreSQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Delete PostgreSQL Server", - "description": "Deletes an existing server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/performanceTiers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Performance Tiers", - "operation": "List Performance Tiers", - "description": "Returns the list of Performance Tiers available." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/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 or gets the properties for the specified firewall rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/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/servers/firewallRules/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "Delete Firewall Rule", - "description": "Deletes an existing firewall rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/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": "compute_limit", - "displayName": "Compute Unit limit", - "displayDescription": "Compute Unit limit", - "unit": "Count", - "aggregationType": "Average" - }, - { - "name": "compute_consumption_percent", - "displayName": "Compute Unit percentage", - "displayDescription": "Compute Unit percentage", - "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/servers/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/servers/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" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json deleted file mode 100644 index 05678be5a5bd..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "parameters": { - "api-version": "2017-04-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "locationName": "WestUS" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "Id": "Basic", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 1024000, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, - "serviceLevelObjectives": [ - { - "Edition": "Basic", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_B_Gen4_1", - "VCore": 1 - }, - { - "Edition": "Basic", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_B_Gen4_2", - "VCore": 2 - } - ] - }, - { - "Id": "GeneralPurpose", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 2097152, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, - "serviceLevelObjectives": [ - { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_2", - "VCore": 2 - }, - { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_4", - "VCore": 4 - }, - { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_8", - "VCore": 8 - }, - { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_32", - "VCore": 32 - } - ] - }, - { - "Id": "MemoryOptimized", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 2097152, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, - "serviceLevelObjectives": [ - { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_2", - "VCore": 2 - }, - { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_8", - "VCore": 4 - }, - { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_16", - "VCore": 8 - } - ] - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json deleted file mode 100644 index 8509217ae15c..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "location": "OneBox", - "properties": { - "administratorLogin": "cloudsa", - "administratorLoginPassword": "password", - "sslEnforcement": "Enabled", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "createMode": "Default" - }, - "sku": { - "name": "SkuName", - "tier": "Basic", - "capacity": 2, - "Family": "Gen4" - }, - "tags": { - "ElasticServer": "1" - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "tags": { - "elasticServer": "1" - }, - "administratorLogin": "cloudsa", - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "tags": { - "elasticServer": "1" - }, - "administratorLogin": "cloudsa", - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json deleted file mode 100644 index 6427e09c2b08..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json deleted file mode 100644 index b683c21bc02f..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json deleted file mode 100644 index 6d6520ef7272..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameters": { - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", - "name": "testserver1", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", - "name": "testserver2", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json deleted file mode 100644 index 51a10f295810..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", - "name": "testserver1", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", - "name": "testserver2", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "tags": { - "elasticServer": "1" - }, - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" - }, - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json deleted file mode 100644 index 2860618dae63..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2017-12-01", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties":{ - "administratorLoginPassword":"newpassword", - "sslEnforcement": "Disabled" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, - "tags": { - "elasticServer": "1" - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" - }, - "sslEnforcement": "Disabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json deleted file mode 100644 index 7e65de762b66..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01", - "parameters": { - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - }, - "202": {} - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json deleted file mode 100644 index 0748e9fc127f..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json deleted file mode 100644 index 65139ffd7cc5..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "state": "Ready", - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json deleted file mode 100644 index 8171f2792cde..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverName": "vnet-test-svr", - "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-12-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "state": "Ready", - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "properties": { - "ignoreMissingVnetServiceEndpoint": false, - "state": "Ready", - "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json deleted file mode 100644 index 3db298b84a8b..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ /dev/null @@ -1,1957 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "PostgreSQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", - "version": "2017-12-01" - }, - "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}": { - "put": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Create", - "x-ms-examples": { - "ServerCreate": { "$ref": "./examples/ServerCreate.json" } - }, - "description": "Creates a new server, or will overwrite an existing server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServerForCreate" - }, - "description": "The required parameters for creating or updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Update", - "x-ms-examples": { - "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" } - }, - "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServerUpdateParameters" - }, - "description": "The required parameters for updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Delete", - "x-ms-examples": { - "ServerDelete": { "$ref": "./examples/ServerDelete.json" } - }, - "description": "Deletes a server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Get", - "x-ms-examples": { - "ServerGet": { "$ref": "./examples/ServerGet.json" } - }, - "description": "Gets information about a server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_ListByResourceGroup", - "x-ms-examples": { - "ServerListByResourceGroup": { "$ref": "./examples/ServerListByResourceGroup.json" } - }, - "description": "List all the servers in a given resource group.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_List", - "x-ms-examples": { - "ServerList": { "$ref": "./examples/ServerList.json" } - }, - "description": "List all the servers in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}": { - "put": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_CreateOrUpdate", - "x-ms-examples": { - "FirewallRuleCreate": { "$ref": "./examples/FirewallRuleCreate.json" } - }, - "description": "Creates a new firewall rule or updates an existing firewall rule.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$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" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Delete", - "x-ms-examples": { - "FirewallRuleDelete": { "$ref": "./examples/FirewallRuleDelete.json" } - }, - "description": "Deletes a server firewall rule.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Get", - "x-ms-examples": { - "FirewallRuleGet": { "$ref": "./examples/FirewallRuleGet.json" } - }, - "description": "Gets information about a server firewall rule.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules": { - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_ListByServer", - "x-ms-examples": { - "FirewallRuleList": { "$ref": "./examples/FirewallRuleListByServer.json" } - }, - "description": "List all the firewall rules in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRuleListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { - "get": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Gets a virtual network rule.", - "operationId": "VirtualNetworkRules_Get", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/virtualNetworkRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved a specified virtual network rule.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." - } - }, - "x-ms-examples": { - "Gets a virtual network rule": { - "$ref": "./examples/VirtualNetworkRulesGet.json" - } - } - }, - "put": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Creates or updates an existing virtual network rule.", - "operationId": "VirtualNetworkRules_CreateOrUpdate", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/virtualNetworkRuleNameParameter" - }, - { - "name": "parameters", - "in": "body", - "description": "The requested virtual Network Rule Resource state.", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - } - ], - "responses": { - "200": { - "description": "Successfully updated a virtual network rule.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." - }, - "202": { - "description": "Accepted" - }, - "201": { - "description": "Successfully created a virtual network rule.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRule" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update a virtual network rule": { - "$ref": "./examples/VirtualNetworkRulesCreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Deletes the virtual network rule with the given name.", - "operationId": "VirtualNetworkRules_Delete", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/virtualNetworkRuleNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully deleted the virtual network rule." - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "The specified virtual network rule does not exist." - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a virtual network rule": { - "$ref": "./examples/VirtualNetworkRulesDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules": { - "get": { - "tags": [ - "VirtualNetworkRules" - ], - "description": "Gets a list of virtual network rules in a server.", - "operationId": "VirtualNetworkRules_ListByServer", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of virtual network rules.", - "schema": { - "$ref": "#/definitions/VirtualNetworkRuleListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List virtual network rules": { - "$ref": "./examples/VirtualNetworkRulesList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}": { - "put": { - "tags": [ - "Databases" - ], - "operationId": "Databases_CreateOrUpdate", - "x-ms-examples": { - "DatabaseCreate": { "$ref": "./examples/DatabaseCreate.json" } - }, - "description": "Creates a new database or updates an existing database.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Database" - }, - "description": "The required parameters for creating or updating a database." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Databases" - ], - "operationId": "Databases_Delete", - "x-ms-examples": { - "DatabaseDelete": { "$ref": "./examples/DatabaseDelete.json" } - }, - "description": "Deletes a database.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_Get", - "x-ms-examples": { - "DatabaseGet": { "$ref": "./examples/DatabaseGet.json" } - }, - "description": "Gets information about a database.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_ListByServer", - "x-ms-examples": { - "DatabaseList": { "$ref": "./examples/DatabaseListByServer.json" } - }, - "description": "List all the databases in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}": { - "put": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_CreateOrUpdate", - "x-ms-examples": { - "ConfigurationCreateOrUpdate": { "$ref": "./examples/ConfigurationCreateOrUpdate.json" } - }, - "description": "Updates a configuration of a server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Configuration" - }, - "description": "The required parameters for updating a server configuration." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Get", - "x-ms-examples": { - "ConfigurationGet": { "$ref": "./examples/ConfigurationGet.json" } - }, - "description": "Gets information about a configuration of server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations": { - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_ListByServer", - "x-ms-examples": { - "ConfigurationList": { "$ref": "./examples/ConfigurationListByServer.json" } - }, - "description": "List all the configurations in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConfigurationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles": { - "get": { - "tags": [ - "LogFiles" - ], - "operationId": "LogFiles_ListByServer", - "x-ms-examples": { - "LogFileList": { "$ref": "./examples/LogFileListByServer.json" } - }, - "description": "List all the log files in a given server.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LogFileListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { - "get": { - "tags": [ - "LocationBasedPerformanceTier" - ], - "operationId": "LocationBasedPerformanceTier_List", - "x-ms-examples": { - "PerformanceTiersList": { - "$ref": "./examples/PerformanceTiersListByLocation.json" - } - }, - "description": "List all the performance tiers at specified location in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PerformanceTierListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { - "post": { - "tags": [ - "CheckNameAvailability" - ], - "operationId": "CheckNameAvailability_Execute", - "x-ms-examples": { - "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" } - }, - "description": "Check the availability of name for resource", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/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" - } - } - } - } - }, - "/providers/Microsoft.DBforPostgreSQL/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "x-ms-examples": { - "OperationList": { "$ref": "./examples/OperationList.json" } - }, - "description": "Lists all of the available REST API operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - } - } - } - }, - "definitions": { - "ServerVersion": { - "type": "string", - "description": "The version of a server.", - "enum": [ - "9.5", - "9.6" - ], - "x-ms-enum": { - "name": "ServerVersion", - "modelAsString": true - } - }, - "SslEnforcement": { - "type": "string", - "description": "Enable ssl enforcement or not when connect to server.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "SslEnforcementEnum", - "modelAsString": false - } - }, - "ProxyResource": { - "description": "Resource properties.", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource ID" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - } - }, - "x-ms-azure-resource": true - }, - "TrackedResource": { - "description": "Resource properties including location and tags for track resources.", - "properties": { - "location": { - "type": "string", - "description": "The location the resource resides in." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "required": [ - "location" - ] - }, - "ServerProperties": { - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "Server version." - }, - "sslEnforcement": { - "$ref": "#/definitions/SslEnforcement", - "description": "Enable ssl enforcement or not when connect to server." - }, - "userVisibleState": { - "type": "string", - "description": "A state of a server that is visible to user.", - "enum": [ - "Ready", - "Dropping", - "Disabled" - ], - "x-ms-enum": { - "name": "ServerState", - "modelAsString": true - } - }, - "fullyQualifiedDomainName": { - "type": "string", - "description": "The fully qualified domain name of a server." - }, - "EarliestRestoreDate": { - "type": "string", - "format": "date-time", - "description": "Earliest restore point creation time (ISO8601 format)" - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - } - }, - "description": "The properties of a server." - }, - "StorageProfile": { - "properties": { - "backupRetentionDays": { - "type": "integer", - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "type": "string", - "description": "The tier of the particular SKU, e.g. Basic.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "GeoRedundantBackup", - "modelAsString": true - } - }, - "storageMB": { - "type": "integer", - "format": "int32", - "description": "Max storage allowed for a server." - } - }, - "description": "Storage Profile properties of a server" - }, - "ServerPropertiesForCreate": { - "discriminator": "createMode", - "required": [ "createMode" ], - "properties": { - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "Server version." - }, - "sslEnforcement": { - "$ref": "#/definitions/SslEnforcement", - "description": "Enable ssl enforcement or not when connect to server." - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - }, - "createMode": { - "type": "string", - "description": "The mode to create a new server.", - "enum": [ - "Default", - "PointInTimeRestore", - "GeoRestore" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - } - } - }, - "description": "The properties used to create a new server." - }, - "ServerPropertiesForDefaultCreate": { - "x-ms-discriminator-value": "Default", - "allOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - } - ], - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - } - }, - "required": [ - "administratorLogin", - "administratorLoginPassword" - ], - "description": "The properties used to create a new server." - }, - "ServerPropertiesForRestore": { - "x-ms-discriminator-value": "PointInTimeRestore", - "allOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - } - ], - "properties": { - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." - } - }, - "required": [ - "sourceServerId", - "restorePointInTime" - ], - "description": "The properties to a new server by restoring from a backup." - }, - "ServerPropertiesForGeoRestore": { - "x-ms-discriminator-value": "GeoRestore", - "allOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - } - ], - "properties": { - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "sourceServerId" - ], - "description": "The properties to a new server by restoring from a geo replicated backup." - }, - "Sku": { - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, a letter + Number code, e.g. P3." - }, - "tier": { - "type": "string", - "description": "The tier of the particular SKU, e.g. Basic.", - "enum": [ - "Basic", - "Standard" - ], - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - }, - "capacity": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "The scale up/out capacity, representing server's compute units." - }, - "size": { - "type": "string", - "description": "The size code, to be interpreted by resource as appropriate." - }, - "family": { - "type": "string", - "description": "The family of hardware." - } - }, - "description": "Billing information related properties of a server." - }, - "Server": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerProperties", - "x-ms-client-flatten": true, - "description": "Properties of the server." - } - }, - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Represents a server." - }, - "ServerForCreate": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerPropertiesForCreate", - "x-ms-client-flatten": false, - "description": "Properties of the server." - }, - "location": { - "type": "string", - "description": "The location the resource resides in." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "required": [ - "properties", - "location" - ], - "description": "Represents a server to be created." - }, - "ServerUpdateParameters": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "properties": { - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage profile of a server." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "The version of a server." - }, - "sslEnforcement": { - "$ref": "#/definitions/SslEnforcement", - "description": "Enable ssl enforcement or not when connect to server." - } - }, - "x-ms-client-flatten": true, - "description": "The properties that can be updated for a server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "description": "Parameters allowd to update for a server." - }, - "ServerListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Server" - }, - "description": "The list of servers" - } - }, - "description": "A list of servers." - }, - "FirewallRuleProperties": { - "properties": { - "startIpAddress": { - "type": "string", - "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])$", - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - }, - "endIpAddress": { - "type": "string", - "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])$", - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "startIpAddress", - "endIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "FirewallRule": { - "properties": { - "properties": { - "$ref": "#/definitions/FirewallRuleProperties", - "x-ms-client-flatten": true, - "description": "The properties of a firewall rule." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "required": [ - "properties" - ], - "description": "Represents a server firewall rule." - }, - "FirewallRuleListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/FirewallRule" - }, - "description": "The list of firewall rules in a server." - } - }, - "description": "A list of firewall rules." - }, - "VirtualNetworkRuleProperties": { - "description": "Properties of a virtual network rule.", - "required": [ - "virtualNetworkSubnetId" - ], - "type": "object", - "properties": { - "virtualNetworkSubnetId": { - "description": "The ARM resource id of the virtual network subnet.", - "type": "string" - }, - "ignoreMissingVnetServiceEndpoint": { - "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", - "type": "boolean" - }, - "state": { - "description": "Virtual Network Rule State", - "enum": [ - "Initializing", - "InProgress", - "Ready", - "Deleting", - "Unknown" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "VirtualNetworkRuleState", - "modelAsString": true - } - } - } - }, - "VirtualNetworkRule": { - "description": "A virtual network rule.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/VirtualNetworkRuleProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - } - }, - "VirtualNetworkRuleListResult": { - "description": "A list of virtual network rules.", - "type": "object", - "properties": { - "value": { - "description": "Array of results.", - "type": "array", - "items": { - "$ref": "#/definitions/VirtualNetworkRule" - }, - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "DatabaseProperties": { - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "Database": { - "properties": { - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "x-ms-client-flatten": true, - "description": "The properties of a database." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a Database." - }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases housed in a server" - } - }, - "description": "A List of databases." - }, - "ConfigurationProperties": { - "properties": { - "value": { - "type": "string", - "description": "Value of the configuration." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Description of the configuration." - }, - "defaultValue": { - "type": "string", - "readOnly": true, - "description": "Default value of the configuration." - }, - "dataType": { - "type": "string", - "readOnly": true, - "description": "Data type of the configuration." - }, - "allowedValues": { - "type": "string", - "readOnly": true, - "description": "Allowed values of the configuration." - }, - "source": { - "type": "string", - "description": "Source of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "Configuration": { - "properties": { - "properties": { - "$ref": "#/definitions/ConfigurationProperties", - "x-ms-client-flatten": true, - "description": "The properties of a configuration." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a Configuration." - }, - "ConfigurationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Configuration" - }, - "description": "The list of server configurations." - } - }, - "description": "A list of server configurations." - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "readOnly": true, - "description": "Operation resource provider name." - }, - "resource": { - "type": "string", - "readOnly": true, - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "readOnly": true, - "description": "Localized friendly name for the operation." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Operation description." - } - }, - "description": "Display metadata associated with the operation." - }, - "Operation": { - "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." - }, - "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." - } - }, - "description": "REST API operation definition." - }, - "OperationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "The list of resource provider operations." - } - }, - "description": "A list of resource provider operations." - }, - "LogFileProperties": { - "properties": { - "name": { - "type": "string", - "description": "Log file name." - }, - "sizeInKB": { - "type": "integer", - "format": "int64", - "description": "Size of the log file." - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation timestamp of the log file." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Last modified timestamp of the log file." - }, - "type": { - "type": "string", - "description": "Type of the log file." - }, - "url": { - "type": "string", - "description": "The url to download the log file from." - } - }, - "description": "The properties of a log file." - }, - "LogFile": { - "properties": { - "name": { - "type": "string", - "description": "The name of the log file." - }, - "properties": { - "$ref": "#/definitions/LogFileProperties", - "x-ms-client-flatten": true, - "description": "The properties of the log file." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a log file." - }, - "LogFileListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LogFile" - }, - "description": "The list of log files." - } - }, - "description": "A list of log files." - }, - "PerformanceTierServiceLevelObjectives": { - "properties": { - "id": { - "type": "string", - "description": "ID for the service level objective." - }, - "edition": { - "type": "string", - "description": "Edition of the performance tier." - }, - "vCore": { - "type": "integer", - "description": "VCore associated with the service level objective" - }, - "hardwareGeneration": { - "type": "string", - "description": "Hardware generation associated with the service level objective" - } - }, - "description": "Service level objectives for performance tier." - }, - "PerformanceTierProperties": { - "properties": { - "id": { - "type": "string", - "description": "ID of the performance tier." - }, - "maxBackupRetentionDays":{ - "type": "integer", - "description": "Maximum Backup retention in days for the performance tier edition" - }, - "minBackupRetentionDays": { - "type": "integer", - "description": "Minimum Backup retention in days for the performance tier edition" - }, - "maxStorageMB":{ - "type": "integer", - "format": "int32", - "description": "Max storage allowed for a server." - }, - "minStorageMB":{ - "type": "integer", - "format": "int32", - "description": "Max storage allowed for a server." - }, - "serviceLevelObjectives": { - "type": "array", - "items": { - "$ref": "#/definitions/PerformanceTierServiceLevelObjectives" - }, - "description": "Service level objectives associated with the performance tier" - } - }, - "description": "Performance tier properties" - }, - "PerformanceTierListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PerformanceTierProperties" - }, - "description": "The list of performance tiers" - } - }, - "description": "A list of performance tiers." - }, - "NameAvailabilityRequest": { - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Resource name to verify." - }, - "type": { - "type": "string", - "description": "Resource type used for verification." - } - }, - "description": "Request from client to check resource name availability." - }, - "NameAvailability": { - "properties": { - "message": { - "type": "string", - "description": "Error Message." - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available." - }, - "reason": { - "type": "string", - "description": "Reason for name being unavailable." - } - }, - "description": "Represents a resource name availability." - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The subscription ID that identifies an Azure subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the request." - }, - "ResourceGroupParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", - "x-ms-parameter-location": "method" - }, - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method" - }, - "FirewallRuleNameParameter": { - "name": "firewallRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server firewall rule.", - "x-ms-parameter-location": "method" - }, - "virtualNetworkRuleNameParameter": { - "name": "virtualNetworkRuleName", - "in": "path", - "description": "The name of the virtual network rule.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "DatabaseNameParameter": { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database.", - "x-ms-parameter-location": "method" - }, - "ConfigurationNameParameter": { - "name": "configurationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server configuration.", - "x-ms-parameter-location": "method" - }, - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file From 56d2703de7107a301bf927d9924d3f00724831bf Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 17:06:39 -0800 Subject: [PATCH 19/23] Initial commit --- .../examples/CheckNameAvailability.json | 19 + .../examples/ConfigurationCreateOrUpdate.json | 33 + .../2017-12-01/examples/ConfigurationGet.json | 26 + .../examples/ConfigurationListByServer.json | 1056 +++++++++ .../2017-12-01/examples/DatabaseCreate.json | 40 + .../2017-12-01/examples/DatabaseDelete.json | 14 + .../2017-12-01/examples/DatabaseGet.json | 22 + .../examples/DatabaseListByServer.json | 34 + .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 14 + .../2017-12-01/examples/FirewallRuleGet.json | 22 + .../examples/FirewallRuleListByServer.json | 34 + .../examples/LogFileListByServer.json | 42 + .../2017-12-01/examples/OperationList.json | 194 ++ .../examples/PerformanceTiersList.json | 62 + .../PerformanceTiersListByLocation.json | 63 + .../2017-12-01/examples/ServerCreate.json | 75 + .../2017-12-01/examples/ServerDelete.json | 13 + .../2017-12-01/examples/ServerGet.json | 33 + .../2017-12-01/examples/ServerList.json | 77 + .../examples/ServerListByResourceGroup.json | 57 + .../2017-12-01/examples/ServerUpdate.json | 40 + .../VirtualNetworkRulesCreateOrUpdate.json | 40 + .../examples/VirtualNetworkRulesDelete.json | 20 + .../examples/VirtualNetworkRulesGet.json | 23 + .../examples/VirtualNetworkRulesList.json | 37 + .../2017-12-01/postgresql.json | 1921 +++++++++++++++++ 27 files changed, 4051 insertions(+) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..206d8b5a6498 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforPostgreSQL" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "reason": "" + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json new file mode 100644 index 000000000000..20144aee3247 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "value": "off", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "off", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json new file mode 100644 index 000000000000..951fb59e1aae --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "on", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..19802c224f4b --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json @@ -0,0 +1,1056 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "on", + "description": "Enable input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "safe_encoding", + "description": "Sets whether \"\\'\" is allowed in string literals.", + "defaultValue": "safe_encoding", + "dataType": "Enumeration", + "allowedValues": "safe_encoding,on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/backslash_quote", + "name": "backslash_quote", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "hex", + "description": "Sets the output format for bytea.", + "defaultValue": "hex", + "dataType": "Enumeration", + "allowedValues": "escape,hex", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/bytea_output", + "name": "bytea_output", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Check function bodies during CREATE FUNCTION.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/check_function_bodies", + "name": "check_function_bodies", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "sql_ascii", + "description": "Sets the client's character set encoding.", + "defaultValue": "sql_ascii", + "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", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/client_encoding", + "name": "client_encoding", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "notice", + "description": "Sets the message levels that are sent to the client.", + "defaultValue": "notice", + "dataType": "Enumeration", + "allowedValues": "debug5,debug4,debug3,debug2,debug1,log,notice,warning,error", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/client_min_messages", + "name": "client_min_messages", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "partition", + "description": "Enables the planner to use constraints to optimize queries.", + "defaultValue": "partition", + "dataType": "Enumeration", + "allowedValues": "partition,on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/constraint_exclusion", + "name": "constraint_exclusion", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.005", + "description": "Sets the planner's estimate of the cost of processing each index entry during an index scan.", + "defaultValue": "0.005", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_index_tuple_cost", + "name": "cpu_index_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.0025", + "description": "Sets the planner's estimate of the cost of processing each operator or function call.", + "defaultValue": "0.0025", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_operator_cost", + "name": "cpu_operator_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.01", + "description": "Sets the planner's estimate of the cost of processing each tuple (row).", + "defaultValue": "0.01", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cpu_tuple_cost", + "name": "cpu_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.1", + "description": "Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved.", + "defaultValue": "0.1", + "dataType": "Numeric", + "allowedValues": "0-1", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/cursor_tuple_fraction", + "name": "cursor_tuple_fraction", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "iso, mdy", + "description": "Sets the display format for date and time values.", + "defaultValue": "iso, mdy", + "dataType": "String", + "allowedValues": "(iso|postgres|sql|german)\\,\\s(dmy|mdy|ymd)", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/datestyle", + "name": "datestyle", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "1000", + "description": "Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.", + "defaultValue": "1000", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/deadlock_timeout", + "name": "deadlock_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each query's parse tree.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_parse", + "name": "debug_print_parse", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each query's execution plan.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_plan", + "name": "debug_print_plan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each query's rewritten parse tree.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/debug_print_rewritten", + "name": "debug_print_rewritten", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "100", + "description": "Sets the default statistics target.", + "defaultValue": "100", + "dataType": "Integer", + "allowedValues": "1-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_statistics_target", + "name": "default_statistics_target", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "pg_catalog.english", + "description": "Sets default text search configuration.", + "defaultValue": "pg_catalog.english", + "dataType": "String", + "allowedValues": "[A-Za-z\\._]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_text_search_config", + "name": "default_text_search_config", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Sets the default deferrable status of new transactions.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_deferrable", + "name": "default_transaction_deferrable", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "read committed", + "description": "Sets the transaction isolation level of each new transaction.", + "defaultValue": "read committed", + "dataType": "Enumeration", + "allowedValues": "serializable,repeatable read,read committed,read uncommitted", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_isolation", + "name": "default_transaction_isolation", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Sets the default read-only status of new transactions.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_transaction_read_only", + "name": "default_transaction_read_only", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Create new tables with OIDs by default.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/default_with_oids", + "name": "default_with_oids", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of bitmap-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_bitmapscan", + "name": "enable_bitmapscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of hashed aggregation plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_hashagg", + "name": "enable_hashagg", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of hash join plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_hashjoin", + "name": "enable_hashjoin", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of index-only-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_indexonlyscan", + "name": "enable_indexonlyscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of index-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_indexscan", + "name": "enable_indexscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of materialization.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_material", + "name": "enable_material", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of merge join plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_mergejoin", + "name": "enable_mergejoin", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of nested-loop join plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_nestloop", + "name": "enable_nestloop", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of sequential-scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_seqscan", + "name": "enable_seqscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of explicit sort steps.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_sort", + "name": "enable_sort", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of TID scan plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/enable_tidscan", + "name": "enable_tidscan", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Warn about backslash escapes in ordinary string literals.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/escape_string_warning", + "name": "escape_string_warning", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Terminate session on any error.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/exit_on_error", + "name": "exit_on_error", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the number of digits displayed for floating-point values.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "-15-3", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/extra_float_digits", + "name": "extra_float_digits", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "8", + "description": "Sets the FROM-list size beyond which subqueries are not collapsed.", + "defaultValue": "8", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/from_collapse_limit", + "name": "from_collapse_limit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables genetic query optimization.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo", + "name": "geqo", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "5", + "description": "GEQO: effort is used to set the default for other GEQO parameters.", + "defaultValue": "5", + "dataType": "Integer", + "allowedValues": "1-10", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_effort", + "name": "geqo_effort", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "GEQO: number of iterations of the algorithm.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_generations", + "name": "geqo_generations", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "GEQO: number of individuals in the population.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_pool_size", + "name": "geqo_pool_size", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.0", + "description": "GEQO: seed for random path selection.", + "defaultValue": "0.0", + "dataType": "Numeric", + "allowedValues": "0-1", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_seed", + "name": "geqo_seed", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "2.0", + "description": "GEQO: selective pressure within the population.", + "defaultValue": "2.0", + "dataType": "Numeric", + "allowedValues": "1.5-2", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_selection_bias", + "name": "geqo_selection_bias", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "12", + "description": "Sets the threshold of FROM items beyond which GEQO is used.", + "defaultValue": "12", + "dataType": "Integer", + "allowedValues": "2-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/geqo_threshold", + "name": "geqo_threshold", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed result for exact search by GIN.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/gin_fuzzy_search_limit", + "name": "gin_fuzzy_search_limit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "postgres", + "description": "Sets the display format for interval values.", + "defaultValue": "postgres", + "dataType": "Enumeration", + "allowedValues": "postgres,postgres_verbose,sql_standard,iso_8601", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/intervalstyle", + "name": "intervalstyle", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "8", + "description": "Sets the FROM-list size beyond which JOIN constructs are not flattened.", + "defaultValue": "8", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/join_collapse_limit", + "name": "join_collapse_limit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/lock_timeout", + "name": "lock_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each checkpoint.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_checkpoints", + "name": "log_checkpoints", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each successful connection.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_connections", + "name": "log_connections", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs end of a session, including duration.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_disconnections", + "name": "log_disconnections", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs the duration of each completed SQL statement.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_duration", + "name": "log_duration", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "default", + "description": "Sets the verbosity of logged messages.", + "defaultValue": "default", + "dataType": "Enumeration", + "allowedValues": "terse,default,verbose", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_error_verbosity", + "name": "log_error_verbosity", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs long lock waits.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_lock_waits", + "name": "log_lock_waits", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "-1", + "description": "Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.", + "defaultValue": "-1", + "dataType": "Integer", + "allowedValues": "-1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_duration_statement", + "name": "log_min_duration_statement", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "error", + "description": "Causes all statements generating error at or above this level to be logged.", + "defaultValue": "error", + "dataType": "Enumeration", + "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_error_statement", + "name": "log_min_error_statement", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "warning", + "description": "Sets the message levels that are logged.", + "defaultValue": "warning", + "dataType": "Enumeration", + "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_min_messages", + "name": "log_min_messages", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "none", + "description": "Sets the type of statements logged.", + "defaultValue": "none", + "dataType": "Enumeration", + "allowedValues": "none,ddl,mod,all", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_statement", + "name": "log_statement", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "64", + "description": "Sets the maximum number of locks per transaction.", + "defaultValue": "64", + "dataType": "Integer", + "allowedValues": "10-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_locks_per_transaction", + "name": "max_locks_per_transaction", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "64", + "description": "Sets the maximum number of predicate locks per transaction.", + "defaultValue": "64", + "dataType": "Integer", + "allowedValues": "10-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_pred_locks_per_transaction", + "name": "max_pred_locks_per_transaction", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum number of simultaneously prepared transactions.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-8388607", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_prepared_transactions", + "name": "max_prepared_transactions", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "When generating SQL fragments, quote all identifiers.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/quote_all_identifiers", + "name": "quote_all_identifiers", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "4.0", + "description": "Sets the planner's estimate of the cost of a nonsequentially fetched disk page.", + "defaultValue": "4.0", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/random_page_cost", + "name": "random_page_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "\"$user\", public", + "description": "Sets the schema search order for names that are not schema-qualified.", + "defaultValue": "\"$user\", public", + "dataType": "String", + "allowedValues": "[A-Za-z.\"$, ]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/search_path", + "name": "search_path", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "1.0", + "description": "Sets the planner's estimate of the cost of a sequentially fetched disk page.", + "defaultValue": "1.0", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/seq_page_cost", + "name": "seq_page_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Causes subtables to be included by default in various commands.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/sql_inheritance", + "name": "sql_inheritance", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Causes '...' strings to treat backslashes literally.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/standard_conforming_strings", + "name": "standard_conforming_strings", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/statement_timeout", + "name": "statement_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enable synchronized sequential scans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/synchronize_seqscans", + "name": "synchronize_seqscans", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Sets the current transaction's synchronization level.", + "defaultValue": "on", + "dataType": "Enumeration", + "allowedValues": "local,remote_write,on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/synchronous_commit", + "name": "synchronous_commit", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Treats \"expr=NULL\" as \"expr IS NULL\".", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/transform_null_equals", + "name": "transform_null_equals", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "base64", + "description": "Sets how binary values are to be encoded in XML.", + "defaultValue": "base64", + "dataType": "Enumeration", + "allowedValues": "base64,hex", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/xmlbinary", + "name": "xmlbinary", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "content", + "description": "Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.", + "defaultValue": "content", + "dataType": "Enumeration", + "allowedValues": "content,document", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/xmloption", + "name": "xmloption", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Forces use of parallel query facilities.", + "defaultValue": "off", + "dataType": "Enumeration", + "allowedValues": "off,on,regress", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/force_parallel_mode", + "name": "force_parallel_mode", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum allowed duration of any idling transaction.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/idle_in_transaction_session_timeout", + "name": "idle_in_transaction_session_timeout", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the maximum number of parallel processes per executor node.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-1024", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/max_parallel_workers_per_gather", + "name": "max_parallel_workers_per_gather", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "8388608", + "description": "Sets the minimum size of relations to be considered for parallel scan.", + "defaultValue": "8388608", + "dataType": "Integer", + "allowedValues": "0-715827882", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/min_parallel_relation_size", + "name": "min_parallel_relation_size", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "1000", + "description": "Sets the planner's estimate of the cost of starting up worker processes for parallel query.", + "defaultValue": "1000", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/parallel_setup_cost", + "name": "parallel_setup_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "0.1", + "description": "Sets the planner's estimate of the cost of passing each tuple (row) from worker to master backend.", + "defaultValue": "0.1", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/parallel_tuple_cost", + "name": "parallel_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + }, + { + "properties": { + "value": "3", + "description": "Sets how many days a log file is saved for.", + "defaultValue": "3", + "dataType": "Integer", + "allowedValues": "1-7", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/configurations/log_retention_days", + "name": "log_retention_days", + "type": "Microsoft.DBforPostgreSQL/servers/configurations" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json new file mode 100644 index 000000000000..b63a12e41e9b --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "charset":"UTF8", + "collation":"English_United States.1252" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..600a8fd87165 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..4ea6aac9a4d3 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json new file mode 100644 index 000000000000..6bb09763b1be --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/databases/db2", + "name": "db2", + "type": "Microsoft.DBforPostgreSQL/servers/databases", + "properties": { + "charset": "UTF8", + "collation": "English_United States.1252" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..7454e35e6a08 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "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/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "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/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..7dde700aa259 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..534c07717684 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json new file mode 100644 index 000000000000..a6b877fa46b5 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforPostgreSQL/servers/firewallRules", + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json new file mode 100644 index 000000000000..3a03b74c9100 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "name": "postgresql-2017-06-22_010000.log", + "sizeInKB": 4, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-06-22T01:59:36+00:00", + "type": "text", + "url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_010000.log?sv=2015-04-05&sr=f&sig=gqIQsa6VyGyUNpzYYPWLP5gM%2BeF1so9GYbHKu6Zs0DM%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/logFiles/postgresql-2017-06-22_010000.log", + "name": "postgresql-2017-06-22_010000.log", + "type": "Microsoft.DBforPostgreSQL/servers/logFiles" + }, + { + "properties": { + "name": "postgresql-2017-06-22_020000.log", + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2017-06-22T02:19:36+00:00", + "type": "text", + "url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_020000.log?sv=2015-04-05&sr=f&sig=i99UWBlYfR0tKaxix8yHAOnfym4HV9Auto6BbZogyRs%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/logFiles/postgresql-2017-06-22_020000.log", + "name": "postgresql-2017-06-22_020000.log", + "type": "Microsoft.DBforPostgreSQL/servers/logFiles" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json new file mode 100644 index 000000000000..0649be041fb6 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json @@ -0,0 +1,194 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforPostgreSQL/locations/performanceTiers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Performance Tiers", + "operation": "List Performance Tiers", + "description": "Returns the list of Performance Tiers available." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "List/Get PostgreSQL Servers", + "description": "Return the list of servers or gets the properties for the specified server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "Create/Update PostgreSQL Server", + "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "Delete PostgreSQL Server", + "description": "Deletes an existing server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/performanceTiers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Performance Tiers", + "operation": "List Performance Tiers", + "description": "Returns the list of Performance Tiers available." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/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 or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/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/servers/firewallRules/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/servers/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": "compute_limit", + "displayName": "Compute Unit limit", + "displayDescription": "Compute Unit limit", + "unit": "Count", + "aggregationType": "Average" + }, + { + "name": "compute_consumption_percent", + "displayName": "Compute Unit percentage", + "displayDescription": "Compute Unit percentage", + "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/servers/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/servers/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" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json new file mode 100644 index 000000000000..98daf7136515 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Basic", + "backupRetentionDays": 7, + "serviceLevelObjectives": [ + { + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "PGSQLB50" + }, + { + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "PGSQLB100" + } + ] + }, + { + "id": "Standard", + "backupRetentionDays": 35, + "serviceLevelObjectives": [ + { + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "PGSQLS100" + }, + { + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "PGSQLS200" + }, + { + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "PGSQLS400" + }, + { + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "PGSQLS800" + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json new file mode 100644 index 000000000000..289fa6eedc9e --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "WestUS" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Basic", + "backupRetentionDays": 7, + "serviceLevelObjectives": [ + { + "edition": "Basic", + "dtu": 50, + "storageMB": 51200, + "id": "PGSQLB50" + }, + { + "edition": "Basic", + "dtu": 100, + "storageMB": 51200, + "id": "PGSQLB100" + } + ] + }, + { + "id": "Standard", + "backupRetentionDays": 35, + "serviceLevelObjectives": [ + { + "edition": "Standard", + "dtu": 100, + "storageMB": 128000, + "id": "PGSQLS100" + }, + { + "edition": "Standard", + "dtu": 200, + "storageMB": 128000, + "id": "PGSQLS200" + }, + { + "edition": "Standard", + "dtu": 400, + "storageMB": 128000, + "id": "PGSQLS400" + }, + { + "edition": "Standard", + "dtu": 800, + "storageMB": 128000, + "id": "PGSQLS800" + } + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json new file mode 100644 index 000000000000..4e88adf0ffdf --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "OneBox", + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "storageMB": 1024, + "sslEnforcement": "Enabled", + "createMode": "Default" + }, + "sku": { + "name": "SkuName", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json new file mode 100644 index 000000000000..50b9770f2180 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json new file mode 100644 index 000000000000..c77294d8a56f --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json new file mode 100644 index 000000000000..6a5c925b7bbd --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", + "name": "serv1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforPostgreSQL/servers/serv2", + "name": "serv2", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv2.test-vm1.onebox.xdb.mscds.com" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json new file mode 100644 index 000000000000..39df40d8ac77 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", + "name": "serv1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json new file mode 100644 index 000000000000..cab45b4c31d9 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2017-04-30-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties":{ + "administratorLoginPassword":"newpassword", + "sslEnforcement": "Disabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "sku": { + "name": "PGSQLB100", + "tier": "Basic", + "capacity": 100 + }, + "tags": { + "elasticServer": "1" + }, + "properties": { + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement": "Disabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json new file mode 100644 index 000000000000..d4bc04372df4 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview", + "parameters": { + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json new file mode 100644 index 000000000000..94b5feeccec2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": "" + }, + "202": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json new file mode 100644 index 000000000000..7dcf85e1c068 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json new file mode 100644 index 000000000000..e894431bdd51 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "serverName": "vnet-test-svr", + "virtualNetworkRuleName": "vnet-firewall-rule", + "api-version": "2017-04-30-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/vnet-test-svr/virtualNetworkRules/vnet-firewall-rule", + "name": "vnet-firewall-rule", + "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", + "properties": { + "ignoreMissingVnetServiceEndpoint": false, + "state": "Ready", + "virtualNetworkSubnetId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json new file mode 100644 index 000000000000..1fd615c40c70 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -0,0 +1,1921 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.", + "version": "2017-04-30-preview" + }, + "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}": { + "put": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Create", + "x-ms-examples": { + "ServerCreate": { "$ref": "./examples/ServerCreate.json" } + }, + "description": "Creates a new server, or will overwrite an existing server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerForCreate" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Update", + "x-ms-examples": { + "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" } + }, + "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerUpdateParameters" + }, + "description": "The required parameters for updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Delete", + "x-ms-examples": { + "ServerDelete": { "$ref": "./examples/ServerDelete.json" } + }, + "description": "Deletes a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "ServerGet": { "$ref": "./examples/ServerGet.json" } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByResourceGroup", + "x-ms-examples": { + "ServerListByResourceGroup": { "$ref": "./examples/ServerListByResourceGroup.json" } + }, + "description": "List all the servers in a given resource group.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_List", + "x-ms-examples": { + "ServerList": { "$ref": "./examples/ServerList.json" } + }, + "description": "List all the servers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}": { + "put": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-examples": { + "FirewallRuleCreate": { "$ref": "./examples/FirewallRuleCreate.json" } + }, + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$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" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "FirewallRuleDelete": { "$ref": "./examples/FirewallRuleDelete.json" } + }, + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "FirewallRuleGet": { "$ref": "./examples/FirewallRuleGet.json" } + }, + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules": { + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByServer", + "x-ms-examples": { + "FirewallRuleList": { "$ref": "./examples/FirewallRuleListByServer.json" } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a virtual network rule.", + "operationId": "VirtualNetworkRules_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-examples": { + "Gets a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesGet.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Creates or updates an existing virtual network rule.", + "operationId": "VirtualNetworkRules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "The requested virtual Network Rule Resource state.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + ], + "responses": { + "200": { + "description": "Successfully updated a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "201": { + "description": "Successfully created a virtual network rule.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Deletes the virtual network rule with the given name.", + "operationId": "VirtualNetworkRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/virtualNetworkRuleNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the virtual network rule." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "The specified virtual network rule does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a virtual network rule": { + "$ref": "./examples/VirtualNetworkRulesDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules": { + "get": { + "tags": [ + "VirtualNetworkRules" + ], + "description": "Gets a list of virtual network rules in a server.", + "operationId": "VirtualNetworkRules_ListByServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of virtual network rules.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRuleListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List virtual network rules": { + "$ref": "./examples/VirtualNetworkRulesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "DatabaseCreate": { "$ref": "./examples/DatabaseCreate.json" } + }, + "description": "Creates a new database or updates an existing database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The required parameters for creating or updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "x-ms-examples": { + "DatabaseDelete": { "$ref": "./examples/DatabaseDelete.json" } + }, + "description": "Deletes a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "x-ms-examples": { + "DatabaseGet": { "$ref": "./examples/DatabaseGet.json" } + }, + "description": "Gets information about a database.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "x-ms-examples": { + "DatabaseList": { "$ref": "./examples/DatabaseListByServer.json" } + }, + "description": "List all the databases in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}": { + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdate", + "x-ms-examples": { + "ConfigurationCreateOrUpdate": { "$ref": "./examples/ConfigurationCreateOrUpdate.json" } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Configuration" + }, + "description": "The required parameters for updating a server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "ConfigurationGet": { "$ref": "./examples/ConfigurationGet.json" } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServer", + "x-ms-examples": { + "ConfigurationList": { "$ref": "./examples/ConfigurationListByServer.json" } + }, + "description": "List all the configurations in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles": { + "get": { + "tags": [ + "LogFiles" + ], + "operationId": "LogFiles_ListByServer", + "x-ms-examples": { + "LogFileList": { "$ref": "./examples/LogFileListByServer.json" } + }, + "description": "List all the log files in a given server.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogFileListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/performanceTiers": { + "get": { + "tags": [ + "PerformanceTiers" + ], + "operationId": "PerformanceTiers_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersList.json" + } + }, + "description": "List all the performance tiers in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { + "get": { + "tags": [ + "LocationBasedPerformanceTier" + ], + "operationId": "LocationBasedPerformanceTier_List", + "x-ms-examples": { + "PerformanceTiersList": { + "$ref": "./examples/PerformanceTiersListByLocation.json" + } + }, + "description": "List all the performance tiers at specified location in a given subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PerformanceTierListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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" + } + } + } + } + }, + "/providers/Microsoft.DBforPostgreSQL/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationList": { "$ref": "./examples/OperationList.json" } + }, + "description": "Lists all of the available REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } + } + }, + "definitions": { + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "9.5", + "9.6" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "SslEnforcement": { + "type": "string", + "description": "Enable ssl enforcement or not when connect to server.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "SslEnforcementEnum", + "modelAsString": false + } + }, + "ProxyResource": { + "description": "Resource properties.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "Resource properties including location and tags for track resources.", + "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "location" + ] + }, + "ServerProperties": { + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The maximum storage allowed for a server." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "userVisibleState": { + "type": "string", + "description": "A state of a server that is visible to user.", + "enum": [ + "Ready", + "Dropping", + "Disabled" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + } + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server." + } + }, + "description": "The properties of a server." + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The maximum storage allowed for a server." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + }, + "createMode": { + "type": "string", + "description": "The mode to create a new server.", + "enum": [ + "Default", + "PointInTimeRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + } + } + }, + "description": "The properties used to create a new server." + }, + "ServerPropertiesForDefaultCreate": { + "x-ms-discriminator-value": "Default", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + } + }, + "required": [ + "administratorLogin", + "administratorLoginPassword" + ], + "description": "The properties used to create a new server." + }, + "ServerPropertiesForRestore": { + "x-ms-discriminator-value": "PointInTimeRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + } + }, + "required": [ + "sourceServerId", + "restorePointInTime" + ], + "description": "The properties to a new server by restoring from a backup." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, a letter + Number code, e.g. P3." + }, + "tier": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "The scale up/out capacity, representing server's compute units." + }, + "size": { + "type": "string", + "description": "The size code, to be interpreted by resource as appropriate." + }, + "family": { + "type": "string", + "description": "The family of hardware." + } + }, + "description": "Billing information related properties of a server." + }, + "Server": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerProperties", + "x-ms-client-flatten": true, + "description": "Properties of the server." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "ServerForCreate": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerPropertiesForCreate", + "x-ms-client-flatten": false, + "description": "Properties of the server." + }, + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "required": [ + "properties", + "location" + ], + "description": "Represents a server to be created." + }, + "ServerUpdateParameters": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "properties": { + "storageMB": { + "type": "integer", + "format": "int64", + "minimum": 1024, + "description": "The max storage allowed for a server." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "The version of a server." + }, + "sslEnforcement": { + "$ref": "#/definitions/SslEnforcement", + "description": "Enable ssl enforcement or not when connect to server." + } + }, + "x-ms-client-flatten": true, + "description": "The properties that can be updated for a server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "description": "Parameters allowd to update for a server." + }, + "ServerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Server" + }, + "description": "The list of servers" + } + }, + "description": "A list of servers." + }, + "FirewallRuleProperties": { + "properties": { + "startIpAddress": { + "type": "string", + "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])$", + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + }, + "endIpAddress": { + "type": "string", + "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])$", + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "FirewallRule": { + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + } + }, + "description": "A list of firewall rules." + }, + "VirtualNetworkRuleProperties": { + "description": "Properties of a virtual network rule.", + "required": [ + "virtualNetworkSubnetId" + ], + "type": "object", + "properties": { + "virtualNetworkSubnetId": { + "description": "The ARM resource id of the virtual network subnet.", + "type": "string" + }, + "ignoreMissingVnetServiceEndpoint": { + "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", + "type": "boolean" + }, + "state": { + "description": "Virtual Network Rule State", + "enum": [ + "Initializing", + "InProgress", + "Ready", + "Deleting", + "Unknown" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "VirtualNetworkRuleState", + "modelAsString": true + } + } + } + }, + "VirtualNetworkRule": { + "description": "A virtual network rule.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/VirtualNetworkRuleProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "VirtualNetworkRuleListResult": { + "description": "A list of virtual network rules.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "DatabaseProperties": { + "properties": { + "charset": { + "type": "string", + "description": "The charset of the database." + }, + "collation": { + "type": "string", + "description": "The collation of the database." + } + }, + "description": "The properties of a database." + }, + "Database": { + "properties": { + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "x-ms-client-flatten": true, + "description": "The properties of a database." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Database." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in a server" + } + }, + "description": "A List of databases." + }, + "ConfigurationProperties": { + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Description of the configuration." + }, + "defaultValue": { + "type": "string", + "readOnly": true, + "description": "Default value of the configuration." + }, + "dataType": { + "type": "string", + "readOnly": true, + "description": "Data type of the configuration." + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + } + }, + "description": "A list of server configurations." + }, + "OperationDisplay": { + "properties": { + "provider": { + "type": "string", + "readOnly": true, + "description": "Operation resource provider name." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "readOnly": true, + "description": "Localized friendly name for the operation." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Operation description." + } + }, + "description": "Display metadata associated with the operation." + }, + "Operation": { + "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." + }, + "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." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "The list of resource provider operations." + } + }, + "description": "A list of resource provider operations." + }, + "LogFileProperties": { + "properties": { + "name": { + "type": "string", + "description": "Log file name." + }, + "sizeInKB": { + "type": "integer", + "format": "int64", + "description": "Size of the log file." + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation timestamp of the log file." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Last modified timestamp of the log file." + }, + "type": { + "type": "string", + "description": "Type of the log file." + }, + "url": { + "type": "string", + "description": "The url to download the log file from." + } + }, + "description": "The properties of a log file." + }, + "LogFile": { + "properties": { + "name": { + "type": "string", + "description": "The name of the log file." + }, + "properties": { + "$ref": "#/definitions/LogFileProperties", + "x-ms-client-flatten": true, + "description": "The properties of the log file." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Represents a log file." + }, + "LogFileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LogFile" + }, + "description": "The list of log files." + } + }, + "description": "A list of log files." + }, + "PerformanceTierServiceLevelObjectives": { + "properties": { + "id": { + "type": "string", + "description": "ID for the service level objective." + }, + "edition": { + "type": "string", + "description": "Edition of the performance tier." + }, + "dtu": { + "type": "integer", + "description": "Database throughput unit associated with the service level objective" + }, + "storageMB": { + "type": "integer", + "description": "Maximum storage in MB associated with the service level objective" + } + }, + "description": "Service level objectives for performance tier." + }, + "PerformanceTierProperties": { + "properties": { + "id": { + "type": "string", + "description": "ID of the performance tier." + }, + "backupRetentionDays": { + "type": "integer", + "description": "Backup retention in days for the performance tier edition" + }, + "serviceLevelObjectives": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierServiceLevelObjectives" + }, + "description": "Service level objectives associated with the performance tier" + } + }, + "description": "Performance tier properties" + }, + "PerformanceTierListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceTierProperties" + }, + "description": "The list of performance tiers" + } + }, + "description": "A list of performance tiers." + }, + "NameAvailabilityRequest": { + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." + }, + "NameAvailability": { + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "FirewallRuleNameParameter": { + "name": "firewallRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server firewall rule.", + "x-ms-parameter-location": "method" + }, + "virtualNetworkRuleNameParameter": { + "name": "virtualNetworkRuleName", + "in": "path", + "description": "The name of the virtual network rule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database.", + "x-ms-parameter-location": "method" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server configuration.", + "x-ms-parameter-location": "method" + }, + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} From e4fa9b120a32a9654322347bd29e650e2af2e0f4 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Thu, 11 Jan 2018 17:10:43 -0800 Subject: [PATCH 20/23] changes for swagger 2017-12-01 --- .../examples/CheckNameAvailability.json | 2 +- .../examples/ConfigurationCreateOrUpdate.json | 2 +- .../2017-12-01/examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationListByServer.json | 2 +- .../2017-12-01/examples/DatabaseCreate.json | 2 +- .../2017-12-01/examples/DatabaseDelete.json | 2 +- .../2017-12-01/examples/DatabaseGet.json | 2 +- .../examples/DatabaseListByServer.json | 2 +- .../examples/FirewallRuleCreate.json | 2 +- .../examples/FirewallRuleDelete.json | 2 +- .../2017-12-01/examples/FirewallRuleGet.json | 2 +- .../examples/FirewallRuleListByServer.json | 2 +- .../examples/LogFileListByServer.json | 2 +- .../2017-12-01/examples/OperationList.json | 2 +- .../examples/PerformanceTiersList.json | 62 ------- .../PerformanceTiersListByLocation.json | 89 +++++++--- .../2017-12-01/examples/ServerCreate.json | 61 ++++--- .../2017-12-01/examples/ServerDelete.json | 2 +- .../2017-12-01/examples/ServerGet.json | 32 ++-- .../2017-12-01/examples/ServerList.json | 100 ++++++----- .../examples/ServerListByResourceGroup.json | 105 ++++++++---- .../2017-12-01/examples/ServerUpdate.json | 8 +- .../VirtualNetworkRulesCreateOrUpdate.json | 2 +- .../examples/VirtualNetworkRulesDelete.json | 4 +- .../examples/VirtualNetworkRulesGet.json | 2 +- .../examples/VirtualNetworkRulesList.json | 2 +- .../2017-12-01/postgresql.json | 160 +++++++++++------- 27 files changed, 373 insertions(+), 284 deletions(-) delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json index 206d8b5a6498..5a991b056504 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "nameAvailabilityRequest": { "name": "name1", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json index 20144aee3247..c2b82a6e662b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationCreateOrUpdate.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json index 951fb59e1aae..d97cd94623a2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json index 19802c224f4b..d1acb37c40a6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ConfigurationListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json index b63a12e41e9b..3245c04055fd 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json index 600a8fd87165..6706a74576de 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseDelete.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json index 4ea6aac9a4d3..a2b6de88d3d2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json index 6bb09763b1be..8f721fa560c7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/DatabaseListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json index 7454e35e6a08..33b2aca7aff4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json index 7dde700aa259..d8348f45a659 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleDelete.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json index 534c07717684..eb5bf7d32c58 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json index a6b877fa46b5..931fe7382303 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/FirewallRuleListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json index 3a03b74c9100..3c9fe3477a21 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/LogFileListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json index 0649be041fb6..505cf310c48f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/OperationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json deleted file mode 100644 index 98daf7136515..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersList.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2017-04-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "Basic", - "backupRetentionDays": 7, - "serviceLevelObjectives": [ - { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "PGSQLB50" - }, - { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "PGSQLB100" - } - ] - }, - { - "id": "Standard", - "backupRetentionDays": 35, - "serviceLevelObjectives": [ - { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "PGSQLS100" - }, - { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "PGSQLS200" - }, - { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "PGSQLS400" - }, - { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "PGSQLS800" - } - ] - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json index 289fa6eedc9e..05678be5a5bd 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -9,50 +9,83 @@ "body": { "value": [ { - "id": "Basic", - "backupRetentionDays": 7, + "Id": "Basic", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 1024000, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "edition": "Basic", - "dtu": 50, - "storageMB": 51200, - "id": "PGSQLB50" + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_B_Gen4_1", + "VCore": 1 }, { - "edition": "Basic", - "dtu": 100, - "storageMB": 51200, - "id": "PGSQLB100" + "Edition": "Basic", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_B_Gen4_2", + "VCore": 2 } ] }, { - "id": "Standard", - "backupRetentionDays": 35, + "Id": "GeneralPurpose", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "edition": "Standard", - "dtu": 100, - "storageMB": 128000, - "id": "PGSQLS100" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_2", + "VCore": 2 }, { - "edition": "Standard", - "dtu": 200, - "storageMB": 128000, - "id": "PGSQLS200" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_4", + "VCore": 4 }, { - "edition": "Standard", - "dtu": 400, - "storageMB": 128000, - "id": "PGSQLS400" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_8", + "VCore": 8 }, { - "edition": "Standard", - "dtu": 800, - "storageMB": 128000, - "id": "PGSQLS800" + "Edition": "GeneralPurpose", + "HardwareGeneration": "Gen4", + "Id": "PGSQL_GP_Gen4_32", + "VCore": 32 + } + ] + }, + { + "Id": "MemoryOptimized", + "MaxBackupRetentionDays": 35, + "MaxStorageMB": 2097152, + "MinBackupRetentionDays": 7, + "MinStorageMB": 5120, + "serviceLevelObjectives": [ + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_2", + "VCore": 2 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_8", + "VCore": 4 + }, + { + "Edition": "MemoryOptimized", + "HardwareGeneration": "Gen5", + "Id": "PGSQL_MO_Gen5_16", + "VCore": 8 } ] } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json index 4e88adf0ffdf..8509217ae15c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -2,21 +2,26 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "OneBox", "properties": { "administratorLogin": "cloudsa", "administratorLoginPassword": "password", - "storageMB": 1024, "sslEnforcement": "Enabled", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "createMode": "Default" }, "sku": { "name": "SkuName", "tier": "Basic", - "capacity": 100 + "capacity": 2, + "Family": "Gen4" }, "tags": { "ElasticServer": "1" @@ -30,21 +35,26 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" } }, "200": { @@ -53,21 +63,26 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "administratorLogin": "cloudsa", + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "EarliestRestoreDate": "null" } }, "202": {} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json index 50b9770f2180..6427e09c2b08 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerDelete.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json index c77294d8a56f..b683c21bc02f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -12,21 +12,27 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json index 6a5c925b7bbd..6d6520ef7272 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { @@ -12,63 +12,81 @@ "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", - "name": "serv1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforPostgreSQL/servers/serv2", - "name": "serv2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, "tags": { "elasticServer": "1" }, - "properties": { - "administratorLogin": "cloudsa", - "storageMB": 1024, - "sslEnforcement":"Enabled", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv2.test-vm1.onebox.xdb.mscds.com" - } + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } ] } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json index 39df40d8ac77..51a10f295810 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -1,55 +1,94 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/serv1", - "name": "serv1", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 - }, - "tags": { - "elasticServer": "1" - }, - "properties": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", + "name": "testserver", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "serv1.test-vm1.onebox.xdb.mscds.com" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", - "name": "testserver", - "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", - "sku": { - "name": "PGSQLB100", - "tier": "Basic", - "capacity": 100 + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, - "tags": { - "elasticServer": "1" + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", + "name": "testserver1", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, + "administratorLogin": "cloudsa", + "storageMB": 1024, + "sslEnforcement":"Enabled", + "userVisibleState": "Ready", + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" }, - "properties": { + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", + "name": "testserver2", + "type": "Microsoft.DBforPostgreSQL/servers", + "location": "onebox", + "tags": { + "elasticServer": "1" + }, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, + "sku": { + "Capacity": 2, + "Family": "Gen4", + "Name": "PGSQL_B_Gen4_2", + "Size": null, + "Tier": "Basic" + }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", - "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" + "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", + "Version": "9.6" } - } ] } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json index cab45b4c31d9..2860618dae63 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties":{ @@ -28,7 +28,11 @@ }, "properties": { "administratorLogin": "cloudsa", - "storageMB": 1024, + "storageProfile": { + "StorageMB": 128000, + "BackupRetentionDays": 7, + "GeoRedundantBackup": "Enabled" + }, "sslEnforcement": "Disabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json index d4bc04372df4..7e65de762b66 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesCreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "parameters": { "properties": { "ignoreMissingVnetServiceEndpoint": false, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json index 94b5feeccec2..0748e9fc127f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -4,8 +4,8 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" - }, + "api-version": "2017-12-01" + }, "responses": { "200": { "body": "" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json index 7dcf85e1c068..65139ffd7cc5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json index e894431bdd51..8171f2792cde 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/VirtualNetworkRulesList.json @@ -4,7 +4,7 @@ "resourceGroupName": "TestGroup", "serverName": "vnet-test-svr", "virtualNetworkRuleName": "vnet-firewall-rule", - "api-version": "2017-04-30-preview" + "api-version": "2017-12-01" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index 1fd615c40c70..3db298b84a8b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "title": "PostgreSQLManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.", - "version": "2017-04-30-preview" + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "version": "2017-12-01" }, "host": "management.azure.com", "schemes": [ @@ -945,39 +945,6 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/performanceTiers": { - "get": { - "tags": [ - "PerformanceTiers" - ], - "operationId": "PerformanceTiers_List", - "x-ms-examples": { - "PerformanceTiersList": { - "$ref": "./examples/PerformanceTiersList.json" - } - }, - "description": "List all the performance tiers in a given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PerformanceTierListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers": { "get": { "tags": [ @@ -1153,12 +1120,6 @@ "type": "string", "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." }, - "storageMB": { - "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The maximum storage allowed for a server." - }, "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1183,20 +1144,49 @@ "fullyQualifiedDomainName": { "type": "string", "description": "The fully qualified domain name of a server." + }, + "EarliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "Earliest restore point creation time (ISO8601 format)" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." } }, "description": "The properties of a server." }, - "ServerPropertiesForCreate": { - "discriminator": "createMode", - "required": [ "createMode" ], + "StorageProfile": { "properties": { - "storageMB": { + "backupRetentionDays": { "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The maximum storage allowed for a server." + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Basic.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackup", + "modelAsString": true + } }, + "storageMB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + }, + "ServerPropertiesForCreate": { + "discriminator": "createMode", + "required": [ "createMode" ], + "properties": { "version": { "$ref": "#/definitions/ServerVersion", "description": "Server version." @@ -1205,12 +1195,28 @@ "$ref": "#/definitions/SslEnforcement", "description": "Enable ssl enforcement or not when connect to server." }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + }, "createMode": { "type": "string", "description": "The mode to create a new server.", "enum": [ "Default", - "PointInTimeRestore" + "PointInTimeRestore", + "GeoRestore" ], "x-ms-enum": { "name": "CreateMode", @@ -1268,6 +1274,24 @@ ], "description": "The properties to a new server by restoring from a backup." }, + "ServerPropertiesForGeoRestore": { + "x-ms-discriminator-value": "GeoRestore", + "allOf": [ + { + "$ref": "#/definitions/ServerPropertiesForCreate" + } + ], + "properties": { + "sourceServerId": { + "type": "string", + "description": "The source server id to restore from." + } + }, + "required": [ + "sourceServerId" + ], + "description": "The properties to a new server by restoring from a geo replicated backup." + }, "Sku": { "properties": { "name": { @@ -1359,11 +1383,9 @@ }, "properties": { "properties": { - "storageMB": { - "type": "integer", - "format": "int64", - "minimum": 1024, - "description": "The max storage allowed for a server." + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage profile of a server." }, "administratorLoginPassword": { "type": "string", @@ -1769,13 +1791,13 @@ "type": "string", "description": "Edition of the performance tier." }, - "dtu": { + "vCore": { "type": "integer", - "description": "Database throughput unit associated with the service level objective" + "description": "VCore associated with the service level objective" }, - "storageMB": { - "type": "integer", - "description": "Maximum storage in MB associated with the service level objective" + "hardwareGeneration": { + "type": "string", + "description": "Hardware generation associated with the service level objective" } }, "description": "Service level objectives for performance tier." @@ -1786,9 +1808,23 @@ "type": "string", "description": "ID of the performance tier." }, - "backupRetentionDays": { + "maxBackupRetentionDays":{ + "type": "integer", + "description": "Maximum Backup retention in days for the performance tier edition" + }, + "minBackupRetentionDays": { "type": "integer", - "description": "Backup retention in days for the performance tier edition" + "description": "Minimum Backup retention in days for the performance tier edition" + }, + "maxStorageMB":{ + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + }, + "minStorageMB":{ + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." }, "serviceLevelObjectives": { "type": "array", @@ -1918,4 +1954,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 1746ee8e85606f57119f0abd8444e32544f69b9f Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 16 Jan 2018 12:18:23 -0800 Subject: [PATCH 21/23] nit changes --- .../PerformanceTiersListByLocation.json | 102 +++++++++--------- .../2017-12-01/examples/ServerCreate.json | 36 +++---- .../2017-12-01/examples/ServerGet.json | 18 ++-- .../2017-12-01/examples/ServerList.json | 24 ++--- .../examples/ServerListByResourceGroup.json | 48 ++++----- .../2017-12-01/examples/ServerUpdate.json | 6 +- .../2017-12-01/postgresql.json | 2 +- 7 files changed, 118 insertions(+), 118 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json index 05678be5a5bd..e485a2df527a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2017-04-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "subscriptionid": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, "responses": { @@ -9,83 +9,83 @@ "body": { "value": [ { - "Id": "Basic", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 1024000, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, + "id": "Basic", + "maxBackupRetentionDays": 35, + "maxStorageMB": 1024000, + "minBackupRetentionDays": 7, + "minStorageMB": 5120, "serviceLevelObjectives": [ { - "Edition": "Basic", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_B_Gen4_1", - "VCore": 1 + "edition": "Basic", + "hardwareGeneration": "Gen4", + "id": "B_Gen4_1", + "vCore": 1 }, { - "Edition": "Basic", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_B_Gen4_2", - "VCore": 2 + "edition": "Basic", + "hardwareGeneration": "Gen4", + "id": "B_Gen4_2", + "vCore": 2 } ] }, { - "Id": "GeneralPurpose", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 2097152, - "MinBackupRetentionDays": 7, - "MinStorageMB": 5120, + "id": "GeneralPurpose", + "maxBackupRetentionDays": 35, + "maxStorageMB": 2097152, + "minBackupRetentionDays": 7, + "minStorageMB": 5120, "serviceLevelObjectives": [ { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_2", - "VCore": 2 + "edition": "GeneralPurpose", + "hardwareGeneration": "Gen4", + "id": "GP_Gen4_2", + "vCore": 2 }, { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_4", - "VCore": 4 + "edition": "GeneralPurpose", + "hardwareGeneration": "Gen4", + "id": "GP_Gen4_4", + "vCore": 4 }, { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_8", - "VCore": 8 + "edition": "GeneralPurpose", + "hardwareGeneration": "Gen4", + "id": "GP_Gen4_8", + "vCore": 8 }, { - "Edition": "GeneralPurpose", - "HardwareGeneration": "Gen4", - "Id": "PGSQL_GP_Gen4_32", - "VCore": 32 + "edition": "GeneralPurpose", + "hardwareGeneration": "Gen4", + "id": "GP_Gen4_32", + "vCore": 32 } ] }, { - "Id": "MemoryOptimized", - "MaxBackupRetentionDays": 35, - "MaxStorageMB": 2097152, - "MinBackupRetentionDays": 7, + "id": "MemoryOptimized", + "maxBackupRetentionDays": 35, + "maxStorageMB": 2097152, + "minBackupRetentionDays": 7, "MinStorageMB": 5120, "serviceLevelObjectives": [ { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_2", - "VCore": 2 + "edition": "MemoryOptimized", + "hardwareGeneration": "Gen5", + "id": "MO_Gen5_2", + "vCore": 2 }, { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_8", - "VCore": 4 + "edition": "MemoryOptimized", + "hardwareGeneration": "Gen5", + "id": "MO_Gen5_8", + "vCore": 4 }, { - "Edition": "MemoryOptimized", - "HardwareGeneration": "Gen5", - "Id": "PGSQL_MO_Gen5_16", - "VCore": 8 + "edition": "MemoryOptimized", + "hardwareGeneration": "Gen5", + "id": "MO_Gen5_16", + "vCore": 8 } ] } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json index 8509217ae15c..5daf9f0c8a21 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -11,9 +11,9 @@ "administratorLoginPassword": "password", "sslEnforcement": "Enabled", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "createMode": "Default" }, @@ -21,7 +21,7 @@ "name": "SkuName", "tier": "Basic", "capacity": 2, - "Family": "Gen4" + "family": "Gen4" }, "tags": { "ElasticServer": "1" @@ -36,14 +36,14 @@ "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "capacity": 2, + "family": "Gen4", + "name": "PGSQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -54,7 +54,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" + "earliestRestoreDate": "null" } }, "200": { @@ -64,14 +64,14 @@ "type": "Microsoft.DBforPostgreSQL/servers", "location": "onebox", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "capacity": 2, + "family": "Gen4", + "name": "PGSQL_B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -82,7 +82,7 @@ "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "EarliestRestoreDate": "null" + "earliestRestoreDate": "null" } }, "202": {} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json index b683c21bc02f..9010752f3287 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -16,23 +16,23 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" + "capacity": 2, + "family": "Gen4", + "name": "PGSQL_B_Gen4_2", + "size": null, + "tier": "Basic" }, "administratorLogin": "cloudsa", "storageMB": 1024, "sslEnforcement":"Enabled", "userVisibleState": "Ready", "fullyQualifiedDomainName": "testserver.test-vm1.onebox.xdb.mscds.com", - "Version": "9.6" + "version": "9.6" } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json index 6d6520ef7272..b7254a449a6e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -16,12 +16,12 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, + "capacity": 2, "Family": "Gen4", "Name": "PGSQL_B_Gen4_2", "Size": null, @@ -43,12 +43,12 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, + "capacity": 2, "Family": "Gen4", "Name": "PGSQL_B_Gen4_2", "Size": null, @@ -70,12 +70,12 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, + "capacity": 2, "Family": "Gen4", "Name": "PGSQL_B_Gen4_2", "Size": null, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json index 51a10f295810..332a852f7e21 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -17,16 +17,16 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" + "capacity": 2, + "family": "Gen4", + "name": "PGSQL_B_Gen4_2", + "size": null, + "tier": "Basic" }, "administratorLogin": "cloudsa", "storageMB": 1024, @@ -44,16 +44,16 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" + "capacity": 2, + "family": "Gen4", + "name": "PGSQL_B_Gen4_2", + "size": null, + "tier": "Basic" }, "administratorLogin": "cloudsa", "storageMB": 1024, @@ -71,16 +71,16 @@ "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", - "Size": null, - "Tier": "Basic" + "capacity": 2, + "family": "Gen4", + "name": "PGSQL_B_Gen4_2", + "size": null, + "tier": "Basic" }, "administratorLogin": "cloudsa", "storageMB": 1024, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json index 2860618dae63..5052cecd7178 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerUpdate.json @@ -29,9 +29,9 @@ "properties": { "administratorLogin": "cloudsa", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sslEnforcement": "Disabled", "userVisibleState": "Ready", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json index 3db298b84a8b..e35ea41287bf 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/postgresql.json @@ -1793,7 +1793,7 @@ }, "vCore": { "type": "integer", - "description": "VCore associated with the service level objective" + "description": "vCore associated with the service level objective" }, "hardwareGeneration": { "type": "string", From a435402f6b08b5746ea391ecae7b0b8a3031e073 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 16 Jan 2018 12:33:41 -0800 Subject: [PATCH 22/23] nit mysql changes --- .../PerformanceTiersListByLocation.json | 20 ++++----- .../2017-12-01/examples/ServerCreate.json | 30 ++++++------- .../2017-12-01/examples/ServerGet.json | 4 +- .../2017-12-01/examples/ServerList.json | 30 ++++++------- .../examples/ServerListByResourceGroup.json | 42 +++++++++---------- .../2017-12-01/examples/ServerUpdate.json | 8 ++-- .../2017-12-01/mysql.json | 2 +- 7 files changed, 68 insertions(+), 68 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json index c34af83e8401..eba479a8e2fb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/PerformanceTiersListByLocation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-04-30-preview", + "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, @@ -18,13 +18,13 @@ { "Edition": "Basic", "HardwareGeneration": "Gen4", - "Id": "MySQL_B_Gen4_1", + "Id": "B_Gen4_1", "VCore": 1 }, { "Edition": "Basic", "HardwareGeneration": "Gen4", - "Id": "MySQL_B_Gen4_2", + "Id": "B_Gen4_2", "VCore": 2 } ] @@ -39,25 +39,25 @@ { "Edition": "GeneralPurpose", "HardwareGeneration": "Gen4", - "Id": "MySQL_GP_Gen4_2", + "Id": "GP_Gen4_2", "VCore": 2 }, { "Edition": "GeneralPurpose", "HardwareGeneration": "Gen4", - "Id": "MySQL_GP_Gen4_4", + "Id": "GP_Gen4_4", "VCore": 4 }, { "Edition": "GeneralPurpose", "HardwareGeneration": "Gen4", - "Id": "MySQL_GP_Gen4_8", + "Id": "GP_Gen4_8", "VCore": 8 }, { "Edition": "GeneralPurpose", "HardwareGeneration": "Gen4", - "Id": "MySQL_GP_Gen4_32", + "Id": "GP_Gen4_32", "VCore": 32 } ] @@ -72,19 +72,19 @@ { "Edition": "MemoryOptimized", "HardwareGeneration": "Gen5", - "Id": "MySQL_MO_Gen5_2", + "Id": "MO_Gen5_2", "VCore": 2 }, { "Edition": "MemoryOptimized", "HardwareGeneration": "Gen5", - "Id": "MySQL_MO_Gen5_8", + "Id": "MO_Gen5_8", "VCore": 4 }, { "Edition": "MemoryOptimized", "HardwareGeneration": "Gen5", - "Id": "MySQL_MO_Gen5_16", + "Id": "MO_Gen5_16", "VCore": 8 } ] diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json index a905839f54f4..a4d43831afa3 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerCreate.json @@ -5,15 +5,15 @@ "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "OneBox", + "location": "WestUS", "properties": { "administratorLogin": "cloudsa", "administratorLoginPassword": "password", "sslEnforcement": "Enabled", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "createMode": "Default" }, @@ -21,7 +21,7 @@ "name": "SkuName", "tier": "Basic", "capacity": 2, - "Family": "Gen4" + "family": "Gen4" }, "tags": { "ElasticServer": "1" @@ -34,16 +34,16 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -62,16 +62,16 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json index 3547b4e27fc2..8cfc364d5933 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerGet.json @@ -11,7 +11,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -23,7 +23,7 @@ "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json index 6510b72a0c68..7b42e6245abc 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerList.json @@ -11,19 +11,19 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -38,19 +38,19 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", "name": "testserver1", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -65,19 +65,19 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", "name": "testserver2", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { "Capacity": 2, "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json index ccb7dcc544eb..37670dd2a5e4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -12,19 +12,19 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "capacity": 2, + "family": "Gen4", + "name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -39,19 +39,19 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver1", "name": "testserver1", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "capacity": 2, + "family": "Gen4", + "name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -66,19 +66,19 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver2", "name": "testserver2", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sku": { - "Capacity": 2, - "Family": "Gen4", - "Name": "MySQL_B_Gen4_2", + "capacity": 2, + "family": "Gen4", + "name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json index f521ba3144d0..1ba29f0b8335 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/examples/ServerUpdate.json @@ -17,7 +17,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforMySQL/servers", - "location": "onebox", + "location": "WestUS", "sku": { "name": "MySQLB100", "tier": "Basic", @@ -29,9 +29,9 @@ "properties": { "administratorLogin": "cloudsa", "storageProfile": { - "StorageMB": 128000, - "BackupRetentionDays": 7, - "GeoRedundantBackup": "Enabled" + "storageMB": 128000, + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled" }, "sslEnforcement": "Disabled", "userVisibleState": "Ready", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json index 5790749b46f9..a4ac0df5c882 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/2017-12-01/mysql.json @@ -1794,7 +1794,7 @@ }, "vCore": { "type": "integer", - "description": "VCore associated with the service level objective" + "description": "vCore associated with the service level objective" }, "hardwareGeneration": { "type": "string", From 485cbea35bbf808869de3a284ba1f35265953938 Mon Sep 17 00:00:00 2001 From: Reva Chauhan Date: Tue, 16 Jan 2018 12:40:00 -0800 Subject: [PATCH 23/23] nit PGSQL changes --- .../2017-12-01/examples/ServerCreate.json | 6 +++--- .../2017-12-01/examples/ServerGet.json | 2 +- .../2017-12-01/examples/ServerList.json | 12 ++++++------ .../examples/ServerListByResourceGroup.json | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json index 5daf9f0c8a21..bf6c7da9bc3d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerCreate.json @@ -5,7 +5,7 @@ "api-version": "2017-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "OneBox", + "location": "WestUS", "properties": { "administratorLogin": "cloudsa", "administratorLoginPassword": "password", @@ -43,7 +43,7 @@ "sku": { "capacity": 2, "family": "Gen4", - "name": "PGSQL_B_Gen4_2", + "name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -71,7 +71,7 @@ "sku": { "capacity": 2, "family": "Gen4", - "name": "PGSQL_B_Gen4_2", + "name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json index 9010752f3287..93bafc7c4a01 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerGet.json @@ -11,7 +11,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json index b7254a449a6e..e18d661221ac 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerList.json @@ -11,7 +11,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -23,7 +23,7 @@ "sku": { "capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -38,7 +38,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", "name": "testserver1", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -50,7 +50,7 @@ "sku": { "capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, @@ -65,7 +65,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", "name": "testserver2", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -77,7 +77,7 @@ "sku": { "capacity": 2, "Family": "Gen4", - "Name": "PGSQL_B_Gen4_2", + "Name": "B_Gen4_2", "Size": null, "Tier": "Basic" }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json index 332a852f7e21..bb0158788011 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/2017-12-01/examples/ServerListByResourceGroup.json @@ -12,7 +12,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver", "name": "testserver", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -24,7 +24,7 @@ "sku": { "capacity": 2, "family": "Gen4", - "name": "PGSQL_B_Gen4_2", + "name": "B_Gen4_2", "size": null, "tier": "Basic" }, @@ -39,7 +39,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver1", "name": "testserver1", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -51,7 +51,7 @@ "sku": { "capacity": 2, "family": "Gen4", - "name": "PGSQL_B_Gen4_2", + "name": "B_Gen4_2", "size": null, "tier": "Basic" }, @@ -66,7 +66,7 @@ "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver2", "name": "testserver2", "type": "Microsoft.DBforPostgreSQL/servers", - "location": "onebox", + "location": "WestUS", "tags": { "elasticServer": "1" }, @@ -78,7 +78,7 @@ "sku": { "capacity": 2, "family": "Gen4", - "name": "PGSQL_B_Gen4_2", + "name": "B_Gen4_2", "size": null, "tier": "Basic" },