diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json new file mode 100644 index 000000000000..07e2d133d87e --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeCount": 2 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "preferredPrimaryZone": "1", + "nodeCount": 2, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w1", + "fullyQualifiedDomainName": "w1.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json new file mode 100644 index 000000000000..9f9d3103350c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "administratorLoginPassword": "p@ssword1234", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "enableHa": true, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "preferredPrimaryZone": "1" + }, + "tags": {} + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": {}, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 3, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w2", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w3", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json new file mode 100644 index 000000000000..f5a62c9cbba4 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "sourceLocation": "westus", + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json new file mode 100644 index 000000000000..f5a62c9cbba4 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "sourceLocation": "westus", + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json new file mode 100644 index 000000000000..b49831b5c006 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "testcluster", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json new file mode 100644 index 000000000000..db6ff92744b3 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json new file mode 100644 index 000000000000..0e8c3479ff09 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", + "name": "hsctestsg2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": true, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 1, + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg2-c", + "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w0", + "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-15T00:01:32.317Z", + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json new file mode 100644 index 000000000000..5c595cff905f --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", + "name": "hsctestsg2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string" + }, + "location": "eastus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": true, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg2-c", + "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w0", + "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg2-w1", + "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-15T00:01:32.317Z", + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json new file mode 100644 index 000000000000..11093dc35e52 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterPromoteReadReplica.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json new file mode 100644 index 000000000000..11093dc35e52 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterRestart.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json new file mode 100644 index 000000000000..3a7a3d5988ed --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeVCores": 16 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json new file mode 100644 index 000000000000..fbe1db8dda33 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeStorageQuotaInMb": 2097152 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json new file mode 100644 index 000000000000..2b4d2791697b --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStart.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json new file mode 100644 index 000000000000..2b4d2791697b --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterStop.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json new file mode 100644 index 000000000000..32bdff17f911 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "administratorLoginPassword": "newP@ssword1", + "coordinatorVCores": 16, + "nodeCount": 4, + "nodeVCores": 16 + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 4, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w3", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json new file mode 100644 index 000000000000..de75568d4a8c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json index ae4e31177714..de0f5d25fa66 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "configurationName": "array_nulls", "api-version": "2022-11-08" }, "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", - "name": "array_nulls", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/client_encoding", + "name": "client_encoding", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", "systemData": { "createdBy": "user1", @@ -21,20 +21,20 @@ "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" }, "properties": { - "description": "Enable input of NULL elements in arrays.", - "dataType": "Boolean", - "allowedValues": "on,off", + "description": "Sets the client's character set encoding.", + "dataType": "Enumeration", + "allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", "serverRoleGroupConfigurations": [ { "role": "Coordinator", - "value": "on", - "defaultValue": "on", - "source": "system-default" + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" }, { "role": "Worker", - "value": "off", - "defaultValue": "on", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", "source": "user-override" } ] diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json similarity index 99% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json index b0e2eba24883..5a23e3a93f92 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "api-version": "2022-11-08" }, "responses": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json index 1f32059bd1fa..04262e9e1a76 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "serverName": "testserver", "api-version": "2022-11-08" }, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json new file mode 100644 index 000000000000..c6398a388ad7 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "value": "on" + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/coordinator", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json similarity index 59% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json index baa9c67ccb7e..734fbd248ed8 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json @@ -2,30 +2,25 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestResourceGroup", - "serverGroupName": "hsctestsg", + "clusterName": "hsctestsg", "configurationName": "array_nulls", "api-version": "2022-11-08", "parameters": { "properties": { - "serverRoleGroupConfigurations": [ - { - "role": "Coordinator", - "value": "on" - }, - { - "role": "Worker", - "value": "off" - } - ] + "value": "off" } } }, "responses": { - "200": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, "body": { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/node", "systemData": { "createdBy": "user1", "createdByType": "User", @@ -35,19 +30,9 @@ "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" }, "properties": { - "serverRoleGroupConfigurations": [ - { - "role": "Coordinator", - "value": "on" - }, - { - "role": "Worker", - "value": "off" - } - ] + "value": "off" } } - }, - "202": {} + } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json index 4fd7f107ba94..71ae524fe5c1 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "firewallRuleName": "rule1", "api-version": "2022-11-08", "parameters": { @@ -13,7 +13,11 @@ } }, "responses": { - "201": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, "body": { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", "name": "rule1", @@ -31,26 +35,6 @@ "endIpAddress": "255.255.255.255" } } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "202": {} + } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json index 32725ea2131b..e28000660ec0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json @@ -2,13 +2,17 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "firewallRuleName": "rule1", "api-version": "2022-11-08" }, "responses": { - "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, "204": {} } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json index b727c3bad00b..baad985259ae 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "firewallRuleName": "rule1", "api-version": "2022-11-08" }, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json similarity index 97% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json index 037f64737d4d..0aaedac67e9d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "api-version": "2022-11-08" }, "responses": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json index eb78e5a1b800..71a53a67b6f3 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json @@ -10,27 +10,27 @@ "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/read", "display": { "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Group", - "operation": "List/Get PostgreSQL Server Groups", - "description": "Return the list of server groups or gets the properties for the specified server group." + "resource": "PostgreSQL Cluster", + "operation": "List/Get PostgreSQL Clusters", + "description": "Return the list of clusters or gets the properties for the specified cluster." } }, { "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/write", "display": { "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Group", - "operation": "Create/Update PostgreSQL Server Group", - "description": "Creates a server group with the specified parameters or update the properties or tags for the specified server group." + "resource": "PostgreSQL Cluster", + "operation": "Create/Update PostgreSQL Cluster", + "description": "Creates a cluster with the specified parameters or update the properties or tags for the specified cluster." } }, { "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/delete", "display": { "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Grouo", - "operation": "Delete PostgreSQL Server Group", - "description": "Deletes an existing server group." + "resource": "PostgreSQL Cluster", + "operation": "Delete PostgreSQL Cluster", + "description": "Deletes an existing cluster." } }, { @@ -38,8 +38,8 @@ "display": { "provider": "Microsoft DB for PostgreSQL", "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers of Server Group", - "description": "Return the list of servers of server group or gets the properties for the specified server from server group." + "operation": "List/Get PostgreSQL Servers of Cluster", + "description": "Return the list of servers of cluster or gets the properties for the specified server from cluster." } }, { @@ -56,8 +56,8 @@ "display": { "provider": "Microsoft DB for PostgreSQL", "resource": "Configurations", - "operation": "List/Get Configurations of Server Group", - "description": "Return the list of configurations for a server group or gets the value for the specified configuration." + "operation": "List/Get Configurations of Cluster", + "description": "Return the list of configurations for a cluster or gets the value for the specified configuration." } }, { @@ -65,7 +65,7 @@ "display": { "provider": "Microsoft DB for PostgreSQL", "resource": "Configurations", - "operation": "Update Configurations of Server Group", + "operation": "Update Configurations of Cluster", "description": "Update an value of configurations." } }, @@ -75,7 +75,7 @@ "provider": "Microsoft DB for PostgreSQL", "resource": "Firewall Rules", "operation": "List/Get Firewall Rules", - "description": "Return the list of firewall rules for a server group or gets the properties for the specified firewall rule." + "description": "Return the list of firewall rules for a cluster or gets the properties for the specified firewall rule." } }, { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json new file mode 100644 index 000000000000..e7100d2351e1 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json new file mode 100644 index 000000000000..6811e35bc97c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-11-08" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, + "204": {} + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json new file mode 100644 index 000000000000..35ffc01ec728 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsGet.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "groupIds": [ + "coordinator" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json new file mode 100644 index 000000000000..8f99450efbbc --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionsListByCluster.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "groupIds": [ + "coordinator" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name-2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name-2" + }, + "groupIds": [ + "worker-0" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json new file mode 100644 index 000000000000..0ba9732396bd --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourceListByCluster.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateLinkResources/coordinator", + "name": "coordinator", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "groupId": "coordinator", + "requiredMembers": [ + "coordinator" + ], + "requiredZoneNames": [ + "privatelink.hsctestsg.postgres.database.azure.com" + ] + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateLinkResources/worker-0", + "name": "worker-0", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "groupId": "worker-0", + "requiredMembers": [ + "worker-0" + ], + "requiredZoneNames": [ + "privatelink.hsctestsg.postgres.database.azure.com" + ] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json new file mode 100644 index 000000000000..0731977fd68d --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateLinkResourcesGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "privateLinkResourceName": "plr", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateLinkResources/plr", + "name": "plr", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "groupId": "coordinator", + "requiredMembers": [ + "coordinator" + ], + "requiredZoneNames": [ + "privatelink.hsctestsg.postgres.database.azure.com" + ] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json index 0405d7f621c2..4af3370772fb 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "roleName": "role1", "api-version": "2022-11-08", "parameters": { @@ -12,7 +12,11 @@ } }, "responses": { - "200": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, "body": { "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", "name": "role1", @@ -27,23 +31,6 @@ }, "properties": {} } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", - "name": "role1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {} - } - }, - "202": {} + } } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json index 6a9693f46570..d11688d7a6e7 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json @@ -2,13 +2,17 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "roleName": "role1", "api-version": "2022-11-08" }, "responses": { - "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + } + }, "204": {} } } diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json similarity index 97% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json index 3096c7eaa9e7..27967abaf9c6 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "pgtestsvc4", + "clusterName": "pgtestsvc4", "api-version": "2022-11-08" }, "responses": { diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json index 6d4ea4accb9d..82ebb1d2c128 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", + "clusterName": "hsctestsg1", "serverName": "hsctestsg1-c", "api-version": "2022-11-08" }, @@ -22,11 +22,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "2", "role": "Coordinator", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json deleted file mode 100644 index 7926b9413c12..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupAddNode.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "serverRoleGroups": [ - { - "name": "", - "role": "Worker", - "serverCount": 10 - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json deleted file mode 100644 index 18ed9a3a0d74..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreate.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "administratorLogin": "citus", - "administratorLoginPassword": "password", - "backupRetentionDays": 35, - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "enableMx": true, - "enableZfs": false, - "postgresqlVersion": "12", - "citusVersion": "9.5", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "GeneralPurpose", - "vCores": 4, - "storageQuotaInMb": 524288, - "enableHa": true - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "MemoryOptimized", - "vCores": 4, - "storageQuotaInMb": 524288, - "enableHa": false - } - ] - }, - "tags": { - "ElasticServer": "1" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json deleted file mode 100644 index 5e86a9d4692e..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreatePITR.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "createMode": "PointInTimeRestore", - "pointInTimeUTC": "2017-12-14T00:00:37.467Z", - "sourceLocation": "eastus", - "sourceSubscriptionId": "dddddddd-dddd-dddd-dddd-dddddddddddd", - "sourceResourceGroupName": "SourceGroup", - "sourceServerGroupName": "pgtests-source-server-group", - "enableMx": true, - "enableZfs": false - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json deleted file mode 100644 index cc824e68f229..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupCreateReadReplica.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "createMode": "ReadReplica", - "sourceLocation": "eastus", - "sourceSubscriptionId": "dddddddd-dddd-dddd-dddd-dddddddddddd", - "sourceResourceGroupName": "SourceGroup", - "sourceServerGroupName": "pgtests-source-server-group" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json deleted file mode 100644 index 7be033e6cd4e..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "testservergroup", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json deleted file mode 100644 index 74b3774e9d0c..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupGet.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "name": "hsctestsg1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp1": "string", - "additionalProp2": "string", - "additionalProp3": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "maintenanceWindow": { - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0, - "customWindow": "Disabled" - }, - "readReplicas": [ - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" - ], - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg1-c", - "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg1-w0", - "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w1", - "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w2", - "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json deleted file mode 100644 index 6c2e089372f2..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupList.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "api-version": "2022-11-08" - }, - "responses": { - "200": { - "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2022-11-08&$top=3&$skiptoken=skiptoken", - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "name": "hsctestsg1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp1": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": [ - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2" - ], - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg1-c", - "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg1-w0", - "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w1", - "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w2", - "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", - "name": "hsctestsg2", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp2": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "readReplicas": null, - "sourceServerGroup": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg2-c", - "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 2, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg2-w0", - "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg2-w1", - "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg3", - "name": "hsctestsg3", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp3": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg3-c", - "fullyQualifiedDomainName": "hsctestsg3-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg3-w0", - "fullyQualifiedDomainName": "hsctestsg3-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w1", - "fullyQualifiedDomainName": "hsctestsg3-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w2", - "fullyQualifiedDomainName": "hsctestsg3-w2.postgres.database.azure.com" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json deleted file mode 100644 index fa661f414d9c..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupListByResourceGroup.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "api-version": "2022-11-08" - }, - "responses": { - "200": { - "body": { - "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2?api-version=2022-11-08&$top=3&$skiptoken=skiptoken", - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", - "name": "hsctestsg1", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp1": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg1-c", - "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg1-w0", - "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w1", - "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg1-w2", - "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2", - "name": "hsctestsg2", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp2": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg2-c", - "fullyQualifiedDomainName": "hsctestsg2-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 2, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg2-w0", - "fullyQualifiedDomainName": "hsctestsg2-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg2-w1", - "fullyQualifiedDomainName": "hsctestsg2-w1.postgres.database.azure.com" - } - ] - } - ] - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg3", - "name": "hsctestsg3", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "tags": { - "additionalProp3": "string" - }, - "location": "eastus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "administratorLogin": "citus", - "postgresqlVersion": "12", - "citusVersion": "9.5", - "enableMx": true, - "enableZfs": false, - "state": "Ready", - "earliestRestoreTime": "2020-09-14T00:00:37.467Z", - "resourceProviderType": "Meru", - "availabilityZone": "1", - "standbyAvailabilityZone": "2", - "delegatedSubnetArguments": { - "subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet" - }, - "privateDnsZoneArguments": { - "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone" - }, - "readReplicas": null, - "sourceServerGroup": null, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "MemoryOptimized", - "storageQuotaInMb": 10000, - "vCores": 4, - "enableHa": true, - "enablePublicIp": true, - "serverNames": [ - { - "name": "hsctestsg3-c", - "fullyQualifiedDomainName": "hsctestsg3-c.postgres.database.azure.com" - } - ] - }, - { - "name": "", - "role": "Worker", - "serverCount": 3, - "serverEdition": "GeneralPurpose", - "storageQuotaInMb": 10000, - "vCores": 8, - "enableHa": false, - "enablePublicIp": false, - "serverNames": [ - { - "name": "hsctestsg3-w0", - "fullyQualifiedDomainName": "hsctestsg3-w0.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w1", - "fullyQualifiedDomainName": "hsctestsg3-w1.postgres.database.azure.com" - }, - { - "name": "hsctestsg3-w2", - "fullyQualifiedDomainName": "hsctestsg3-w2.postgres.database.azure.com" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json deleted file mode 100644 index 800e6c1a3890..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupRestart.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json deleted file mode 100644 index 05f5cfaa23e9..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleCompute.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "vCores": 16 - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json deleted file mode 100644 index 14b9b501fc99..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupScaleStorage.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "location": "westus", - "properties": { - "serverRoleGroups": [ - { - "name": "", - "role": "Worker", - "storageQuotaInMb": 8388608 - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json deleted file mode 100644 index 800e6c1a3890..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStart.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json deleted file mode 100644 index 800e6c1a3890..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupStop.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", - "api-version": "2022-11-08" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json deleted file mode 100644 index f21693b5c0a0..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdate.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "properties": { - "postgresqlVersion": "12", - "administratorLoginPassword": "secret", - "backupRetentionDays": 30, - "serverRoleGroups": [ - { - "name": "", - "role": "Coordinator", - "serverCount": 1, - "serverEdition": "GeneralPurpose", - "vCores": 8, - "storageQuotaInMb": 1048576, - "enableHa": false - }, - { - "name": "", - "role": "Worker", - "serverCount": 4, - "serverEdition": "MemoryOptimized", - "vCores": 4, - "storageQuotaInMb": 524288, - "enableHa": true - } - ] - }, - "tags": { - "ElasticServer": "2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json deleted file mode 100644 index 7bada1a16776..000000000000 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGroupUpdateMaintenanceWindow.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg", - "api-version": "2022-11-08", - "parameters": { - "properties": { - "maintenanceWindow": { - "dayOfWeek": 0, - "startHour": 8, - "startMinute": 0, - "customWindow": "Enabled" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", - "name": "hsctestsg", - "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": {}, - "location": "westus2" - } - }, - "202": {} - } -} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json similarity index 92% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json index db064642bba0..50c3dbc6aac2 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByServerGroup.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "serverGroupName": "hsctestsg1", + "clusterName": "hsctestsg1", "api-version": "2022-11-08" }, "responses": { @@ -23,11 +23,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "2", "role": "Coordinator", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, @@ -52,11 +50,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "", "role": "Worker", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, @@ -81,11 +77,9 @@ }, "properties": { "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com", - "administratorLogin": "citus", "postgresqlVersion": "12", "citusVersion": "9.5", "availabilityZone": "1", - "standbyAvailabilityZone": "", "role": "Worker", "serverEdition": "MemoryOptimized", "storageQuotaInMb": 10000, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 358c4a1b86cc..5014e5d16f30 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "HyperscaleCitusManagementClient", - "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL Hyperscale (Citus) resources including server groups, servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations.", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Cosmos DB for PostgreSQL resources including clusters, servers, configurations, firewall rules, roles, private endpoint connections and private link resources.", "version": "2022-11-08" }, "host": "management.azure.com", @@ -34,37 +34,37 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/serverGroupsv2": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2": { "get": { "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_List", + "operationId": "Clusters_List", "x-ms-examples": { - "List all the server groups": { - "$ref": "./examples/ServerGroupList.json" + "List all the clusters": { + "$ref": "./examples/ClusterList.json" } }, - "description": "List all the server groups in a given subscription.", + "description": "List all the clusters in a given subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupListResult" + "$ref": "#/definitions/ClusterListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -73,40 +73,40 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2": { "get": { "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_ListByResourceGroup", + "operationId": "Clusters_ListByResourceGroup", "x-ms-examples": { - "List the server groups by resource group": { - "$ref": "./examples/ServerGroupListByResourceGroup.json" + "List the clusters by resource group": { + "$ref": "./examples/ClusterListByResourceGroup.json" } }, - "description": "List all the server groups in a given resource group.", + "description": "List all the clusters in a given resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupListResult" + "$ref": "#/definitions/ClusterListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -115,144 +115,154 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}": { "put": { - "description": "Creates a new server group with servers.", + "description": "Creates a new cluster with servers.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_CreateOrUpdate", + "operationId": "Clusters_CreateOrUpdate", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Create a new server group": { - "$ref": "./examples/ServerGroupCreate.json" + "Create a new cluster": { + "$ref": "./examples/ClusterCreate.json" }, - "Create a new server group as a point in time restore": { - "$ref": "./examples/ServerGroupCreatePITR.json" + "Create a new cluster as a point in time restore": { + "$ref": "./examples/ClusterCreatePITR.json" }, - "Create a new server group as a read replica": { - "$ref": "./examples/ServerGroupCreateReadReplica.json" + "Create a new cluster as a read replica": { + "$ref": "./examples/ClusterCreateReadReplica.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/Cluster" }, - "description": "The required parameters for creating or updating a server group." + "description": "The required parameters for creating or updating a cluster." } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerGroup" - } - }, "201": { "description": "Created", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + }, "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "get": { - "description": "Gets information about a server group.", + "description": "Gets information about a cluster.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_Get", + "operationId": "Clusters_Get", "x-ms-examples": { - "Get the server group": { - "$ref": "./examples/ServerGroupGet.json" + "Get the cluster": { + "$ref": "./examples/ClusterGet.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "delete": { - "description": "Deletes a server group together with servers in it.", + "description": "Deletes a cluster together with servers in it.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_Delete", + "operationId": "Clusters_Delete", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Delete the server group": { - "$ref": "./examples/ServerGroupDelete.json" + "Delete the cluster": { + "$ref": "./examples/ClusterDelete.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -260,114 +270,122 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "patch": { - "description": "Updates an existing server group. The request body can contain one to many of the properties present in the normal server group definition.", + "description": "Updates an existing cluster. The request body can contain one to many of the properties present in the normal cluster definition.", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_Update", + "operationId": "Clusters_Update", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Update the server group": { - "$ref": "./examples/ServerGroupUpdate.json" + "Update the cluster": { + "$ref": "./examples/ClusterUpdate.json" }, "Scale compute": { - "$ref": "./examples/ServerGroupScaleCompute.json" + "$ref": "./examples/ClusterScaleCompute.json" }, "Scale storage": { - "$ref": "./examples/ServerGroupScaleStorage.json" + "$ref": "./examples/ClusterScaleStorage.json" }, "Add new worker nodes": { - "$ref": "./examples/ServerGroupAddNode.json" + "$ref": "./examples/ClusterAddNode.json" }, "Update customer maintenance window": { - "$ref": "./examples/ServerGroupUpdateMaintenanceWindow.json" + "$ref": "./examples/ClusterUpdateMaintenanceWindow.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerGroupForUpdate" + "$ref": "#/definitions/ClusterForUpdate" }, - "description": "The parameters for updating a server group." + "description": "The parameters for updating a cluster." } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + }, "schema": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers": { "get": { - "description": "Lists servers of a server group.", + "description": "Lists servers of a cluster.", "tags": [ "Servers" ], - "operationId": "Servers_ListByServerGroup", + "operationId": "Servers_ListByCluster", "x-ms-examples": { - "List servers of the server group": { - "$ref": "./examples/ServerListByServerGroup.json" + "List servers of the cluster": { + "$ref": "./examples/ServerListByCluster.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupServerListResult" + "$ref": "#/definitions/ClusterServerListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -376,30 +394,30 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers/{serverName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}": { "get": { - "description": "Gets information about a server in server group.", + "description": "Gets information about a server in cluster.", "tags": [ "Servers" ], "operationId": "Servers_Get", "x-ms-examples": { - "Get the server of server group": { + "Get the server of cluster": { "$ref": "./examples/ServerGet.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ServerNameParameter" @@ -409,42 +427,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupServer" + "$ref": "#/definitions/ClusterServer" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/servers/{serverName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}/configurations": { "get": { - "description": "List all the configurations of a server in server group.", + "description": "List all the configurations of a server in cluster.", "tags": [ "Configurations" ], "operationId": "Configurations_ListByServer", "x-ms-examples": { - "List configurations of the server that in the server group": { + "List configurations of the server that in the cluster": { "$ref": "./examples/ConfigurationListByServer.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ServerNameParameter" @@ -460,7 +478,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -469,43 +487,43 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations": { "get": { - "description": "List all the configurations of a server group.", + "description": "List all the configurations of a cluster.", "tags": [ "Configurations" ], - "operationId": "Configurations_ListByServerGroup", + "operationId": "Configurations_ListByCluster", "x-ms-examples": { - "List configurations of the server group": { - "$ref": "./examples/ConfigurationListByServerGroup.json" + "List configurations of the cluster": { + "$ref": "./examples/ConfigurationListByCluster.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ServerGroupConfigurationListResult" + "$ref": "#/definitions/ClusterConfigurationListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -514,31 +532,79 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations/{configurationName}": { - "patch": { - "description": "Updates configuration of server role groups in a server group", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}": { + "get": { + "description": "Gets information of a configuration for coordinator and nodes.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "Get configuration details.": { + "$ref": "./examples/ConfigurationGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}/coordinator": { + "put": { + "description": "Updates configuration of coordinator in a cluster", "tags": [ "Configurations" ], - "operationId": "Configurations_Update", + "operationId": "Configurations_UpdateCoordinator", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Update single configuration of the server group": { - "$ref": "./examples/ConfigurationUpdate.json" + "Update single configuration of coordinator": { + "$ref": "./examples/ConfigurationUpdateCoordinator.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" @@ -548,74 +614,102 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/ServerConfigurationRequest" }, - "description": "The required parameters for updating a server group configuration." + "description": "The required parameters for updating a cluster configuration." } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/ServerConfiguration" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } - }, - "get": { - "description": "Gets information about single server group configuration.", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}/node": { + "put": { + "description": "Updates configuration of nodes in a cluster", "tags": [ "Configurations" ], - "operationId": "Configurations_Get", + "operationId": "Configurations_UpdateNode", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Get single configuration of the server group": { - "$ref": "./examples/ConfigurationGet.json" + "Update single configuration of nodes": { + "$ref": "./examples/ConfigurationUpdateNode.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerConfigurationRequest" + }, + "description": "The required parameters for updating a cluster configuration." } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/ServerConfiguration" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/firewallRules/{firewallRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules/{firewallRuleName}": { "put": { "description": "Creates a new firewall rule or updates an existing firewall rule.", "tags": [ @@ -623,23 +717,26 @@ ], "operationId": "FirewallRules_CreateOrUpdate", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { - "Create a firewall rule of the server group": { + "Create a firewall rule of the cluster": { "$ref": "./examples/FirewallRuleCreate.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -655,64 +752,71 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { "$ref": "#/definitions/FirewallRule" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "delete": { - "description": "Deletes a server group firewall rule.", + "description": "Deletes a cluster firewall rule.", "tags": [ "FirewallRules" ], "operationId": "FirewallRules_Delete", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Delete the firewall rule of the server group": { + "Delete the firewall rule of the cluster": { "$ref": "./examples/FirewallRuleDelete.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -720,34 +824,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } }, "get": { - "description": "Gets information about a server group firewall rule.", + "description": "Gets information about a cluster firewall rule.", "tags": [ "FirewallRules" ], "operationId": "FirewallRules_Get", "x-ms-examples": { - "Get the firewall rule of the server group": { + "Get the firewall rule of the cluster": { "$ref": "./examples/FirewallRuleGet.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/FirewallRuleNameParameter" @@ -763,36 +867,36 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/firewallRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules": { "get": { - "description": "List all the firewall rules in a given server group.", + "description": "List all the firewall rules in a given cluster.", "tags": [ "FirewallRules" ], - "operationId": "FirewallRules_ListByServerGroup", + "operationId": "FirewallRules_ListByCluster", "x-ms-examples": { - "List firewall rules of the server group": { - "$ref": "./examples/FirewallRuleListByServerGroup.json" + "List firewall rules of the cluster": { + "$ref": "./examples/FirewallRuleListByCluster.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -805,7 +909,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -814,13 +918,16 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/roles/{roleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}": { "put": { "tags": [ "Roles" ], "operationId": "Roles_Create", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "RoleCreate": { "$ref": "./examples/RoleCreate.json" @@ -829,16 +936,16 @@ "description": "Creates a new role or updates an existing role.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/RoleNameParameter" @@ -854,25 +961,24 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Role" - } - }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { "$ref": "#/definitions/Role" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } @@ -883,35 +989,43 @@ ], "operationId": "Roles_Delete", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "RoleDelete": { "$ref": "./examples/RoleDelete.json" } }, - "description": "Deletes a server group role.", + "description": "Deletes a cluster role.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/RoleNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -919,36 +1033,36 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/roles": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles": { "get": { "tags": [ "Roles" ], - "operationId": "Roles_ListByServerGroup", + "operationId": "Roles_ListByCluster", "x-ms-examples": { "RoleList": { - "$ref": "./examples/RoleListByServerGroup.json" + "$ref": "./examples/RoleListByCluster.json" } }, - "description": "List all the roles in a given server group.", + "description": "List all the roles in a given cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -961,7 +1075,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -970,74 +1084,85 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart": { "post": { - "description": "Restarts the server group.", + "description": "Restarts the cluster.", "tags": [ - "ServerGroupOperations" + "ClusterOperations" ], - "operationId": "ServerGroups_Restart", + "operationId": "Clusters_Restart", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Restart all servers in the server group": { - "$ref": "./examples/ServerGroupRestart.json" + "Restart all servers in the cluster": { + "$ref": "./examples/ClusterRestart.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { - "200": { - "description": "OK" - }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start": { "post": { - "description": "Starts the server group.", + "description": "Starts the cluster.", "tags": [ - "ServerGroupOperations" + "ClusterOperations" ], - "operationId": "ServerGroups_Start", + "operationId": "Clusters_Start", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Start all servers in the server group": { - "$ref": "./examples/ServerGroupStart.json" + "Start all servers in the cluster": { + "$ref": "./examples/ClusterStart.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -1045,42 +1170,53 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop": { "post": { - "description": "Stops the server group.", + "description": "Stops the cluster.", "tags": [ - "ServerGroupOperations" + "ClusterOperations" ], - "operationId": "ServerGroups_Stop", + "operationId": "Clusters_Stop", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { - "Stop all servers in the server group": { - "$ref": "./examples/ServerGroupStop.json" + "Stop all servers in the cluster": { + "$ref": "./examples/ClusterStop.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ServerGroupNameParameter" + "$ref": "#/parameters/ClusterNameParameter" } ], "responses": { @@ -1088,24 +1224,83 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote": { + "post": { + "description": "Promote the read replica cluster.", + "tags": [ + "ClusterOperations" + ], + "operationId": "Clusters_PromoteReadReplica", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Promote the read replica": { + "$ref": "./examples/ClusterPromoteReadReplica.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { "post": { "description": "Check the availability of name for resource", "tags": [ - "ServerGroups" + "Clusters" ], - "operationId": "ServerGroups_CheckNameAvailability", + "operationId": "Clusters_CheckNameAvailability", "x-ms-examples": { "Check name availability": { "$ref": "./examples/CheckNameAvailability.json" @@ -1113,10 +1308,10 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { "name": "nameAvailabilityRequest", @@ -1138,13 +1333,13 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } } } }, - "/providers/Microsoft.DBForPostgreSql/operations": { + "/providers/Microsoft.DBforPostgreSQL/operations": { "get": { "description": "Lists all of the available REST API operations.", "tags": [ @@ -1158,7 +1353,7 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1171,7 +1366,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -1179,191 +1374,363 @@ "nextLinkName": null } } - } - }, - "definitions": { - "PostgreSQLVersion": { - "type": "string", - "description": "The PostgreSQL version.", - "enum": [ - "11", - "12" - ], - "x-ms-enum": { - "name": "PostgreSQLVersion", - "modelAsString": true - } - }, - "CitusVersion": { - "type": "string", - "description": "The Citus version.", - "enum": [ - "8.3", - "9.0", - "9.1", - "9.2", - "9.3", - "9.4", - "9.5" - ], - "x-ms-enum": { - "name": "CitusVersion", - "modelAsString": true - } - }, - "ServerState": { - "type": "string", - "description": "A state of a server group/server that is visible to user.", - "enum": [ - "Ready", - "Dropping", - "Disabled", - "Starting", - "Stopping", - "Stopped", - "Updating", - "Provisioning" - ], - "x-ms-enum": { - "name": "ServerState", - "modelAsString": true - }, - "readOnly": true - }, - "ServerHaState": { - "type": "string", - "description": "A state of a server role group/server that is visible to user for HA feature.", - "enum": [ - "NotEnabled", - "CreatingStandby", - "ReplicatingData", - "FailingOver", - "Healthy", - "RemovingStandby", - "NotSync" - ], - "x-ms-enum": { - "name": "ServerHaState", - "modelAsString": true - }, - "readOnly": true - }, - "ServerRole": { - "type": "string", - "description": "The role of a server.", - "enum": [ - "Coordinator", - "Worker" - ], - "x-ms-enum": { - "name": "ServerRole", - "modelAsString": true - } - }, - "FullyQualifiedDomainName": { - "type": "string", - "description": "The fully qualified domain name of a server.", - "readOnly": true }, - "ServerProperties": { - "description": "The properties of a server.", - "properties": { - "serverEdition": { - "type": "string", - "description": "The edition of a server (default: GeneralPurpose).", - "enum": [ - "GeneralPurpose", - "MemoryOptimized" - ], - "x-ms-enum": { - "name": "ServerEdition", - "modelAsString": true + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections": { + "get": { + "description": "Gets list of private endpoint connections on a cluster.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_ListByCluster", + "x-ms-examples": { + "Gets list of private endpoint connections on a cluster.": { + "$ref": "./examples/PrivateEndpointConnectionsListByCluster.json" } }, - "storageQuotaInMb": { - "type": "integer", - "format": "int64", - "description": "The storage of a server in MB (max: 2097152 = 2TiB)." - }, - "vCores": { - "type": "integer", - "format": "int64", - "description": "The vCores count of a server (max: 64)." - }, - "enableHa": { - "type": "boolean", - "description": "If high availability is enabled or not for the server." + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } }, - "enablePublicIp": { - "type": "boolean", - "description": "If public IP is requested or not for a server.", - "readOnly": true + "x-ms-pageable": { + "nextLinkName": null } } }, - "ServerRoleGroupList": { - "type": "array", - "description": "The list of server role groups.", - "items": { - "$ref": "#/definitions/ServerRoleGroup" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "description": "Gets private endpoint connection.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Get", + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateEndpointConnectionsGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProperty" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } }, - "x-ms-identifiers": [ - "name" - ], - "minItems": 1, - "maxItems": 2, - "uniqueItems": true + "put": { + "description": "Approve or reject a private endpoint connection with a given name.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name": { + "$ref": "./examples/PrivateEndpointConnectionCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionActionRequest" + }, + "description": "The required parameters for approving a private endpoint connection." + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProperty" + }, + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "description": "Deletes a private endpoint connection with a given name.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionsDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } }, - "ServerRoleGroup": { - "description": "Represents a server role group.", - "allOf": [ - { - "$ref": "#/definitions/ServerProperties" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources": { + "get": { + "description": "Gets the private link resources for cluster.", + "tags": [ + "PrivateLinkResources" + ], + "operationId": "PrivateLinkResources_ListByCluster", + "x-ms-examples": { + "Gets the private link resources for cluster.": { + "$ref": "./examples/PrivateLinkResourceListByCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}": { + "get": { + "description": "Gets a private link resource for cluster.", + "tags": [ + "PrivateLinkResources" + ], + "operationId": "PrivateLinkResources_Get", + "x-ms-examples": { + "Gets a private link resource for cluster.": { + "$ref": "./examples/PrivateLinkResourcesGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PrivateLinkResourceName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ServerRole": { + "type": "string", + "description": "The role of a server.", + "enum": [ + "Coordinator", + "Worker" ], + "x-ms-enum": { + "name": "ServerRole", + "modelAsString": true + } + }, + "ServerProperties": { + "type": "object", + "description": "The properties of a server.", "properties": { - "name": { + "serverEdition": { "type": "string", - "description": "The name of the server role group." + "description": "The edition of a server" }, - "role": { - "$ref": "#/definitions/ServerRole", - "description": "The role of servers in the server role group." + "storageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." }, - "serverCount": { + "vCores": { "type": "integer", - "format": "int32", - "description": "The number of servers in the server role group." + "format": "int64", + "description": "The vCores count of a server (max: 64)." }, - "serverNames": { - "type": "array", - "description": "The list of server names in the server role group.", - "items": { - "$ref": "#/definitions/ServerNameItem" - }, - "x-ms-identifiers": [ - "name" - ], - "readOnly": true, - "uniqueItems": true + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the server." + }, + "enablePublicIp": { + "type": "boolean", + "description": "If public IP is requested or not for a server.", + "readOnly": true } } }, "ServerNameItem": { "description": "The name object for a server.", + "type": "object", "properties": { "name": { "type": "string", "description": "The name of a server." }, "fullyQualifiedDomainName": { - "$ref": "#/definitions/FullyQualifiedDomainName", - "description": "The fully qualified domain name of a server." + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true } } }, - "ServerGroupServerProperties": { - "description": "The properties of a server in server group.", + "ClusterServerProperties": { + "description": "The properties of a server in cluster.", + "type": "object", "allOf": [ { "$ref": "#/definitions/ServerProperties" @@ -1371,85 +1738,75 @@ ], "properties": { "fullyQualifiedDomainName": { - "$ref": "#/definitions/FullyQualifiedDomainName", - "description": "The fully qualified domain name of a server." + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true }, "role": { "$ref": "#/definitions/ServerRole", - "description": "The role of server in the server group." + "description": "The role of server in the cluster." }, "state": { - "$ref": "#/definitions/ServerState", - "description": "A state of a server that is visible to user." + "type": "string", + "description": "A state of a cluster/server that is visible to user.", + "readOnly": true }, "haState": { - "$ref": "#/definitions/ServerHaState", - "description": "A state of a server group that is visible to user for HA feature." + "type": "string", + "description": "A state of HA feature for the cluster.", + "readOnly": true }, - "administratorLogin": { + "availabilityZone": { "type": "string", - "description": "The administrator's login name of a servers in server group." + "description": "Availability Zone information of the server." }, "postgresqlVersion": { - "$ref": "#/definitions/PostgreSQLVersion", + "type": "string", "description": "The PostgreSQL version of server." }, "citusVersion": { - "$ref": "#/definitions/CitusVersion", - "description": "The Citus version of server." - }, - "availabilityZone": { "type": "string", - "description": "Availability Zone information of the server group." - }, - "standbyAvailabilityZone": { - "type": "string", - "description": "Standby Availability Zone information of the server group." + "description": "The Citus version of server." } } }, - "ServerGroupServer": { - "description": "Represents a server in a server group.", + "ClusterServer": { + "description": "Represents a server in a cluster.", + "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { - "$ref": "#/definitions/ServerGroupServerProperties", - "description": "The properties of a server in a server group.", + "$ref": "#/definitions/ClusterServerProperties", + "description": "The properties of a server in a cluster.", "x-ms-client-flatten": true } } }, - "ServerGroupServerListResult": { - "description": "A list of servers in a server group.", + "ClusterServerListResult": { + "description": "A list of servers in a cluster.", + "type": "object", "properties": { "value": { "type": "array", - "description": "The list of servers in a server group.", + "description": "The list of servers in a cluster.", "items": { - "$ref": "#/definitions/ServerGroupServer" + "$ref": "#/definitions/ClusterServer" } } } }, - "ServerGroupForUpdate": { - "description": "Represents a server group for update.", + "ClusterForUpdate": { + "description": "Represents a cluster for update.", + "type": "object", "properties": { - "location": { - "type": "string", - "description": "The location the resource resides in." - }, "properties": { - "$ref": "#/definitions/ServerGroupPropertiesForUpdate", + "$ref": "#/definitions/ClusterPropertiesForUpdate", "x-ms-client-flatten": true, - "description": "Properties of the server group." + "description": "Properties of the cluster." }, "tags": { "type": "object", @@ -1460,8 +1817,9 @@ } } }, - "ServerGroupPropertiesForUpdate": { - "description": "The properties used to update a server group.", + "ClusterPropertiesForUpdate": { + "description": "The properties used to update a cluster.", + "type": "object", "properties": { "administratorLoginPassword": { "type": "string", @@ -1473,105 +1831,132 @@ ], "description": "The password of the administrator login." }, - "backupRetentionDays": { - "type": "integer", - "format": "int32", - "description": "The backup retention days for server group." - }, "postgresqlVersion": { - "$ref": "#/definitions/PostgreSQLVersion", - "description": "The PostgreSQL version of server group." + "type": "string", + "description": "The PostgreSQL version of the cluster." }, "citusVersion": { - "$ref": "#/definitions/CitusVersion", - "description": "The Citus version of server group." + "type": "string", + "description": "The Citus version of the cluster." }, "enableShardsOnCoordinator": { "type": "boolean", - "description": "If shards on coordinator is enabled or not for the server group." + "description": "If shards on coordinator is enabled or not for the cluster." }, - "serverRoleGroups": { - "$ref": "#/definitions/ServerRoleGroupList", - "description": "The list of server role groups." + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the cluster." }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a server group." + "preferredPrimaryZone": { + "type": "string", + "description": "Preferred primary zone for the cluster" }, - "availabilityZone": { + "coordinatorServerEdition": { "type": "string", - "description": "Availability Zone information of the server group." + "description": "The edition of the coordinator (default: GeneralPurpose)." }, - "standbyAvailabilityZone": { + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of the coordinator in MB." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of the coordinator (max: 64)." + }, + "coordinatorEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for the coordinator." + }, + "nodeServerEdition": { "type": "string", - "description": "Standby Availability Zone information of the server group." + "description": "The edition of a node (default: MemoryOptimized)." + }, + "nodeCount": { + "type": "integer", + "format": "int64", + "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1." + }, + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a node in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a node (max: 64)." + }, + "nodeEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a node.", + "readOnly": true + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a cluster." } } }, - "ServerGroupListResult": { + "ClusterListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/ServerGroup" + "$ref": "#/definitions/ClusterResponse" }, - "description": "The list of server groups" + "description": "The list of clusters" }, "nextLink": { - "description": "The link used to get the next page of operations.", + "description": "The link used to get the next page of cluster list.", "type": "string", "readOnly": true } }, - "description": "A list of server groups." + "description": "A list of clusters." }, - "ServerGroup": { - "description": "Represents a server group for create.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], + "Cluster": { + "description": "Represents a cluster for create.", + "type": "object", "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { - "$ref": "#/definitions/ServerGroupProperties", + "$ref": "#/definitions/ClusterProperties", "x-ms-client-flatten": true, - "description": "Properties of the server group create." - } - } - }, - "ServerGroupProperties": { - "description": "The properties used to create a new server group.", - "properties": { - "createMode": { - "type": "string", - "description": "The mode to create a new server group.", - "enum": [ - "Default", - "PointInTimeRestore", - "ReadReplica" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true + "description": "Properties of the cluster create." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, "x-ms-mutability": [ - "create" - ] + "read", + "create", + "update" + ], + "description": "Resource tags." }, - "administratorLogin": { + "location": { "type": "string", - "description": "The administrator's login name of servers in server group. Can only be specified when the server is being created (and is required for creation).", "x-ms-mutability": [ - "create", - "read" - ] - }, + "read", + "create" + ], + "description": "The geo-location where the resource lives" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Resource" + } + ] + }, + "ClusterProperties": { + "description": "The properties used to create a new cluster.", + "type": "object", + "properties": { "administratorLoginPassword": { "type": "string", "x-ms-secret": true, @@ -1580,153 +1965,245 @@ "create", "update" ], - "description": "The password of the administrator login." - }, - "backupRetentionDays": { - "type": "integer", - "format": "int32", - "description": "The backup retention days for server group." + "description": "The password of the administrator login. Required for creation." }, "postgresqlVersion": { - "$ref": "#/definitions/PostgreSQLVersion", - "description": "The PostgreSQL version of server group." + "type": "string", + "description": "The PostgreSQL version of cluster." }, "citusVersion": { - "$ref": "#/definitions/CitusVersion", - "description": "The Citus version of server group." + "type": "string", + "description": "The Citus version of cluster." + }, + "enableShardsOnCoordinator": { + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." + }, + "earliestRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The earliest restore point time (ISO8601 format) for the cluster.", + "readOnly": true + }, + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the cluster." + }, + "preferredPrimaryZone": { + "type": "string", + "description": "Preferred primary zone for the cluster" + }, + "coordinatorServerEdition": { + "type": "string", + "description": "The edition of the coordinator (default: GeneralPurpose). Required for creation." + }, + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of the coordinator in MB. Required for creation." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of the coordinator (max: 64). Required for creation." + }, + "coordinatorEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for the coordinator." + }, + "nodeServerEdition": { + "type": "string", + "description": "The edition of a node (default: MemoryOptimized)." + }, + "nodeCount": { + "type": "integer", + "format": "int64", + "description": "Worker node count of the cluster. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1." }, - "enableMx": { + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a node in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a node (max: 64)." + }, + "nodeEnablePublicIpAccess": { "type": "boolean", - "description": "If Citus MX is enabled or not for the server group.", + "description": "If public IP is requested or not for a node." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a cluster." + }, + "sourceResourceId": { + "type": "string", + "description": "The source resource id to restore from. It's required for 'PointInTimeRestore' or 'ReadReplica' operations", "x-ms-mutability": [ - "create", - "read" + "create" ] }, - "enableZfs": { - "type": "boolean", - "description": "If ZFS compression is enabled or not for the server group.", + "sourceLocation": { + "type": "string", + "description": "The source cluster location to restore from. It's required for 'PointInTimeRestore' or 'ReadReplica' operations", "x-ms-mutability": [ - "create", - "read" + "create" ] + } + } + }, + "ClusterResponse": { + "description": "Represents a cluster in response body.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ClusterResponseProperties", + "x-ms-client-flatten": true, + "description": "Properties of the cluster response body." + } + } + }, + "ClusterResponseProperties": { + "description": "Properties of the cluster response body.", + "type": "object", + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of the servers in the cluster." }, - "enableShardsOnCoordinator": { - "type": "boolean", - "description": "If shards on coordinator is enabled or not for the server group." + "provisioningState": { + "type": "string", + "description": "Provisioning state of the cluster", + "readOnly": true }, "state": { - "$ref": "#/definitions/ServerState", - "description": "A state of a server group that is visible to user." - }, - "earliestRestoreTime": { "type": "string", - "format": "date-time", - "description": "The earliest restore point time (ISO8601 format) for server group.", + "description": "A state of a cluster/server that is visible to user.", "readOnly": true }, - "resourceProviderType": { + "postgresqlVersion": { "type": "string", - "description": "The resource provider type of server group.", - "enum": [ - "Meru", - "Marlin" - ], - "x-ms-enum": { - "name": "ResourceProviderType", - "modelAsString": true - }, - "readOnly": true + "description": "The PostgreSQL version of cluster." }, - "serverRoleGroups": { - "$ref": "#/definitions/ServerRoleGroupList", - "description": "The list of server role groups." + "citusVersion": { + "type": "string", + "description": "The Citus version of cluster." }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a server group." + "description": "Maintenance window of a cluster." }, - "availabilityZone": { + "preferredPrimaryZone": { "type": "string", - "description": "Availability Zone information of the server group." + "description": "Preferred primary zone for the cluster" }, - "standbyAvailabilityZone": { + "enableShardsOnCoordinator": { + "type": "boolean", + "description": "If shards on coordinator is enabled or not for the cluster." + }, + "enableHa": { + "type": "boolean", + "description": "If high availability is enabled or not for the server." + }, + "coordinatorServerEdition": { "type": "string", - "description": "Standby Availability Zone information of the server group." + "description": "The edition of a coordinator server (default: GeneralPurpose)." }, - "delegatedSubnetArguments": { - "description": "The delegated subnet arguments for a server group.", - "properties": { - "subnetArmResourceId": { - "type": "string", - "description": "delegated subnet arm resource id." - } - } + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64)." + }, + "coordinatorEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a server." + }, + "nodeServerEdition": { + "type": "string", + "description": "The edition of a node server (default: MemoryOptimized)." + }, + "nodeCount": { + "type": "integer", + "format": "int64", + "description": "Worker node count of the cluster" + }, + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64)." }, - "privateDnsZoneArguments": { - "description": "The private dns zone arguments for a server group.", - "properties": { - "privateDnsZoneArmResourceId": { - "type": "string", - "description": "private dns zone arm resource id." - } - } + "nodeEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a server.", + "readOnly": true }, - "readReplicas": { + "serverNames": { "type": "array", - "description": "The array of read replica server groups.", + "description": "The list of server names in the cluster", "items": { - "type": "string" + "$ref": "#/definitions/ServerNameItem" }, + "x-ms-identifiers": [ + "name" + ], "readOnly": true, "uniqueItems": true }, - "sourceServerGroup": { + "sourceResourceId": { "type": "string", - "description": "The source server group id for read replica server groups.", + "description": "The resource id of source cluster for read replica clusters.", "readOnly": true }, - "sourceSubscriptionId": { - "type": "string", - "description": "The source subscription id to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, - "sourceResourceGroupName": { - "type": "string", - "description": "The source resource group name to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, - "sourceServerGroupName": { - "type": "string", - "description": "The source server group name to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] - }, "sourceLocation": { "type": "string", - "description": "The source server group location to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'ReadReplica'", - "x-ms-mutability": [ - "create" - ] + "description": "The location of source cluster for read replica clusters.", + "readOnly": true + }, + "readReplicas": { + "type": "array", + "description": "The array of read replica clusters.", + "items": { + "type": "string" + }, + "readOnly": true, + "uniqueItems": true }, - "pointInTimeUTC": { + "earliestRestoreTime": { "type": "string", "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'", - "x-ms-mutability": [ - "create" - ] + "description": "The earliest restore point time (ISO8601 format) for the cluster.", + "readOnly": true + }, + "privateEndpointConnections": { + "description": "The private endpoint connections for a cluster.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true } } }, "MaintenanceWindow": { "type": "object", - "description": "Maintenance window of a server group.", + "description": "Maintenance window of a cluster.", "properties": { "customWindow": { "type": "string", @@ -1749,27 +2226,9 @@ } } }, - "ServerGroupConfiguration": { - "description": "Represents the configuration list of server role groups in a server group.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, - "properties": { - "$ref": "#/definitions/ServerGroupConfigurationProperties", - "description": "The properties of server group configuration.", - "x-ms-client-flatten": true - } - } - }, - "ServerGroupConfigurationProperties": { - "description": "The properties of server group configuration.", + "ConfigurationProperties": { + "description": "The properties of configuration.", + "type": "object", "properties": { "description": { "type": "string", @@ -1796,6 +2255,10 @@ "description": "Allowed values of the configuration.", "readOnly": true }, + "requiresRestart": { + "type": "boolean", + "description": "If configuration change requires restart." + }, "serverRoleGroupConfigurations": { "type": "array", "description": "The list of server role group configuration values.", @@ -1810,8 +2273,25 @@ "serverRoleGroupConfigurations" ] }, + "Configuration": { + "description": "Represents configuration details for coordinator and node.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "description": "The properties of configuration.", + "x-ms-client-flatten": true + } + } + }, "ServerRoleGroupConfiguration": { "description": "Represents server role group configuration value.", + "type": "object", "properties": { "role": { "$ref": "#/definitions/ServerRole", @@ -1837,14 +2317,15 @@ "value" ] }, - "ServerGroupConfigurationListResult": { - "description": "A list of server group configurations.", + "ClusterConfigurationListResult": { + "description": "A list of cluster configurations.", + "type": "object", "properties": { "value": { "type": "array", - "description": "The list of server group configurations.", + "description": "The list of cluster configurations.", "items": { - "$ref": "#/definitions/ServerGroupConfiguration" + "$ref": "#/definitions/Configuration" } }, "nextLink": { @@ -1856,6 +2337,7 @@ }, "ServerConfigurationProperties": { "description": "The properties of a configuration.", + "type": "object", "properties": { "value": { "type": "string", @@ -1895,24 +2377,42 @@ "type": "string", "description": "Allowed values of the configuration.", "readOnly": true + }, + "requiresRestart": { + "type": "boolean", + "description": "If configuration change requires restart." } }, "required": [ "value" ] }, + "ServerConfigurationRequest": { + "description": "Represents a configuration.", + "type": "object", + "properties": { + "properties": { + "description": "Represents a configuration properties", + "type": "object", + "properties": { + "value": { + "description": "Represents the value of a configuration.", + "type": "string" + } + }, + "x-ms-client-flatten": true + } + } + }, "ServerConfiguration": { "description": "Represents a configuration.", + "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { "$ref": "#/definitions/ServerConfigurationProperties", "description": "The properties of a configuration.", @@ -1922,6 +2422,7 @@ }, "ServerConfigurationListResult": { "description": "A list of server configurations.", + "type": "object", "properties": { "value": { "type": "array", @@ -1938,16 +2439,17 @@ } }, "FirewallRuleProperties": { - "description": "The properties of a server group firewall rule.", + "description": "The properties of a cluster firewall rule.", + "type": "object", "properties": { "startIpAddress": { "type": "string", - "description": "The start IP address of the server group firewall rule. Must be IPv4 format.", + "description": "The start IP address of the cluster firewall rule. Must be IPv4 format.", "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" }, "endIpAddress": { "type": "string", - "description": "The end IP address of the server group firewall rule. Must be IPv4 format.", + "description": "The end IP address of the cluster firewall rule. Must be IPv4 format.", "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" } }, @@ -1957,17 +2459,14 @@ ] }, "FirewallRule": { - "description": "Represents a server group firewall rule.", + "description": "Represents a cluster firewall rule.", + "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { "$ref": "#/definitions/FirewallRuleProperties", "x-ms-client-flatten": true, @@ -1980,10 +2479,11 @@ }, "FirewallRuleListResult": { "description": "A list of firewall rules.", + "type": "object", "properties": { "value": { "type": "array", - "description": "The list of firewall rules in a server group.", + "description": "The list of firewall rules in a cluster.", "items": { "$ref": "#/definitions/FirewallRule" } @@ -2000,32 +2500,30 @@ "create", "update" ], - "description": "The password of the server group role." + "description": "The password of the cluster role." } }, "required": [ "password" ], - "description": "The properties of a server group role." + "description": "The properties of a cluster role.", + "type": "object" }, "Role": { + "description": "Represents a cluster role.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], "properties": { - "systemData": { - "description": "The system metadata relating to this resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "properties": { "$ref": "#/definitions/RoleProperties", "x-ms-client-flatten": true, "description": "The properties of a role." } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a server group role." + } }, "RoleListResult": { "properties": { @@ -2034,13 +2532,15 @@ "items": { "$ref": "#/definitions/Role" }, - "description": "The list of roles in a server group." + "description": "The list of roles in a cluster." } }, - "description": "A list of roles." + "description": "A list of roles.", + "type": "object" }, "OperationDisplay": { "description": "Display metadata associated with the operation.", + "type": "object", "properties": { "provider": { "type": "string", @@ -2066,6 +2566,7 @@ }, "Operation": { "description": "REST API operation definition.", + "type": "object", "properties": { "name": { "type": "string", @@ -2130,6 +2631,7 @@ }, "NameAvailabilityRequest": { "description": "Request from client to check resource name availability.", + "type": "object", "properties": { "name": { "type": "string", @@ -2154,6 +2656,7 @@ }, "NameAvailability": { "description": "Represents a resource name availability.", + "type": "object", "properties": { "message": { "type": "string", @@ -2165,62 +2668,242 @@ }, "name": { "type": "string", - "description": "name of the PostgreSQL server." + "description": "name of the cluster." }, "type": { "type": "string", - "description": "type of the server" + "description": "type of the cluster" + } + } + }, + "PrivateEndpointProperty": { + "type": "object", + "description": "Property to represent resource id of the private endpoint.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the private endpoint." + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionSimpleProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionProperty": { + "description": "A private endpoint connection property", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionActionRequest": { + "description": "A private endpoint connection", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionActionRequestProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private endpoint connection." } } }, - "CloudError": { - "x-ms-external": true, - "description": "An error response from the Batch service.", + "PrivateEndpointConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionProperty" + }, + "description": "The list of private endpoint connections" + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "A list of private endpoint connections." + }, + "PrivateLinkResource": { + "description": "A private link resource", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "The error." + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "x-ms-client-flatten": true, + "description": "Properties of the private link resource." } } }, - "CloudErrorBody": { - "x-ms-external": true, - "description": "An error response from the Batch service.", + "PrivateLinkResourceProperties": { + "description": "Properties of a private link resource.", + "type": "object", "properties": { - "code": { + "groupId": { "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + "description": "The private link resource group id." }, - "message": { + "requiredMembers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource required member names." + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource zone names." + } + } + }, + "PrivateLinkResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "description": "The list of private link resources." + }, + "nextLink": { + "description": "The link used to get the next page of private link resources.", "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." + "readOnly": true + } + }, + "description": "A list of private link resources." + }, + "PrivateEndpointConnectionActionRequestProperties": { + "description": "The properties used to create a private endpoint connection", + "type": "object", + "properties": { + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionState", + "description": "Connection state of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionProperties": { + "description": "The properties in private endpoint connection", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "groupIds": { + "type": "array", + "description": "Group ids of the private endpoint connection.", + "items": { + "type": "string" + } }, - "target": { + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + }, + "provisioningState": { "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." + "description": "State of the private endpoint connection." + } + } + }, + "PrivateEndpointConnectionSimpleProperties": { + "description": "The properties in private endpoint connection", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." }, - "details": { + "groupIds": { "type": "array", - "description": "A list of additional details about the error.", + "description": "Group ids of the private endpoint connection.", "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "x-ms-identifiers": [ - "code" - ] + "type": "string" + } + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "description": "The properties in private link service connection state", + "properties": { + "actionsRequired": { + "type": "string", + "description": "The actions required for private link service connection." + }, + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "status": { + "type": "string", + "description": "The private link service connection status." + } + } + }, + "PrivateLinkServiceConnectionState": { + "type": "object", + "description": "The private link service connection state", + "properties": { + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "status": { + "type": "string", + "description": "The private link service connection status." } } } }, "parameters": { - "ServerGroupNameParameter": { - "name": "serverGroupName", + "ClusterNameParameter": { + "name": "clusterName", "in": "path", "required": true, "type": "string", - "description": "The name of the server group.", - "minLength": 1, - "maxLength": 90, + "description": "The name of the cluster.", + "pattern": "^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(?`. +``` yaml $(tag) == 'package-2022-11' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/package-2022-11-08/$(namespace) +``` +### Tag: package-2020-10-05-privatepreview + +These settings apply only when `--tag=package-2020-10-05-privatepreview` is specified on the command line. +Please also specify `--go-sdk-folder=`. + ``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-05-preview/$(namespace) -``` \ No newline at end of file +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/package-2020-10-05-privatepreview/$(namespace) +``` diff --git a/specification/postgresqlhsc/resource-manager/readme.java.md b/specification/postgresqlhsc/resource-manager/readme.java.md index 385f5789d20d..ff19df810ab9 100644 --- a/specification/postgresqlhsc/resource-manager/readme.java.md +++ b/specification/postgresqlhsc/resource-manager/readme.java.md @@ -16,18 +16,31 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-postgresqlhsc ``` yaml $(java) && $(multiapi) batch: + - tag: package-2022-11-08 - tag: package-2020-10-05-privatepreview ``` +### Tag: package-2022-11-08 and java + +These settings apply only when `--tag=package-2022-11-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2022-11'-08 && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.postgresqlhsc.v2022-11-08 + output-folder: $(azure-libraries-for-java-folder)/sdk/postgresqlhsc/mgmt-v2022-11-08 +regenerate-manager: true +generate-interface: true +``` ### Tag: package-2020-10-05-privatepreview and java These settings apply only when `--tag=package-2020-10-05-privatepreview --java` is specified on the command line. Please also specify `--azure-libraries-for-java-folder=`. -``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2020-10-05-privatepreview'-08 && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.postgresqlhsc.v2020_10_05_privatepreview - output-folder: $(azure-libraries-for-java-folder)/sdk/postgresqlhsc/mgmt-v2020_10_05_privatepreview + namespace: com.microsoft.azure.management.postgresqlhsc.v2020-10-05-privatepreview + output-folder: $(azure-libraries-for-java-folder)/sdk/postgresqlhsc/mgmt-v2020-10-05-privatepreview regenerate-manager: true generate-interface: true -``` \ No newline at end of file +``` diff --git a/specification/postgresqlhsc/resource-manager/readme.md b/specification/postgresqlhsc/resource-manager/readme.md index 58062a0e5781..9918639296be 100644 --- a/specification/postgresqlhsc/resource-manager/readme.md +++ b/specification/postgresqlhsc/resource-manager/readme.md @@ -2,7 +2,7 @@ > see https://aka.ms/autorest -This is the AutoRest configuration file for PostgreSQL Hyperscale. +This is the AutoRest configuration file for Cosmos DB for PostgreSQL. ## Getting Started @@ -22,32 +22,50 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor ### Basic Information -These are the global settings for the PostgreSQL Hyperscale API. +These are the global settings for the Cosmos DB for PostgreSQL API. ``` yaml -title: Microsoft PostgreSQL Hyperscale +title: Cosmos DB for PostgreSQL openapi-type: arm -tag: package-2022-11 +tag: package-2022-11-08 ``` -### Tag: package-2022-11 +### Tag: package-2022-11-08 -These settings apply only when `--tag=package-2022-11` is specified on the command line. +These settings apply only when `--tag=package-2022-11-08` is specified on the command line. -```yaml $(tag) == 'package-2022-11' +```yaml $(tag) == 'package-2022-11-08' input-file: - Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json ``` + ### Tag: package-2020-10-05-privatepreview These settings apply only when `--tag=package-2020-10-05-privatepreview` is specified on the command line. -``` yaml $(tag) == 'package-2020-10-05-privatepreview' +```yaml $(tag) == 'package-2020-10-05-privatepreview' input-file: - Microsoft.DBforPostgreSQL/preview/2020-10-05-privatepreview/postgresqlhsc.json ``` +## Suppression +``` yaml +directive: +- suppress: PathResourceProviderNamePascalCase + from: postgresqlhsc.json + reason: Service provider name Microsoft.DBforPostgreSQL directly violates this rule. +- suppress: ConsistentPatchProperties + from: postgresqlhsc.json + reason: we only support admin password inside request body and don't return it +- suppress: CreateOperationAsyncResponseValidation + from: postgresqlhsc.json + reason: Our control plane returns 202 for most of the put async operation other than cluster creation. +- suppress: LongRunningResponseStatusCode + from: postgresqlhsc.json + reason: Our control plane returns 202 for most of the put async operation other than cluster creation. +``` + --- # Code Generation diff --git a/specification/postgresqlhsc/resource-manager/readme.python.md b/specification/postgresqlhsc/resource-manager/readme.python.md index 7d7ec37c547d..e3fe2a275e4a 100644 --- a/specification/postgresqlhsc/resource-manager/readme.python.md +++ b/specification/postgresqlhsc/resource-manager/readme.python.md @@ -2,9 +2,6 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. - -These settings apply only when `--track2` is specified on the command line. ``` yaml $(python) azure-arm: true @@ -14,22 +11,7 @@ package-version: 1.0.0b1 no-namespace-folders: true ``` -### Python multi-api - -Generate all API versions currently shipped for this package - -```yaml $(python) -clear-output-folder: true -batch: - - tag: package-2020-10-05-privatepreview -``` - -### Tag: package-2020-10-05-privatepreview and python - -These settings apply only when `--tag=package-2020-10-05-privatepreview --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(python) +``` yaml $(python) namespace: azure.mgmt.rdbms.postgresqlhsc output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresqlhsc ``` diff --git a/specification/postgresqlhsc/resource-manager/readme.ruby.md b/specification/postgresqlhsc/resource-manager/readme.ruby.md index e2b0df6e4488..bb7aee55736a 100644 --- a/specification/postgresqlhsc/resource-manager/readme.ruby.md +++ b/specification/postgresqlhsc/resource-manager/readme.ruby.md @@ -4,16 +4,16 @@ These settings apply only when `--ruby` is specified on the command line. ```yaml package-name: azure_mgmt_postgresqlhsc -package-version: 2020-10-05-privatepreview +package-version: package-2022-11-08 azure-arm: true ``` -### Tag: package-2020-10-05-privatepreview and ruby +### Tag: package-2022-11-08 and ruby -These settings apply only when `--tag=package-2020-10-05-privatepreview --ruby` is specified on the command line. +These settings apply only when `--tag=package-2022-11-08 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2020-10-05-privatepreview' && $(ruby) -namespace: "Azure::PostgreSQLHSC::Mgmt::V2020_10_05_privatepreview" +```yaml $(tag) == 'package-2022-11-08' && $(ruby) +namespace: "Azure::PostgreSQLHSC::Mgmt::Vpackage-2022-11-08" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_postgresqlhsc/lib ``` \ No newline at end of file