From d2d32eafe58f11568a0c7895ddcc929dd76a2ab0 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:39:36 -0700 Subject: [PATCH 01/82] Adds base for updating Microsoft.DBforPostgreSQL from version preview/2022-01-20-preview to version 2022-03-08-preview --- .../preview/2022-03-08-preview/Databases.json | 319 + .../2022-03-08-preview/PrivateDnsZone.json | 87 + .../examples/BackupGet.json | 23 + .../examples/BackupListByServer.json | 126 + .../examples/CapabilitiesByLocation.json | 6098 +++++++++++++++++ .../examples/CheckNameAvailability.json | 20 + .../examples/ConfigurationGet.json | 26 + .../examples/ConfigurationListByServer.json | 1902 +++++ .../examples/ConfigurationUpdate.json | 33 + .../examples/DatabaseCreate.json | 40 + .../examples/DatabaseDelete.json | 14 + .../examples/DatabaseGet.json | 22 + .../examples/DatabasesListByServer.json | 34 + .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 14 + .../examples/FirewallRuleGet.json | 22 + .../examples/FirewallRuleListByServer.json | 35 + .../examples/GetPrivateDnsZoneSuffix.json | 11 + .../examples/OperationList.json | 176 + .../examples/ServerCreate.json | 136 + .../ServerCreatePointInTimeRestore.json | 107 + .../examples/ServerDelete.json | 13 + .../examples/ServerGet.json | 54 + .../examples/ServerGetWithVnet.json | 57 + .../examples/ServerList.json | 90 + .../examples/ServerListByResourceGroup.json | 91 + .../examples/ServerRestart.json | 12 + .../examples/ServerRestartWithFailover.json | 16 + .../examples/ServerStart.json | 12 + .../examples/ServerStop.json | 12 + .../examples/ServerUpdate.json | 75 + ...erUpdateWithCustomerMaintenanceWindow.json | 70 + .../examples/VirtualNetworkSubnetUsage.json | 28 + .../2022-03-08-preview/postgresql.json | 2361 +++++++ 34 files changed, 12176 insertions(+) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json new file mode 100644 index 000000000000..9931cc0f5183 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json @@ -0,0 +1,319 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-01-20-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/flexibleServers/{serverName}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Create", + "x-ms-examples": { + "Create a database": { + "$ref": "./examples/DatabaseCreate.json" + } + }, + "description": "Creates a new database or updates an existing database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "x-ms-examples": { + "Delete a database": { + "$ref": "./examples/DatabaseDelete.json" + } + }, + "description": "Deletes a database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "x-ms-examples": { + "Get a database": { + "$ref": "./examples/DatabaseGet.json" + } + }, + "description": "Gets information about a database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "x-ms-examples": { + "List databases in a server": { + "$ref": "./examples/DatabasesListByServer.json" + } + }, + "description": "List all the databases in a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "DatabaseProperties": { + "type": "object", + "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": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "x-ms-client-flatten": true, + "description": "The properties of a database." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a Database." + }, + "DatabaseListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in a server" + }, + "nextLink": { + "description": "The link used to get the next page of databases.", + "type": "string" + } + }, + "description": "A List of databases." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "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" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json new file mode 100644 index 000000000000..d97d5de0b6ce --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json @@ -0,0 +1,87 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-01-20-preview", + "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, security alert policies, log files and configurations with new business model." + }, + "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": { + "/providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix": { + "post": { + "tags": [ + "GetPrivateDnsZoneSuffix" + ], + "operationId": "GetPrivateDnsZoneSuffix_Execute", + "x-ms-examples": { + "GetPrivateDnsZoneSuffix": { + "$ref": "./examples/GetPrivateDnsZoneSuffix.json" + } + }, + "description": "Get private DNS zone suffix in the cloud", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateDnsZoneSuffix" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "PrivateDnsZoneSuffix": { + "type": "string", + "description": "Represents a resource name availability." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json new file mode 100644 index 000000000000..b92236ab44a8 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "backupName": "daily_20210615T160516", + "serverName": "postgresqltestserver", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-15T16:05:19.902522+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210615T160516", + "name": "daily_20210615T160516", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json new file mode 100644 index 000000000000..dc246ae6c386 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "serverName": "postgresqltestserver", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-15T16:05:19.902522+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210615T160516", + "name": "daily_20210615T160516", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-16T16:05:23.9243453+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210616T160520", + "name": "daily_20210616T160520", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-17T16:05:28.1247488+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210617T160525", + "name": "daily_20210617T160525", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-18T16:05:32.2736701+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210618T160529", + "name": "daily_20210618T160529", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-19T16:05:36.8603354+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210619T160533", + "name": "daily_20210619T160533", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-20T16:05:41.9200138+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210620T160538", + "name": "daily_20210620T160538", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-21T16:05:48.8528447+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210621T160543", + "name": "daily_20210621T160543", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-22T16:08:06.3121688+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210622T160803", + "name": "daily_20210622T160803", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-22T21:08:10.5057354+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210622T210807", + "name": "daily_20210622T210807", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-23T21:24:16.9401531+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210623T212413", + "name": "daily_20210623T212413", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-24T06:13:31.4962137+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210624T061328", + "name": "daily_20210624T061328", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/backups" + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json new file mode 100644 index 000000000000..1fd05005773e --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json @@ -0,0 +1,6098 @@ +{ + "parameters": { + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "westus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "zone": "none", + "geoBackupSupported": true, + "zoneRedundantHaSupported": true, + "zoneRedundantHaAndGeoBackupSupported": true, + "supportedHAMode": [ + "SameZone", + "ZoneRedundant" + ], + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + } + ], + "supportedHyperscaleNodeEditions": [ + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + }, + { + "name": "33553408", + "supportedIops": 20000, + "storageSizeMB": 33553408, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "11.0", + "supportedVcores": [ + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "11.2", + "supportedVcores": [ + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "11.2.8", + "supportedVcores": [ + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + } + ], + "supportedNodeTypes": [ + { + "name": "Coordinator", + "nodeType": "Coordinator", + "status": "Default" + } + ], + "status": "Available" + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + }, + { + "name": "33553408", + "supportedIops": 20000, + "storageSizeMB": 33553408, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "11.0", + "supportedVcores": [ + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "11.2", + "supportedVcores": [ + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "11.2.8", + "supportedVcores": [ + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 25600, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 51200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 80000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + } + ], + "supportedNodeTypes": [ + { + "name": "Worker", + "nodeType": "Worker", + "status": "Default" + } + ], + "status": "Available" + } + ], + "status": "Default" + }, + { + "zone": "1", + "geoBackupSupported": true, + "zoneRedundantHaSupported": true, + "zoneRedundantHaAndGeoBackupSupported": true, + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + } + ], + "supportedHyperscaleNodeEditions": [], + "status": "Available" + }, + { + "zone": "2", + "geoBackupSupported": true, + "zoneRedundantHaSupported": true, + "zoneRedundantHaAndGeoBackupSupported": true, + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + } + ], + "supportedHyperscaleNodeEditions": [], + "status": "Available" + }, + { + "zone": "3", + "geoBackupSupported": true, + "zoneRedundantHaSupported": true, + "zoneRedundantHaAndGeoBackupSupported": true, + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_D2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "ManagedDisk", + "supportedStorageMB": [ + { + "name": "32768", + "supportedIops": 120, + "storageSizeMB": 32768, + "status": "Available" + }, + { + "name": "65536", + "supportedIops": 240, + "storageSizeMB": 65536, + "status": "Available" + }, + { + "name": "131072", + "supportedIops": 500, + "storageSizeMB": 131072, + "status": "Available" + }, + { + "name": "262144", + "supportedIops": 1100, + "storageSizeMB": 262144, + "status": "Available" + }, + { + "name": "524288", + "supportedIops": 2300, + "storageSizeMB": 524288, + "status": "Available" + }, + { + "name": "1048576", + "supportedIops": 5000, + "storageSizeMB": 1048576, + "status": "Available" + }, + { + "name": "2097152", + "supportedIops": 7500, + "storageSizeMB": 2097152, + "status": "Available" + }, + { + "name": "4194304", + "supportedIops": 7500, + "storageSizeMB": 4194304, + "status": "Available" + }, + { + "name": "8388608", + "supportedIops": 16000, + "storageSizeMB": 8388608, + "status": "Available" + }, + { + "name": "16777216", + "supportedIops": 18000, + "storageSizeMB": 16777216, + "status": "Available" + } + ], + "status": "Default" + } + ], + "supportedServerVersions": [ + { + "name": "11", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.0", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "12.1", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + }, + { + "name": "13", + "supportedVcores": [ + { + "name": "Standard_E2s_v3", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4s_v3", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8s_v3", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16s_v3", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32s_v3", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48s_v3", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64s_v3", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + }, + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E20ds_v4", + "vCores": 20, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 18000, + "supportedMemoryPerVcoreMB": 6912, + "status": "Available" + } + ], + "status": "Available" + } + ], + "status": "Available" + } + ], + "supportedHyperscaleNodeEditions": [], + "status": "Available" + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..ec7129462698 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json new file mode 100644 index 000000000000..824bbc24a4a8 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "configurationName": "array_nulls", + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..33a4e7720ecb --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json @@ -0,0 +1,1902 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations?api-version=2022-01-20-preview&$top=200&$skiptoken=skiptoken", + "value": [ + { + "properties": { + "value": "", + "description": "Sets the application name to be reported in statistics and logs.", + "defaultValue": "", + "dataType": "String", + "allowedValues": "[A-Za-z0-9._-]*", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/application_name", + "name": "application_name", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Starts the autovacuum subprocess.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum", + "name": "autovacuum", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0.1", + "description": "Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.", + "defaultValue": "0.1", + "dataType": "Numeric", + "allowedValues": "0-100", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_scale_factor", + "name": "autovacuum_analyze_scale_factor", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "50", + "description": "Minimum number of tuple inserts, updates, or deletes prior to analyze.", + "defaultValue": "50", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_threshold", + "name": "autovacuum_analyze_threshold", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "60", + "description": "Time to sleep between autovacuum runs.", + "defaultValue": "60", + "dataType": "Integer", + "allowedValues": "1-2147483", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_naptime", + "name": "autovacuum_naptime", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "2", + "description": "Vacuum cost delay in milliseconds, for autovacuum.", + "defaultValue": "2", + "dataType": "Integer", + "allowedValues": "-1-100", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_delay", + "name": "autovacuum_vacuum_cost_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "-1", + "description": "Vacuum cost amount available before napping, for autovacuum.", + "defaultValue": "-1", + "dataType": "Integer", + "allowedValues": "-1-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_limit", + "name": "autovacuum_vacuum_cost_limit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0.2", + "description": "Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.", + "defaultValue": "0.2", + "dataType": "Numeric", + "allowedValues": "0-100", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_scale_factor", + "name": "autovacuum_vacuum_scale_factor", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "50", + "description": "Minimum number of tuple updates or deletes prior to vacuum.", + "defaultValue": "50", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_threshold", + "name": "autovacuum_vacuum_threshold", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "-1", + "description": "Sets the maximum memory to be used by each autovacuum worker process.", + "defaultValue": "-1", + "dataType": "Integer", + "allowedValues": "-1-2097151", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_work_mem", + "name": "autovacuum_work_mem", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Number of pages after which previously performed writes are flushed to disk.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-256", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backend_flush_after", + "name": "backend_flush_after", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backslash_quote", + "name": "backslash_quote", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "200", + "description": "Background writer sleep time between rounds.", + "defaultValue": "200", + "dataType": "Integer", + "allowedValues": "10-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_delay", + "name": "bgwriter_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "64", + "description": "Number of pages after which previously performed writes are flushed to disk.", + "defaultValue": "64", + "dataType": "Integer", + "allowedValues": "0-256", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_flush_after", + "name": "bgwriter_flush_after", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "100", + "description": "Background writer maximum number of LRU pages to flush per round.", + "defaultValue": "100", + "dataType": "Integer", + "allowedValues": "0-1073741823", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_maxpages", + "name": "bgwriter_lru_maxpages", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "2", + "description": "Multiple of the average buffer usage to free per round.", + "defaultValue": "2", + "dataType": "Numeric", + "allowedValues": "0-10", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_multiplier", + "name": "bgwriter_lru_multiplier", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bytea_output", + "name": "bytea_output", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Checks function bodies during CREATE FUNCTION.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/check_function_bodies", + "name": "check_function_bodies", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0.5", + "description": "Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.", + "defaultValue": "0.5", + "dataType": "Numeric", + "allowedValues": "0-1", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_completion_target", + "name": "checkpoint_completion_target", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "300", + "description": "Sets the maximum time between automatic WAL checkpoints.", + "defaultValue": "300", + "dataType": "Integer", + "allowedValues": "30-86400", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_timeout", + "name": "checkpoint_timeout", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "30", + "description": "Enables warnings if checkpoint segments are filled more frequently than this.", + "defaultValue": "30", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_warning", + "name": "checkpoint_warning", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_encoding", + "name": "client_encoding", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_min_messages", + "name": "client_min_messages", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Sets the delay in microseconds between transaction commit and flushing WAL to disk.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-100000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_delay", + "name": "commit_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "5", + "description": "Sets the minimum concurrent open transactions before performing commit_delay.", + "defaultValue": "5", + "dataType": "Integer", + "allowedValues": "0-1000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_siblings", + "name": "commit_siblings", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/constraint_exclusion", + "name": "constraint_exclusion", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_index_tuple_cost", + "name": "cpu_index_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_operator_cost", + "name": "cpu_operator_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_tuple_cost", + "name": "cpu_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cursor_tuple_fraction", + "name": "cursor_tuple_fraction", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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)(, (DMY|MDY|YMD))?", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/DateStyle", + "name": "DateStyle", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/deadlock_timeout", + "name": "deadlock_timeout", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Indents parse and plan tree displays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_pretty_print", + "name": "debug_pretty_print", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_parse", + "name": "debug_print_parse", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_plan", + "name": "debug_print_plan", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_rewritten", + "name": "debug_print_rewritten", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_statistics_target", + "name": "default_statistics_target", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "", + "description": "Sets the default tablespace to create tables and indexes in.", + "defaultValue": "", + "dataType": "String", + "allowedValues": "[A-Za-z._]*", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_tablespace", + "name": "default_tablespace", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_text_search_config", + "name": "default_text_search_config", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_deferrable", + "name": "default_transaction_deferrable", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_isolation", + "name": "default_transaction_isolation", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_read_only", + "name": "default_transaction_read_only", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Creates new tables with OIDs by default.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_with_oids", + "name": "default_with_oids", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "3145728", + "description": "Sets the planner's assumption about the size of the disk cache.", + "defaultValue": "3145728", + "dataType": "Integer", + "allowedValues": "1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/effective_cache_size", + "name": "effective_cache_size", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_bitmapscan", + "name": "enable_bitmapscan", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables the planner's use of gather merge plans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_gathermerge", + "name": "enable_gathermerge", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashagg", + "name": "enable_hashagg", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashjoin", + "name": "enable_hashjoin", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexonlyscan", + "name": "enable_indexonlyscan", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexscan", + "name": "enable_indexscan", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_material", + "name": "enable_material", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_mergejoin", + "name": "enable_mergejoin", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_nestloop", + "name": "enable_nestloop", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_seqscan", + "name": "enable_seqscan", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_sort", + "name": "enable_sort", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_tidscan", + "name": "enable_tidscan", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Warns 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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/escape_string_warning", + "name": "escape_string_warning", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Terminates session on any error.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/exit_on_error", + "name": "exit_on_error", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1", + "description": "Sets the number of digits displayed for floating-point values.", + "defaultValue": "1", + "dataType": "Integer", + "allowedValues": "-15-3", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/extra_float_digits", + "name": "extra_float_digits", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/force_parallel_mode", + "name": "force_parallel_mode", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/from_collapse_limit", + "name": "from_collapse_limit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo", + "name": "geqo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_effort", + "name": "geqo_effort", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_generations", + "name": "geqo_generations", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_pool_size", + "name": "geqo_pool_size", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0", + "description": "GEQO: seed for random path selection.", + "defaultValue": "0", + "dataType": "Numeric", + "allowedValues": "0-1", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_seed", + "name": "geqo_seed", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "2", + "description": "GEQO: selective pressure within the population.", + "defaultValue": "2", + "dataType": "Numeric", + "allowedValues": "1.5-2", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_selection_bias", + "name": "geqo_selection_bias", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_threshold", + "name": "geqo_threshold", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_fuzzy_search_limit", + "name": "gin_fuzzy_search_limit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "4096", + "description": "Sets the maximum size of the pending list for GIN index.", + "defaultValue": "4096", + "dataType": "Integer", + "allowedValues": "64-2097151", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_pending_list_limit", + "name": "gin_pending_list_limit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/idle_in_transaction_session_timeout", + "name": "idle_in_transaction_session_timeout", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/IntervalStyle", + "name": "IntervalStyle", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/join_collapse_limit", + "name": "join_collapse_limit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "en_US.utf-8", + "description": "Sets the locale for formatting monetary amounts.", + "defaultValue": "en_US.utf-8", + "dataType": "String", + "allowedValues": "[A-Za-z0-9._ -]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_monetary", + "name": "lc_monetary", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "en_US.utf-8", + "description": "Sets the locale for formatting numbers.", + "defaultValue": "en_US.utf-8", + "dataType": "String", + "allowedValues": "[A-Za-z0-9._ -]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_numeric", + "name": "lc_numeric", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Enables backward compatibility mode for privilege checks on large objects.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lo_compat_privileges", + "name": "lo_compat_privileges", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lock_timeout", + "name": "lock_timeout", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "-1", + "description": "Sets the minimum execution time above which autovacuum actions will be logged.", + "defaultValue": "-1", + "dataType": "Integer", + "allowedValues": "-1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_autovacuum_min_duration", + "name": "log_autovacuum_min_duration", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Logs each checkpoint.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_checkpoints", + "name": "log_checkpoints", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Logs each successful connection.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_connections", + "name": "log_connections", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "stderr", + "description": "Sets the destination for server log output.", + "defaultValue": "stderr", + "dataType": "Enumeration", + "allowedValues": "stderr,csvlog", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_destination", + "name": "log_destination", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_disconnections", + "name": "log_disconnections", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_duration", + "name": "log_duration", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_error_verbosity", + "name": "log_error_verbosity", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_lock_waits", + "name": "log_lock_waits", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_duration_statement", + "name": "log_min_duration_statement", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_error_statement", + "name": "log_min_error_statement", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_messages", + "name": "log_min_messages", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Logs each replication command.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_replication_commands", + "name": "log_replication_commands", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement", + "name": "log_statement", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "For each query, writes cumulative performance statistics to the server log.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement_stats", + "name": "log_statement_stats", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "-1", + "description": "Logs the use of temporary files larger than this number of kilobytes.", + "defaultValue": "-1", + "dataType": "Integer", + "allowedValues": "-1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_temp_files", + "name": "log_temp_files", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "332800", + "description": "Sets the maximum memory to be used for maintenance operations.", + "defaultValue": "332800", + "dataType": "Integer", + "allowedValues": "1024-2097151", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/maintenance_work_mem", + "name": "maintenance_work_mem", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "8", + "description": "Sets the maximum number of parallel workers than can be active at one time.", + "defaultValue": "8", + "dataType": "Integer", + "allowedValues": "0-1024", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers", + "name": "max_parallel_workers", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "2", + "description": "Sets the maximum number of parallel processes per executor node.", + "defaultValue": "2", + "dataType": "Integer", + "allowedValues": "0-1024", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers_per_gather", + "name": "max_parallel_workers_per_gather", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "2", + "description": "Sets the maximum number of predicate-locked tuples per page.", + "defaultValue": "2", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_page", + "name": "max_pred_locks_per_page", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "-2", + "description": "Sets the maximum number of predicate-locked pages and tuples per relation.", + "defaultValue": "-2", + "dataType": "Integer", + "allowedValues": "-2147483648-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_relation", + "name": "max_pred_locks_per_relation", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "30000", + "description": "Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data.", + "defaultValue": "30000", + "dataType": "Integer", + "allowedValues": "-1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_archive_delay", + "name": "max_standby_archive_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "30000", + "description": "Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data.", + "defaultValue": "30000", + "dataType": "Integer", + "allowedValues": "-1-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_streaming_delay", + "name": "max_standby_streaming_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "2", + "description": "Maximum number of table synchronization workers per subscription.", + "defaultValue": "2", + "dataType": "Integer", + "allowedValues": "0-262143", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_sync_workers_per_subscription", + "name": "max_sync_workers_per_subscription", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1024", + "description": "Sets the WAL size that triggers a checkpoint.", + "defaultValue": "1024", + "dataType": "Integer", + "allowedValues": "2-2097151", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_wal_size", + "name": "max_wal_size", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "64", + "description": "Sets the minimum amount of index data for a parallel scan.", + "defaultValue": "64", + "dataType": "Integer", + "allowedValues": "0-715827882", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_index_scan_size", + "name": "min_parallel_index_scan_size", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1024", + "description": "Sets the minimum amount of table data for a parallel scan.", + "defaultValue": "1024", + "dataType": "Integer", + "allowedValues": "0-715827882", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_table_scan_size", + "name": "min_parallel_table_scan_size", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "80", + "description": "Sets the minimum size to shrink the WAL to.", + "defaultValue": "80", + "dataType": "Integer", + "allowedValues": "2-2097151", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_wal_size", + "name": "min_wal_size", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Emits a warning for constructs that changed meaning since PostgreSQL 9.4.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/operator_precedence_warning", + "name": "operator_precedence_warning", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_setup_cost", + "name": "parallel_setup_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_tuple_cost", + "name": "parallel_tuple_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "When generating SQL fragments, quotes all identifiers.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/quote_all_identifiers", + "name": "quote_all_identifiers", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "4", + "description": "Sets the planner's estimate of the cost of a nonsequentially fetched disk page.", + "defaultValue": "4", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/random_page_cost", + "name": "random_page_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables row security.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/row_security", + "name": "row_security", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/search_path", + "name": "search_path", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1", + "description": "Sets the planner's estimate of the cost of a sequentially fetched disk page.", + "defaultValue": "1", + "dataType": "Numeric", + "allowedValues": "0-1.79769e+308", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/seq_page_cost", + "name": "seq_page_cost", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "origin", + "description": "Sets the session's behavior for triggers and rewrite rules.", + "defaultValue": "origin", + "dataType": "Enumeration", + "allowedValues": "origin,replica,local", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/session_replication_role", + "name": "session_replication_role", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/standard_conforming_strings", + "name": "standard_conforming_strings", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/statement_timeout", + "name": "statement_timeout", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Enables synchronized sequential scans.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronize_seqscans", + "name": "synchronize_seqscans", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronous_commit", + "name": "synchronous_commit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "9", + "description": "Maximum number of TCP keepalive retransmits.", + "defaultValue": "9", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_count", + "name": "tcp_keepalives_count", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "120", + "description": "Time between issuing TCP keepalives.", + "defaultValue": "120", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_idle", + "name": "tcp_keepalives_idle", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "30", + "description": "Time between TCP keepalive retransmits.", + "defaultValue": "30", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_interval", + "name": "tcp_keepalives_interval", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1024", + "description": "Sets the maximum number of temporary buffers used by each database session.", + "defaultValue": "1024", + "dataType": "Integer", + "allowedValues": "100-1073741823", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_buffers", + "name": "temp_buffers", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "", + "description": "Sets the tablespace(s) to use for temporary tables and sort files.", + "defaultValue": "", + "dataType": "String", + "allowedValues": "[A-Za-z._]*", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_tablespaces", + "name": "temp_tablespaces", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "UTC", + "description": "Sets the time zone for displaying and interpreting time stamps.", + "defaultValue": "UTC", + "dataType": "String", + "allowedValues": "[A-Za-z0-9/+_-]+", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/TimeZone", + "name": "TimeZone", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Collects information about executing commands.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_activities", + "name": "track_activities", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "on", + "description": "Collects statistics on database activity.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_counts", + "name": "track_counts", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "none", + "description": "Collects function-level statistics on database activity.", + "defaultValue": "none", + "dataType": "Enumeration", + "allowedValues": "none,pl,all", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_functions", + "name": "track_functions", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "off", + "description": "Collects timing statistics for database I/O activity.", + "defaultValue": "off", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_io_timing", + "name": "track_io_timing", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transform_null_equals", + "name": "transform_null_equals", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Vacuum cost delay in milliseconds.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-100", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_delay", + "name": "vacuum_cost_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "200", + "description": "Vacuum cost amount available before napping.", + "defaultValue": "200", + "dataType": "Integer", + "allowedValues": "1-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_limit", + "name": "vacuum_cost_limit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "20", + "description": "Vacuum cost for a page dirtied by vacuum.", + "defaultValue": "20", + "dataType": "Integer", + "allowedValues": "0-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_dirty", + "name": "vacuum_cost_page_dirty", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1", + "description": "Vacuum cost for a page found in the buffer cache.", + "defaultValue": "1", + "dataType": "Integer", + "allowedValues": "0-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_hit", + "name": "vacuum_cost_page_hit", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "10", + "description": "Vacuum cost for a page not found in the buffer cache.", + "defaultValue": "10", + "dataType": "Integer", + "allowedValues": "0-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_miss", + "name": "vacuum_cost_page_miss", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "0", + "description": "Number of transactions by which VACUUM and HOT cleanup should be deferred, if any.", + "defaultValue": "0", + "dataType": "Integer", + "allowedValues": "0-1000000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_defer_cleanup_age", + "name": "vacuum_defer_cleanup_age", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "50000000", + "description": "Minimum age at which VACUUM should freeze a table row.", + "defaultValue": "50000000", + "dataType": "Integer", + "allowedValues": "0-1000000000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_min_age", + "name": "vacuum_freeze_min_age", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "150000000", + "description": "Age at which VACUUM should scan whole table to freeze tuples.", + "defaultValue": "150000000", + "dataType": "Integer", + "allowedValues": "0-2000000000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_table_age", + "name": "vacuum_freeze_table_age", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "5000000", + "description": "Minimum age at which VACUUM should freeze a MultiXactId in a table row.", + "defaultValue": "5000000", + "dataType": "Integer", + "allowedValues": "0-1000000000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_min_age", + "name": "vacuum_multixact_freeze_min_age", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "150000000", + "description": "Multixact age at which VACUUM should scan whole table to freeze tuples.", + "defaultValue": "150000000", + "dataType": "Integer", + "allowedValues": "0-2000000000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_table_age", + "name": "vacuum_multixact_freeze_table_age", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "10", + "description": "Sets the maximum interval between WAL receiver status reports to the primary.", + "defaultValue": "10", + "dataType": "Integer", + "allowedValues": "0-2147483", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_receiver_status_interval", + "name": "wal_receiver_status_interval", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "200", + "description": "Time between WAL flushes performed in the WAL writer.", + "defaultValue": "200", + "dataType": "Integer", + "allowedValues": "1-10000", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_delay", + "name": "wal_writer_delay", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "128", + "description": "Amount of WAL written out by WAL writer that triggers a flush.", + "defaultValue": "128", + "dataType": "Integer", + "allowedValues": "0-2147483647", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_flush_after", + "name": "wal_writer_flush_after", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "115712", + "description": "Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.", + "defaultValue": "115712", + "dataType": "Integer", + "allowedValues": "4096-2097151", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/work_mem", + "name": "work_mem", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmlbinary", + "name": "xmlbinary", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmloption", + "name": "xmloption", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json new file mode 100644 index 000000000000..6cabd1ff6145 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "serverName": "testserver", + "configurationName": "event_scheduler", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json new file mode 100644 index 000000000000..635b1a002d62 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "charset": "utf8", + "collation": "en_US.utf8" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "en_US.utf8" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "en_US.utf8" + } + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json new file mode 100644 index 000000000000..bfecf1b1b2ff --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json new file mode 100644 index 000000000000..1e2a78a9fbcd --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "en_US.utf8" + } + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json new file mode 100644 index 000000000000..f82abea848be --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "en_US.utf8" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db2", + "name": "db2", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "en_US.utf8" + } + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..75e6d3e61962 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-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/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..55e011869c33 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..253f05da5659 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json new file mode 100644 index 000000000000..9e9e29355928 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules?api-version=2022-01-20-preview&$top=2&$skiptoken=skiptoken", + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json new file mode 100644 index 000000000000..e19215d87c2e --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": "postgres.database.azure.com" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json new file mode 100644 index 000000000000..1951a7f343b0 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json @@ -0,0 +1,176 @@ +{ + "parameters": { + "api-version": "2022-01-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforPostgreSQL/flexibleServers/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/flexibleServers/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/flexibleServers/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "operation": "Delete PostgreSQL Server", + "description": "Deletes an existing server." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/flexibleServers/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/flexibleServers/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/flexibleServers/firewallRules/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/flexibleServers/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/flexibleServers/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/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json new file mode 100644 index 000000000000..d70b5f93528f --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "sku": { + "tier": "GeneralPurpose", + "name": "Standard_D4s_v3" + }, + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "version": "12", + "availabilityZone": "1", + "createMode": "Create", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled" + }, + "network": { + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant" + } + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:08:06.7197478+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:08:06.7197478+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json new file mode 100644 index 000000000000..e9ba793d82e2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "serverName": "pgtestsvc5", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "properties": { + "createMode": "PointInTimeRestore", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername", + "pointInTimeUTC": "2021-06-27T00:04:59.4078005+00:00" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc5.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "2", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-27T00:28:17.7279547+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5", + "name": "pgtestsvc5", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc5.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "2", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-27T00:28:17.7279547+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5", + "name": "pgtestsvc5", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json new file mode 100644 index 000000000000..6b2497ad5be0 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json new file mode 100644 index 000000000000..9add2f7e4ea0 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "serverName": "pgtestsvc1", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc1.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T23:07:25.8166567+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1", + "name": "pgtestsvc1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json new file mode 100644 index 000000000000..08388a3bdbe8 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json new file mode 100644 index 000000000000..0e295cb54c56 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/flexibleServers?api-version=2022-01-20-preview&$top=3&$skiptoken=skiptoken", + "value": [ + { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc1.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T23:15:38.8131437+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1", + "name": "pgtestsvc1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json new file mode 100644 index 000000000000..42f77368e38e --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers?api-version=2022-01-20-preview&$top=3&$skiptoken=skiptoken", + "value": [ + { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc1.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T23:15:38.8131437+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1", + "name": "pgtestsvc1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + ] + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json new file mode 100644 index 000000000000..66d773dc6219 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json new file mode 100644 index 000000000000..648cbc0f2624 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "restartWithFailover": true, + "failoverMode": "ForcedFailover" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json new file mode 100644 index 000000000000..66d773dc6219 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json new file mode 100644 index 000000000000..66d773dc6219 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json new file mode 100644 index 000000000000..e8ba0438ead8 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "TestGroup", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "sku": { + "tier": "GeneralPurpose", + "name": "Standard_D8s_v3" + }, + "properties": { + "administratorLoginPassword": "newpassword", + "createMode": "Update", + "storage": { + "storageSizeGB": 1024 + }, + "backup": { + "backupRetentionDays": 20 + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D8s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 1024 + }, + "backup": { + "backupRetentionDays": 20, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json new file mode 100644 index 000000000000..704ecb2dd4a3 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "testrg", + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "properties": { + "createMode": "Update", + "maintenanceWindow": { + "customWindow": "Enabled", + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0 + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Enabled", + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json new file mode 100644 index 000000000000..21d41c706fa2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2022-01-20-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "westus", + "parameters": { + "virtualNetworkArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet" + } + }, + "responses": { + "200": { + "body": { + "delegatedSubnetsUsage": [ + { + "subnetName": "test-subnet-1", + "usage": 2 + }, + { + "subnetName": "test-subnet-2", + "usage": 3 + } + ], + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "location": "westus" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json new file mode 100644 index 000000000000..8cfc8aa7b4ae --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -0,0 +1,2361 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-01-20-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/flexibleServers/{serverName}": { + "put": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Create", + "x-ms-examples": { + "Create a new server": { + "$ref": "./examples/ServerCreate.json" + }, + "Create a database as a point in time restore": { + "$ref": "./examples/ServerCreatePointInTimeRestore.json" + } + }, + "description": "Creates a new server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Server" + }, + "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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Update", + "x-ms-examples": { + "ServerUpdate": { + "$ref": "./examples/ServerUpdate.json" + }, + "ServerUpdateWithCustomerMaintenanceWindow": { + "$ref": "./examples/ServerUpdateWithCustomerMaintenanceWindow.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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerForUpdate" + }, + "description": "The required parameters for updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "ServerGet": { + "$ref": "./examples/ServerGet.json" + }, + "ServerGetWithVnet": { + "$ref": "./examples/ServerGetWithVnet.json" + } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers": { + "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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers": { + "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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart": { + "post": { + "tags": [ + "ServerRestart" + ], + "operationId": "Servers_Restart", + "x-ms-examples": { + "ServerRestart": { + "$ref": "./examples/ServerRestart.json" + }, + "ServerRestartWithFailover": { + "$ref": "./examples/ServerRestartWithFailover.json" + } + }, + "description": "Restarts a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/RestartParameter" + }, + "description": "The parameters for restarting a server." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start": { + "post": { + "tags": [ + "ServerStart" + ], + "operationId": "Servers_Start", + "x-ms-examples": { + "ServerStart": { + "$ref": "./examples/ServerStart.json" + } + }, + "description": "Starts a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop": { + "post": { + "tags": [ + "ServerStop" + ], + "operationId": "Servers_Stop", + "x-ms-examples": { + "ServerStop": { + "$ref": "./examples/ServerStop.json" + } + }, + "description": "Stops a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}": { + "get": { + "tags": [ + "Backups" + ], + "operationId": "Backups_Get", + "x-ms-examples": { + "Get a backup for a server": { + "$ref": "./examples/BackupGet.json" + } + }, + "description": "List all the backups for a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/BackupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups": { + "get": { + "tags": [ + "Backups" + ], + "operationId": "Backups_ListByServer", + "x-ms-examples": { + "List backups for a server": { + "$ref": "./examples/BackupListByServer.json" + } + }, + "description": "List all the backups for a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "FirewallRuleDelete": { + "$ref": "./examples/FirewallRuleDelete.json" + } + }, + "description": "Deletes a PostgreSQL server firewall rule.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "FirewallRuleList": { + "$ref": "./examples/FirewallRuleGet.json" + } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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 PostgreSQL server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "ConfigurationGet": { + "$ref": "./examples/ConfigurationGet.json" + } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Update", + "x-ms-examples": { + "Update a user configuration": { + "$ref": "./examples/ConfigurationUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Put", + "x-ms-examples": { + "Update a user configuration": { + "$ref": "./examples/ConfigurationUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities": { + "get": { + "tags": [ + "LocationBasedCapabilities" + ], + "operationId": "LocationBasedCapabilities_Execute", + "x-ms-examples": { + "CapabilitiesList": { + "$ref": "./examples/CapabilitiesByLocation.json" + } + }, + "description": "Get capabilities at specified location in a given subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CapabilitiesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage": { + "post": { + "tags": [ + "VirtualNetworkSubnetUsage" + ], + "operationId": "VirtualNetworkSubnetUsage_Execute", + "x-ms-examples": { + "VirtualNetworkSubnetUsageList": { + "$ref": "./examples/VirtualNetworkSubnetUsage.json" + } + }, + "description": "Get virtual network subnet usage for a given vNet resource id.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkSubnetUsageParameter" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetworkSubnetUsageResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "VirtualNetworkSubnetUsageParameter": { + "type": "object", + "properties": { + "virtualNetworkArmResourceId": { + "type": "string", + "description": "Virtual network resource id." + } + }, + "description": "Virtual network subnet usage parameter" + }, + "VirtualNetworkSubnetUsageResult": { + "type": "object", + "properties": { + "delegatedSubnetsUsage": { + "type": "array", + "items": { + "$ref": "#/definitions/DelegatedSubnetUsage" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "location": { + "type": "string", + "readOnly": true, + "description": "location of the delegated subnet usage" + }, + "subscriptionId": { + "type": "string", + "readOnly": true, + "description": "subscriptionId of the delegated subnet usage" + } + }, + "description": "Virtual network subnet usage data." + }, + "DelegatedSubnetUsage": { + "type": "object", + "properties": { + "subnetName": { + "type": "string", + "readOnly": true, + "description": "name of the subnet" + }, + "usage": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Number of used delegated subnets" + } + }, + "description": "Delegated subnet usage data." + }, + "StorageMBCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage MB name", + "readOnly": true + }, + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true + }, + "storageSizeMB": { + "type": "integer", + "format": "int64", + "description": "storage size in MB", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "storage size in MB capability" + }, + "VcoreCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "vCore name", + "readOnly": true + }, + "vCores": { + "type": "integer", + "format": "int64", + "description": "supported vCores", + "readOnly": true + }, + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true + }, + "supportedMemoryPerVcoreMB": { + "type": "integer", + "format": "int64", + "description": "supported memory per vCore in MB", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Vcores capability" + }, + "ServerVersionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "server version", + "readOnly": true + }, + "supportedVcores": { + "type": "array", + "items": { + "$ref": "#/definitions/VcoreCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Server version capabilities." + }, + "StorageEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage edition name", + "readOnly": true + }, + "supportedStorageMB": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageMBCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "storage edition capability" + }, + "NodeTypeCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "note type name", + "readOnly": true + }, + "nodeType": { + "type": "string", + "description": "note type", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "node type capability" + }, + "FlexibleServerEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Server edition name", + "readOnly": true + }, + "supportedStorageEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" + }, + "description": "The list of editions supported by this server edition.", + "readOnly": true, + "x-ms-identifiers": [] + }, + "supportedServerVersions": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVersionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of server versions supported by this server edition.", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Flexible server edition capabilities." + }, + "HyperscaleNodeEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Server edition name", + "readOnly": true + }, + "supportedStorageEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of editions supported by this server edition.", + "readOnly": true + }, + "supportedServerVersions": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVersionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of server versions supported by this server edition.", + "readOnly": true + }, + "supportedNodeTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/NodeTypeCapability" + }, + "x-ms-identifiers": [], + "description": "The list of Node Types supported by this server edition.", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Hyperscale node edition capabilities." + }, + "CapabilityProperties": { + "type": "object", + "properties": { + "zone": { + "type": "string", + "description": "zone name", + "readOnly": true + }, + "supportedHAMode": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Supported high availability mode", + "readOnly": true + }, + "geoBackupSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", + "readOnly": true + }, + "zoneRedundantHaSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can support multi zone HA.", + "readOnly": true + }, + "zoneRedundantHaAndGeoBackupSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", + "readOnly": true + }, + "supportedFlexibleServerEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/FlexibleServerEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "supportedHyperscaleNodeEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/HyperscaleNodeEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Location capabilities." + }, + "CapabilitiesListResult": { + "type": "object", + "properties": { + "value": { + "description": "A list of supported capabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/CapabilityProperties" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "location capability" + }, + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "14", + "13", + "12", + "11" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "ServerProperties": { + "type": "object", + "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).", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "administratorLoginPassword": { + "type": "string", + "description": "The administrator login password (required for server creation).", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "PostgreSQL Server version." + }, + "minorVersion": { + "type": "string", + "description": "The minor version of the server.", + "readOnly": true + }, + "state": { + "type": "string", + "description": "A state of a server that is visible to user.", + "readOnly": true, + "enum": [ + "Ready", + "Dropping", + "Disabled", + "Starting", + "Stopping", + "Stopped", + "Updating" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + } + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true + }, + "storage": { + "$ref": "#/definitions/Storage", + "default": null, + "description": "Storage properties of a server." + }, + "backup": { + "$ref": "#/definitions/Backup", + "default": null, + "description": "Backup properties of a server." + }, + "network": { + "$ref": "#/definitions/Network", + "default": null, + "description": "Network properties of a server.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "highAvailability": { + "$ref": "#/definitions/HighAvailability", + "default": null, + "description": "High availability properties of a server." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "default": null, + "description": "Maintenance window properties of a server.", + "x-ms-mutability": [ + "update", + "read" + ] + }, + "sourceServerResourceId": { + "type": "string", + "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", + "x-ms-mutability": [ + "create" + ] + }, + "pointInTimeUTC": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", + "x-ms-mutability": [ + "create" + ] + }, + "availabilityZone": { + "type": "string", + "default": "", + "description": "availability zone information of the server.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "createMode": { + "type": "string", + "description": "The mode to create a new PostgreSQL server.", + "enum": [ + "Default", + "Create", + "Update", + "PointInTimeRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "update" + ] + } + }, + "description": "The properties of a server." + }, + "Server": { + "type": "object", + "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." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "ServerPropertiesForUpdate": { + "type": "object", + "properties": { + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "description": "The password of the administrator login.", + "x-ms-mutability": [ + "update" + ] + }, + "storage": { + "$ref": "#/definitions/Storage", + "default": null, + "description": "Storage properties of a server." + }, + "backup": { + "$ref": "#/definitions/Backup", + "default": null, + "description": "Backup properties of a server." + }, + "highAvailability": { + "$ref": "#/definitions/HighAvailability", + "default": null, + "description": "High availability properties of a server." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "default": null, + "description": "Maintenance window properties of a server.", + "x-ms-mutability": [ + "update", + "read" + ] + }, + "createMode": { + "type": "string", + "description": "The mode to update a new PostgreSQL server.", + "enum": [ + "Default", + "Update" + ], + "x-ms-enum": { + "name": "CreateModeForUpdate", + "modelAsString": true + }, + "x-ms-mutability": [ + "update" + ] + } + } + }, + "ServerForUpdate": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerPropertiesForUpdate", + "x-ms-client-flatten": true, + "description": "Properties of the server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "description": "Represents a server to be updated." + }, + "ServerListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Server" + }, + "description": "The list of flexible servers" + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of servers." + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." + }, + "tier": { + "type": "string", + "description": "The tier of the particular SKU, e.g. Burstable.", + "enum": [ + "Burstable", + "GeneralPurpose", + "MemoryOptimized" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + } + }, + "required": [ + "name", + "tier" + ], + "description": "Sku information related properties of a server." + }, + "Storage": { + "type": "object", + "properties": { + "storageSizeGB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." + } + }, + "description": "Storage properties of a server" + }, + "Backup": { + "type": "object", + "properties": { + "backupRetentionDays": { + "type": "integer", + "format": "int32", + "default": 7, + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "type": "string", + "default": "Disabled", + "description": "A value indicating whether Geo-Redundant backup is enabled on the server.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackupEnum", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] + }, + "earliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "The earliest restore point time (ISO8601 format) for server.", + "readOnly": true + } + }, + "description": "Backup properties of a server" + }, + "Network": { + "type": "object", + "properties": { + "publicNetworkAccess": { + "type": "string", + "description": "public network access is enabled or not", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ServerPublicNetworkAccessState", + "modelAsString": true + }, + "readOnly": true + }, + "delegatedSubnetResourceId": { + "type": "string", + "default": "", + "description": "delegated subnet arm resource id.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "privateDnsZoneArmResourceId": { + "type": "string", + "default": "", + "description": "private dns zone arm resource id.", + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "description": "Network properties of a server" + }, + "HighAvailability": { + "type": "object", + "properties": { + "mode": { + "type": "string", + "default": "Disabled", + "description": "The HA mode for the server.", + "enum": [ + "Disabled", + "ZoneRedundant", + "SameZone" + ], + "x-ms-enum": { + "name": "HighAvailabilityMode", + "modelAsString": true + } + }, + "state": { + "type": "string", + "description": "A state of a HA server that is visible to user.", + "enum": [ + "NotEnabled", + "CreatingStandby", + "ReplicatingData", + "FailingOver", + "Healthy", + "RemovingStandby" + ], + "x-ms-enum": { + "name": "ServerHAState", + "modelAsString": true + }, + "readOnly": true + }, + "standbyAvailabilityZone": { + "type": "string", + "default": "", + "description": "availability zone information of the standby." + } + }, + "description": "High availability properties of a server" + }, + "MaintenanceWindow": { + "type": "object", + "description": "Maintenance window properties of a server.", + "properties": { + "customWindow": { + "type": "string", + "default": "Disabled", + "description": "indicates whether custom window is enabled or disabled" + }, + "startHour": { + "type": "integer", + "format": "int32", + "default": 0, + "description": "start hour for maintenance window" + }, + "startMinute": { + "type": "integer", + "format": "int32", + "default": 0, + "description": "start minute for maintenance window" + }, + "dayOfWeek": { + "type": "integer", + "format": "int32", + "default": 0, + "description": "day of week for maintenance window" + } + } + }, + "FirewallRuleProperties": { + "type": "object", + "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." + }, + "ServerBackupProperties": { + "type": "object", + "properties": { + "backupType": { + "type": "string", + "description": "Backup type." + }, + "completedTime": { + "type": "string", + "format": "date-time", + "description": "Backup completed time (ISO8601 format)." + }, + "source": { + "type": "string", + "description": "Backup source" + } + }, + "description": "The properties of a server backup." + }, + "ServerBackup": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ServerBackupProperties", + "x-ms-client-flatten": true, + "description": "The properties of a server backup." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Server backup properties" + }, + "ServerBackupListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerBackup" + }, + "description": "The list of backups of a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server backups." + }, + "FirewallRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of firewall rules." + }, + "ConfigurationProperties": { + "type": "object", + "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.", + "enum": [ + "Boolean", + "Numeric", + "Integer", + "Enumeration" + ], + "x-ms-enum": { + "name": "ConfigurationDataType", + "modelAsString": true + } + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + }, + "isDynamicConfig": { + "type": "boolean", + "readOnly": true, + "description": "Configuration dynamic or static." + }, + "isReadOnly": { + "type": "boolean", + "readOnly": true, + "description": "Configuration read-only or not." + }, + "isConfigPendingRestart": { + "type": "boolean", + "readOnly": true, + "description": "Configuration is pending restart or not." + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Configuration unit." + }, + "documentationLink": { + "type": "string", + "readOnly": true, + "description": "Configuration documentation link." + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server configurations." + }, + "OperationDisplay": { + "type": "object", + "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": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "The localized display information for this particular operation or action." + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The intended executor of the operation.", + "enum": [ + "NotSpecified", + "user", + "system" + ], + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false, + "description": "Additional descriptions for the operation." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "NameAvailabilityRequest": { + "required": [ + "name" + ], + "type": "object", + "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": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "Error Message.", + "readOnly": true + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "name of the PostgreSQL server.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "type of the server", + "readOnly": true + }, + "reason": { + "type": "string", + "description": "The name availability reason.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "Reason", + "modelAsString": true + }, + "readOnly": true + } + }, + "description": "Represents a resource name availability." + }, + "RestartParameter": { + "type": "object", + "properties": { + "restartWithFailover": { + "type": "boolean", + "description": "Indicates whether to restart the server with failover." + }, + "failoverMode": { + "type": "string", + "description": "Failover mode.", + "enum": [ + "PlannedFailover", + "ForcedFailover", + "PlannedSwitchover", + "ForcedSwitchover" + ], + "x-ms-enum": { + "name": "FailoverMode", + "modelAsString": true + } + } + }, + "description": "Represents server restart parameters." + }, + "CloudError": { + "x-ms-external": true, + "type": "object", + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "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" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server configuration.", + "x-ms-parameter-location": "method" + }, + "MaintenanceWindowNameParameter": { + "name": "maintenanceWindowName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the maintenance window.", + "x-ms-parameter-location": "method" + }, + "BackupNameParameter": { + "name": "backupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the backup.", + "x-ms-parameter-location": "method" + } + } +} From fb6936f413b1ab62cc5090d132b6a2f999313be6 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:39:38 -0700 Subject: [PATCH 02/82] Updates readme --- .../postgresql/resource-manager/readme.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index d0b810278413..8cf3d42db9bf 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -36,9 +36,20 @@ tag: package-flexibleserver-2021-06 ``` ``` yaml $(package-singleservers) -tag: package-2020-01-01 +tag: package-preview-2022-03 ``` + +### Tag: package-preview-2022-03 + +These settings apply only when `--tag=package-preview-2022-03` is specified on the command line. + +```yaml $(tag) == 'package-preview-2022-03' +input-file: + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +``` ### Tag: package-flexibleserver-2022-03-privatepreview These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview` is specified on the command line. @@ -55,7 +66,7 @@ input-file: These settings apply only when `--tag=package-flexibleserver-2022-01-preview` is specified on the command line. -```yaml $(tag) == 'package-flexibleserver-2022-01-preview' +``` yaml $(tag) == 'package-flexibleserver-2022-01-preview' input-file: - Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/Databases.json - Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/PrivateDnsZone.json From ccb1108ac12a33734eba55efffd8edc71abaa9bf Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:39:40 -0700 Subject: [PATCH 03/82] Updates API version in new specs and examples --- .../preview/2022-03-08-preview/Databases.json | 2 +- .../preview/2022-03-08-preview/PrivateDnsZone.json | 2 +- .../preview/2022-03-08-preview/examples/BackupGet.json | 2 +- .../2022-03-08-preview/examples/BackupListByServer.json | 2 +- .../2022-03-08-preview/examples/CapabilitiesByLocation.json | 2 +- .../2022-03-08-preview/examples/CheckNameAvailability.json | 2 +- .../preview/2022-03-08-preview/examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationListByServer.json | 4 ++-- .../2022-03-08-preview/examples/ConfigurationUpdate.json | 2 +- .../preview/2022-03-08-preview/examples/DatabaseCreate.json | 2 +- .../preview/2022-03-08-preview/examples/DatabaseDelete.json | 2 +- .../preview/2022-03-08-preview/examples/DatabaseGet.json | 2 +- .../2022-03-08-preview/examples/DatabasesListByServer.json | 2 +- .../2022-03-08-preview/examples/FirewallRuleCreate.json | 2 +- .../2022-03-08-preview/examples/FirewallRuleDelete.json | 2 +- .../preview/2022-03-08-preview/examples/FirewallRuleGet.json | 2 +- .../2022-03-08-preview/examples/FirewallRuleListByServer.json | 4 ++-- .../2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json | 2 +- .../preview/2022-03-08-preview/examples/OperationList.json | 2 +- .../preview/2022-03-08-preview/examples/ServerCreate.json | 2 +- .../examples/ServerCreatePointInTimeRestore.json | 2 +- .../preview/2022-03-08-preview/examples/ServerDelete.json | 2 +- .../preview/2022-03-08-preview/examples/ServerGet.json | 2 +- .../2022-03-08-preview/examples/ServerGetWithVnet.json | 2 +- .../preview/2022-03-08-preview/examples/ServerList.json | 4 ++-- .../examples/ServerListByResourceGroup.json | 4 ++-- .../preview/2022-03-08-preview/examples/ServerRestart.json | 2 +- .../examples/ServerRestartWithFailover.json | 2 +- .../preview/2022-03-08-preview/examples/ServerStart.json | 2 +- .../preview/2022-03-08-preview/examples/ServerStop.json | 2 +- .../preview/2022-03-08-preview/examples/ServerUpdate.json | 2 +- .../examples/ServerUpdateWithCustomerMaintenanceWindow.json | 2 +- .../examples/VirtualNetworkSubnetUsage.json | 2 +- .../preview/2022-03-08-preview/postgresql.json | 2 +- 34 files changed, 38 insertions(+), 38 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json index 9931cc0f5183..5d9f793c0526 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json @@ -3,7 +3,7 @@ "info": { "title": "PostgreSQLServerManagementClient", "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", - "version": "2022-01-20-preview" + "version": "2022-03-08-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json index d97d5de0b6ce..e78f88f53683 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-01-20-preview", + "version": "2022-03-08-preview", "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, security alert policies, log files and configurations with new business model." }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json index b92236ab44a8..0b05d2eb7681 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json @@ -3,7 +3,7 @@ "backupName": "daily_20210615T160516", "serverName": "postgresqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json index dc246ae6c386..a260f582027c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "postgresqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json index 1fd05005773e..bfff6c1892ff 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "westus" }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json index ec7129462698..91f1e48f3f1c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "nameAvailabilityRequest": { "name": "name1", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json index 824bbc24a4a8..3d7833b44915 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "array_nulls", "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json index 33a4e7720ecb..b1ed2747f53e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationListByServer.json @@ -2,13 +2,13 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations?api-version=2022-01-20-preview&$top=200&$skiptoken=skiptoken", + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations?api-version=2022-03-08-preview&$top=200&$skiptoken=skiptoken", "value": [ { "properties": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json index 6cabd1ff6145..194402b0fa36 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json @@ -3,7 +3,7 @@ "serverName": "testserver", "configurationName": "event_scheduler", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json index 635b1a002d62..91ef8472e1d0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json index bfecf1b1b2ff..d0d5c4d823e1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json index 1e2a78a9fbcd..cf3fd60a0241 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json index f82abea848be..67dffa84b536 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabasesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json index 75e6d3e61962..7056ca2fb963 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json index 55e011869c33..a018f3415f11 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json index 253f05da5659..e57549e2b85b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json index 9e9e29355928..016727ec32f7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleListByServer.json @@ -2,13 +2,13 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules?api-version=2022-01-20-preview&$top=2&$skiptoken=skiptoken", + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules?api-version=2022-03-08-preview&$top=2&$skiptoken=skiptoken", "value": [ { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule1", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json index e19215d87c2e..37e4f6b83908 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/GetPrivateDnsZoneSuffix.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json index 1951a7f343b0..11c053ee91c1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/OperationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-01-20-preview" + "api-version": "2022-03-08-preview" }, "responses": { "200": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json index d70b5f93528f..c03d886492ef 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "pgtestsvc4", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "westus", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json index e9ba793d82e2..b312d8a885ab 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "pgtestsvc5", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "westus", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json index 6b2497ad5be0..4ad708601785 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json index 9add2f7e4ea0..db7ce23bedd0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "pgtestsvc1", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json index 08388a3bdbe8..d6a9274b71c3 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerGetWithVnet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "pgtestsvc4", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json index 0e295cb54c56..0e900930a322 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerList.json @@ -1,12 +1,12 @@ { "parameters": { - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/flexibleServers?api-version=2022-01-20-preview&$top=3&$skiptoken=skiptoken", + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/flexibleServers?api-version=2022-03-08-preview&$top=3&$skiptoken=skiptoken", "value": [ { "sku": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json index 42f77368e38e..ec5afcb04fe4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerListByResourceGroup.json @@ -1,13 +1,13 @@ { "parameters": { "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers?api-version=2022-01-20-preview&$top=3&$skiptoken=skiptoken", + "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers?api-version=2022-03-08-preview&$top=3&$skiptoken=skiptoken", "value": [ { "sku": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json index 66d773dc6219..e05e1b4896d8 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json index 648cbc0f2624..7e0a5a5f5acc 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "restartWithFailover": true, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json index 66d773dc6219..e05e1b4896d8 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json index 66d773dc6219..e05e1b4896d8 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json index e8ba0438ead8..a6595a2cdf23 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "pgtestsvc4", "resourceGroupName": "TestGroup", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "westus", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 704ecb2dd4a3..3515318082d0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "pgtestsvc4", "resourceGroupName": "testrg", - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "westus", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json index 21d41c706fa2..25979bdf1909 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/VirtualNetworkSubnetUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-01-20-preview", + "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "westus", "parameters": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index 8cfc8aa7b4ae..f0cec11e3e63 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -3,7 +3,7 @@ "info": { "title": "PostgreSQLServerManagementClient", "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", - "version": "2022-01-20-preview" + "version": "2022-03-08-preview" }, "host": "management.azure.com", "schemes": [ From 2bb0b2c6516467f7b1d7e670e3f8e6a058d1c950 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 4 Aug 2022 13:51:41 -0700 Subject: [PATCH 04/82] Splitted the swagger api changes to smaller chunks for easy readbility and find --- .../preview/2022-03-08-preview/Backups.json | 215 ++ .../2022-03-08-preview/Capabilities.json | 102 + .../CheckNameAvailability.json | 153 ++ .../2022-03-08-preview/Configuration.json | 394 +++ .../2022-03-08-preview/FirewallRules.json | 328 +++ .../2022-03-08-preview/Operations.json | 189 ++ .../ServerStartStopRestart.json | 224 ++ .../2022-03-08-preview/VirtualNetwork.json | 159 ++ .../examples/ServerCreate.json | 6 + .../ServerCreateWithAadAuthEnabled.json | 148 ++ .../examples/ServerUpdate.json | 3 + .../ServerUpdateWithAadAuthEnabled.json | 83 + .../2022-03-08-preview/postgresql.json | 2353 ++++------------- 13 files changed, 2550 insertions(+), 1807 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json new file mode 100644 index 000000000000..a62654f96103 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -0,0 +1,215 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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/flexibleServers/{serverName}/backups/{backupName}": { + "get": { + "tags": [ + "Backups" + ], + "operationId": "Backups_Get", + "x-ms-examples": { + "Get a backup for a server": { + "$ref": "./examples/BackupGet.json" + } + }, + "description": "List all the backups for a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/BackupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups": { + "get": { + "tags": [ + "Backups" + ], + "operationId": "Backups_ListByServer", + "x-ms-examples": { + "List backups for a server": { + "$ref": "./examples/BackupListByServer.json" + } + }, + "description": "List all the backups for a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ServerBackupProperties": { + "type": "object", + "properties": { + "backupType": { + "type": "string", + "description": "Backup type." + }, + "completedTime": { + "type": "string", + "format": "date-time", + "description": "Backup completed time (ISO8601 format)." + }, + "source": { + "type": "string", + "description": "Backup source" + } + }, + "description": "The properties of a server backup." + }, + "ServerBackup": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ServerBackupProperties", + "x-ms-client-flatten": true, + "description": "The properties of a server backup." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Server backup properties" + }, + "ServerBackupListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerBackup" + }, + "description": "The list of backups of a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server backups." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "BackupNameParameter": { + "name": "backupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the backup.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json new file mode 100644 index 000000000000..b3240e34833b --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -0,0 +1,102 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities": { + "get": { + "tags": [ + "LocationBasedCapabilities" + ], + "operationId": "LocationBasedCapabilities_Execute", + "x-ms-examples": { + "CapabilitiesList": { + "$ref": "./examples/CapabilitiesByLocation.json" + } + }, + "description": "Get capabilities at specified location in a given subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CapabilitiesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json new file mode 100644 index 000000000000..b7c6d50eb6bf --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -0,0 +1,153 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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}/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "NameAvailabilityRequest": { + "required": [ + "name" + ], + "type": "object", + "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": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "Error Message.", + "readOnly": true + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "name of the PostgreSQL server.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "type of the server", + "readOnly": true + }, + "reason": { + "type": "string", + "description": "The name availability reason.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "Reason", + "modelAsString": true + }, + "readOnly": true + } + }, + "description": "Represents a resource name availability." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json new file mode 100644 index 000000000000..f19ca5f050bf --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -0,0 +1,394 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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/flexibleServers/{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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "ConfigurationGet": { + "$ref": "./examples/ConfigurationGet.json" + } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Update", + "x-ms-examples": { + "Update a user configuration": { + "$ref": "./examples/ConfigurationUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Put", + "x-ms-examples": { + "Update a user configuration": { + "$ref": "./examples/ConfigurationUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ConfigurationProperties": { + "type": "object", + "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.", + "enum": [ + "Boolean", + "Numeric", + "Integer", + "Enumeration" + ], + "x-ms-enum": { + "name": "ConfigurationDataType", + "modelAsString": true + } + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + }, + "isDynamicConfig": { + "type": "boolean", + "readOnly": true, + "description": "Configuration dynamic or static." + }, + "isReadOnly": { + "type": "boolean", + "readOnly": true, + "description": "Configuration read-only or not." + }, + "isConfigPendingRestart": { + "type": "boolean", + "readOnly": true, + "description": "Configuration is pending restart or not." + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Configuration unit." + }, + "documentationLink": { + "type": "string", + "readOnly": true, + "description": "Configuration documentation link." + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server configurations." + }, + "ServerBackupListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerBackup" + }, + "description": "The list of backups of a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server backups." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "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" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json new file mode 100644 index 000000000000..73504846785f --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -0,0 +1,328 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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/flexibleServers/{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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/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" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "FirewallRuleDelete": { + "$ref": "./examples/FirewallRuleDelete.json" + } + }, + "description": "Deletes a PostgreSQL server firewall rule.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "FirewallRuleList": { + "$ref": "./examples/FirewallRuleGet.json" + } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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 PostgreSQL server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "FirewallRuleProperties": { + "type": "object", + "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": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of firewall rules." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "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" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json new file mode 100644 index 000000000000..affe04caa94b --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json @@ -0,0 +1,189 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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": { + "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "OperationDisplay": { + "type": "object", + "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": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "The localized display information for this particular operation or action." + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The intended executor of the operation.", + "enum": [ + "NotSpecified", + "user", + "system" + ], + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false, + "description": "Additional descriptions for the operation." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "BackupNameParameter": { + "name": "backupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the backup.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json new file mode 100644 index 000000000000..9c4ec3b66931 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json @@ -0,0 +1,224 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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/flexibleServers/{serverName}/restart": { + "post": { + "tags": [ + "ServerRestart" + ], + "operationId": "Servers_Restart", + "x-ms-examples": { + "ServerRestart": { + "$ref": "./examples/ServerRestart.json" + }, + "ServerRestartWithFailover": { + "$ref": "./examples/ServerRestartWithFailover.json" + } + }, + "description": "Restarts a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/RestartParameter" + }, + "description": "The parameters for restarting a server." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start": { + "post": { + "tags": [ + "ServerStart" + ], + "operationId": "Servers_Start", + "x-ms-examples": { + "ServerStart": { + "$ref": "./examples/ServerStart.json" + } + }, + "description": "Starts a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop": { + "post": { + "tags": [ + "ServerStop" + ], + "operationId": "Servers_Stop", + "x-ms-examples": { + "ServerStop": { + "$ref": "./examples/ServerStop.json" + } + }, + "description": "Stops a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "RestartParameter": { + "type": "object", + "properties": { + "restartWithFailover": { + "type": "boolean", + "description": "Indicates whether to restart the server with failover." + }, + "failoverMode": { + "type": "string", + "description": "Failover mode.", + "enum": [ + "PlannedFailover", + "ForcedFailover", + "PlannedSwitchover", + "ForcedSwitchover" + ], + "x-ms-enum": { + "name": "FailoverMode", + "modelAsString": true + } + } + }, + "description": "Represents server restart parameters." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json new file mode 100644 index 000000000000..ff43f826f1e0 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -0,0 +1,159 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage": { + "post": { + "tags": [ + "VirtualNetworkSubnetUsage" + ], + "operationId": "VirtualNetworkSubnetUsage_Execute", + "x-ms-examples": { + "VirtualNetworkSubnetUsageList": { + "$ref": "./examples/VirtualNetworkSubnetUsage.json" + } + }, + "description": "Get virtual network subnet usage for a given vNet resource id.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkSubnetUsageParameter" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetworkSubnetUsageResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "VirtualNetworkSubnetUsageParameter": { + "type": "object", + "properties": { + "virtualNetworkArmResourceId": { + "type": "string", + "description": "Virtual network resource id." + } + }, + "description": "Virtual network subnet usage parameter" + }, + "VirtualNetworkSubnetUsageResult": { + "type": "object", + "properties": { + "delegatedSubnetsUsage": { + "type": "array", + "items": { + "$ref": "#/definitions/DelegatedSubnetUsage" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "location": { + "type": "string", + "readOnly": true, + "description": "location of the delegated subnet usage" + }, + "subscriptionId": { + "type": "string", + "readOnly": true, + "description": "subscriptionId of the delegated subnet usage" + } + }, + "description": "Virtual network subnet usage data." + }, + "DelegatedSubnetUsage": { + "type": "object", + "properties": { + "subnetName": { + "type": "string", + "readOnly": true, + "description": "name of the subnet" + }, + "usage": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Number of used delegated subnets" + } + }, + "description": "Delegated subnet usage data." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json index c03d886492ef..3a7fc1a65766 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json @@ -50,6 +50,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "storage": { "storageSizeGB": 512 }, @@ -97,6 +100,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "storage": { "storageSizeGB": 512 }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json new file mode 100644 index 000000000000..98d50e2a8ea2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "sku": { + "tier": "GeneralPurpose", + "name": "Standard_D4s_v3" + }, + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "version": "12", + "availabilityZone": "1", + "createMode": "Create", + "authConfig": { + "activeDirectoryAuthEnabled": true, + "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" + }, + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled" + }, + "network": { + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant" + } + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": true, + "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" + }, + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:08:06.7197478+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": true, + "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" + }, + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:08:06.7197478+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json index a6595a2cdf23..b6e378249b73 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -36,6 +36,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "storage": { "storageSizeGB": 1024 }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json new file mode 100644 index 000000000000..f5634d8ca8c1 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "TestGroup", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "sku": { + "tier": "GeneralPurpose", + "name": "Standard_D8s_v3" + }, + "properties": { + "administratorLoginPassword": "newpassword", + "createMode": "Update", + "authConfig": { + "activeDirectoryAuthEnabled": true, + "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" + }, + "storage": { + "storageSizeGB": 1024 + }, + "backup": { + "backupRetentionDays": 20 + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D8s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": true, + "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" + }, + "storage": { + "storageSizeGB": 1024 + }, + "backup": { + "backupRetentionDays": 20, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index f0cec11e3e63..c86783ea5848 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -44,6 +44,9 @@ "Create a new server": { "$ref": "./examples/ServerCreate.json" }, + "Create a new server with active directory authentication enabled": { + "$ref": "./examples/ServerCreateWithAadAuthEnabled.json" + }, "Create a database as a point in time restore": { "$ref": "./examples/ServerCreatePointInTimeRestore.json" } @@ -106,6 +109,9 @@ "ServerUpdate": { "$ref": "./examples/ServerUpdate.json" }, + "ServerUpdateWithAadAuthEnabled": { + "$ref": "./examples/ServerUpdateWithAadAuthEnabled.json" + }, "ServerUpdateWithCustomerMaintenanceWindow": { "$ref": "./examples/ServerUpdateWithCustomerMaintenanceWindow.json" } @@ -321,1635 +327,448 @@ "nextLinkName": "nextLink" } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart": { - "post": { - "tags": [ - "ServerRestart" - ], - "operationId": "Servers_Restart", - "x-ms-examples": { - "ServerRestart": { - "$ref": "./examples/ServerRestart.json" - }, - "ServerRestartWithFailover": { - "$ref": "./examples/ServerRestartWithFailover.json" - } + } + }, + "definitions": { + "StorageMBCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage MB name", + "readOnly": true }, - "description": "Restarts a server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/RestartParameter" - }, - "description": "The parameters for restarting a server." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true }, - "x-ms-long-running-operation": true - } + "storageSizeMB": { + "type": "integer", + "format": "int64", + "description": "storage size in MB", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "storage size in MB capability" }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start": { - "post": { - "tags": [ - "ServerStart" - ], - "operationId": "Servers_Start", - "x-ms-examples": { - "ServerStart": { - "$ref": "./examples/ServerStart.json" - } + "VcoreCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "vCore name", + "readOnly": true }, - "description": "Starts a server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } + "vCores": { + "type": "integer", + "format": "int64", + "description": "supported vCores", + "readOnly": true }, - "x-ms-long-running-operation": true - } + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true + }, + "supportedMemoryPerVcoreMB": { + "type": "integer", + "format": "int64", + "description": "supported memory per vCore in MB", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Vcores capability" }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop": { - "post": { - "tags": [ - "ServerStop" - ], - "operationId": "Servers_Stop", - "x-ms-examples": { - "ServerStop": { - "$ref": "./examples/ServerStop.json" - } + "ServerVersionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "server version", + "readOnly": true }, - "description": "Stops a server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "supportedVcores": { + "type": "array", + "items": { + "$ref": "#/definitions/VcoreCapability" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } + "x-ms-identifiers": [], + "readOnly": true }, - "x-ms-long-running-operation": true - } + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Server version capabilities." }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}": { - "get": { - "tags": [ - "Backups" - ], - "operationId": "Backups_Get", - "x-ms-examples": { - "Get a backup for a server": { - "$ref": "./examples/BackupGet.json" - } + "StorageEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage edition name", + "readOnly": true }, - "description": "List all the backups for a given server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/BackupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerBackup" - } + "supportedStorageMB": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageMBCapability" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true } - } + }, + "description": "storage edition capability" }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups": { - "get": { - "tags": [ - "Backups" - ], - "operationId": "Backups_ListByServer", - "x-ms-examples": { - "List backups for a server": { - "$ref": "./examples/BackupListByServer.json" - } + "NodeTypeCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "note type name", + "readOnly": true }, - "description": "List all the backups for a given server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerBackupListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/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" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Delete", - "x-ms-examples": { - "FirewallRuleDelete": { - "$ref": "./examples/FirewallRuleDelete.json" - } - }, - "description": "Deletes a PostgreSQL server firewall rule.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Get", - "x-ms-examples": { - "FirewallRuleList": { - "$ref": "./examples/FirewallRuleGet.json" - } - }, - "description": "List all the firewall rules in a given server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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 PostgreSQL server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRuleListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConfigurationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}": { - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Get", - "x-ms-examples": { - "ConfigurationGet": { - "$ref": "./examples/ConfigurationGet.json" - } - }, - "description": "Gets information about a configuration of server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - }, - "patch": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Update", - "x-ms-examples": { - "Update a user configuration": { - "$ref": "./examples/ConfigurationUpdate.json" - } - }, - "description": "Updates a configuration of a server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/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" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "put": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Put", - "x-ms-examples": { - "Update a user configuration": { - "$ref": "./examples/ConfigurationUpdate.json" - } - }, - "description": "Updates a configuration of a server.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/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" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "nameAvailabilityRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NameAvailabilityRequest" - }, - "description": "The required parameters for checking if resource name is available." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/NameAvailability" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities": { - "get": { - "tags": [ - "LocationBasedCapabilities" - ], - "operationId": "LocationBasedCapabilities_Execute", - "x-ms-examples": { - "CapabilitiesList": { - "$ref": "./examples/CapabilitiesByLocation.json" - } - }, - "description": "Get capabilities at specified location in a given subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CapabilitiesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage": { - "post": { - "tags": [ - "VirtualNetworkSubnetUsage" - ], - "operationId": "VirtualNetworkSubnetUsage_Execute", - "x-ms-examples": { - "VirtualNetworkSubnetUsageList": { - "$ref": "./examples/VirtualNetworkSubnetUsage.json" - } - }, - "description": "Get virtual network subnet usage for a given vNet resource id.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetworkSubnetUsageParameter" - }, - "description": "The required parameters for creating or updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/VirtualNetworkSubnetUsageResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "VirtualNetworkSubnetUsageParameter": { - "type": "object", - "properties": { - "virtualNetworkArmResourceId": { - "type": "string", - "description": "Virtual network resource id." - } - }, - "description": "Virtual network subnet usage parameter" - }, - "VirtualNetworkSubnetUsageResult": { - "type": "object", - "properties": { - "delegatedSubnetsUsage": { - "type": "array", - "items": { - "$ref": "#/definitions/DelegatedSubnetUsage" - }, - "readOnly": true, - "x-ms-identifiers": [] - }, - "location": { - "type": "string", - "readOnly": true, - "description": "location of the delegated subnet usage" - }, - "subscriptionId": { - "type": "string", - "readOnly": true, - "description": "subscriptionId of the delegated subnet usage" - } - }, - "description": "Virtual network subnet usage data." - }, - "DelegatedSubnetUsage": { - "type": "object", - "properties": { - "subnetName": { - "type": "string", - "readOnly": true, - "description": "name of the subnet" - }, - "usage": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Number of used delegated subnets" - } - }, - "description": "Delegated subnet usage data." - }, - "StorageMBCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "storage MB name", - "readOnly": true - }, - "supportedIops": { - "type": "integer", - "format": "int64", - "description": "supported IOPS", - "readOnly": true - }, - "storageSizeMB": { - "type": "integer", - "format": "int64", - "description": "storage size in MB", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "storage size in MB capability" - }, - "VcoreCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "vCore name", - "readOnly": true - }, - "vCores": { - "type": "integer", - "format": "int64", - "description": "supported vCores", - "readOnly": true - }, - "supportedIops": { - "type": "integer", - "format": "int64", - "description": "supported IOPS", - "readOnly": true - }, - "supportedMemoryPerVcoreMB": { - "type": "integer", - "format": "int64", - "description": "supported memory per vCore in MB", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Vcores capability" - }, - "ServerVersionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "server version", - "readOnly": true - }, - "supportedVcores": { - "type": "array", - "items": { - "$ref": "#/definitions/VcoreCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Server version capabilities." - }, - "StorageEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "storage edition name", - "readOnly": true - }, - "supportedStorageMB": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageMBCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "storage edition capability" - }, - "NodeTypeCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "note type name", - "readOnly": true - }, - "nodeType": { - "type": "string", - "description": "note type", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "node type capability" - }, - "FlexibleServerEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Server edition name", - "readOnly": true - }, - "supportedStorageEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageEditionCapability" - }, - "description": "The list of editions supported by this server edition.", - "readOnly": true, - "x-ms-identifiers": [] - }, - "supportedServerVersions": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerVersionCapability" - }, - "x-ms-identifiers": [], - "description": "The list of server versions supported by this server edition.", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Flexible server edition capabilities." - }, - "HyperscaleNodeEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Server edition name", - "readOnly": true - }, - "supportedStorageEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageEditionCapability" - }, - "x-ms-identifiers": [], - "description": "The list of editions supported by this server edition.", - "readOnly": true - }, - "supportedServerVersions": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerVersionCapability" - }, - "x-ms-identifiers": [], - "description": "The list of server versions supported by this server edition.", - "readOnly": true - }, - "supportedNodeTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/NodeTypeCapability" - }, - "x-ms-identifiers": [], - "description": "The list of Node Types supported by this server edition.", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Hyperscale node edition capabilities." - }, - "CapabilityProperties": { - "type": "object", - "properties": { - "zone": { - "type": "string", - "description": "zone name", - "readOnly": true - }, - "supportedHAMode": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported high availability mode", - "readOnly": true - }, - "geoBackupSupported": { - "type": "boolean", - "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", - "readOnly": true - }, - "zoneRedundantHaSupported": { - "type": "boolean", - "description": "A value indicating whether a new server in this region can support multi zone HA.", - "readOnly": true - }, - "zoneRedundantHaAndGeoBackupSupported": { - "type": "boolean", - "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", - "readOnly": true - }, - "supportedFlexibleServerEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/FlexibleServerEditionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "supportedHyperscaleNodeEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/HyperscaleNodeEditionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Location capabilities." - }, - "CapabilitiesListResult": { - "type": "object", - "properties": { - "value": { - "description": "A list of supported capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/CapabilityProperties" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - }, - "description": "location capability" - }, - "ServerVersion": { - "type": "string", - "description": "The version of a server.", - "enum": [ - "14", - "13", - "12", - "11" - ], - "x-ms-enum": { - "name": "ServerVersion", - "modelAsString": true - } - }, - "ServerProperties": { - "type": "object", - "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).", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "administratorLoginPassword": { - "type": "string", - "description": "The administrator login password (required for server creation).", - "x-ms-secret": true, - "format": "password", - "x-ms-mutability": [ - "create", - "update" - ] - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "PostgreSQL Server version." - }, - "minorVersion": { - "type": "string", - "description": "The minor version of the server.", - "readOnly": true - }, - "state": { - "type": "string", - "description": "A state of a server that is visible to user.", - "readOnly": true, - "enum": [ - "Ready", - "Dropping", - "Disabled", - "Starting", - "Stopping", - "Stopped", - "Updating" - ], - "x-ms-enum": { - "name": "ServerState", - "modelAsString": true - } - }, - "fullyQualifiedDomainName": { - "type": "string", - "description": "The fully qualified domain name of a server.", - "readOnly": true - }, - "storage": { - "$ref": "#/definitions/Storage", - "default": null, - "description": "Storage properties of a server." - }, - "backup": { - "$ref": "#/definitions/Backup", - "default": null, - "description": "Backup properties of a server." - }, - "network": { - "$ref": "#/definitions/Network", - "default": null, - "description": "Network properties of a server.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "highAvailability": { - "$ref": "#/definitions/HighAvailability", - "default": null, - "description": "High availability properties of a server." - }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "default": null, - "description": "Maintenance window properties of a server.", - "x-ms-mutability": [ - "update", - "read" - ] - }, - "sourceServerResourceId": { - "type": "string", - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", - "x-ms-mutability": [ - "create" - ] - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", - "x-ms-mutability": [ - "create" - ] - }, - "availabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the server.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "createMode": { - "type": "string", - "description": "The mode to create a new PostgreSQL server.", - "enum": [ - "Default", - "Create", - "Update", - "PointInTimeRestore" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - }, - "x-ms-mutability": [ - "create", - "update" - ] - } - }, - "description": "The properties of a server." - }, - "Server": { - "type": "object", - "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." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "Represents a server." - }, - "ServerPropertiesForUpdate": { - "type": "object", - "properties": { - "administratorLoginPassword": { - "type": "string", - "x-ms-secret": true, - "format": "password", - "description": "The password of the administrator login.", - "x-ms-mutability": [ - "update" - ] - }, - "storage": { - "$ref": "#/definitions/Storage", - "default": null, - "description": "Storage properties of a server." - }, - "backup": { - "$ref": "#/definitions/Backup", - "default": null, - "description": "Backup properties of a server." - }, - "highAvailability": { - "$ref": "#/definitions/HighAvailability", - "default": null, - "description": "High availability properties of a server." - }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "default": null, - "description": "Maintenance window properties of a server.", - "x-ms-mutability": [ - "update", - "read" - ] + "nodeType": { + "type": "string", + "description": "note type", + "readOnly": true }, - "createMode": { + "status": { "type": "string", - "description": "The mode to update a new PostgreSQL server.", - "enum": [ - "Default", - "Update" - ], - "x-ms-enum": { - "name": "CreateModeForUpdate", - "modelAsString": true - }, - "x-ms-mutability": [ - "update" - ] + "description": "The status", + "readOnly": true } - } + }, + "description": "node type capability" }, - "ServerForUpdate": { + "FlexibleServerEditionCapability": { "type": "object", "properties": { - "location": { + "name": { "type": "string", - "description": "The location the resource resides in." - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerPropertiesForUpdate", - "x-ms-client-flatten": true, - "description": "Properties of the server." + "description": "Server edition name", + "readOnly": true }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" + "supportedStorageEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "description": "Represents a server to be updated." - }, - "ServerListResult": { - "type": "object", - "properties": { - "value": { + "description": "The list of editions supported by this server edition.", + "readOnly": true, + "x-ms-identifiers": [] + }, + "supportedServerVersions": { "type": "array", "items": { - "$ref": "#/definitions/Server" + "$ref": "#/definitions/ServerVersionCapability" }, - "description": "The list of flexible servers" + "x-ms-identifiers": [], + "description": "The list of server versions supported by this server edition.", + "readOnly": true }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" + "status": { + "type": "string", + "description": "The status", + "readOnly": true } }, - "description": "A list of servers." + "description": "Flexible server edition capabilities." }, - "Sku": { + "HyperscaleNodeEditionCapability": { "type": "object", "properties": { "name": { "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." + "description": "Server edition name", + "readOnly": true }, - "tier": { + "supportedStorageEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of editions supported by this server edition.", + "readOnly": true + }, + "supportedServerVersions": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVersionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of server versions supported by this server edition.", + "readOnly": true + }, + "supportedNodeTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/NodeTypeCapability" + }, + "x-ms-identifiers": [], + "description": "The list of Node Types supported by this server edition.", + "readOnly": true + }, + "status": { "type": "string", - "description": "The tier of the particular SKU, e.g. Burstable.", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ], - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "type": "integer", - "format": "int32", - "description": "Max storage allowed for a server." + "description": "The status", + "readOnly": true } }, - "description": "Storage properties of a server" + "description": "Hyperscale node edition capabilities." }, - "Backup": { + "CapabilityProperties": { "type": "object", "properties": { - "backupRetentionDays": { - "type": "integer", - "format": "int32", - "default": 7, - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { + "zone": { "type": "string", - "default": "Disabled", - "description": "A value indicating whether Geo-Redundant backup is enabled on the server.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "GeoRedundantBackupEnum", - "modelAsString": true + "description": "zone name", + "readOnly": true + }, + "supportedHAMode": { + "type": "array", + "items": { + "type": "string" }, - "x-ms-mutability": [ - "create", - "read" - ] + "description": "Supported high availability mode", + "readOnly": true }, - "earliestRestoreDate": { + "geoBackupSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", + "readOnly": true + }, + "zoneRedundantHaSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can support multi zone HA.", + "readOnly": true + }, + "zoneRedundantHaAndGeoBackupSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", + "readOnly": true + }, + "supportedFlexibleServerEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/FlexibleServerEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "supportedHyperscaleNodeEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/HyperscaleNodeEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { "type": "string", - "format": "date-time", - "description": "The earliest restore point time (ISO8601 format) for server.", + "description": "The status", "readOnly": true } }, - "description": "Backup properties of a server" + "description": "Location capabilities." }, - "Network": { + "CapabilitiesListResult": { "type": "object", "properties": { - "publicNetworkAccess": { - "type": "string", - "description": "public network access is enabled or not", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ServerPublicNetworkAccessState", - "modelAsString": true + "value": { + "description": "A list of supported capabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/CapabilityProperties" }, + "x-ms-identifiers": [], "readOnly": true }, - "delegatedSubnetResourceId": { + "nextLink": { + "description": "Link to retrieve next page of results.", "type": "string", - "default": "", - "description": "delegated subnet arm resource id.", + "readOnly": true + } + }, + "description": "location capability" + }, + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "14", + "13", + "12", + "11" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "ServerProperties": { + "type": "object", + "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).", "x-ms-mutability": [ "create", "read" ] }, - "privateDnsZoneArmResourceId": { + "administratorLoginPassword": { "type": "string", - "default": "", - "description": "private dns zone arm resource id.", + "description": "The administrator login password (required for server creation).", + "x-ms-secret": true, + "format": "password", "x-ms-mutability": [ "create", - "read" + "update" ] - } - }, - "description": "Network properties of a server" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "PostgreSQL Server version." + }, + "minorVersion": { "type": "string", - "default": "Disabled", - "description": "The HA mode for the server.", + "description": "The minor version of the server.", + "readOnly": true + }, + "state": { + "type": "string", + "description": "A state of a server that is visible to user.", + "readOnly": true, "enum": [ + "Ready", + "Dropping", "Disabled", - "ZoneRedundant", - "SameZone" + "Starting", + "Stopping", + "Stopped", + "Updating" ], "x-ms-enum": { - "name": "HighAvailabilityMode", + "name": "ServerState", "modelAsString": true } }, - "state": { + "fullyQualifiedDomainName": { "type": "string", - "description": "A state of a HA server that is visible to user.", - "enum": [ - "NotEnabled", - "CreatingStandby", - "ReplicatingData", - "FailingOver", - "Healthy", - "RemovingStandby" - ], - "x-ms-enum": { - "name": "ServerHAState", - "modelAsString": true - }, + "description": "The fully qualified domain name of a server.", "readOnly": true }, - "standbyAvailabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the standby." - } - }, - "description": "High availability properties of a server" - }, - "MaintenanceWindow": { - "type": "object", - "description": "Maintenance window properties of a server.", - "properties": { - "customWindow": { - "type": "string", - "default": "Disabled", - "description": "indicates whether custom window is enabled or disabled" + "storage": { + "$ref": "#/definitions/Storage", + "default": null, + "description": "Storage properties of a server." }, - "startHour": { - "type": "integer", - "format": "int32", - "default": 0, - "description": "start hour for maintenance window" + "backup": { + "$ref": "#/definitions/Backup", + "default": null, + "description": "Backup properties of a server." }, - "startMinute": { - "type": "integer", - "format": "int32", - "default": 0, - "description": "start minute for maintenance window" + "network": { + "$ref": "#/definitions/Network", + "default": null, + "description": "Network properties of a server.", + "x-ms-mutability": [ + "create", + "read" + ] }, - "dayOfWeek": { - "type": "integer", - "format": "int32", - "default": 0, - "description": "day of week for maintenance window" - } - } - }, - "FirewallRuleProperties": { - "type": "object", - "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." + "highAvailability": { + "$ref": "#/definitions/HighAvailability", + "default": null, + "description": "High availability properties of a server." }, - "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." - }, - "ServerBackupProperties": { - "type": "object", - "properties": { - "backupType": { + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "default": null, + "description": "Maintenance window properties of a server.", + "x-ms-mutability": [ + "update", + "read" + ] + }, + "sourceServerResourceId": { "type": "string", - "description": "Backup type." + "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", + "x-ms-mutability": [ + "create" + ] }, - "completedTime": { + "pointInTimeUTC": { "type": "string", "format": "date-time", - "description": "Backup completed time (ISO8601 format)." + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", + "x-ms-mutability": [ + "create" + ] }, - "source": { + "availabilityZone": { + "type": "string", + "default": "", + "description": "availability zone information of the server.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "createMode": { "type": "string", - "description": "Backup source" + "description": "The mode to create a new PostgreSQL server.", + "enum": [ + "Default", + "Create", + "Update", + "PointInTimeRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "update" + ] } }, - "description": "The properties of a server backup." + "description": "The properties of a server." }, - "ServerBackup": { + "Server": { "type": "object", "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, "properties": { - "$ref": "#/definitions/ServerBackupProperties", + "$ref": "#/definitions/ServerProperties", "x-ms-client-flatten": true, - "description": "The properties of a server backup." + "description": "Properties of the server." }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", @@ -1959,343 +778,287 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" } ], - "description": "Server backup properties" + "description": "Represents a server." }, - "ServerBackupListResult": { + "ServerPropertiesForUpdate": { "type": "object", "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerBackup" - }, - "description": "The list of backups of a server." + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "description": "The password of the administrator login.", + "x-ms-mutability": [ + "update" + ] }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" + "storage": { + "$ref": "#/definitions/Storage", + "default": null, + "description": "Storage properties of a server." + }, + "backup": { + "$ref": "#/definitions/Backup", + "default": null, + "description": "Backup properties of a server." + }, + "highAvailability": { + "$ref": "#/definitions/HighAvailability", + "default": null, + "description": "High availability properties of a server." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "default": null, + "description": "Maintenance window properties of a server.", + "x-ms-mutability": [ + "update", + "read" + ] + }, + "createMode": { + "type": "string", + "description": "The mode to update a new PostgreSQL server.", + "enum": [ + "Default", + "Update" + ], + "x-ms-enum": { + "name": "CreateModeForUpdate", + "modelAsString": true + }, + "x-ms-mutability": [ + "update" + ] } - }, - "description": "A list of server backups." + } }, - "FirewallRule": { + "ServerForUpdate": { "type": "object", "properties": { + "location": { + "type": "string", + "description": "The location the resource resides in." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, "properties": { - "$ref": "#/definitions/FirewallRuleProperties", + "$ref": "#/definitions/ServerPropertiesForUpdate", "x-ms-client-flatten": true, - "description": "The properties of a firewall rule." + "description": "Properties of the server." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." } }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "required": [ - "properties" - ], - "description": "Represents a server firewall rule." + "description": "Represents a server to be updated." }, - "FirewallRuleListResult": { + "ServerListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/FirewallRule" + "$ref": "#/definitions/Server" }, - "description": "The list of firewall rules in a server." + "description": "The list of flexible servers" }, "nextLink": { "description": "The link used to get the next page of operations.", "type": "string" } }, - "description": "A list of firewall rules." + "description": "A list of servers." }, - "ConfigurationProperties": { + "Sku": { "type": "object", "properties": { - "value": { - "type": "string", - "description": "Value of the configuration." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Description of the configuration." - }, - "defaultValue": { + "name": { "type": "string", - "readOnly": true, - "description": "Default value of the configuration." + "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." }, - "dataType": { + "tier": { "type": "string", - "readOnly": true, - "description": "Data type of the configuration.", + "description": "The tier of the particular SKU, e.g. Burstable.", "enum": [ - "Boolean", - "Numeric", - "Integer", - "Enumeration" + "Burstable", + "GeneralPurpose", + "MemoryOptimized" ], "x-ms-enum": { - "name": "ConfigurationDataType", + "name": "SkuTier", "modelAsString": true } - }, - "allowedValues": { - "type": "string", - "readOnly": true, - "description": "Allowed values of the configuration." - }, - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "isDynamicConfig": { - "type": "boolean", - "readOnly": true, - "description": "Configuration dynamic or static." - }, - "isReadOnly": { - "type": "boolean", - "readOnly": true, - "description": "Configuration read-only or not." - }, - "isConfigPendingRestart": { - "type": "boolean", - "readOnly": true, - "description": "Configuration is pending restart or not." - }, - "unit": { - "type": "string", - "readOnly": true, - "description": "Configuration unit." - }, - "documentationLink": { - "type": "string", - "readOnly": true, - "description": "Configuration documentation link." } }, - "description": "The properties of a configuration." - }, - "Configuration": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ConfigurationProperties", - "x-ms-client-flatten": true, - "description": "The properties of a configuration." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } + "required": [ + "name", + "tier" ], - "description": "Represents a Configuration." + "description": "Sku information related properties of a server." }, - "ConfigurationListResult": { + "Storage": { "type": "object", "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Configuration" - }, - "description": "The list of server configurations." - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" + "storageSizeGB": { + "type": "integer", + "format": "int32", + "description": "Max storage allowed for a server." } }, - "description": "A list of server configurations." + "description": "Storage properties of a server" }, - "OperationDisplay": { + "Backup": { "type": "object", "properties": { - "provider": { - "type": "string", - "readOnly": true, - "description": "Operation resource provider name." - }, - "resource": { - "type": "string", - "readOnly": true, - "description": "Resource on which the operation is performed." + "backupRetentionDays": { + "type": "integer", + "format": "int32", + "default": 7, + "description": "Backup retention days for the server." }, - "operation": { + "geoRedundantBackup": { "type": "string", - "readOnly": true, - "description": "Localized friendly name for the operation." + "default": "Disabled", + "description": "A value indicating whether Geo-Redundant backup is enabled on the server.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "GeoRedundantBackupEnum", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] }, - "description": { + "earliestRestoreDate": { "type": "string", - "readOnly": true, - "description": "Operation description." + "format": "date-time", + "description": "The earliest restore point time (ISO8601 format) for server.", + "readOnly": true } }, - "description": "Display metadata associated with the operation." + "description": "Backup properties of a server" }, - "Operation": { + "Network": { "type": "object", "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the operation being performed on this particular object." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "readOnly": true, - "description": "The localized display information for this particular operation or action." - }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" - }, - "origin": { + "publicNetworkAccess": { "type": "string", - "readOnly": true, - "description": "The intended executor of the operation.", + "description": "public network access is enabled or not", "enum": [ - "NotSpecified", - "user", - "system" + "Enabled", + "Disabled" ], "x-ms-enum": { - "name": "OperationOrigin", + "name": "ServerPublicNetworkAccessState", "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": { - "description": "A list of resource provider operations.", - "type": "object", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/Operation" }, - "x-ms-identifiers": [] + "readOnly": true }, - "nextLink": { - "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", - "type": "string" - } - } - }, - "NameAvailabilityRequest": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "name": { + "delegatedSubnetResourceId": { "type": "string", - "description": "Resource name to verify." + "default": "", + "description": "delegated subnet arm resource id.", + "x-ms-mutability": [ + "create", + "read" + ] }, - "type": { + "privateDnsZoneArmResourceId": { "type": "string", - "description": "Resource type used for verification." + "default": "", + "description": "private dns zone arm resource id.", + "x-ms-mutability": [ + "create", + "read" + ] } }, - "description": "Request from client to check resource name availability." + "description": "Network properties of a server" }, - "NameAvailability": { + "HighAvailability": { "type": "object", "properties": { - "message": { - "type": "string", - "description": "Error Message.", - "readOnly": true - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "name of the PostgreSQL server.", - "readOnly": true - }, - "type": { + "mode": { "type": "string", - "description": "type of the server", - "readOnly": true + "default": "Disabled", + "description": "The HA mode for the server.", + "enum": [ + "Disabled", + "ZoneRedundant", + "SameZone" + ], + "x-ms-enum": { + "name": "HighAvailabilityMode", + "modelAsString": true + } }, - "reason": { + "state": { "type": "string", - "description": "The name availability reason.", + "description": "A state of a HA server that is visible to user.", "enum": [ - "Invalid", - "AlreadyExists" + "NotEnabled", + "CreatingStandby", + "ReplicatingData", + "FailingOver", + "Healthy", + "RemovingStandby" ], "x-ms-enum": { - "name": "Reason", + "name": "ServerHAState", "modelAsString": true }, "readOnly": true + }, + "standbyAvailabilityZone": { + "type": "string", + "default": "", + "description": "availability zone information of the standby." } }, - "description": "Represents a resource name availability." + "description": "High availability properties of a server" }, - "RestartParameter": { + "MaintenanceWindow": { "type": "object", + "description": "Maintenance window properties of a server.", "properties": { - "restartWithFailover": { - "type": "boolean", - "description": "Indicates whether to restart the server with failover." - }, - "failoverMode": { + "customWindow": { "type": "string", - "description": "Failover mode.", - "enum": [ - "PlannedFailover", - "ForcedFailover", - "PlannedSwitchover", - "ForcedSwitchover" - ], - "x-ms-enum": { - "name": "FailoverMode", - "modelAsString": true - } + "default": "Disabled", + "description": "indicates whether custom window is enabled or disabled" + }, + "startHour": { + "type": "integer", + "format": "int32", + "default": 0, + "description": "start hour for maintenance window" + }, + "startMinute": { + "type": "integer", + "format": "int32", + "default": 0, + "description": "start minute for maintenance window" + }, + "dayOfWeek": { + "type": "integer", + "format": "int32", + "default": 0, + "description": "day of week for maintenance window" } - }, - "description": "Represents server restart parameters." + } }, "CloudError": { "x-ms-external": true, @@ -2325,22 +1088,6 @@ "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" - }, - "ConfigurationNameParameter": { - "name": "configurationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server configuration.", - "x-ms-parameter-location": "method" - }, "MaintenanceWindowNameParameter": { "name": "maintenanceWindowName", "in": "path", @@ -2348,14 +1095,6 @@ "type": "string", "description": "The name of the maintenance window.", "x-ms-parameter-location": "method" - }, - "BackupNameParameter": { - "name": "backupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the backup.", - "x-ms-parameter-location": "method" } } } From 31ba535afbe31f2401276789dd6879c897148141 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 11 Aug 2022 18:36:02 -0700 Subject: [PATCH 05/82] Add administrators api and corresponding examples --- .../2022-03-08-preview/Administrators.json | 377 ++++++++++++++++++ .../examples/AdministratorDelete.json | 19 + .../examples/AdministratorGet.json | 25 ++ .../examples/AdministratorsListByServer.json | 36 ++ 4 files changed, 457 insertions(+) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json new file mode 100644 index 000000000000..6be929a34dae --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -0,0 +1,377 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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/flexibleServers/{serverName}/administrators/{objectId}": { + "put": { + "tags": [ + "Administrators" + ], + "operationId": "Administrators_Add", + "x-ms-examples": { + "Adds an Active DIrectory Administrator for the server": { + "$ref": "./examples/AdministratorAdd.json" + } + }, + "description": "Creates a new server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ObjectIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdministratorPropertiesForAdd" + }, + "description": "The required parameters for adding an active directory administrator for a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActiveDirectoryAdministrator" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Administrators" + ], + "operationId": "Administrators_Delete", + "x-ms-examples": { + "ServerDelete": { + "$ref": "./examples/AdmininistratorDelete.json" + } + }, + "description": "Deletes an Active Directory Administrator associated with the server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ObjectIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Administrators" + ], + "operationId": "Administrators_Get", + "x-ms-examples": { + "ServerGet": { + "$ref": "./examples/AdministratorGet.json" + } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ObjectIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActiveDirectoryAdministrator" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators": { + "get": { + "tags": [ + "Administrators" + ], + "operationId": "Administrators_ListByServer", + "x-ms-examples": { + "AdministratorsListByServer": { + "$ref": "./examples/AdministratorsListByServer.json" + } + }, + "description": "List all the AAD administrators for a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdministratorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "AdministratorPropertiesForAdd": { + "type": "object", + "properties": { + "principalType": { + "type": "string", + "description": "The principal type used to represent the type of Active Directory Administrator.", + "enum": [ + "Unknown", + "User", + "Group", + "ServicePrincipal" + ], + "x-ms-mutability": [ + "create", + "update", + "read" + ] + }, + "principalName": { + "type": "string", + "description": "Active Directory administrator principal name.", + "x-ms-mutability": [ + "create", + "update", + "read" + ] + }, + "tenantId": { + "type": "string", + "description": "The tenantId of the Active Directory administrator.", + "x-ms-mutability": [ + "create", + "update" + ] + } + }, + "description": "The properties of an Active Directory administrator." + }, + "AdministratorProperties": { + "type": "object", + "properties": { + "principalType": { + "type": "string", + "description": "The principal type used to represent the type of Active Directory Administrator.", + "enum": [ + "Unknown", + "User", + "Group", + "ServicePrincipal" + ], + "x-ms-mutability": [ + "create", + "update", + "read" + ] + }, + "principalName": { + "type": "string", + "description": "Active Directory administrator principal name.", + "x-ms-mutability": [ + "create", + "update", + "read" + ] + }, + "objectId": { + "type": "string", + "description": "The objectId of the Active Directory administrator.", + "x-ms-mutability": [ + "create", + "update", + "read" + ] + }, + "tenantId": { + "type": "string", + "description": "The tenantId of the Active Directory administrator.", + "x-ms-mutability": [ + "create", + "update" + ] + } + }, + "description": "The properties of an Active Directory administrator." + }, + "ActiveDirectoryAdministrator": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The objectId of the Active Directory administrator.", + "x-ms-mutability": [ + "create", + "update", + "read" + ] + }, + "properties": { + "$ref": "#/definitions/AdministratorProperties", + "x-ms-client-flatten": true, + "description": "Properties of the active directory administrator." + }, + "type": { + "type": "string", + "description": "The objectId of the Active Directory administrator.", + "x-ms-mutability": [ + "create", + "update", + "read" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "AdministratorListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActiveDirectoryAdministrator" + }, + "description": "The list of active directory administrators" + }, + "nextLink": { + "description": "The link used to get the next page of active directory.", + "type": "string" + } + }, + "description": "A list of active directory administrators." + }, + "CloudError": { + "x-ms-external": true, + "type": "object", + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ObjectIdParameter": { + "name": "objectId", + "in": "path", + "required": true, + "type": "guid", + "description": "Guid of the objectId for the administrator.", + "x-ms-parameter-location": "method" + }, + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json new file mode 100644 index 000000000000..5f4c8df99202 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "responses": { + "200": {}, + "202": { + "body": { + "operation": "UpsertAadAuthPrincipalManagementOperation", + "startTime": "2022-08-12T01:18:23.39Z" + } + }, + "204": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json new file mode 100644 index 000000000000..b97dec3edfb9 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "serverName": "pgtestsvc1", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "responses": { + "200": { + "body": { + "body":{ + "properties": { + "principalType": "User", + "principalName": "testuer1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + } + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json new file mode 100644 index 000000000000..2473b59dbae4 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "serverName": "pgtestsvc1", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "principalType": "User", + "principalName": "testuer1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + }, + { + "properties": { + "principalType": "Group", + "principalName": "testgroup1@microsoft.com", + "objectId": "gggggggg-gggg-gggg-gggg-gggggggggggg", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/gggggggg-gggg-gggg-gggg-gggggggggggg", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + } + ] + } + } + } +} From e6a05ae5a93267909165d2ac3c270d0390c16562 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 11 Aug 2022 19:17:30 -0700 Subject: [PATCH 06/82] Fix sematic validation errors by running oav tool --- .../2022-03-08-preview/Administrators.json | 26 +++++++++++++++-- .../examples/AdministratorAdd.json | 29 +++++++++++++++++++ .../examples/AdministratorDelete.json | 4 +-- 3 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index 6be929a34dae..e174b090f72a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -59,6 +59,9 @@ { "$ref": "#/parameters/ObjectIdParameter" }, + { + "$ref": "#/parameters/ServerNameParameter" + }, { "name": "parameters", "in": "body", @@ -95,7 +98,7 @@ "operationId": "Administrators_Delete", "x-ms-examples": { "ServerDelete": { - "$ref": "./examples/AdmininistratorDelete.json" + "$ref": "./examples/AdministratorDelete.json" } }, "description": "Deletes an Active Directory Administrator associated with the server.", @@ -109,6 +112,9 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, + { + "$ref": "#/parameters/ServerNameParameter" + }, { "$ref": "#/parameters/ObjectIdParameter" } @@ -153,6 +159,9 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, + { + "$ref": "#/parameters/ServerNameParameter" + }, { "$ref": "#/parameters/ObjectIdParameter" } @@ -194,6 +203,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" } ], "responses": { @@ -365,13 +377,21 @@ } }, "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, "ObjectIdParameter": { "name": "objectId", "in": "path", "required": true, - "type": "guid", + "type": "string", "description": "Guid of the objectId for the administrator.", "x-ms-parameter-location": "method" - }, + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json new file mode 100644 index 000000000000..8061e2e9513b --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "responses": { + "200": {}, + "201": { + "body": { + "properties": { + "principalType": "User", + "principalName": "testuser1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + } + }, + "202": { + "body": { + "operation": "UpsertAadAuthPrincipalManagementOperation", + "startTime": "2022-08-12T02:05:41.173Z" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json index 5f4c8df99202..32562aa9550a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json @@ -10,8 +10,8 @@ "200": {}, "202": { "body": { - "operation": "UpsertAadAuthPrincipalManagementOperation", - "startTime": "2022-08-12T01:18:23.39Z" + "operation": "DropAadAuthPrincipalManagementOperation", + "startTime": "2022-08-12T01:57:32.977Z" } }, "204": {} From 807809101042520aa1ad82349b77fdc2a52eea29 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 12 Aug 2022 11:43:55 -0700 Subject: [PATCH 07/82] Fix model validation errors by running oav tool for validate example --- .../2022-03-08-preview/Administrators.json | 16 +- .../2022-03-08-preview/Capabilities.json | 283 ++++++++++++++++++ .../2022-03-08-preview/Configuration.json | 17 -- .../examples/AdministratorAdd.json | 24 +- .../examples/AdministratorDelete.json | 6 +- .../examples/AdministratorGet.json | 18 +- .../examples/ConfigurationUpdate.json | 7 +- .../examples/DatabaseDelete.json | 7 +- .../examples/FirewallRuleDelete.json | 7 +- .../examples/ServerDelete.json | 7 +- .../examples/ServerRestart.json | 7 +- .../examples/ServerRestartWithFailover.json | 7 +- .../examples/ServerStart.json | 7 +- .../examples/ServerStop.json | 7 +- .../examples/ServerUpdate.json | 7 +- .../ServerUpdateWithAadAuthEnabled.json | 7 +- ...erUpdateWithCustomerMaintenanceWindow.json | 7 +- .../2022-03-08-preview/postgresql.json | 30 ++ 18 files changed, 416 insertions(+), 55 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index e174b090f72a..b4be02a0f491 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -79,6 +79,12 @@ "$ref": "#/definitions/ActiveDirectoryAdministrator" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ActiveDirectoryAdministrator" + } + }, "202": { "description": "Accepted" }, @@ -97,7 +103,7 @@ ], "operationId": "Administrators_Delete", "x-ms-examples": { - "ServerDelete": { + "AdministratorDelete": { "$ref": "./examples/AdministratorDelete.json" } }, @@ -308,7 +314,8 @@ "description": "The tenantId of the Active Directory administrator.", "x-ms-mutability": [ "create", - "update" + "update", + "read" ] } }, @@ -341,11 +348,6 @@ ] } }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], "description": "Represents a server." }, "AdministratorListResult": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index b3240e34833b..0858e01c6d90 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -78,6 +78,289 @@ } }, "definitions": { + "StorageMBCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage MB name", + "readOnly": true + }, + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true + }, + "storageSizeMB": { + "type": "integer", + "format": "int64", + "description": "storage size in MB", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "storage size in MB capability" + }, + "VcoreCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "vCore name", + "readOnly": true + }, + "vCores": { + "type": "integer", + "format": "int64", + "description": "supported vCores", + "readOnly": true + }, + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true + }, + "supportedMemoryPerVcoreMB": { + "type": "integer", + "format": "int64", + "description": "supported memory per vCore in MB", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Vcores capability" + }, + "ServerVersionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "server version", + "readOnly": true + }, + "supportedVcores": { + "type": "array", + "items": { + "$ref": "#/definitions/VcoreCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Server version capabilities." + }, + "StorageEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage edition name", + "readOnly": true + }, + "supportedStorageMB": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageMBCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "storage edition capability" + }, + "NodeTypeCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "note type name", + "readOnly": true + }, + "nodeType": { + "type": "string", + "description": "note type", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "node type capability" + }, + "FlexibleServerEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Server edition name", + "readOnly": true + }, + "supportedStorageEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" + }, + "description": "The list of editions supported by this server edition.", + "readOnly": true, + "x-ms-identifiers": [] + }, + "supportedServerVersions": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVersionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of server versions supported by this server edition.", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Flexible server edition capabilities." + }, + "HyperscaleNodeEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Server edition name", + "readOnly": true + }, + "supportedStorageEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of editions supported by this server edition.", + "readOnly": true + }, + "supportedServerVersions": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVersionCapability" + }, + "x-ms-identifiers": [], + "description": "The list of server versions supported by this server edition.", + "readOnly": true + }, + "supportedNodeTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/NodeTypeCapability" + }, + "x-ms-identifiers": [], + "description": "The list of Node Types supported by this server edition.", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Hyperscale node edition capabilities." + }, + "CapabilityProperties": { + "type": "object", + "properties": { + "zone": { + "type": "string", + "description": "zone name", + "readOnly": true + }, + "supportedHAMode": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Supported high availability mode", + "readOnly": true + }, + "geoBackupSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", + "readOnly": true + }, + "zoneRedundantHaSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can support multi zone HA.", + "readOnly": true + }, + "zoneRedundantHaAndGeoBackupSupported": { + "type": "boolean", + "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", + "readOnly": true + }, + "supportedFlexibleServerEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/FlexibleServerEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "supportedHyperscaleNodeEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/HyperscaleNodeEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status", + "readOnly": true + } + }, + "description": "Location capabilities." + }, + "CapabilitiesListResult": { + "type": "object", + "properties": { + "value": { + "description": "A list of supported capabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/CapabilityProperties" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "location capability" + }, "CloudError": { "type": "object", "x-ms-external": true, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index f19ca5f050bf..3a3860419ea6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -345,23 +345,6 @@ }, "description": "A list of server configurations." }, - "ServerBackupListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerBackup" - }, - "description": "The list of backups of a server." - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A list of server backups." - }, "CloudError": { "type": "object", "x-ms-external": true, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json index 8061e2e9513b..673c580b0d48 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -4,11 +4,15 @@ "resourceGroupName": "testrg", "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", + "parameters": { + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt", + "principalType": "User", + "principalName": "testuser1@microsoft.com" + } }, "responses": { - "200": {}, - "201": { + "200": { "body": { "properties": { "principalType": "User", @@ -19,11 +23,17 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } }, - "202": { + "201": { "body": { - "operation": "UpsertAadAuthPrincipalManagementOperation", - "startTime": "2022-08-12T02:05:41.173Z" + "properties": { + "principalType": "User", + "principalName": "testuser1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } - } + }, + "202": {} } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json index 32562aa9550a..9347495de21d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorDelete.json @@ -9,9 +9,9 @@ "responses": { "200": {}, "202": { - "body": { - "operation": "DropAadAuthPrincipalManagementOperation", - "startTime": "2022-08-12T01:57:32.977Z" + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" } }, "204": {} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json index b97dec3edfb9..bb925a4eb13c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json @@ -9,16 +9,14 @@ "responses": { "200": { "body": { - "body":{ - "properties": { - "principalType": "User", - "principalName": "testuer1@microsoft.com", - "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", - "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", - "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - } + "properties": { + "principalType": "User", + "principalName": "testuer1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json index 194402b0fa36..640ef93809d1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json @@ -28,6 +28,11 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json index d0d5c4d823e1..79b993f3ce7c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseDelete.json @@ -8,7 +8,12 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + }, "204": {} } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json index a018f3415f11..14705484a3d4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleDelete.json @@ -8,7 +8,12 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + }, "204": {} } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json index 4ad708601785..5c89053dcc05 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerDelete.json @@ -7,7 +7,12 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + }, "204": {} } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json index e05e1b4896d8..eef05fe7ba83 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestart.json @@ -7,6 +7,11 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json index 7e0a5a5f5acc..755d6e65b1e5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerRestartWithFailover.json @@ -11,6 +11,11 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json index e05e1b4896d8..eef05fe7ba83 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStart.json @@ -7,6 +7,11 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json index e05e1b4896d8..eef05fe7ba83 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerStop.json @@ -7,6 +7,11 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json index b6e378249b73..2e8034792f9e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -73,6 +73,11 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers" } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json index f5634d8ca8c1..69d2eb074b56 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json @@ -78,6 +78,11 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers" } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 3515318082d0..95c6eb45ddd2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -65,6 +65,11 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers" } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index c86783ea5848..382566f865d4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -685,6 +685,11 @@ "default": null, "description": "Storage properties of a server." }, + "authConfig": { + "$ref": "#/definitions/AuthConfig", + "default": null, + "description": "AuthConfig properties of a server." + }, "backup": { "$ref": "#/definitions/Backup", "default": null, @@ -819,6 +824,11 @@ "read" ] }, + "authConfig": { + "$ref": "#/definitions/AuthConfig", + "default": null, + "description": "AuthConfig properties of a server." + }, "createMode": { "type": "string", "description": "The mode to update a new PostgreSQL server.", @@ -917,6 +927,26 @@ }, "description": "Storage properties of a server" }, + "AuthConfig": { + "type": "object", + "properties": { + "activeDirectoryAuthEnabled": { + "type": "boolean", + "description": "If true, Azure Active Directory authentication is enabled." + }, + "passwordAuthEnabled": { + "type": "boolean", + "default": "", + "description": "If true, Password authentication is enabled." + }, + "tenantId": { + "type": "string", + "default": "", + "description": "Tenant id of the server." + } + }, + "description": "Authentication configuration properties of a server" + }, "Backup": { "type": "object", "properties": { From e6338df07d3d442e37afc1a97ccef9a0453add17 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 12 Aug 2022 11:57:18 -0700 Subject: [PATCH 08/82] Fix lint errors using prettier --- .../CheckNameAvailability.json | 3 +- .../examples/AdministratorAdd.json | 28 +++++++-------- .../examples/AdministratorGet.json | 8 ++--- .../examples/AdministratorsListByServer.json | 34 +++++++++---------- 4 files changed, 36 insertions(+), 37 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index b7c6d50eb6bf..0fe70bea15be 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -148,6 +148,5 @@ "description": "An error response from the Batch service." } }, - "parameters": { - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json index 673c580b0d48..878bf559d94c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -14,24 +14,24 @@ "responses": { "200": { "body": { - "properties": { - "principalType": "User", - "principalName": "testuser1@microsoft.com", - "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", - "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + "properties": { + "principalType": "User", + "principalName": "testuser1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } }, "201": { "body": { - "properties": { - "principalType": "User", - "principalName": "testuser1@microsoft.com", - "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", - "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + "properties": { + "principalType": "User", + "principalName": "testuser1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } }, "202": {} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json index bb925a4eb13c..9385be6bc643 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json @@ -10,10 +10,10 @@ "200": { "body": { "properties": { - "principalType": "User", - "principalName": "testuer1@microsoft.com", - "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", - "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + "principalType": "User", + "principalName": "testuer1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" }, "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json index 2473b59dbae4..acecbde7e886 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorsListByServer.json @@ -10,26 +10,26 @@ "body": { "value": [ { - "properties": { - "principalType": "User", - "principalName": "testuer1@microsoft.com", - "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", - "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", - "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + "properties": { + "principalType": "User", + "principalName": "testuer1@microsoft.com", + "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" }, { - "properties": { - "principalType": "Group", - "principalName": "testgroup1@microsoft.com", - "objectId": "gggggggg-gggg-gggg-gggg-gggggggggggg", - "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/gggggggg-gggg-gggg-gggg-gggggggggggg", - "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" + "properties": { + "principalType": "Group", + "principalName": "testgroup1@microsoft.com", + "objectId": "gggggggg-gggg-gggg-gggg-gggggggggggg", + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/gggggggg-gggg-gggg-gggg-gggggggggggg", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } - ] + ] } } } From 639e7694f834c62dab222cb16a9a8a7ae77121c0 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 12 Aug 2022 15:29:07 -0700 Subject: [PATCH 09/82] Fix some automated review comments --- .../2022-03-08-preview/postgresql.json | 129 ++++++++++++++++++ .../postgresql/resource-manager/readme.md | 15 +- 2 files changed, 141 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index 382566f865d4..b2227ee1836d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -327,9 +327,130 @@ "nextLinkName": "nextLink" } } + }, + "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } } }, "definitions": { + "OperationDisplay": { + "type": "object", + "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": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "The localized display information for this particular operation or action." + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The intended executor of the operation.", + "enum": [ + "NotSpecified", + "user", + "system" + ], + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false, + "description": "Additional descriptions for the operation." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, "StorageMBCapability": { "type": "object", "properties": { @@ -1125,6 +1246,14 @@ "type": "string", "description": "The name of the maintenance window.", "x-ms-parameter-location": "method" + }, + "BackupNameParameter": { + "name": "backupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the backup.", + "x-ms-parameter-location": "method" } } } diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 8cf3d42db9bf..6323f76e8b98 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -40,13 +40,22 @@ tag: package-preview-2022-03 ``` -### Tag: package-preview-2022-03 +### Tag: package-flexibleserver-2022-03-preview -These settings apply only when `--tag=package-preview-2022-03` is specified on the command line. +These settings apply only when `--tag=package-flexibleserver-2022-03-preview` is specified on the command line. -```yaml $(tag) == 'package-preview-2022-03' +```yaml $(tag) == 'flexibleserver-2022-03-preview' input-file: + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json ``` From ee532cf063a0e7996522c5355e3d5a6af995b00d Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Mon, 15 Aug 2022 14:30:30 -0700 Subject: [PATCH 10/82] Fix lint diff errors --- .../2022-03-08-preview/Administrators.json | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index b4be02a0f491..bd75cb4a563e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -39,7 +39,7 @@ "tags": [ "Administrators" ], - "operationId": "Administrators_Add", + "operationId": "Administrators_Create", "x-ms-examples": { "Adds an Active DIrectory Administrator for the server": { "$ref": "./examples/AdministratorAdd.json" @@ -47,20 +47,20 @@ }, "description": "Creates a new server.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, + { + "$ref": "#/parameters/ServerNameParameter" + }, { "$ref": "#/parameters/ObjectIdParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -247,6 +247,10 @@ "Group", "ServicePrincipal" ], + "x-ms-enum": { + "name": "PrincipalType", + "modelAsString": true + }, "x-ms-mutability": [ "create", "update", @@ -285,6 +289,10 @@ "Group", "ServicePrincipal" ], + "x-ms-enum": { + "name": "PrincipalType", + "modelAsString": true + }, "x-ms-mutability": [ "create", "update", @@ -325,30 +333,28 @@ "type": "object", "properties": { "id": { + "readOnly": true, "type": "string", - "description": "The objectId of the Active Directory administrator.", - "x-ms-mutability": [ - "create", - "update", - "read" - ] + "description": "The objectId of the Active Directory administrator." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the AAD administrator" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the AAD administrator. E.g. \"ServicePrincipal\" or \"User\"" }, "properties": { "$ref": "#/definitions/AdministratorProperties", "x-ms-client-flatten": true, "description": "Properties of the active directory administrator." - }, - "type": { - "type": "string", - "description": "The objectId of the Active Directory administrator.", - "x-ms-mutability": [ - "create", - "update", - "read" - ] } }, - "description": "Represents a server." + "description": "Represents an Active Directory administrator.", + "x-ms-azure-resource": true }, "AdministratorListResult": { "type": "object", From 5b3f7df7fb4d9d015e360fc543104c7f61fde347 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 16 Aug 2022 10:02:14 -0700 Subject: [PATCH 11/82] Fix ARM Id annotations for postgres --- .../2022-01-20-preview/postgresql.json | 24 +++++++++++++++++++ .../2022-03-08-preview/postgresql.json | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json index 8cfc8aa7b4ae..1c5845149e3c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json @@ -1559,6 +1559,14 @@ }, "sourceServerResourceId": { "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + ] + }, "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", "x-ms-mutability": [ "create" @@ -1814,6 +1822,14 @@ }, "delegatedSubnetResourceId": { "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + }, "default": "", "description": "delegated subnet arm resource id.", "x-ms-mutability": [ @@ -1823,6 +1839,14 @@ }, "privateDnsZoneArmResourceId": { "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/privateDnsZones" + } + ] + }, "default": "", "description": "private dns zone arm resource id.", "x-ms-mutability": [ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index b2227ee1836d..a2e40c265111 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -841,6 +841,14 @@ }, "sourceServerResourceId": { "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + ] + }, "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", "x-ms-mutability": [ "create" @@ -1121,6 +1129,14 @@ }, "delegatedSubnetResourceId": { "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + }, "default": "", "description": "delegated subnet arm resource id.", "x-ms-mutability": [ @@ -1130,6 +1146,14 @@ }, "privateDnsZoneArmResourceId": { "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/privateDnsZones" + } + ] + }, "default": "", "description": "private dns zone arm resource id.", "x-ms-mutability": [ From 31a0d4a5f96158118ac303db32214ec4a3f70f8c Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 16 Aug 2022 10:20:28 -0700 Subject: [PATCH 12/82] Remove duplicate operation --- .../2022-03-08-preview/Operations.json | 189 ------------------ .../postgresql/resource-manager/readme.md | 1 - 2 files changed, 190 deletions(-) delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json deleted file mode 100644 index affe04caa94b..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json +++ /dev/null @@ -1,189 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "PostgreSQLServerManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", - "version": "2022-03-08-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": { - "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "OperationDisplay": { - "type": "object", - "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": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the operation being performed on this particular object." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "readOnly": true, - "description": "The localized display information for this particular operation or action." - }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" - }, - "origin": { - "type": "string", - "readOnly": true, - "description": "The intended executor of the operation.", - "enum": [ - "NotSpecified", - "user", - "system" - ], - "x-ms-enum": { - "name": "OperationOrigin", - "modelAsString": true - } - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "object" - }, - "readOnly": true, - "x-ms-client-flatten": false, - "description": "Additional descriptions for the operation." - } - }, - "description": "REST API operation definition." - }, - "OperationListResult": { - "description": "A list of resource provider operations.", - "type": "object", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", - "type": "string" - } - } - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "BackupNameParameter": { - "name": "backupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the backup.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 3e9070b5d590..40b5841a48ea 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -53,7 +53,6 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json From 45b85d54a2eeccde3279eade66e0cdfddd52dd5e Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 16 Aug 2022 10:43:29 -0700 Subject: [PATCH 13/82] Remove changes from existing preview version api --- .../2022-01-20-preview/postgresql.json | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json index 1c5845149e3c..8cfc8aa7b4ae 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json @@ -1559,14 +1559,6 @@ }, "sourceServerResourceId": { "type": "string", - "format": "arm-id", - "x-ms-arm-id-details": { - "allowedResources": [ - { - "type": "Microsoft.DBforPostgreSQL/flexibleServers" - } - ] - }, "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", "x-ms-mutability": [ "create" @@ -1822,14 +1814,6 @@ }, "delegatedSubnetResourceId": { "type": "string", - "format": "arm-id", - "x-ms-arm-id-details": { - "allowedResources": [ - { - "type": "Microsoft.Network/virtualNetworks/subnets" - } - ] - }, "default": "", "description": "delegated subnet arm resource id.", "x-ms-mutability": [ @@ -1839,14 +1823,6 @@ }, "privateDnsZoneArmResourceId": { "type": "string", - "format": "arm-id", - "x-ms-arm-id-details": { - "allowedResources": [ - { - "type": "Microsoft.Network/privateDnsZones" - } - ] - }, "default": "", "description": "private dns zone arm resource id.", "x-ms-mutability": [ From 532662331fff12f647720ba521fbe049df29b94b Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 16 Aug 2022 11:15:05 -0700 Subject: [PATCH 14/82] Use systemData for read only properties required for PUT and Patch operations --- .../2022-03-08-preview/Administrators.json | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index bd75cb4a563e..082211e691d1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -332,25 +332,14 @@ "ActiveDirectoryAdministrator": { "type": "object", "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The objectId of the Active Directory administrator." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the AAD administrator" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of the AAD administrator. E.g. \"ServicePrincipal\" or \"User\"" - }, "properties": { "$ref": "#/definitions/AdministratorProperties", "x-ms-client-flatten": true, "description": "Properties of the active directory administrator." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly" : true } }, "description": "Represents an Active Directory administrator.", From ee7ed903eca4f8b1dde1776dd6e8a31b3e7d3f9e Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 17 Aug 2022 11:31:01 -0700 Subject: [PATCH 15/82] Revert systemData changes --- .../preview/2022-03-08-preview/Administrators.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index 082211e691d1..e7148ea396d2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -337,9 +337,15 @@ "x-ms-client-flatten": true, "description": "Properties of the active directory administrator." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly" : true + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource ID for the administrator. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{resourceName}/administrators/{objectId}" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource. E.g. \"Microsoft.DBforPostgreSQL/flexibleServers/administrators\"" } }, "description": "Represents an Active Directory administrator.", From 29f4614b91d169a623d40091305cf36bb18e16dc Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 17 Aug 2022 11:31:32 -0700 Subject: [PATCH 16/82] Include changes for PasswordAuthEnabled --- .../examples/ServerCreateWithAadAuthEnabled.json | 1 + .../examples/ServerUpdateWithAadAuthEnabled.json | 1 + 2 files changed, 2 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json index 98d50e2a8ea2..7130f04091aa 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json @@ -107,6 +107,7 @@ "availabilityZone": "1", "authConfig": { "activeDirectoryAuthEnabled": true, + "passwordAuthEnabled": true, "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" }, "storage": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json index 69d2eb074b56..11cdbbf26555 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json @@ -42,6 +42,7 @@ "availabilityZone": "1", "authConfig": { "activeDirectoryAuthEnabled": true, + "passwordAuthEnabled": true, "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" }, "storage": { From 0e423e730fbbc336790adf5aa3614a53f9dbafad Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 17 Aug 2022 11:36:28 -0700 Subject: [PATCH 17/82] Remoe azure resource tag from ActiveDirectoryAdministrator object --- .../preview/2022-03-08-preview/Administrators.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index e7148ea396d2..dd4d1ec90b2f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -348,8 +348,7 @@ "description": "The type of the resource. E.g. \"Microsoft.DBforPostgreSQL/flexibleServers/administrators\"" } }, - "description": "Represents an Active Directory administrator.", - "x-ms-azure-resource": true + "description": "Represents an Active Directory administrator." }, "AdministratorListResult": { "type": "object", From 5db63a5c220837003cdbdf73534c600a7693fb31 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 17 Aug 2022 18:32:14 -0700 Subject: [PATCH 18/82] Fix the validation errors --- .../2022-03-08-preview/Administrators.json | 19 +++++++++++-------- .../examples/AdministratorAdd.json | 2 ++ .../examples/AdministratorGet.json | 1 + .../postgresql/resource-manager/readme.md | 7 ++++--- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index dd4d1ec90b2f..494fa0799546 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -337,17 +337,20 @@ "x-ms-client-flatten": true, "description": "Properties of the active directory administrator." }, - "id": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", "readOnly": true, - "type": "string", - "description": "Fully qualified resource ID for the administrator. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{resourceName}/administrators/{objectId}" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of the resource. E.g. \"Microsoft.DBforPostgreSQL/flexibleServers/administrators\"" + "description": "The system metadata relating to this resource." } }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], "description": "Represents an Active Directory administrator." }, "AdministratorListResult": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json index 878bf559d94c..26213043ce34 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -20,6 +20,7 @@ "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" }, "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "name": "testuser1@microsoft.com", "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } }, @@ -31,6 +32,7 @@ "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo" }, "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "name": "testuser1@microsoft.com", "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json index 9385be6bc643..a7a945712862 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorGet.json @@ -16,6 +16,7 @@ "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt" }, "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo", + "name": "testuser1@microsoft.com", "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } } diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 40b5841a48ea..4a705ad47b43 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -36,7 +36,7 @@ tag: package-flexibleserver-2021-06 ``` ``` yaml $(package-singleservers) -tag: package-preview-2022-03 +tag: package-2020-01-01 ``` @@ -44,7 +44,7 @@ tag: package-preview-2022-03 These settings apply only when `--tag=package-flexibleserver-2022-03-preview` is specified on the command line. -```yaml $(tag) == 'flexibleserver-2022-03-preview' +```yaml $(tag) == 'package-flexibleserver-2022-03-preview' input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -57,12 +57,13 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json ``` ### Tag: package-flexibleserver-2022-03-privatepreview These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview` is specified on the command line. -``` yaml $(tag) == 'flexibleserver-2022-03-privatepreview' +``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json - Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/Databases.json From a60d9ac5b12796c4e5402fd6d6aa81cdbb0e4b15 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 18 Aug 2022 16:27:16 -0700 Subject: [PATCH 19/82] Update swagger for CMK propertiesData encryption properties --- ...ServerCreateWithDataEncryptionEnabled.json | 181 ++++++++++++++++++ ...ServerUpdateWithDataEncryptionEnabled.json | 112 +++++++++++ .../2022-03-08-preview/postgresql.json | 94 +++++++++ 3 files changed, 387 insertions(+) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json new file mode 100644 index 000000000000..182cbfea4615 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json @@ -0,0 +1,181 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "sku": { + "tier": "GeneralPurpose", + "name": "Standard_D4s_v3" + }, + "identity": { + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {} + }, + "type": "UserAssigned" + }, + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "password", + "version": "12", + "availabilityZone": "1", + "createMode": "Create", + "dataEncryption": { + "type": "AzureKeyVault", + "primaryKeyURI": "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity" + }, + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled" + }, + "network": { + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant" + } + }, + "tags": { + "ElasticServer": "1" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "identity": { + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": { + "principalId": "0a4e0c6e-7751-4078-ae1f-a477306c11e9", + "clientId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "type": "UserAssigned" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": false + }, + "dataEncryption": { + "type": "AzureKeyVault", + "primaryKeyURI": "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity" + }, + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:08:06.7197478+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "identity": { + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": { + "principalId": "0a4e0c6e-7751-4078-ae1f-a477306c11e9", + "clientId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "type": "UserAssigned" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": false + }, + "dataEncryption": { + "type": "AzureKeyVault", + "primaryKeyURI": "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity" + }, + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:08:06.7197478+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json new file mode 100644 index 000000000000..af1112e7b9e6 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "TestGroup", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "sku": { + "tier": "GeneralPurpose", + "name": "Standard_D8s_v3" + }, + "identity": { + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {} + }, + "type": "UserAssigned" + }, + "properties": { + "administratorLoginPassword": "newpassword", + "createMode": "Update", + "dataEncryption": { + "type": "AzureKeyVault", + "primaryKeyURI": "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity" + }, + "storage": { + "storageSizeGB": 1024 + }, + "backup": { + "backupRetentionDays": 20 + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D8s_v3", + "tier": "GeneralPurpose" + }, + "identity": { + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": { + "principalId": "0a4e0c6e-7751-4078-ae1f-a477306c11e9", + "clientId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + }, + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity-1": { + "principalId": "90008082-e024-4cc3-8fcf-63bcdb9cf6b6", + "clientId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "type": "UserAssigned" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "authConfig": { + "activeDirectoryAuthEnabled": false + }, + "dataEncryption": { + "type": "AzureKeyVault", + "primaryKeyURI": "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity" + }, + "storage": { + "storageSizeGB": 1024 + }, + "backup": { + "backupRetentionDays": 20, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index a2e40c265111..9b204aa3442e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -112,6 +112,9 @@ "ServerUpdateWithAadAuthEnabled": { "$ref": "./examples/ServerUpdateWithAadAuthEnabled.json" }, + "ServerUpdateWithDataEncryptionEnabled": { + "$ref": "./examples/ServerUpdateWithDataEncryptionEnabled.json" + }, "ServerUpdateWithCustomerMaintenanceWindow": { "$ref": "./examples/ServerUpdateWithCustomerMaintenanceWindow.json" } @@ -811,6 +814,11 @@ "default": null, "description": "AuthConfig properties of a server." }, + "dataEncryption": { + "$ref": "#/definitions/DataEncryption", + "default": null, + "description": "Data encryption properties of a server." + }, "backup": { "$ref": "#/definitions/Backup", "default": null, @@ -899,6 +907,10 @@ "$ref": "#/definitions/Sku", "description": "The SKU (pricing tier) of the server." }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "Describes the identity of the application." + }, "properties": { "$ref": "#/definitions/ServerProperties", "x-ms-client-flatten": true, @@ -958,6 +970,11 @@ "default": null, "description": "AuthConfig properties of a server." }, + "dataEncryption": { + "$ref": "#/definitions/DataEncryption", + "default": null, + "description": "Data encryption properties of a server." + }, "createMode": { "type": "string", "description": "The mode to update a new PostgreSQL server.", @@ -986,6 +1003,10 @@ "$ref": "#/definitions/Sku", "description": "The SKU (pricing tier) of the server." }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "Describes the identity of the application." + }, "properties": { "$ref": "#/definitions/ServerPropertiesForUpdate", "x-ms-client-flatten": true, @@ -1076,6 +1097,79 @@ }, "description": "Authentication configuration properties of a server" }, + "DataEncryption": { + "type": "object", + "properties": { + "primaryKeyURI": { + "type": "string", + "description": "URI for the key for data encryption for primary server." + }, + "primaryUserAssignedIdentityId": { + "type": "string", + "description": "Resource Id for the User assigned identity to be used for data enryption for primary server." + }, + "type": { + "type": "string", + "description": "Data encryption type to depict if it is System assiged vs Azure Key vault.", + "enum": [ + "SystemAssigned", + "AzureKeyVault" + ], + "x-ms-enum": { + "name": "ArmServerKeyType", + "modelAsString": true + } + } + }, + "description": "Data encryption properties of a server" + }, + "UserIdentity": { + "description": "Describes a single user-assigned identity associated with the application.", + "type": "object", + "properties": { + "principalId": { + "type": "string", + "description": "the object identifier of the Service Principal which this identity represents." + }, + "clientId": { + "type": "string", + "description": "the client identifier of the Service Principal which this identity represents." + } + } + }, + "UserAssignedIdentityMap": { + "type": "object", + "description": "Defines a map that contains user assigned identities.", + "additionalProperties": { + "$ref": "#/definitions/UserIdentity" + } + }, + "Identity": { + "type": "object", + "properties": { + "userAssignedIdentities": { + "$ref": "#/definitions/UserAssignedIdentityMap", + "description": "represents user assigned identities map." + }, + "type": { + "type": "string", + "description": "the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + } + }, + "required": [ + "type" + ], + "description": "Information describing the identities associated with this application." + }, "Backup": { "type": "object", "properties": { From 8a8c10854f21c3c295367b36248886294d1108c6 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 18 Aug 2022 18:00:10 -0700 Subject: [PATCH 20/82] Fix spell check and reference errors --- .../preview/2022-03-08-preview/postgresql.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index 9b204aa3442e..3f188c218960 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -47,6 +47,9 @@ "Create a new server with active directory authentication enabled": { "$ref": "./examples/ServerCreateWithAadAuthEnabled.json" }, + "ServerCreateWithDataEncryptionEnabled": { + "$ref": "./examples/ServerCreateWithDataEncryptionEnabled.json" + }, "Create a database as a point in time restore": { "$ref": "./examples/ServerCreatePointInTimeRestore.json" } @@ -1106,11 +1109,11 @@ }, "primaryUserAssignedIdentityId": { "type": "string", - "description": "Resource Id for the User assigned identity to be used for data enryption for primary server." + "description": "Resource Id for the User assigned identity to be used for data encryption for primary server." }, "type": { "type": "string", - "description": "Data encryption type to depict if it is System assiged vs Azure Key vault.", + "description": "Data encryption type to depict if it is System assigned vs Azure Key vault.", "enum": [ "SystemAssigned", "AzureKeyVault" From 5d8e659685dc34c74176a61db6652340bfb42698 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 18 Aug 2022 18:38:59 -0700 Subject: [PATCH 21/82] Update swagger for GeoRestore --- .../examples/ServerCreateGeoRestore.json | 107 ++++++++++++++++++ .../2022-03-08-preview/postgresql.json | 10 +- 2 files changed, 114 insertions(+), 3 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json new file mode 100644 index 000000000000..11c904c787b6 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "serverName": "pgtestsvc5geo", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "eastus", + "properties": { + "createMode": "GeoRestore", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername", + "pointInTimeUTC": "2021-06-27T00:04:59.4078005+00:00" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc5geo.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "2", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled", + "earliestRestoreDate": "2021-05-27T00:28:17.7279547+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "eastus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5geo", + "name": "pgtestsvc5geo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc5geo.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "2", + "storage": { + "storageSizeGB": 512 + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Enabled", + "earliestRestoreDate": "2021-05-27T00:28:17.7279547+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "eastus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5geo", + "name": "pgtestsvc5geo", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index 3f188c218960..7f54d8b8fd6a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -52,6 +52,9 @@ }, "Create a database as a point in time restore": { "$ref": "./examples/ServerCreatePointInTimeRestore.json" + }, + "Create a database as a geo-restore in geo-paired location": { + "$ref": "./examples/ServerCreateGeoRestore.json" } }, "description": "Creates a new server.", @@ -860,7 +863,7 @@ } ] }, - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", + "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.", "x-ms-mutability": [ "create" ] @@ -868,7 +871,7 @@ "pointInTimeUTC": { "type": "string", "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.", "x-ms-mutability": [ "create" ] @@ -889,7 +892,8 @@ "Default", "Create", "Update", - "PointInTimeRestore" + "PointInTimeRestore", + "GeoRestore" ], "x-ms-enum": { "name": "CreateMode", From 0982aff8e48480ef1416dc43a583f3ae75b9086f Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 18 Aug 2022 19:12:12 -0700 Subject: [PATCH 22/82] Update swagger for Replica --- .../examples/ServerCreate.json | 6 + .../examples/ServerCreateGeoRestore.json | 12 ++ .../ServerCreatePointInTimeRestore.json | 12 ++ .../examples/ServerCreateReplica.json | 123 ++++++++++++++++++ .../examples/ServerUpdate.json | 3 + .../ServerUpdateWithAadAuthEnabled.json | 3 + ...erUpdateWithCustomerMaintenanceWindow.json | 3 + .../2022-03-08-preview/postgresql.json | 34 ++++- 8 files changed, 194 insertions(+), 2 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json index 3a7fc1a65766..4a8d95ed796f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json @@ -50,6 +50,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "dataEncryption": { + "type": "SystemManaged" + }, "authConfig": { "activeDirectoryAuthEnabled": false }, @@ -100,6 +103,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "dataEncryption": { + "type": "SystemManaged" + }, "authConfig": { "activeDirectoryAuthEnabled": false }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json index 11c904c787b6..5f69818d8a81 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json @@ -30,6 +30,12 @@ "storage": { "storageSizeGB": 512 }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "backup": { "backupRetentionDays": 7, "geoRedundantBackup": "Enabled", @@ -74,6 +80,12 @@ "storage": { "storageSizeGB": 512 }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "backup": { "backupRetentionDays": 7, "geoRedundantBackup": "Enabled", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json index b312d8a885ab..43b0ed5251e1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json @@ -30,6 +30,12 @@ "storage": { "storageSizeGB": 512 }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "backup": { "backupRetentionDays": 7, "geoRedundantBackup": "Disabled", @@ -74,6 +80,12 @@ "storage": { "storageSizeGB": 512 }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "backup": { "backupRetentionDays": 7, "geoRedundantBackup": "Disabled", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json new file mode 100644 index 000000000000..68295044d3e6 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "serverName": "pgtestsvc5rep", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "properties": { + "createMode": "Replica", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername", + "pointInTimeUTC": "2021-06-27T00:04:59.4078005+00:00" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc5rep.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "2", + "storage": { + "storageSizeGB": 512 + }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-27T00:28:17.7279547+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "AsyncReplica", + "replicaCapacity": 0 + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep", + "name": "pgtestsvc5rep", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "pgtestsvc5rep.postgres.database.azure.com", + "version": "12", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "2", + "storage": { + "storageSizeGB": 512 + }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-27T00:28:17.7279547+00:00" + }, + "network": { + "publicNetworkAccess": "Enabled" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "AsyncReplica", + "replicaCapacity": 0 + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep", + "name": "pgtestsvc5rep", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json index 2e8034792f9e..8b99ac58002b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -36,6 +36,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "dataEncryption": { + "type": "SystemManaged" + }, "authConfig": { "activeDirectoryAuthEnabled": false }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json index 11cdbbf26555..07463e4c0d29 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json @@ -40,6 +40,9 @@ "administratorLogin": "cloudsa", "state": "Ready", "availabilityZone": "1", + "dataEncryption": { + "type": "SystemManaged" + }, "authConfig": { "activeDirectoryAuthEnabled": true, "passwordAuthEnabled": true, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 95c6eb45ddd2..b4260bae8604 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -34,6 +34,9 @@ "storage": { "storageSizeGB": 512 }, + "dataEncryption": { + "type": "SystemManaged" + }, "backup": { "backupRetentionDays": 7, "geoRedundantBackup": "Disabled", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index 7f54d8b8fd6a..64bbc1aec5ec 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -55,6 +55,9 @@ }, "Create a database as a geo-restore in geo-paired location": { "$ref": "./examples/ServerCreateGeoRestore.json" + }, + "ServerCreateReplica": { + "$ref": "./examples/ServerCreateReplica.json" } }, "description": "Creates a new server.", @@ -863,7 +866,7 @@ } ] }, - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.", + "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'.", "x-ms-mutability": [ "create" ] @@ -885,6 +888,15 @@ "read" ] }, + "replicationRole": { + "$ref": "#/definitions/ReplicationRole", + "description": "ReplicationRole" + }, + "replicaCapacity": { + "type": "integer", + "format": "int32", + "description": "Replicas allowed for a server." + }, "createMode": { "type": "string", "description": "The mode to create a new PostgreSQL server.", @@ -893,7 +905,8 @@ "Create", "Update", "PointInTimeRestore", - "GeoRestore" + "GeoRestore", + "Replica" ], "x-ms-enum": { "name": "CreateMode", @@ -1177,6 +1190,23 @@ ], "description": "Information describing the identities associated with this application." }, + "ReplicationRole": { + "type": "string", + "description": "Used to indicate role of the server in replication set.", + "enum": [ + "Primary", + "Secondary", + "WalReplica", + "SyncReplica", + "AsyncReplica", + "GeoSyncReplica", + "GeoAsyncReplica" + ], + "x-ms-enum": { + "name": "ReplicationRole", + "modelAsString": true + } + }, "Backup": { "type": "object", "properties": { From 8225a34070cdf8fa186d8baa11958a28d573281f Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 18 Aug 2022 19:23:28 -0700 Subject: [PATCH 23/82] Update swagger for MVU --- .../ServerCreateWithAadAuthEnabled.json | 6 ++ ...erUpdateWithCustomerMaintenanceWindow.json | 3 + .../ServerUpdateWithMajorVersionUpgrade.json | 76 +++++++++++++++++++ .../2022-03-08-preview/postgresql.json | 7 ++ 4 files changed, 92 insertions(+) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json index 7130f04091aa..2722f742a3cb 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json @@ -20,6 +20,9 @@ "activeDirectoryAuthEnabled": true, "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" }, + "dataEncryption": { + "type": "SystemManaged" + }, "storage": { "storageSizeGB": 512 }, @@ -58,6 +61,9 @@ "activeDirectoryAuthEnabled": true, "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" }, + "dataEncryption": { + "type": "SystemManaged" + }, "storage": { "storageSizeGB": 512 }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index b4260bae8604..55e266b5645a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -37,6 +37,9 @@ "dataEncryption": { "type": "SystemManaged" }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, "backup": { "backupRetentionDays": 7, "geoRedundantBackup": "Disabled", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json new file mode 100644 index 000000000000..af4cddd72416 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "serverName": "pgtestsvc4", + "resourceGroupName": "testrg", + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "westus", + "properties": { + "createMode": "Update", + "version": "14" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D4s_v3", + "tier": "GeneralPurpose" + }, + "properties": { + "fullyQualifiedDomainName": "c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com", + "version": "14", + "minorVersion": "6", + "administratorLogin": "cloudsa", + "state": "Ready", + "availabilityZone": "1", + "storage": { + "storageSizeGB": 512 + }, + "dataEncryption": { + "type": "SystemManaged" + }, + "authConfig": { + "activeDirectoryAuthEnabled": false + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-05-26T01:16:58.3723361+00:00" + }, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet", + "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "2" + }, + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + } + }, + "location": "westus", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4", + "name": "pgtestsvc4", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json index 64bbc1aec5ec..1c31fd0adbd3 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json @@ -126,6 +126,9 @@ }, "ServerUpdateWithCustomerMaintenanceWindow": { "$ref": "./examples/ServerUpdateWithCustomerMaintenanceWindow.json" + }, + "ServerUpdateWithMajorVersionUpgrade": { + "$ref": "./examples/ServerUpdateWithMajorVersionUpgrade.json" } }, "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", @@ -961,6 +964,10 @@ "update" ] }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "PostgreSQL Server version." + }, "storage": { "$ref": "#/definitions/Storage", "default": null, From 6a38235af5d52958b9901ba14f3883ef6aa616b8 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 18 Aug 2022 19:28:30 -0700 Subject: [PATCH 24/82] Fix prettier errors --- .../preview/2022-03-08-preview/examples/ServerCreate.json | 4 ++-- .../examples/ServerCreateGeoRestore.json | 8 ++++---- .../examples/ServerCreatePointInTimeRestore.json | 8 ++++---- .../2022-03-08-preview/examples/ServerCreateReplica.json | 8 ++++---- .../examples/ServerCreateWithAadAuthEnabled.json | 4 ++-- .../preview/2022-03-08-preview/examples/ServerUpdate.json | 2 +- .../examples/ServerUpdateWithAadAuthEnabled.json | 2 +- .../ServerUpdateWithCustomerMaintenanceWindow.json | 2 +- .../examples/ServerUpdateWithMajorVersionUpgrade.json | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json index 4a8d95ed796f..93d9de16ee0e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json @@ -51,7 +51,7 @@ "state": "Ready", "availabilityZone": "1", "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { "activeDirectoryAuthEnabled": false @@ -104,7 +104,7 @@ "state": "Ready", "availabilityZone": "1", "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { "activeDirectoryAuthEnabled": false diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json index 5f69818d8a81..d3b2f2586fbf 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json @@ -31,10 +31,10 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { - "activeDirectoryAuthEnabled": false + "activeDirectoryAuthEnabled": false }, "backup": { "backupRetentionDays": 7, @@ -81,10 +81,10 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { - "activeDirectoryAuthEnabled": false + "activeDirectoryAuthEnabled": false }, "backup": { "backupRetentionDays": 7, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json index 43b0ed5251e1..56acd72d4b49 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json @@ -31,10 +31,10 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { - "activeDirectoryAuthEnabled": false + "activeDirectoryAuthEnabled": false }, "backup": { "backupRetentionDays": 7, @@ -81,10 +81,10 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { - "activeDirectoryAuthEnabled": false + "activeDirectoryAuthEnabled": false }, "backup": { "backupRetentionDays": 7, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json index 68295044d3e6..a071bd233c64 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json @@ -31,10 +31,10 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { - "activeDirectoryAuthEnabled": false + "activeDirectoryAuthEnabled": false }, "backup": { "backupRetentionDays": 7, @@ -83,10 +83,10 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { - "activeDirectoryAuthEnabled": false + "activeDirectoryAuthEnabled": false }, "backup": { "backupRetentionDays": 7, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json index 2722f742a3cb..1fe1a7df01e6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json @@ -21,7 +21,7 @@ "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "storage": { "storageSizeGB": 512 @@ -62,7 +62,7 @@ "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt" }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "storage": { "storageSizeGB": 512 diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json index 8b99ac58002b..b36b81162876 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -37,7 +37,7 @@ "state": "Ready", "availabilityZone": "1", "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { "activeDirectoryAuthEnabled": false diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json index 07463e4c0d29..e6295d295376 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json @@ -41,7 +41,7 @@ "state": "Ready", "availabilityZone": "1", "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { "activeDirectoryAuthEnabled": true, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 55e266b5645a..df37acb25977 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -35,7 +35,7 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { "activeDirectoryAuthEnabled": false diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json index af4cddd72416..b41837664817 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json @@ -30,7 +30,7 @@ "storageSizeGB": 512 }, "dataEncryption": { - "type": "SystemManaged" + "type": "SystemManaged" }, "authConfig": { "activeDirectoryAuthEnabled": false From 3e893689727ac50e0c7c14410878055a8186d499 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 2 Sep 2022 15:27:36 -0700 Subject: [PATCH 25/82] Update readme and rename postgresql.json to a different file --- .../{postgresql.json => FlexibleServers.json} | 404 ------------------ .../2022-03-08-preview/Operations.json | 173 ++++++++ .../examples/AdministratorAdd.json | 8 +- .../postgresql/resource-manager/readme.go.md | 11 + .../postgresql/resource-manager/readme.md | 7 +- .../resource-manager/readme.typescript.md | 11 + 6 files changed, 204 insertions(+), 410 deletions(-) rename specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/{postgresql.json => FlexibleServers.json} (72%) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json similarity index 72% rename from specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json rename to specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 1c31fd0adbd3..935da35553ef 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -342,413 +342,9 @@ "nextLinkName": "nextLink" } } - }, - "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } } }, "definitions": { - "OperationDisplay": { - "type": "object", - "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": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the operation being performed on this particular object." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "readOnly": true, - "description": "The localized display information for this particular operation or action." - }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" - }, - "origin": { - "type": "string", - "readOnly": true, - "description": "The intended executor of the operation.", - "enum": [ - "NotSpecified", - "user", - "system" - ], - "x-ms-enum": { - "name": "OperationOrigin", - "modelAsString": true - } - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "object" - }, - "readOnly": true, - "x-ms-client-flatten": false, - "description": "Additional descriptions for the operation." - } - }, - "description": "REST API operation definition." - }, - "OperationListResult": { - "description": "A list of resource provider operations.", - "type": "object", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", - "type": "string" - } - } - }, - "StorageMBCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "storage MB name", - "readOnly": true - }, - "supportedIops": { - "type": "integer", - "format": "int64", - "description": "supported IOPS", - "readOnly": true - }, - "storageSizeMB": { - "type": "integer", - "format": "int64", - "description": "storage size in MB", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "storage size in MB capability" - }, - "VcoreCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "vCore name", - "readOnly": true - }, - "vCores": { - "type": "integer", - "format": "int64", - "description": "supported vCores", - "readOnly": true - }, - "supportedIops": { - "type": "integer", - "format": "int64", - "description": "supported IOPS", - "readOnly": true - }, - "supportedMemoryPerVcoreMB": { - "type": "integer", - "format": "int64", - "description": "supported memory per vCore in MB", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Vcores capability" - }, - "ServerVersionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "server version", - "readOnly": true - }, - "supportedVcores": { - "type": "array", - "items": { - "$ref": "#/definitions/VcoreCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Server version capabilities." - }, - "StorageEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "storage edition name", - "readOnly": true - }, - "supportedStorageMB": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageMBCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "storage edition capability" - }, - "NodeTypeCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "note type name", - "readOnly": true - }, - "nodeType": { - "type": "string", - "description": "note type", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "node type capability" - }, - "FlexibleServerEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Server edition name", - "readOnly": true - }, - "supportedStorageEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageEditionCapability" - }, - "description": "The list of editions supported by this server edition.", - "readOnly": true, - "x-ms-identifiers": [] - }, - "supportedServerVersions": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerVersionCapability" - }, - "x-ms-identifiers": [], - "description": "The list of server versions supported by this server edition.", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Flexible server edition capabilities." - }, - "HyperscaleNodeEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Server edition name", - "readOnly": true - }, - "supportedStorageEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageEditionCapability" - }, - "x-ms-identifiers": [], - "description": "The list of editions supported by this server edition.", - "readOnly": true - }, - "supportedServerVersions": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerVersionCapability" - }, - "x-ms-identifiers": [], - "description": "The list of server versions supported by this server edition.", - "readOnly": true - }, - "supportedNodeTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/NodeTypeCapability" - }, - "x-ms-identifiers": [], - "description": "The list of Node Types supported by this server edition.", - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Hyperscale node edition capabilities." - }, - "CapabilityProperties": { - "type": "object", - "properties": { - "zone": { - "type": "string", - "description": "zone name", - "readOnly": true - }, - "supportedHAMode": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported high availability mode", - "readOnly": true - }, - "geoBackupSupported": { - "type": "boolean", - "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", - "readOnly": true - }, - "zoneRedundantHaSupported": { - "type": "boolean", - "description": "A value indicating whether a new server in this region can support multi zone HA.", - "readOnly": true - }, - "zoneRedundantHaAndGeoBackupSupported": { - "type": "boolean", - "description": "A value indicating whether a new server in this region can have geo-backups to paired region.", - "readOnly": true - }, - "supportedFlexibleServerEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/FlexibleServerEditionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "supportedHyperscaleNodeEditions": { - "type": "array", - "items": { - "$ref": "#/definitions/HyperscaleNodeEditionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "status": { - "type": "string", - "description": "The status", - "readOnly": true - } - }, - "description": "Location capabilities." - }, - "CapabilitiesListResult": { - "type": "object", - "properties": { - "value": { - "description": "A list of supported capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/CapabilityProperties" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - }, - "description": "location capability" - }, "ServerVersion": { "type": "string", "description": "The version of a server.", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json new file mode 100644 index 000000000000..fa354544a33e --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json @@ -0,0 +1,173 @@ +{ + "swagger": "2.0", + "info": { + "title": "PostgreSQLServerManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "version": "2022-03-08-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": { + "/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": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "OperationDisplay": { + "type": "object", + "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": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "The localized display information for this particular operation or action." + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The intended executor of the operation.", + "enum": [ + "NotSpecified", + "user", + "system" + ], + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false, + "description": "Additional descriptions for the operation." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "CloudError": { + "x-ms-external": true, + "type": "object", + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json index 26213043ce34..7c840b16418f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -6,9 +6,11 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "objectId": "oooooooo-oooo-oooo-oooo-oooooooooooo", "parameters": { - "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt", - "principalType": "User", - "principalName": "testuser1@microsoft.com" + "properties": { + "tenantId": "tttttttt-tttt-tttt-tttt-tttttttttttt", + "principalType": "User", + "principalName": "testuser1@microsoft.com" + } } }, "responses": { diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md index feb1a507e359..c88974f47781 100644 --- a/specification/postgresql/resource-manager/readme.go.md +++ b/specification/postgresql/resource-manager/readme.go.md @@ -37,6 +37,17 @@ batch: - tag: package-2017-12-01 ``` +### Tag: package-flexibleserver-2022-03-preview and go + +These settings apply only when `--tag=package-flexibleserver-2022-03-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-flexibleserver-2022-03-preview' && $(go) +rpname: postgresql +namespace: postgresqlflexibleservers +output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-preview/$(namespace) +``` + ### Tag: package-flexibleserver-2022-03-privatepreview and go These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --go` is specified on the command line. diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 4a705ad47b43..5d6d03990045 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -53,10 +53,11 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/postgresql.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json ``` ### Tag: package-flexibleserver-2022-03-privatepreview diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 663370914219..32c57588558c 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -9,6 +9,17 @@ typescript: generate-metadata: true ``` +### Tag: package-flexibleserver-2022-03-preview and TypeScript + +These settings apply only when `--tag=package-flexibleserver-2022-03-preview --typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(tag) == 'package-flexibleserver-2022-03-preview' && $(typescript) +title: PostgreSQLManagementFlexibleServerClient +package-name: "@azure/arm-postgresql-flexible" +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexible/" +``` + ### Tag: package-flexibleserver-2022-03-privatepreview and TypeScript These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --typescript` is specified on the command line. From 4899680c9cfb6b4e4531f9f991c5e4bdcc24a1f0 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 2 Sep 2022 15:42:33 -0700 Subject: [PATCH 26/82] Fix validation errors --- .../preview/2022-03-08-preview/Administrators.json | 13 ++++++++++++- .../preview/2022-03-08-preview/Operations.json | 3 +-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index 494fa0799546..2070bbeff329 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -67,7 +67,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AdministratorPropertiesForAdd" + "$ref": "#/definitions/ActiveDirectoryAdministratorAdd" }, "description": "The required parameters for adding an active directory administrator for a server." } @@ -235,6 +235,17 @@ } }, "definitions": { + "ActiveDirectoryAdministratorAdd": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdministratorPropertiesForAdd", + "x-ms-client-flatten": true, + "description": "Properties of the active directory administrator." + } + }, + "description": "Represents an Active Directory administrator." + }, "AdministratorPropertiesForAdd": { "type": "object", "properties": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json index fa354544a33e..d89111951998 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json @@ -168,6 +168,5 @@ "description": "An error response from the Batch service." } }, - "parameters": { - } + "parameters": {} } From fb7b2b0b1b4bd4e1233c8822100dfa26f0a735dd Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 2 Sep 2022 15:49:29 -0700 Subject: [PATCH 27/82] Remove private preview version for 2022-03-08 from readme.md --- .../postgresql/resource-manager/readme.go.md | 11 ----------- specification/postgresql/resource-manager/readme.md | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md index c88974f47781..4fc6ead6004d 100644 --- a/specification/postgresql/resource-manager/readme.go.md +++ b/specification/postgresql/resource-manager/readme.go.md @@ -48,17 +48,6 @@ namespace: postgresqlflexibleservers output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-preview/$(namespace) ``` -### Tag: package-flexibleserver-2022-03-privatepreview and go - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(go) -rpname: postgresql -namespace: postgresqlflexibleservers -output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-privatepreview/$(namespace) -``` - ### Tag: package-flexibleserver-2021-06 and go diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 5d6d03990045..63c7aa7a74af 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -60,17 +60,6 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json ``` -### Tag: package-flexibleserver-2022-03-privatepreview - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview` is specified on the command line. - -``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' -input-file: -- Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json -- Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/Databases.json -- Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/PrivateDnsZone.json -- Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json -``` ### Tag: package-flexibleserver-2022-01-preview From ef4e8bc90aae5855402ac971791fb936ad60852c Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Wed, 7 Sep 2022 19:01:11 -0700 Subject: [PATCH 28/82] Fix linter issue and add fast provisioning properties --- .../2022-03-08-preview/CachedServerName.json | 146 ++++++++++++++++++ .../2022-03-08-preview/Capabilities.json | 34 ++++ .../2022-03-08-preview/FlexibleServers.json | 2 +- .../examples/CachedServerName.json | 25 +++ .../postgresql/resource-manager/readme.go.md | 10 ++ .../postgresql/resource-manager/readme.md | 14 +- .../resource-manager/readme.python.md | 22 ++- 7 files changed, 250 insertions(+), 3 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json new file mode 100644 index 000000000000..968287b0e418 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json @@ -0,0 +1,146 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-08-preview", + "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, security alert policies, log files and configurations with new business model." + }, + "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/locations/{locationName}/getCachedServerName": { + "post": { + "tags": [ + "GetCachedServerName" + ], + "operationId": "GetCachedServerName_Execute", + "x-ms-examples": { + "GetCachedServerName": { + "$ref": "./examples/CachedServerName.json" + } + }, + "description": "Get available cached server name for fast provisioning", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "cachedServerNameRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CachedServerNameRequest" + }, + "description": "The required parameters for get cached name available for fast provisioning." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CachedServerName" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "CachedServerNameRequest": { + "type": "object", + "required": [ + "version", + "storage", + "sku" + ], + "properties": { + "version": { + "$ref": "FlexibleServers.json#/definitions/ServerVersion", + "description": "PostgreSQL Server version." + }, + "storage": { + "$ref": "FlexibleServers.json#/definitions/Storage", + "default": null, + "description": "Storage properties of a server." + }, + "sku": { + "$ref": "FlexibleServers.json#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + } + }, + "description": "Request from client to get available cached server name" + }, + "CachedServerName": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of available cached server", + "readOnly": true + } + }, + "description": "Represents a resource name of a cached server" + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 0858e01c6d90..c73c130d8fd3 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -209,6 +209,27 @@ }, "description": "node type capability" }, + "FastProvisioningEditionCapability": { + "type": "object", + "properties": { + "supportedSku": { + "type": "string", + "description": "Fast provisioning supported sku name", + "readOnly": true + }, + "supportedStorageGb": { + "type": "integer", + "format": "int64", + "description": "Fast provisioning supported storage in Gb", + "readOnly": true + }, + "supportedServerVersions": { + "type": "string", + "description": "Fast provisioning supported version", + "readOnly": true + } + } + }, "FlexibleServerEditionCapability": { "type": "object", "properties": { @@ -333,6 +354,19 @@ "x-ms-identifiers": [], "readOnly": true }, + "fastProvisioningSupported": { + "type": "boolean", + "description": "A value indicating whether fast provisioning is supported in this region.", + "readOnly": true + }, + "supportedFastProvisioningEditions": { + "type": "array", + "items": { + "$ref": "#/definitions/FastProvisioningEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, "status": { "type": "string", "description": "The status", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 935da35553ef..a2b4e7113bed 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -489,7 +489,7 @@ }, "replicationRole": { "$ref": "#/definitions/ReplicationRole", - "description": "ReplicationRole" + "description": "Replication role of the server" }, "replicaCapacity": { "type": "integer", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json new file mode 100644 index 000000000000..a39a49869e76 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "testrg", + "locationName": "WestUS", + "cachedServerNameRequest": { + "version": "12", + "storage": { + "storageSizeGB": 32 + }, + "sku": { + "tier": "Burstable", + "name": "Standard_B1ms" + } + } + }, + "responses": { + "200": { + "body": { + "name": "servername" + } + } + } +} diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md index 4fc6ead6004d..6391915531ad 100644 --- a/specification/postgresql/resource-manager/readme.go.md +++ b/specification/postgresql/resource-manager/readme.go.md @@ -48,6 +48,16 @@ namespace: postgresqlflexibleservers output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-preview/$(namespace) ``` +### Tag: package-flexibleserver-2022-03-privatepreview and go + +These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(go) +rpname: postgresql +namespace: postgresqlflexibleservers +output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-privatepreview/$(namespace) +``` ### Tag: package-flexibleserver-2021-06 and go diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 63c7aa7a74af..0dd9fdcf0367 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -58,7 +58,19 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json +``` + +### Tag: package-flexibleserver-2022-03-privatepreview + +These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview` is specified on the command line. + +``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' +input-file: +- Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json +- Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/Databases.json +- Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/PrivateDnsZone.json +- Microsoft.DBforPostgreSQL/preview/2022-01-20-preview/postgresql.json ``` ### Tag: package-flexibleserver-2022-01-preview diff --git a/specification/postgresql/resource-manager/readme.python.md b/specification/postgresql/resource-manager/readme.python.md index 3e0d4c40ed40..6e5d9bea2cd3 100644 --- a/specification/postgresql/resource-manager/readme.python.md +++ b/specification/postgresql/resource-manager/readme.python.md @@ -18,10 +18,30 @@ Generate all API versions currently shipped for this package ```yaml $(python) clear-output-folder: true batch: - - tag: package-flexibleserver-2022-01-preview + - tag: package-flexibleserver-2022-03-preview - tag: package-2020-01-01 ``` +### Tag: package-flexibleserver-2022-03-preview and python + +These settings apply only when `--tag=package-flexibleserver-2022-03-preview --python` is specified on the command line. +Please also specify `--python-sdk-folder=`. + +``` yaml $(tag) == 'package-flexibleserver-2022-03-preview' && $(python) +namespace: azure.mgmt.rdbms.postgresql_flexibleservers +output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers +``` + +### Tag: package-flexibleserver-2022-03-privatepreview and python + +These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --python` is specified on the command line. +Please also specify `--python-sdk-folder=`. + +``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(python) +namespace: azure.mgmt.rdbms.postgresql_flexibleservers +output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers +``` + ### Tag: package-flexibleserver-2022-01-preview and python From c0d5a395d2d2538631d01395069a7c8b75ee7623 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:26:13 -0700 Subject: [PATCH 29/82] Fixed review comments for Backups and CheckNameAvailability --- .../preview/2022-03-08-preview/Backups.json | 2 +- .../CheckNameAvailability.json | 59 ++++++++++++++++++- .../2022-03-08-preview/VirtualNetwork.json | 3 +- .../CheckNameAvailabilityLocationBased.json | 21 +++++++ 4 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailabilityLocationBased.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json index a62654f96103..477d1d84f122 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -45,7 +45,7 @@ "$ref": "./examples/BackupGet.json" } }, - "description": "List all the backups for a given server.", + "description": "Get specific backup for a given server.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 0fe70bea15be..ee387cf02970 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -78,6 +78,54 @@ } } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "NameAvailability": { + "$ref": "./examples/CheckNameAvailabilityLocationBased.json" + } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } } }, "definitions": { @@ -148,5 +196,14 @@ "description": "An error response from the Batch service." } }, - "parameters": {} + "parameters": { + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index ff43f826f1e0..08e9100d6546 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -102,8 +102,7 @@ "items": { "$ref": "#/definitions/DelegatedSubnetUsage" }, - "readOnly": true, - "x-ms-identifiers": [] + "readOnly": true }, "location": { "type": "string", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailabilityLocationBased.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailabilityLocationBased.json new file mode 100644 index 000000000000..3e82bc94ac56 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CheckNameAvailabilityLocationBased.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-03-08-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "westus", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/flexibleServers" + } + } + } +} From 97f06cd72191d31740b47a352530c3f41e88a706 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:34:20 -0700 Subject: [PATCH 30/82] Uodated duplicate Id for check name availability and undo the changes to remove empty id identifier --- .../preview/2022-03-08-preview/CheckNameAvailability.json | 2 +- .../preview/2022-03-08-preview/VirtualNetwork.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index ee387cf02970..45568e51d47e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -84,7 +84,7 @@ "tags": [ "CheckNameAvailability" ], - "operationId": "CheckNameAvailability_Execute", + "operationId": "CheckNameAvailabilityLocationBased_Execute", "x-ms-examples": { "NameAvailability": { "$ref": "./examples/CheckNameAvailabilityLocationBased.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index 08e9100d6546..ff43f826f1e0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -102,7 +102,8 @@ "items": { "$ref": "#/definitions/DelegatedSubnetUsage" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [] }, "location": { "type": "string", From 08d34e62099444bb8391591b01e8b1c819772de2 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:32:22 -0700 Subject: [PATCH 31/82] Add 2022-03 preview and private preview versions for readme.go.md --- specification/postgresql/resource-manager/readme.go.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md index 6391915531ad..c8dc0ac8879d 100644 --- a/specification/postgresql/resource-manager/readme.go.md +++ b/specification/postgresql/resource-manager/readme.go.md @@ -28,6 +28,8 @@ azure-arm: true ``` yaml $(go) && $(multiapi) batch: + - tag: package-flexibleserver-2022-03-preview + - tag: package-flexibleserver-2022-03-privatepreview - tag: package-flexibleserver-2021-06 - tag: package-flexibleserver-2021-06-preview - tag: package-2020-11-05-preview From d0dc2bc8b7e9527f205cf0572322348c9eabcb3f Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 13 Sep 2022 13:27:10 -0700 Subject: [PATCH 32/82] Pass default value of true for passwordAuthEnabled --- .../preview/2022-03-08-preview/FlexibleServers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index a2b4e7113bed..fb324b23b9c0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -709,7 +709,7 @@ }, "passwordAuthEnabled": { "type": "boolean", - "default": "", + "default": "true", "description": "If true, Password authentication is enabled." }, "tenantId": { From fef5259875c6c42ce41046b871fdc102e0eb2d55 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 13 Sep 2022 13:59:39 -0700 Subject: [PATCH 33/82] pass true instead of "true" --- .../preview/2022-03-08-preview/FlexibleServers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index fb324b23b9c0..973964008680 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -709,7 +709,7 @@ }, "passwordAuthEnabled": { "type": "boolean", - "default": "true", + "default": true, "description": "If true, Password authentication is enabled." }, "tenantId": { From 61376806b18de68cc90e7b32055b0bdb65e08bc4 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:20:39 -0700 Subject: [PATCH 34/82] Added subnetName as id identifier for array obkect for DelegatedSubnetUsage --- .../preview/2022-03-08-preview/VirtualNetwork.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index ff43f826f1e0..53149f434e84 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -103,7 +103,9 @@ "$ref": "#/definitions/DelegatedSubnetUsage" }, "readOnly": true, - "x-ms-identifiers": [] + "x-ms-identifiers": [ + "subnetName" + ] }, "location": { "type": "string", From 33aa911d2d901cbf3167c9f1d9dc283594a0768a Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 13 Sep 2022 16:30:25 -0700 Subject: [PATCH 35/82] Updated x-ms-identifiers to not be an empty array for all objects in 2022-08-08-preview --- .../2022-03-08-preview/Capabilities.json | 44 ++++++++++++++----- .../2022-03-08-preview/Operations.json | 4 +- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index c73c130d8fd3..3911ab8cf5ec 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -153,7 +153,9 @@ "items": { "$ref": "#/definitions/VcoreCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "readOnly": true }, "status": { @@ -177,7 +179,9 @@ "items": { "$ref": "#/definitions/StorageMBCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "readOnly": true }, "status": { @@ -245,14 +249,18 @@ }, "description": "The list of editions supported by this server edition.", "readOnly": true, - "x-ms-identifiers": [] + "x-ms-identifiers": [ + "name" + ] }, "supportedServerVersions": { "type": "array", "items": { "$ref": "#/definitions/ServerVersionCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "description": "The list of server versions supported by this server edition.", "readOnly": true }, @@ -277,7 +285,9 @@ "items": { "$ref": "#/definitions/StorageEditionCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "description": "The list of editions supported by this server edition.", "readOnly": true }, @@ -286,7 +296,9 @@ "items": { "$ref": "#/definitions/ServerVersionCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "description": "The list of server versions supported by this server edition.", "readOnly": true }, @@ -295,7 +307,9 @@ "items": { "$ref": "#/definitions/NodeTypeCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "description": "The list of Node Types supported by this server edition.", "readOnly": true }, @@ -343,7 +357,9 @@ "items": { "$ref": "#/definitions/FlexibleServerEditionCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "" + ], "readOnly": true }, "supportedHyperscaleNodeEditions": { @@ -351,7 +367,9 @@ "items": { "$ref": "#/definitions/HyperscaleNodeEditionCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "name" + ], "readOnly": true }, "fastProvisioningSupported": { @@ -364,7 +382,9 @@ "items": { "$ref": "#/definitions/FastProvisioningEditionCapability" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "supportedSku" + ], "readOnly": true }, "status": { @@ -384,7 +404,9 @@ "items": { "$ref": "#/definitions/CapabilityProperties" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ + "zone" + ], "readOnly": true }, "nextLink": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json index d89111951998..17356ab2a398 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json @@ -149,7 +149,9 @@ "items": { "$ref": "#/definitions/Operation" }, - "x-ms-identifiers": [] + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", From 489cb01c695035660a2e5f8dd2098924f4e56796 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:59:28 -0700 Subject: [PATCH 36/82] Add missing x-ms-identifier --- .../preview/2022-03-08-preview/Capabilities.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 3911ab8cf5ec..728031a1ef35 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -358,7 +358,7 @@ "$ref": "#/definitions/FlexibleServerEditionCapability" }, "x-ms-identifiers": [ - "" + "name" ], "readOnly": true }, From a0ab836d986f379e2a5ca119b88c4f81f7cee9ad Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:59:32 -0700 Subject: [PATCH 37/82] Add support for supportedVersionsToUpgrade property in lication capabilitities --- .../2022-03-08-preview/Capabilities.json | 14 +++- .../examples/CapabilitiesByLocation.json | 70 +++++++++++++++++++ 2 files changed, 82 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 728031a1ef35..e7409996fc6f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -102,8 +102,7 @@ "type": "string", "description": "The status", "readOnly": true - } - }, + }, "description": "storage size in MB capability" }, "VcoreCapability": { @@ -140,6 +139,9 @@ }, "description": "Vcores capability" }, + "ServerVersion": { + "type": "string" + }, "ServerVersionCapability": { "type": "object", "properties": { @@ -148,6 +150,14 @@ "description": "server version", "readOnly": true }, + "supportedVersionsToUpgrade": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Supported servers versions to upgrade", + "readOnly": true + }, "supportedVcores": { "type": "array", "items": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json index bfff6c1892ff..79fb987cf89a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json @@ -91,6 +91,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_B1ms", @@ -265,6 +270,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_D2s_v3", @@ -859,6 +869,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_E2s_v3", @@ -1472,6 +1487,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_D4s_v3", @@ -1695,6 +1715,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_E4s_v3", @@ -1949,6 +1974,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_B1ms", @@ -2123,6 +2153,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_D2s_v3", @@ -2717,6 +2752,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_E2s_v3", @@ -3356,6 +3396,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_B1ms", @@ -3530,6 +3575,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_D2s_v3", @@ -4124,6 +4174,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_E2s_v3", @@ -4763,6 +4818,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_B1ms", @@ -4937,6 +4997,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_D2s_v3", @@ -5531,6 +5596,11 @@ "supportedServerVersions": [ { "name": "11", + "supportedVersionsToUpgrade": [ + "12", + "13", + "14" + ], "supportedVcores": [ { "name": "Standard_E2s_v3", From c2ca6c31989f269232cc15d706af3ef711b3107b Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 21 Sep 2022 23:42:21 -0700 Subject: [PATCH 38/82] Fix validation issue --- .../preview/2022-03-08-preview/Capabilities.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index e7409996fc6f..d160746bfec1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -102,7 +102,8 @@ "type": "string", "description": "The status", "readOnly": true - }, + } + }, "description": "storage size in MB capability" }, "VcoreCapability": { From 7b772c16a5a16fa8efa4c390c9abf287dd3f3723 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 22 Sep 2022 03:58:12 -0700 Subject: [PATCH 39/82] Fix validation error related to Server Versions --- .../preview/2022-03-08-preview/Capabilities.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index d160746bfec1..1ecf70eccec9 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -141,7 +141,18 @@ "description": "Vcores capability" }, "ServerVersion": { - "type": "string" + "type": "string", + "description": "The version of a server.", + "enum": [ + "14", + "13", + "12", + "11" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } }, "ServerVersionCapability": { "type": "object", From c1ff5c020bd353363eba4ac486441e225fbb537b Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 27 Sep 2022 07:26:50 -0700 Subject: [PATCH 40/82] Add new property for Capabilities api --- .../2022-03-08-preview/Capabilities.json | 41 + .../examples/CapabilitiesByLocation.json | 2144 +++++++++++++++++ 2 files changed, 2185 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 1ecf70eccec9..7338238463bd 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -78,6 +78,36 @@ } }, "definitions": { + "StorageTierCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name to represent Storage tier capability", + "readOnly": true + }, + "tierName": { + "type": "string", + "description": "Storage tier name", + "readOnly": true + }, + "iops": { + "type": "string", + "description": "Supported IOPS for this storage tier", + "readOnly": true + }, + "isBaseline": { + "type": "boolean", + "description": "Indicates if this is a baseline storage tier or not", + "readOnly": true + }, + "status": { + "type": "string", + "description": "Status os this storage tier", + "readOnly": true + } + } + }, "StorageMBCapability": { "type": "object", "properties": { @@ -98,6 +128,17 @@ "description": "storage size in MB", "readOnly": true }, + "supportedUpgradableTierList": { + + "type": "array", + "items": { + "$ref": "#/definitions/StorageTierCapability" + }, + "x-ms-identifiers": [ + "name" + ], + "readOnly": true + }, "status": { "type": "string", "description": "The status", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json index 79fb987cf89a..6017166c41c4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json @@ -28,60 +28,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -207,60 +367,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -806,60 +1126,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -1442,42 +1922,154 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "33553408", "supportedIops": 20000, "storageSizeMB": 33553408, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -1670,42 +2262,154 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "33553408", "supportedIops": 20000, "storageSizeMB": 33553408, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -1911,60 +2615,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -2090,60 +2954,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -2689,60 +3713,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -3333,60 +4517,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -3512,60 +4856,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -4111,60 +5615,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -4755,60 +6419,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -4934,60 +6758,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], @@ -5533,60 +7517,220 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" }, { "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, + "supportedUpgradableTierlist": [ + { + "name": "P4", + "tierName": "P4", + "iops": 120, + "isBaseline": true, + "status": "Available" + }, + { + "name": "P6", + "tierName": "P6", + "iops": 240, + "isBaseline": false, + "status": "Available" + } + ], "status": "Available" } ], From 6a8039ab7b08935941fac5c46a797ccdcbe60a32 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 27 Sep 2022 20:02:17 -0700 Subject: [PATCH 41/82] Fix validation errors --- .../2022-03-08-preview/Capabilities.json | 4 +- .../examples/CapabilitiesByLocation.json | 268 +++++++++--------- 2 files changed, 136 insertions(+), 136 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 7338238463bd..60e4c85512d2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -92,7 +92,8 @@ "readOnly": true }, "iops": { - "type": "string", + "type": "integer", + "format": "int64", "description": "Supported IOPS for this storage tier", "readOnly": true }, @@ -129,7 +130,6 @@ "readOnly": true }, "supportedUpgradableTierList": { - "type": "array", "items": { "$ref": "#/definitions/StorageTierCapability" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json index 6017166c41c4..6bddf8d6e946 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CapabilitiesByLocation.json @@ -28,7 +28,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -50,7 +50,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -72,7 +72,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -94,7 +94,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -116,7 +116,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -138,7 +138,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -160,7 +160,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -182,7 +182,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -204,7 +204,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -226,7 +226,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -367,7 +367,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -389,7 +389,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -411,7 +411,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -433,7 +433,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -455,7 +455,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -477,7 +477,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -499,7 +499,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -521,7 +521,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -543,7 +543,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -565,7 +565,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1126,7 +1126,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1148,7 +1148,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1170,7 +1170,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1192,7 +1192,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1214,7 +1214,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1236,7 +1236,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1258,7 +1258,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1280,7 +1280,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1302,7 +1302,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1324,7 +1324,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1922,7 +1922,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1944,7 +1944,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1966,7 +1966,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -1988,7 +1988,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2010,7 +2010,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2032,7 +2032,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2054,7 +2054,7 @@ "name": "33553408", "supportedIops": 20000, "storageSizeMB": 33553408, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2262,7 +2262,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2284,7 +2284,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2306,7 +2306,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2328,7 +2328,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2350,7 +2350,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2372,7 +2372,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2394,7 +2394,7 @@ "name": "33553408", "supportedIops": 20000, "storageSizeMB": 33553408, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2615,7 +2615,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2637,7 +2637,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2659,7 +2659,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2681,7 +2681,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2703,7 +2703,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2725,7 +2725,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2747,7 +2747,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2769,7 +2769,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2791,7 +2791,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2813,7 +2813,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2954,7 +2954,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2976,7 +2976,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -2998,7 +2998,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3020,7 +3020,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3042,7 +3042,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3064,7 +3064,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3086,7 +3086,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3108,7 +3108,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3130,7 +3130,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3152,7 +3152,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3713,7 +3713,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3735,7 +3735,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3757,7 +3757,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3779,7 +3779,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3801,7 +3801,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3823,7 +3823,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3845,7 +3845,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3867,7 +3867,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3889,7 +3889,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -3911,7 +3911,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4517,7 +4517,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4539,7 +4539,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4561,7 +4561,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4583,7 +4583,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4605,7 +4605,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4627,7 +4627,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4649,7 +4649,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4671,7 +4671,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4693,7 +4693,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4715,7 +4715,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4856,7 +4856,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4878,7 +4878,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4900,7 +4900,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4922,7 +4922,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4944,7 +4944,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4966,7 +4966,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -4988,7 +4988,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5010,7 +5010,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5032,7 +5032,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5054,7 +5054,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5615,7 +5615,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5637,7 +5637,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5659,7 +5659,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5681,7 +5681,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5703,7 +5703,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5725,7 +5725,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5747,7 +5747,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5769,7 +5769,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5791,7 +5791,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -5813,7 +5813,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6419,7 +6419,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6441,7 +6441,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6463,7 +6463,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6485,7 +6485,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6507,7 +6507,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6529,7 +6529,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6551,7 +6551,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6573,7 +6573,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6595,7 +6595,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6617,7 +6617,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6758,7 +6758,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6780,7 +6780,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6802,7 +6802,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6824,7 +6824,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6846,7 +6846,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6868,7 +6868,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6890,7 +6890,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6912,7 +6912,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6934,7 +6934,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -6956,7 +6956,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7517,7 +7517,7 @@ "name": "32768", "supportedIops": 120, "storageSizeMB": 32768, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7539,7 +7539,7 @@ "name": "65536", "supportedIops": 240, "storageSizeMB": 65536, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7561,7 +7561,7 @@ "name": "131072", "supportedIops": 500, "storageSizeMB": 131072, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7583,7 +7583,7 @@ "name": "262144", "supportedIops": 1100, "storageSizeMB": 262144, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7605,7 +7605,7 @@ "name": "524288", "supportedIops": 2300, "storageSizeMB": 524288, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7627,7 +7627,7 @@ "name": "1048576", "supportedIops": 5000, "storageSizeMB": 1048576, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7649,7 +7649,7 @@ "name": "2097152", "supportedIops": 7500, "storageSizeMB": 2097152, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7671,7 +7671,7 @@ "name": "4194304", "supportedIops": 7500, "storageSizeMB": 4194304, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7693,7 +7693,7 @@ "name": "8388608", "supportedIops": 16000, "storageSizeMB": 8388608, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", @@ -7715,7 +7715,7 @@ "name": "16777216", "supportedIops": 18000, "storageSizeMB": 16777216, - "supportedUpgradableTierlist": [ + "supportedUpgradableTierList": [ { "name": "P4", "tierName": "P4", From f560cbcad29edf68dba2d3f2e98b5ad05e092ade Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 03:35:01 -0700 Subject: [PATCH 42/82] Fix LroLocationHeader and ResourceNameRestrcition errors --- .../2022-03-08-preview/Administrators.json | 1 + .../preview/2022-03-08-preview/Backups.json | 2 ++ .../2022-03-08-preview/Configuration.json | 2 ++ .../preview/2022-03-08-preview/Databases.json | 2 ++ .../2022-03-08-preview/FirewallRules.json | 16 ++++++++++-- .../2022-03-08-preview/FlexibleServers.json | 25 ++++++++++++++++--- .../ServerStartStopRestart.json | 22 +++++++++++++--- .../2022-03-08-preview/VirtualNetwork.json | 1 + 8 files changed, 63 insertions(+), 8 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index 2070bbeff329..a242d6abf438 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -399,6 +399,7 @@ "required": true, "type": "string", "description": "The name of the server.", + "minLength": 3, "x-ms-parameter-location": "method" }, "ObjectIdParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json index 477d1d84f122..010e072c0b88 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -201,6 +201,7 @@ "description": "The name of the server.", "required": true, "type": "string", + "minLength": 3, "x-ms-parameter-location": "method" }, "BackupNameParameter": { @@ -209,6 +210,7 @@ "required": true, "type": "string", "description": "The name of the backup.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index 3a3860419ea6..2b650c38ec5d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -363,6 +363,7 @@ "description": "The name of the server.", "required": true, "type": "string", + "minLength": 3, "x-ms-parameter-location": "method" }, "ConfigurationNameParameter": { @@ -371,6 +372,7 @@ "required": true, "type": "string", "description": "The name of the server configuration.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json index 5d9f793c0526..cc39f07c29df 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json @@ -305,6 +305,7 @@ "description": "The name of the server.", "required": true, "type": "string", + "minLength": 3, "x-ms-parameter-location": "method" }, "DatabaseNameParameter": { @@ -313,6 +314,7 @@ "required": true, "type": "string", "description": "The name of the database.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json index 73504846785f..2b4ef9803a71 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -130,7 +135,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -314,6 +324,7 @@ "description": "The name of the server.", "required": true, "type": "string", + "minLength": 3, "x-ms-parameter-location": "method" }, "FirewallRuleNameParameter": { @@ -322,6 +333,7 @@ "required": true, "type": "string", "description": "The name of the server firewall rule.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 973964008680..dd1f4429ecde 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -98,7 +98,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -163,7 +168,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -204,7 +214,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -987,6 +1002,7 @@ "required": true, "type": "string", "description": "The name of the location.", + "minLength": 1, "x-ms-parameter-location": "method" }, "ServerNameParameter": { @@ -995,6 +1011,7 @@ "required": true, "type": "string", "description": "The name of the server.", + "minLength": 3, "x-ms-parameter-location": "method" }, "MaintenanceWindowNameParameter": { @@ -1003,6 +1020,7 @@ "required": true, "type": "string", "description": "The name of the maintenance window.", + "minLength": 1, "x-ms-parameter-location": "method" }, "BackupNameParameter": { @@ -1011,6 +1029,7 @@ "required": true, "type": "string", "description": "The name of the backup.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json index 9c4ec3b66931..a47c500cbf16 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json @@ -76,7 +76,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -119,7 +124,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -162,7 +172,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -218,6 +233,7 @@ "description": "The name of the server.", "required": true, "type": "string", + "minLength": 3, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index 53149f434e84..06532e49e7ef 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -155,6 +155,7 @@ "required": true, "type": "string", "description": "The name of the location.", + "minLength": 1, "x-ms-parameter-location": "method" } } From c88a40302cb92d4aeb3a4211e7befc88fcbf4e5d Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 03:55:38 -0700 Subject: [PATCH 43/82] Fix validation error x-ms-long-running-operation-options --- .../2022-03-08-preview/Administrators.json | 10 ++++++++-- .../preview/2022-03-08-preview/Configuration.json | 10 ++++++++-- .../preview/2022-03-08-preview/FirewallRules.json | 10 ++++++++-- .../2022-03-08-preview/FlexibleServers.json | 15 ++++++++++++--- .../ServerStartStopRestart.json | 15 ++++++++++++--- 5 files changed, 48 insertions(+), 12 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index a242d6abf438..1b004d02b906 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -95,7 +95,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "delete": { "tags": [ @@ -142,7 +145,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "get": { "tags": [ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index 2b650c38ec5d..25c031ca3cc5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -177,7 +177,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -233,7 +236,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } } }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json index 2b4ef9803a71..a0f2ebda57b1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -100,7 +100,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "delete": { "tags": [ @@ -152,7 +155,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "get": { "tags": [ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index dd1f4429ecde..8adebda4f640 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -112,7 +112,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -182,7 +185,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "delete": { "tags": [ @@ -231,7 +237,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "get": { "tags": [ diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json index a47c500cbf16..be8b9974b5f7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json @@ -90,7 +90,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start": { @@ -138,7 +141,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop": { @@ -186,7 +192,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } } }, From 2e07ed02859b6f235bbef9d993a5022489ec4346 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 04:14:01 -0700 Subject: [PATCH 44/82] Try to match the new version with stable version --- .../preview/2022-03-08-preview/Databases.json | 12 ++++++++---- .../stable/2021-06-01/Databases.json | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json index cc39f07c29df..a5193b57faba 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json @@ -95,7 +95,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "delete": { "tags": [ @@ -142,7 +145,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "get": { "tags": [ @@ -305,7 +311,6 @@ "description": "The name of the server.", "required": true, "type": "string", - "minLength": 3, "x-ms-parameter-location": "method" }, "DatabaseNameParameter": { @@ -314,7 +319,6 @@ "required": true, "type": "string", "description": "The name of the database.", - "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json index aff65a40716d..8887f9822b3c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json @@ -236,6 +236,7 @@ }, "definitions": { "DatabaseProperties": { + "type": "object", "properties": { "charset": { "type": "string", @@ -249,6 +250,7 @@ "description": "The properties of a database." }, "Database": { + "type": "object", "properties": { "properties": { "$ref": "#/definitions/DatabaseProperties", @@ -286,6 +288,7 @@ "description": "A List of databases." }, "CloudError": { + "type": "object", "x-ms-external": true, "properties": { "error": { From 3e538d91f876664f49ea62702c36293a8023db3d Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 04:24:49 -0700 Subject: [PATCH 45/82] Revert changes to stable api version --- .../Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json index 8887f9822b3c..aff65a40716d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json @@ -236,7 +236,6 @@ }, "definitions": { "DatabaseProperties": { - "type": "object", "properties": { "charset": { "type": "string", @@ -250,7 +249,6 @@ "description": "The properties of a database." }, "Database": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/DatabaseProperties", @@ -288,7 +286,6 @@ "description": "A List of databases." }, "CloudError": { - "type": "object", "x-ms-external": true, "properties": { "error": { From dd7228bfdd00465b65ff7d77ea68a564c428dd7c Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 04:26:29 -0700 Subject: [PATCH 46/82] Reanme Databases.json to Database.json --- .../preview/2022-03-08-preview/{Databases.json => Database.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/{Databases.json => Database.json} (100%) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json similarity index 100% rename from specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json rename to specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json From 0859a72e517331bc50a195c21196eba18365cbfa Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 04:47:09 -0700 Subject: [PATCH 47/82] Fix reference error --- specification/postgresql/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 0dd9fdcf0367..8a56527c5389 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -51,7 +51,7 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json From cba6683216ea6aa3f68764515b3090aa04a87d60 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 05:58:56 -0700 Subject: [PATCH 48/82] Add minLength validation for ServerNameParameter --- .../preview/2022-03-08-preview/Database.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index a5193b57faba..9789b28b2919 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -311,6 +311,7 @@ "description": "The name of the server.", "required": true, "type": "string", + "minLength": 3, "x-ms-parameter-location": "method" }, "DatabaseNameParameter": { @@ -319,6 +320,7 @@ "required": true, "type": "string", "description": "The name of the database.", + "minLength": 1, "x-ms-parameter-location": "method" } } From 98e7fa67858b7f48b8bcbe9fc1a2cc5bd26c192d Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:08:46 -0700 Subject: [PATCH 49/82] Add minLength for LocationNameParameter --- .../preview/2022-03-08-preview/CachedServerName.json | 1 + .../preview/2022-03-08-preview/Capabilities.json | 1 + .../preview/2022-03-08-preview/CheckNameAvailability.json | 1 + 3 files changed, 3 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json index 968287b0e418..7f90d231a81a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json @@ -140,6 +140,7 @@ "required": true, "type": "string", "description": "The name of the location.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 60e4c85512d2..b00433f05ac6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -498,6 +498,7 @@ "required": true, "type": "string", "description": "The name of the location.", + "minLength": 1, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 45568e51d47e..23150d038390 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -203,6 +203,7 @@ "required": true, "type": "string", "description": "The name of the location.", + "minLength": 1, "x-ms-parameter-location": "method" } } From c19788527a9c66a45fb1507337b8b72438dc412b Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:39:24 -0700 Subject: [PATCH 50/82] Fix ResourceNameRestriction for ServerNameParameter --- .../preview/2022-03-08-preview/Administrators.json | 2 ++ .../preview/2022-03-08-preview/Backups.json | 2 ++ .../preview/2022-03-08-preview/Configuration.json | 2 ++ .../preview/2022-03-08-preview/Database.json | 2 ++ .../preview/2022-03-08-preview/FirewallRules.json | 2 ++ .../preview/2022-03-08-preview/FlexibleServers.json | 12 +++--------- .../2022-03-08-preview/ServerStartStopRestart.json | 2 ++ .../2022-03-08-preview/examples/ServerCreate.json | 3 +-- .../examples/ServerCreateGeoRestore.json | 3 +-- .../examples/ServerCreatePointInTimeRestore.json | 3 +-- .../examples/ServerCreateReplica.json | 3 +-- .../examples/ServerCreateWithAadAuthEnabled.json | 3 +-- .../ServerCreateWithDataEncryptionEnabled.json | 3 +-- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index 1b004d02b906..d9f9c6932450 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -405,7 +405,9 @@ "required": true, "type": "string", "description": "The name of the server.", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" }, "ObjectIdParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json index 010e072c0b88..d3e4203ddc39 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -201,7 +201,9 @@ "description": "The name of the server.", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" }, "BackupNameParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index 25c031ca3cc5..173636ce8c0e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -369,7 +369,9 @@ "description": "The name of the server.", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" }, "ConfigurationNameParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index 9789b28b2919..3adf9a9f2f8f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -311,7 +311,9 @@ "description": "The name of the server.", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" }, "DatabaseNameParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json index a0f2ebda57b1..74dc4bbdda75 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -330,7 +330,9 @@ "description": "The name of the server.", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" }, "FirewallRuleNameParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 8adebda4f640..95a77fc1b021 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -97,14 +97,6 @@ "$ref": "#/definitions/Server" } }, - "202": { - "description": "Accepted", - "headers": { - "Location": { - "type": "string" - } - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -239,7 +231,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } }, "get": { @@ -1020,7 +1012,9 @@ "required": true, "type": "string", "description": "The name of the server.", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" }, "MaintenanceWindowNameParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json index be8b9974b5f7..a9be1f79f60f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json @@ -242,7 +242,9 @@ "description": "The name of the server.", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, + "maxLength": 63, "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json index 93d9de16ee0e..0d9e07640e2c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreate.json @@ -142,7 +142,6 @@ "name": "pgtestsvc4", "type": "Microsoft.DBforPostgreSQL/flexibleServers" } - }, - "202": {} + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json index d3b2f2586fbf..d865606a9d57 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateGeoRestore.json @@ -113,7 +113,6 @@ "name": "pgtestsvc5geo", "type": "Microsoft.DBforPostgreSQL/flexibleServers" } - }, - "202": {} + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json index 56acd72d4b49..9a3033d4a38c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreatePointInTimeRestore.json @@ -113,7 +113,6 @@ "name": "pgtestsvc5", "type": "Microsoft.DBforPostgreSQL/flexibleServers" } - }, - "202": {} + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json index a071bd233c64..51bc2890ed1d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateReplica.json @@ -117,7 +117,6 @@ "name": "pgtestsvc5rep", "type": "Microsoft.DBforPostgreSQL/flexibleServers" } - }, - "202": {} + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json index 1fe1a7df01e6..623136f894bb 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithAadAuthEnabled.json @@ -149,7 +149,6 @@ "name": "pgtestsvc4", "type": "Microsoft.DBforPostgreSQL/flexibleServers" } - }, - "202": {} + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json index 182cbfea4615..cd9d5b12b581 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerCreateWithDataEncryptionEnabled.json @@ -175,7 +175,6 @@ "name": "pgtestsvc4", "type": "Microsoft.DBforPostgreSQL/flexibleServers" } - }, - "202": {} + } } } From 15132fd2468f876fe56ce636176b3f26df12c989 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:45:10 -0700 Subject: [PATCH 51/82] Fix ResourceNameRestriction for LocationNameParameter --- .../preview/2022-03-08-preview/CachedServerName.json | 1 + .../preview/2022-03-08-preview/Capabilities.json | 1 + .../preview/2022-03-08-preview/CheckNameAvailability.json | 1 + .../preview/2022-03-08-preview/FlexibleServers.json | 1 + .../preview/2022-03-08-preview/VirtualNetwork.json | 1 + 5 files changed, 5 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json index 7f90d231a81a..266a60b57084 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json @@ -141,6 +141,7 @@ "type": "string", "description": "The name of the location.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index b00433f05ac6..ec3be2c4c34c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -499,6 +499,7 @@ "type": "string", "description": "The name of the location.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 23150d038390..44086050e2bf 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -204,6 +204,7 @@ "type": "string", "description": "The name of the location.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 95a77fc1b021..d90728b908f5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -1004,6 +1004,7 @@ "type": "string", "description": "The name of the location.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" }, "ServerNameParameter": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index 06532e49e7ef..0843703d8e27 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -156,6 +156,7 @@ "type": "string", "description": "The name of the location.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } From 815ef75909d6699c0a57d70fafe821635b96b763 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 29 Sep 2022 14:56:14 +0800 Subject: [PATCH 52/82] python config --- .../resource-manager/readme.python.md | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.python.md b/specification/postgresql/resource-manager/readme.python.md index 6e5d9bea2cd3..ba5709752ad8 100644 --- a/specification/postgresql/resource-manager/readme.python.md +++ b/specification/postgresql/resource-manager/readme.python.md @@ -32,28 +32,6 @@ namespace: azure.mgmt.rdbms.postgresql_flexibleservers output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers ``` -### Tag: package-flexibleserver-2022-03-privatepreview and python - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --python` is specified on the command line. -Please also specify `--python-sdk-folder=`. - -``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(python) -namespace: azure.mgmt.rdbms.postgresql_flexibleservers -output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers -``` - - -### Tag: package-flexibleserver-2022-01-preview and python - -These settings apply only when `--tag=package-flexibleserver-2022-01-preview --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-flexibleserver-2022-01-preview' && $(python) -namespace: azure.mgmt.rdbms.postgresql_flexibleservers -output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers -``` - - ### Tag: package-2020-01-01 and python These settings apply only when `--tag=package-2020-01-01 --python` is specified on the command line. @@ -62,4 +40,22 @@ Please also specify `--python-sdks-folder= + $['format'] = 'string'; + + - from: swagger-document + where: $.definitions.Network.properties.delegatedSubnetResourceId + transform: > + $['format'] = 'string'; + + - from: swagger-document + where: $.definitions.Network.properties.privateDnsZoneArmResourceId + transform: > + $['format'] = 'string'; ``` \ No newline at end of file From 65f31d9d136c68d514f844d612d55615030e4cc7 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 29 Sep 2022 18:27:09 -0700 Subject: [PATCH 53/82] Fix few staging validations --- .../preview/2022-03-08-preview/FirewallRules.json | 10 +++------- .../preview/2022-03-08-preview/FlexibleServers.json | 7 +------ .../2022-03-08-preview/ServerStartStopRestart.json | 6 +++--- .../examples/FirewallRuleCreate.json | 3 +-- 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json index 74dc4bbdda75..9c5ed21c94b2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -86,12 +86,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -157,7 +152,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } }, "get": { @@ -342,6 +337,7 @@ "type": "string", "description": "The name of the server firewall rule.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index d90728b908f5..f4f748319e05 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -163,12 +163,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json index a9be1f79f60f..a50277505506 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json @@ -92,7 +92,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -143,7 +143,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -194,7 +194,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json index 7056ca2fb963..4d091df714d6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json @@ -34,7 +34,6 @@ "endIpAddress": "255.255.255.255" } } - }, - "202": {} + } } } From 11062235a9836c018bd3e63aeb265eabf029f95b Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 29 Sep 2022 18:46:46 -0700 Subject: [PATCH 54/82] Fix few validation errors for name restriction --- .../preview/2022-03-08-preview/Backups.json | 1 + .../preview/2022-03-08-preview/Database.json | 10 ++++++++-- .../examples/FirewallRuleCreate.json | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json index d3e4203ddc39..4d923c14c7d5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -213,6 +213,7 @@ "type": "string", "description": "The name of the backup.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index 3adf9a9f2f8f..41820d8b3478 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -147,7 +152,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } }, "get": { @@ -323,6 +328,7 @@ "type": "string", "description": "The name of the database.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json index 4d091df714d6..7056ca2fb963 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json @@ -34,6 +34,7 @@ "endIpAddress": "255.255.255.255" } } - } + }, + "202": {} } } From b8935e655faa311419c27c2005df38710e27d32e Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 29 Sep 2022 18:57:58 -0700 Subject: [PATCH 55/82] Fix few validation errors for name restriction and duplicated model validation --- .../preview/2022-03-08-preview/FlexibleServers.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index f4f748319e05..c5f188fde2da 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -1020,6 +1020,7 @@ "type": "string", "description": "The name of the maintenance window.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" }, "BackupNameParameter": { @@ -1029,6 +1030,7 @@ "type": "string", "description": "The name of the backup.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } From 760ed0dd3a10b784b6149b357d102222645cc354 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 29 Sep 2022 21:55:46 -0700 Subject: [PATCH 56/82] Fix validation errors for configurations api --- .../preview/2022-03-08-preview/Configuration.json | 9 ++++++++- .../examples/ConfigurationUpdate.json | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index 173636ce8c0e..4abbe41ef40e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -226,6 +226,12 @@ "$ref": "#/definitions/Configuration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, "202": { "description": "Accepted" }, @@ -238,7 +244,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } } @@ -381,6 +387,7 @@ "type": "string", "description": "The name of the server configuration.", "minLength": 1, + "pattern": "^[-\\w\\._]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json index 640ef93809d1..a87574809bef 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ConfigurationUpdate.json @@ -28,6 +28,21 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" } }, + "201": { + "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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" + } + }, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", From fdb8ca527c8c9c4f54a8c52bd1ca89ac898dbae6 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 29 Sep 2022 23:38:28 -0700 Subject: [PATCH 57/82] Fix model validation error --- .../preview/2022-03-08-preview/Configuration.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index 4abbe41ef40e..a6694b4c99e7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -167,6 +167,12 @@ "$ref": "#/definitions/Configuration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, "202": { "description": "Accepted" }, From 3cd29d3b34558c7ed2521f1590d0a5257577e11a Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 00:34:28 -0700 Subject: [PATCH 58/82] Remove location property for Server Update --- .../preview/2022-03-08-preview/FlexibleServers.json | 4 ---- .../preview/2022-03-08-preview/examples/ServerUpdate.json | 1 - .../examples/ServerUpdateWithAadAuthEnabled.json | 1 - .../examples/ServerUpdateWithDataEncryptionEnabled.json | 1 - .../examples/ServerUpdateWithMajorVersionUpgrade.json | 1 - 5 files changed, 8 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index c5f188fde2da..0d045328fea2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -629,10 +629,6 @@ "ServerForUpdate": { "type": "object", "properties": { - "location": { - "type": "string", - "description": "The location the resource resides in." - }, "sku": { "$ref": "#/definitions/Sku", "description": "The SKU (pricing tier) of the server." diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json index b36b81162876..6f78408978bb 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdate.json @@ -5,7 +5,6 @@ "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "westus", "sku": { "tier": "GeneralPurpose", "name": "Standard_D8s_v3" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json index e6295d295376..990f65a1f822 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithAadAuthEnabled.json @@ -5,7 +5,6 @@ "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "westus", "sku": { "tier": "GeneralPurpose", "name": "Standard_D8s_v3" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json index af1112e7b9e6..b065bf608eb5 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithDataEncryptionEnabled.json @@ -5,7 +5,6 @@ "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "westus", "sku": { "tier": "GeneralPurpose", "name": "Standard_D8s_v3" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json index b41837664817..fee86a963e2c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithMajorVersionUpgrade.json @@ -5,7 +5,6 @@ "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "westus", "properties": { "createMode": "Update", "version": "14" From b7d0940c400b1f10a093148b071abb2773b8b3a7 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 02:34:33 -0700 Subject: [PATCH 59/82] Fix validation error --- .../preview/2022-03-08-preview/Configuration.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index a6694b4c99e7..9b5ba683e40a 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -164,12 +164,14 @@ "200": { "description": "OK", "schema": { + "type": "object", "$ref": "#/definitions/Configuration" } }, "201": { "description": "Created", "schema": { + "type": "object", "$ref": "#/definitions/Configuration" } }, @@ -326,7 +328,6 @@ "description": "The properties of a configuration." }, "Configuration": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/ConfigurationProperties", From 9f997f68700943ff959e5f2a1c5913ae7b85934d Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 03:36:23 -0700 Subject: [PATCH 60/82] Fix model validation --- .../examples/ServerUpdateWithCustomerMaintenanceWindow.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index df37acb25977..487350f452e2 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -5,7 +5,6 @@ "api-version": "2022-03-08-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { - "location": "westus", "properties": { "createMode": "Update", "maintenanceWindow": { From 7257e53559692b19964b3790e603d1de6de2825c Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 03:53:00 -0700 Subject: [PATCH 61/82] Fix validation errors for administrators api --- .../2022-03-08-preview/Administrators.json | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index d9f9c6932450..a59a3ae34486 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -74,10 +74,10 @@ ], "responses": { "200": { - "description": "OK", + "description": "Success", "schema": { "$ref": "#/definitions/ActiveDirectoryAdministrator" - } + }, }, "201": { "description": "Created", @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -133,7 +138,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -147,7 +157,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } }, "get": { From 684290f66b5c822f57cccdc3da62923f9abc882d Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 05:29:36 -0700 Subject: [PATCH 62/82] Fix errors --- .../2022-03-08-preview/Administrators.json | 2 +- .../2022-03-08-preview/Configuration.json | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index a59a3ae34486..d1bc850b1758 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -77,7 +77,7 @@ "description": "Success", "schema": { "$ref": "#/definitions/ActiveDirectoryAdministrator" - }, + } }, "201": { "description": "Created", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index 9b5ba683e40a..e000741a5328 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -155,7 +155,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Configuration" + "$ref": "#/definitions/ConfigurationForUpdate" }, "description": "The required parameters for updating a server configuration." } @@ -164,14 +164,12 @@ "200": { "description": "OK", "schema": { - "type": "object", "$ref": "#/definitions/Configuration" } }, "201": { "description": "Created", "schema": { - "type": "object", "$ref": "#/definitions/Configuration" } }, @@ -328,6 +326,7 @@ "description": "The properties of a configuration." }, "Configuration": { + "type": "object", "properties": { "properties": { "$ref": "#/definitions/ConfigurationProperties", @@ -347,6 +346,17 @@ ], "description": "Represents a Configuration." }, + "ConfigurationForUpdate": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + } + }, + "description": "Represents a Configuration." + }, "ConfigurationListResult": { "type": "object", "properties": { From 6354e3556423f40e9364c6dbcc2656a3ed81c502 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 05:33:01 -0700 Subject: [PATCH 63/82] Fix validation errors for Database and Configuration --- .../preview/2022-03-08-preview/Configuration.json | 14 ++++++++++++-- .../preview/2022-03-08-preview/Database.json | 7 ++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index e000741a5328..f8ef93a2330d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -174,7 +174,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -239,7 +244,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index 41820d8b3478..ab5d4d15e41b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -138,7 +138,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" From ab7fbc35c03948bba4176b8536880685c2192406 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 30 Sep 2022 05:45:56 -0700 Subject: [PATCH 64/82] Fix validation errors --- .../preview/2022-03-08-preview/FirewallRules.json | 7 ++++++- .../preview/2022-03-08-preview/FlexibleServers.json | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json index 9c5ed21c94b2..4303a3e429b4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 0d045328fea2..5568b0aed7ab 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -163,7 +163,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -468,7 +473,6 @@ }, "sourceServerResourceId": { "type": "string", - "format": "arm-id", "x-ms-arm-id-details": { "allowedResources": [ { @@ -870,7 +874,6 @@ }, "delegatedSubnetResourceId": { "type": "string", - "format": "arm-id", "x-ms-arm-id-details": { "allowedResources": [ { @@ -887,7 +890,6 @@ }, "privateDnsZoneArmResourceId": { "type": "string", - "format": "arm-id", "x-ms-arm-id-details": { "allowedResources": [ { From 23c25c65d4e8bc436e77641f36401b0071ca47c8 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 6 Oct 2022 04:26:20 -0700 Subject: [PATCH 65/82] Fix review comment to utilize common parameter and definitions --- .../2022-03-08-preview/Administrators.json | 65 ++++------ .../preview/2022-03-08-preview/Backups.json | 45 ++----- .../2022-03-08-preview/CachedServerName.json | 33 +----- .../2022-03-08-preview/Capabilities.json | 31 +---- .../CheckNameAvailability.json | 58 ++------- .../2022-03-08-preview/Configuration.json | 65 ++++------ .../preview/2022-03-08-preview/Database.json | 65 ++++------ .../2022-03-08-preview/FirewallRules.json | 65 ++++------ .../2022-03-08-preview/FlexibleServers.json | 112 +++++------------- .../2022-03-08-preview/Operations.json | 14 +-- .../2022-03-08-preview/PrivateDnsZone.json | 14 +-- .../ServerStartStopRestart.json | 54 +++------ .../2022-03-08-preview/VirtualNetwork.json | 35 ++---- .../2022-03-08-preview/common-types.json | 32 +++++ .../examples/AdministratorAdd.json | 7 +- .../examples/BackupListByServer.json | 22 ++-- .../examples/DatabaseCreate.json | 7 +- .../examples/FirewallRuleCreate.json | 7 +- 18 files changed, 239 insertions(+), 492 deletions(-) create mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/common-types.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index d1bc850b1758..f42daf9baf14 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -48,19 +48,19 @@ "description": "Creates a new server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/ObjectIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -96,7 +96,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -118,16 +118,16 @@ "description": "Deletes an Active Directory Administrator associated with the server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/ObjectIdParameter" @@ -151,7 +151,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -173,16 +173,16 @@ "description": "Gets information about a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/ObjectIdParameter" @@ -198,7 +198,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -218,16 +218,16 @@ "description": "List all the AAD administrators for a given server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -240,7 +240,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -365,14 +365,14 @@ "description": "Properties of the active directory administrator." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "required": [ @@ -396,30 +396,9 @@ } }, "description": "A list of active directory administrators." - }, - "CloudError": { - "x-ms-external": true, - "type": "object", - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - }, "ObjectIdParameter": { "name": "objectId", "in": "path", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json index 4d923c14c7d5..fe8a561a1de4 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -48,16 +48,16 @@ "description": "Get specific backup for a given server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/BackupNameParameter" @@ -73,7 +73,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -93,16 +93,16 @@ "description": "List all the backups for a given server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -115,7 +115,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -154,14 +154,14 @@ "description": "The properties of a server backup." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "description": "Server backup properties" @@ -182,30 +182,9 @@ } }, "description": "A list of server backups." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - }, "BackupNameParameter": { "name": "backupName", "in": "path", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json index 266a60b57084..eaa7847cf08f 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json @@ -48,16 +48,16 @@ "description": "Get available cached server name for fast provisioning", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/LocationNameParameter" + "$ref": "common-types.json#/parameters/LocationNameParameter" }, { "name": "cachedServerNameRequest", @@ -79,7 +79,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -121,28 +121,7 @@ } }, "description": "Represents a resource name of a cached server" - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, - "parameters": { - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index ec3be2c4c34c..9899efa0261d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -48,13 +48,13 @@ "description": "Get capabilities at specified location in a given subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/LocationNameParameter" + "$ref": "common-types.json#/parameters/LocationNameParameter" } ], "responses": { @@ -67,7 +67,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -479,28 +479,7 @@ } }, "description": "location capability" - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, - "parameters": { - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 44086050e2bf..f3276d633744 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -48,17 +48,17 @@ "description": "Check the availability of name for resource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "name": "nameAvailabilityRequest", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/NameAvailabilityRequest" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" }, "description": "The required parameters for checking if resource name is available." } @@ -73,7 +73,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -93,20 +93,20 @@ "description": "Check the availability of name for resource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/LocationNameParameter" + "$ref": "common-types.json#/parameters/LocationNameParameter" }, { "name": "nameAvailabilityRequest", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/NameAvailabilityRequest" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" }, "description": "The required parameters for checking if resource name is available." } @@ -121,7 +121,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -129,23 +129,6 @@ } }, "definitions": { - "NameAvailabilityRequest": { - "required": [ - "name" - ], - "type": "object", - "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": { "type": "object", "properties": { @@ -184,28 +167,7 @@ } }, "description": "Represents a resource name availability." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, - "parameters": { - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json index f8ef93a2330d..b25ca74f38a7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json @@ -48,16 +48,16 @@ "description": "List all the configurations in a given server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -70,7 +70,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -93,16 +93,16 @@ "description": "Gets information about a configuration of server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" @@ -118,7 +118,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -136,16 +136,16 @@ "description": "Updates a configuration of a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" @@ -184,7 +184,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -206,16 +206,16 @@ "description": "Updates a configuration of a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" @@ -254,7 +254,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -344,14 +344,14 @@ "description": "The properties of a configuration." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "description": "Represents a Configuration." @@ -383,30 +383,9 @@ } }, "description": "A list of server configurations." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - }, "ConfigurationNameParameter": { "name": "configurationName", "in": "path", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index ab5d4d15e41b..ade3797ff106 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -48,16 +48,16 @@ "description": "Creates a new database or updates an existing database.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/DatabaseNameParameter" @@ -96,7 +96,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -118,16 +118,16 @@ "description": "Deletes a database.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/DatabaseNameParameter" @@ -151,7 +151,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -173,16 +173,16 @@ "description": "Gets information about a database.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/DatabaseNameParameter" @@ -198,7 +198,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -218,16 +218,16 @@ "description": "List all the databases in a given server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -240,7 +240,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -274,14 +274,14 @@ "description": "The properties of a database." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "description": "Represents a Database." @@ -302,30 +302,9 @@ } }, "description": "A List of databases." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - }, "DatabaseNameParameter": { "name": "databaseName", "in": "path", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json index 4303a3e429b4..737c7adc2923 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json @@ -48,16 +48,16 @@ "description": "Creates a new firewall rule or updates an existing firewall rule.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -96,7 +96,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -118,16 +118,16 @@ "description": "Deletes a PostgreSQL server firewall rule.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -151,7 +151,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -173,16 +173,16 @@ "description": "List all the firewall rules in a given server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -198,7 +198,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -218,16 +218,16 @@ "description": "List all the firewall rules in a given PostgreSQL server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -240,7 +240,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -280,14 +280,14 @@ "description": "The properties of a firewall rule." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "required": [ @@ -311,30 +311,9 @@ } }, "description": "A list of firewall rules." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - }, "FirewallRuleNameParameter": { "name": "firewallRuleName", "in": "path", diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index 5568b0aed7ab..a32b049a8348 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -63,16 +63,16 @@ "description": "Creates a new server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "name": "parameters", @@ -100,7 +100,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -134,16 +134,16 @@ "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "name": "parameters", @@ -173,7 +173,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -195,16 +195,16 @@ "description": "Deletes a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -225,7 +225,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -250,16 +250,16 @@ "description": "Gets information about a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -272,7 +272,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -292,13 +292,13 @@ "description": "List all the servers in a given resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -334,10 +334,10 @@ "description": "List all the servers in a given subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -350,7 +350,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -551,14 +551,14 @@ "description": "Properties of the server." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ], "description": "Represents a server." @@ -977,59 +977,7 @@ "description": "day of week for maintenance window" } } - }, - "CloudError": { - "x-ms-external": true, - "type": "object", - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, - "parameters": { - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - }, - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - }, - "MaintenanceWindowNameParameter": { - "name": "maintenanceWindowName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the maintenance window.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - }, - "BackupNameParameter": { - "name": "backupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the backup.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json index 17356ab2a398..2f1aa9163479 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json @@ -48,7 +48,7 @@ "description": "Lists all of the available REST API operations.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -61,7 +61,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -158,16 +158,6 @@ "type": "string" } } - }, - "CloudError": { - "x-ms-external": true, - "type": "object", - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, "parameters": {} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json index e78f88f53683..b4961ae06b6e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json @@ -48,7 +48,7 @@ "description": "Get private DNS zone suffix in the cloud", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -61,7 +61,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -72,16 +72,6 @@ "PrivateDnsZoneSuffix": { "type": "string", "description": "Represents a resource name availability." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json index a50277505506..8a76a08014b6 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json @@ -51,16 +51,16 @@ "description": "Restarts a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, { "name": "parameters", @@ -86,7 +86,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -110,16 +110,16 @@ "description": "Starts a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -161,16 +161,16 @@ "description": "Stops a server.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerNameParameter" + "$ref": "./common-types.json#/parameters/ServerNameParameter" } ], "responses": { @@ -188,7 +188,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -223,29 +223,7 @@ } }, "description": "Represents server restart parameters." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index 0843703d8e27..4524db81b045 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -48,13 +48,13 @@ "description": "Get virtual network subnet usage for a given vNet resource id.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/LocationNameParameter" + "$ref": "common-types.json#/parameters/LocationNameParameter" }, { "name": "parameters", @@ -76,7 +76,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -126,38 +126,17 @@ "subnetName": { "type": "string", "readOnly": true, - "description": "name of the subnet" + "description": "Name of the delegated subnet for which IP addresses are in use" }, "usage": { "type": "integer", "format": "int64", "readOnly": true, - "description": "Number of used delegated subnets" + "description": "Number of IP addresses used by the delegated subnet" } }, "description": "Delegated subnet usage data." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "An error response from the Batch service." } }, - "parameters": { - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "minLength": 1, - "pattern": "^[-\\w\\._]+$", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/common-types.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/common-types.json new file mode 100644 index 000000000000..43d303c6fec2 --- /dev/null +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/common-types.json @@ -0,0 +1,32 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0", + "title": "Common types" + }, + "paths": {}, + "definitions": {}, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "x-ms-parameter-location": "method" + }, + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "minLength": 1, + "pattern": "^[-\\w\\._]+$", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json index 7c840b16418f..6b188c3dd065 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -38,6 +38,11 @@ "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json index a260f582027c..a6d8285a6349 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupListByServer.json @@ -11,7 +11,7 @@ "value": [ { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-15T16:05:19.902522+00:00" }, @@ -21,7 +21,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-16T16:05:23.9243453+00:00" }, @@ -31,7 +31,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-17T16:05:28.1247488+00:00" }, @@ -41,7 +41,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-18T16:05:32.2736701+00:00" }, @@ -51,7 +51,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-19T16:05:36.8603354+00:00" }, @@ -61,7 +61,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-20T16:05:41.9200138+00:00" }, @@ -71,7 +71,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-21T16:05:48.8528447+00:00" }, @@ -81,7 +81,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-22T16:08:06.3121688+00:00" }, @@ -91,7 +91,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-22T21:08:10.5057354+00:00" }, @@ -101,7 +101,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-23T21:24:16.9401531+00:00" }, @@ -111,7 +111,7 @@ }, { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-24T06:13:31.4962137+00:00" }, diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json index 91ef8472e1d0..3019a99cc8a0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/DatabaseCreate.json @@ -35,6 +35,11 @@ } } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json index 7056ca2fb963..5a72fc6c3183 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/FirewallRuleCreate.json @@ -35,6 +35,11 @@ } } }, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" + } + } } } From 7793f78272916d51e053a54ad3008b9cff9e2ad4 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 6 Oct 2022 04:35:52 -0700 Subject: [PATCH 66/82] Fix path for systemData --- .../preview/2022-03-08-preview/Database.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index ade3797ff106..a0100399cc81 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -274,7 +274,7 @@ "description": "The properties of a database." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/3/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "readOnly": true, "description": "The system metadata relating to this resource." } From 0e49eb899405601d5bc3a24257bb670136a3f582 Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Thu, 6 Oct 2022 15:05:21 -0700 Subject: [PATCH 67/82] remove get cached server name API --- .../2022-03-08-preview/CachedServerName.json | 127 ------------------ .../examples/CachedServerName.json | 25 ---- 2 files changed, 152 deletions(-) delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json deleted file mode 100644 index eaa7847cf08f..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-03-08-preview", - "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, security alert policies, log files and configurations with new business model." - }, - "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/locations/{locationName}/getCachedServerName": { - "post": { - "tags": [ - "GetCachedServerName" - ], - "operationId": "GetCachedServerName_Execute", - "x-ms-examples": { - "GetCachedServerName": { - "$ref": "./examples/CachedServerName.json" - } - }, - "description": "Get available cached server name for fast provisioning", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "common-types.json#/parameters/LocationNameParameter" - }, - { - "name": "cachedServerNameRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CachedServerNameRequest" - }, - "description": "The required parameters for get cached name available for fast provisioning." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CachedServerName" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "CachedServerNameRequest": { - "type": "object", - "required": [ - "version", - "storage", - "sku" - ], - "properties": { - "version": { - "$ref": "FlexibleServers.json#/definitions/ServerVersion", - "description": "PostgreSQL Server version." - }, - "storage": { - "$ref": "FlexibleServers.json#/definitions/Storage", - "default": null, - "description": "Storage properties of a server." - }, - "sku": { - "$ref": "FlexibleServers.json#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - } - }, - "description": "Request from client to get available cached server name" - }, - "CachedServerName": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of available cached server", - "readOnly": true - } - }, - "description": "Represents a resource name of a cached server" - } - }, - "parameters": {} -} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json deleted file mode 100644 index a39a49869e76..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-08-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "testrg", - "locationName": "WestUS", - "cachedServerNameRequest": { - "version": "12", - "storage": { - "storageSizeGB": 32 - }, - "sku": { - "tier": "Burstable", - "name": "Standard_B1ms" - } - } - }, - "responses": { - "200": { - "body": { - "name": "servername" - } - } - } -} From 3ab87ae0c03ba82af88fca812cf36e872df67cd7 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 6 Oct 2022 20:06:45 -0700 Subject: [PATCH 68/82] Update readme file to remove non-existing reference and fix review comment for systemData --- .../preview/2022-03-08-preview/Database.json | 5 ----- specification/postgresql/resource-manager/readme.md | 1 - 2 files changed, 6 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index a0100399cc81..be5791c09c18 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -272,11 +272,6 @@ "$ref": "#/definitions/DatabaseProperties", "x-ms-client-flatten": true, "description": "The properties of a database." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." } }, "allOf": [ diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 8a56527c5389..e9b07137999b 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -58,7 +58,6 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/ServerStartStopRestart.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.json ``` ### Tag: package-flexibleserver-2022-03-privatepreview From 48cb3fd5f37de58d6c998969577ca4f3630af34a Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 7 Oct 2022 05:38:19 -0700 Subject: [PATCH 69/82] Fix review comments --- .../preview/2022-03-08-preview/Database.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index be5791c09c18..82334ce4e440 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -293,7 +293,8 @@ }, "nextLink": { "description": "The link used to get the next page of databases.", - "type": "string" + "type": "string", + "format": "uri" } }, "description": "A List of databases." From 2d2d903ee2436593e678861b2462d24060d969f7 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Mon, 10 Oct 2022 04:32:18 -0700 Subject: [PATCH 70/82] Fix review comments to rename operationId to remove Execute --- .../preview/2022-03-08-preview/Capabilities.json | 2 +- .../preview/2022-03-08-preview/CheckNameAvailability.json | 4 ++-- .../preview/2022-03-08-preview/PrivateDnsZone.json | 2 +- .../preview/2022-03-08-preview/VirtualNetwork.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 9899efa0261d..01c349964118 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -39,7 +39,7 @@ "tags": [ "LocationBasedCapabilities" ], - "operationId": "LocationBasedCapabilities_Execute", + "operationId": "LocationBasedCapabilities_Get", "x-ms-examples": { "CapabilitiesList": { "$ref": "./examples/CapabilitiesByLocation.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index f3276d633744..73485b4c2588 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -39,7 +39,7 @@ "tags": [ "CheckNameAvailability" ], - "operationId": "CheckNameAvailability_Execute", + "operationId": "CheckNameAvailabilityCheck", "x-ms-examples": { "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" @@ -84,7 +84,7 @@ "tags": [ "CheckNameAvailability" ], - "operationId": "CheckNameAvailabilityLocationBased_Execute", + "operationId": "CheckNameAvailabilityLocationBasedCheck", "x-ms-examples": { "NameAvailability": { "$ref": "./examples/CheckNameAvailabilityLocationBased.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json index b4961ae06b6e..76b57373e8ce 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json @@ -39,7 +39,7 @@ "tags": [ "GetPrivateDnsZoneSuffix" ], - "operationId": "GetPrivateDnsZoneSuffix_Execute", + "operationId": "GetPrivateDnsZoneSuffix", "x-ms-examples": { "GetPrivateDnsZoneSuffix": { "$ref": "./examples/GetPrivateDnsZoneSuffix.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index 4524db81b045..5349866e8cd9 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -39,7 +39,7 @@ "tags": [ "VirtualNetworkSubnetUsage" ], - "operationId": "VirtualNetworkSubnetUsage_Execute", + "operationId": "VirtualNetworkSubnetUsageCheck", "x-ms-examples": { "VirtualNetworkSubnetUsageList": { "$ref": "./examples/VirtualNetworkSubnetUsage.json" From c4be72c58ecab9f6b888af3b419394184ca5827f Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 05:05:08 -0700 Subject: [PATCH 71/82] Fix review comment --- .../CheckNameAvailability.json | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 73485b4c2588..0a7d873cabda 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -132,16 +132,6 @@ "NameAvailability": { "type": "object", "properties": { - "message": { - "type": "string", - "description": "Error Message.", - "readOnly": true - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available.", - "readOnly": true - }, "name": { "type": "string", "description": "name of the PostgreSQL server.", @@ -151,22 +141,14 @@ "type": "string", "description": "type of the server", "readOnly": true - }, - "reason": { - "type": "string", - "description": "The name availability reason.", - "enum": [ - "Invalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "Reason", - "modelAsString": true - }, - "readOnly": true } }, - "description": "Represents a resource name availability." + "description": "Represents a resource name availability.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/CheckNameAvailabilityResponse" + } + ] } }, "parameters": {} From e6be137e7f832a3167b44e5d21cd05f8d9e84a75 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 05:43:00 -0700 Subject: [PATCH 72/82] Fix unresolved reference --- .../preview/2022-03-08-preview/CheckNameAvailability.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 0a7d873cabda..0a8191d71f59 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -146,7 +146,7 @@ "description": "Represents a resource name availability.", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/CheckNameAvailabilityResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" } ] } From efac1c891f7ffdeaf5e357f6491fa614ca30209c Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 07:08:20 -0700 Subject: [PATCH 73/82] Added pattern validation for charset and collation --- .../preview/2022-03-08-preview/Database.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json index 82334ce4e440..76d89ca37a35 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json @@ -256,11 +256,13 @@ "properties": { "charset": { "type": "string", - "description": "The charset of the database." + "description": "The charset of the database.", + "pattern": "^[a-zA-Z]+\\w*$" }, "collation": { "type": "string", - "description": "The collation of the database." + "description": "The collation of the database.", + "pattern": "^[a-zA-Z\\-]+([. ]|\\w)*$" } }, "description": "The properties of a database." From 84a017e138ec97f706a71c8befe37a3cbd564c48 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 08:23:43 -0700 Subject: [PATCH 74/82] Add backupType as enum as a string --- .../preview/2022-03-08-preview/Backups.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json index fe8a561a1de4..4c0f611d131c 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json @@ -131,7 +131,14 @@ "properties": { "backupType": { "type": "string", - "description": "Backup type." + "description": "Backup type.", + "enum": [ + "Full" + ], + "x-ms-enum": { + "name": "Origin", + "modelAsString": true + } }, "completedTime": { "type": "string", From 57009591c48cc926cb4554c585b42ef59223a96a Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 08:30:24 -0700 Subject: [PATCH 75/82] Fix enum case error for backup type --- .../preview/2022-03-08-preview/examples/BackupGet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json index 0b05d2eb7681..301125f8b9e1 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/BackupGet.json @@ -10,7 +10,7 @@ "200": { "body": { "properties": { - "backupType": "FULL", + "backupType": "Full", "source": "Automatic", "completedTime": "2021-06-15T16:05:19.902522+00:00" }, From aff38dd59a995bb295840b73db9bbc84e91682f1 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:29:13 -0700 Subject: [PATCH 76/82] Revert name of Database.json back to Databases.json --- .../preview/2022-03-08-preview/{Database.json => Databases.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/{Database.json => Databases.json} (100%) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json similarity index 100% rename from specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json rename to specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json From 13d3ac1398d5fefa6d6f8f9d173604529c5cece4 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:33:01 -0700 Subject: [PATCH 77/82] Add Databases.json in readme file --- specification/postgresql/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index e9b07137999b..a9d723ebb374 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -51,7 +51,7 @@ input-file: - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Configuration.json - - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Database.json + - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Databases.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FirewallRules.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json - Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Operations.json From c2316609d90df5c461036eef76368276171429ce Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Thu, 13 Oct 2022 23:12:30 -0700 Subject: [PATCH 78/82] Remove 202 for Administrators PUT call --- .../preview/2022-03-08-preview/Administrators.json | 8 -------- .../2022-03-08-preview/examples/AdministratorAdd.json | 6 ------ 2 files changed, 14 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json index f42daf9baf14..7a06f8254b14 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json @@ -85,14 +85,6 @@ "$ref": "#/definitions/ActiveDirectoryAdministrator" } }, - "202": { - "description": "Accepted", - "headers": { - "Location": { - "type": "string" - } - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json index 6b188c3dd065..de3a17c9f6dc 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/AdministratorAdd.json @@ -37,12 +37,6 @@ "name": "testuser1@microsoft.com", "type": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview", - "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westcentralus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-03-08-preview" - } } } } From 1d3b09bc9078409894b4fa85ead0aced79f6688f Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 14 Oct 2022 03:14:15 -0700 Subject: [PATCH 79/82] Update name for Identity object to differentitate it from common type --- .../preview/2022-03-08-preview/FlexibleServers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index a32b049a8348..f9a0a4717499 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -542,7 +542,7 @@ "description": "The SKU (pricing tier) of the server." }, "identity": { - "$ref": "#/definitions/Identity", + "$ref": "#/definitions/UserAssignedIdentity", "description": "Describes the identity of the application." }, "properties": { @@ -638,7 +638,7 @@ "description": "The SKU (pricing tier) of the server." }, "identity": { - "$ref": "#/definitions/Identity", + "$ref": "#/definitions/UserAssignedIdentity", "description": "Describes the identity of the application." }, "properties": { @@ -778,7 +778,7 @@ "$ref": "#/definitions/UserIdentity" } }, - "Identity": { + "UserAssignedIdentity": { "type": "object", "properties": { "userAssignedIdentities": { From 32abcc721d3016a48e6b1812e64be007e8cffcf7 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Fri, 14 Oct 2022 05:41:45 -0700 Subject: [PATCH 80/82] Renamed Sku to have different name then the one in comman types as the corresponding properties are different --- .../preview/2022-03-08-preview/FlexibleServers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json index f9a0a4717499..4beba209fd69 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json @@ -538,7 +538,7 @@ "type": "object", "properties": { "sku": { - "$ref": "#/definitions/Sku", + "$ref": "#/definitions/PostgreSqlSku", "description": "The SKU (pricing tier) of the server." }, "identity": { @@ -634,7 +634,7 @@ "type": "object", "properties": { "sku": { - "$ref": "#/definitions/Sku", + "$ref": "#/definitions/PostgreSqlSku", "description": "The SKU (pricing tier) of the server." }, "identity": { @@ -673,7 +673,7 @@ }, "description": "A list of servers." }, - "Sku": { + "PostgreSqlSku": { "type": "object", "properties": { "name": { From 593218a2d7179cc635292707fb9c5dcc481819ed Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Tue, 18 Oct 2022 23:09:29 -0700 Subject: [PATCH 81/82] Revert operationId change to avoid SDK and CLI impact to end users --- .../preview/2022-03-08-preview/Capabilities.json | 2 +- .../preview/2022-03-08-preview/CheckNameAvailability.json | 4 ++-- .../preview/2022-03-08-preview/PrivateDnsZone.json | 2 +- .../preview/2022-03-08-preview/VirtualNetwork.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json index 01c349964118..9899efa0261d 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Capabilities.json @@ -39,7 +39,7 @@ "tags": [ "LocationBasedCapabilities" ], - "operationId": "LocationBasedCapabilities_Get", + "operationId": "LocationBasedCapabilities_Execute", "x-ms-examples": { "CapabilitiesList": { "$ref": "./examples/CapabilitiesByLocation.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index 0a8191d71f59..b054015c0943 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -39,7 +39,7 @@ "tags": [ "CheckNameAvailability" ], - "operationId": "CheckNameAvailabilityCheck", + "operationId": "CheckNameAvailability_Execute", "x-ms-examples": { "NameAvailability": { "$ref": "./examples/CheckNameAvailability.json" @@ -84,7 +84,7 @@ "tags": [ "CheckNameAvailability" ], - "operationId": "CheckNameAvailabilityLocationBasedCheck", + "operationId": "CheckNameAvailability_LocationBasedCheck", "x-ms-examples": { "NameAvailability": { "$ref": "./examples/CheckNameAvailabilityLocationBased.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json index 76b57373e8ce..b4961ae06b6e 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/PrivateDnsZone.json @@ -39,7 +39,7 @@ "tags": [ "GetPrivateDnsZoneSuffix" ], - "operationId": "GetPrivateDnsZoneSuffix", + "operationId": "GetPrivateDnsZoneSuffix_Execute", "x-ms-examples": { "GetPrivateDnsZoneSuffix": { "$ref": "./examples/GetPrivateDnsZoneSuffix.json" diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json index 5349866e8cd9..4524db81b045 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/VirtualNetwork.json @@ -39,7 +39,7 @@ "tags": [ "VirtualNetworkSubnetUsage" ], - "operationId": "VirtualNetworkSubnetUsageCheck", + "operationId": "VirtualNetworkSubnetUsage_Execute", "x-ms-examples": { "VirtualNetworkSubnetUsageList": { "$ref": "./examples/VirtualNetworkSubnetUsage.json" From f3f22fb49d04fd42396c86a9a570cfa70cef3033 Mon Sep 17 00:00:00 2001 From: ambrahma <61298407+ambrahma@users.noreply.github.com> Date: Wed, 19 Oct 2022 00:36:07 -0700 Subject: [PATCH 82/82] Update operation id for consistency across mysql and postgres and to avoid conditions in CLI --- .../preview/2022-03-08-preview/CheckNameAvailability.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json index b054015c0943..10545f538834 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CheckNameAvailability.json @@ -84,7 +84,7 @@ "tags": [ "CheckNameAvailability" ], - "operationId": "CheckNameAvailability_LocationBasedCheck", + "operationId": "CheckNameAvailabilityWithLocation_Execute", "x-ms-examples": { "NameAvailability": { "$ref": "./examples/CheckNameAvailabilityLocationBased.json"