diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..f8e192c06c6e --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/CheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "api-version": "2022-11-08", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "name": "name1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2" + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json new file mode 100644 index 000000000000..6c8ee3fc39b5 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterAddNode.json @@ -0,0 +1,138 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeCount": 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": { + "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, + "pointInTimeUTC": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..b3b585547755 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json @@ -0,0 +1,166 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "administratorLoginPassword": "password", + "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": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": {}, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 3, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w2", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w3", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "pointInTimeUTC": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..6ab896e68aeb --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreatePITR.json @@ -0,0 +1,134 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "sourceLocation": "westus", + "pointInTimeUTC": "2017-12-14T00:00:37.467Z" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "pointInTimeUTC": "2017-12-14T00:00:37.467Z", + "sourceResourceId": null, + "sourceLocation": "westus", + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..1f3cda1cea0c --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateReadReplica.json @@ -0,0 +1,134 @@ +{ + "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": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 1, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 524288, + "coordinatorVCores": 4, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 524288, + "nodeVCores": 8, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg-c", + "fullyQualifiedDomainName": "c.hsctestsg.marlin-development.com" + }, + { + "name": "hsctestsg-w0", + "fullyQualifiedDomainName": "w0.hsctestsg.marlin-development.com" + } + ], + "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtests-source-cluster", + "sourceLocation": "westus", + "pointInTimeUTC": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..16c286a8ed0e --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "testcluster", + "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" + } + }, + "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..03b63a867f73 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterGet.json @@ -0,0 +1,79 @@ +{ + "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, + "pointInTimeUTC": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "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..afff56bd3d06 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterList.json @@ -0,0 +1,138 @@ +{ + "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, + "pointInTimeUTC": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "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, + "pointInTimeUTC": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-15T00:01:32.317Z", + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json new file mode 100644 index 000000000000..d7f82a5c8a66 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterListByResourceGroup.json @@ -0,0 +1,147 @@ +{ + "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, + "pointInTimeUTC": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "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, + "pointInTimeUTC": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-15T00:01:32.317Z", + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/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..08f864cce8c4 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleCompute.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeVCores": 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": { + "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, + "pointInTimeUTC": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..fb466824bb0d --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterScaleStorage.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "nodeStorageQuotaInMb": 2097152 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 3, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "pointInTimeUTC": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..22ded184d272 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdate.json @@ -0,0 +1,174 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "administratorLoginPassword": "newpassword", + "coordinatorVCores": 16, + "nodeCount": 4, + "nodeVCores": 16 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1", + "name": "hsctestsg1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0, + "customWindow": "Disabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 4, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w2", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w3", + "fullyQualifiedDomainName": "hsctestsg1-w2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "readReplicas": [ + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-01", + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSQL/serverGroupsv2/hsctestreadreplica-02" + ], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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..6106915afb52 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterUpdateMaintenanceWindow.json @@ -0,0 +1,145 @@ +{ + "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": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg", + "name": "hsctestsg", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Ready", + "postgresqlVersion": "14", + "citusVersion": "11.1", + "maintenanceWindow": { + "dayOfWeek": 0, + "startHour": 8, + "startMinute": 0, + "customWindow": "Enabled" + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "enableHa": false, + "enableShardsOnCoordinator": false, + "coordinatorServerEdition": "GeneralPurpose", + "coordinatorStorageQuotaInMb": 2097152, + "coordinatorVCores": 16, + "coordinatorEnablePublicIpAccess": true, + "nodeServerEdition": "MemoryOptimized", + "nodeCount": 2, + "nodeStorageQuotaInMb": 2097152, + "nodeVCores": 16, + "nodeEnablePublicIpAccess": false, + "serverNames": [ + { + "name": "hsctestsg1-c", + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w0", + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com" + }, + { + "name": "hsctestsg1-w1", + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "sourceLocation": null, + "pointInTimeUTC": null, + "readReplicas": [], + "earliestRestoreTime": "2020-09-14T00:00:37.467Z", + "privateEndpointConnections": [] + }, + "location": "westus" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "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 new file mode 100644 index 000000000000..de0f5d25fa66 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "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/client_encoding", + "name": "client_encoding", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets the client's character set encoding.", + "dataType": "Enumeration", + "allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" + }, + { + "role": "Worker", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" + } + ] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json new file mode 100644 index 000000000000..5198efc5f2cc --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetCoordinator.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/coordinatorConfigurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/coordinatorConfigurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json new file mode 100644 index 000000000000..7f9b1f095d42 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationGetNode.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/nodeConfigurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/nodeConfigurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "off" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json new file mode 100644 index 000000000000..2eb94b5bbfb8 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByCluster.json @@ -0,0 +1,148 @@ +{ + "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/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Enable input of NULL elements in arrays.", + "dataType": "Boolean", + "allowedValues": "on,off", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "on", + "defaultValue": "on", + "source": "system-default" + }, + { + "role": "Worker", + "value": "off", + "defaultValue": "on", + "source": "user-override" + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/backslash_quote", + "name": "backslash_quote", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets whether \"\\'\" is allowed in string literals.", + "dataType": "Enumeration", + "allowedValues": "safe_encoding,on,off", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "off", + "defaultValue": "safe_encoding", + "source": "user-override" + }, + { + "role": "Worker", + "value": "safe_encoding", + "defaultValue": "safe_encoding", + "source": "system-default" + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/work_mem", + "name": "work_mem", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.", + "dataType": "Integer", + "allowedValues": "4096-2097151", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "158720", + "defaultValue": "158720", + "source": "system-default" + }, + { + "role": "Worker", + "value": "115712", + "defaultValue": "115712", + "source": "system-default" + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/client_encoding", + "name": "client_encoding", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "description": "Sets the client's character set encoding.", + "dataType": "Enumeration", + "allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", + "serverRoleGroupConfigurations": [ + { + "role": "Coordinator", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" + }, + { + "role": "Worker", + "value": "ISO_8859_7", + "defaultValue": "sql_ascii", + "source": "user-override" + } + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json new file mode 100644 index 000000000000..d338f7238486 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationListByServer.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "serverName": "testserver", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/application_name", + "name": "application_name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "", + "description": "Sets the application name to be reported in statistics and logs.", + "defaultValue": "", + "dataType": "String", + "allowedValues": "[A-Za-z0-9._-]*", + "source": "system-default", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on", + "description": "Enables input of NULL elements in arrays.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/autovacuum", + "name": "autovacuum", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on", + "description": "Starts the autovacuum subprocess.", + "defaultValue": "on", + "dataType": "Boolean", + "allowedValues": "on,off", + "source": "system-default", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json new file mode 100644 index 000000000000..075dd6bd9192 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateCoordinator.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "value": "on" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/coordinator", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "on" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "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/ConfigurationUpdateNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json new file mode 100644 index 000000000000..eaf081871787 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ConfigurationUpdateNode.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestResourceGroup", + "clusterName": "hsctestsg", + "configurationName": "array_nulls", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "value": "off" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/node", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "off" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", + "name": "array_nulls", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/node", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "value": "off" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..43133f7698f0 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleCreate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "firewallRuleName": "rule1", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..e28000660ec0 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "firewallRuleName": "rule1", + "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/FirewallRuleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..f144f64b7e12 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "firewallRuleName": "rule1", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json new file mode 100644 index 000000000000..f979e08c8e6f --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/FirewallRuleListByCluster.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json new file mode 100644 index 000000000000..71a53a67b6f3 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/OperationList.json @@ -0,0 +1,197 @@ +{ + "parameters": { + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "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 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 Cluster", + "operation": "Delete PostgreSQL Cluster", + "description": "Deletes an existing cluster." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "PostgreSQL Server", + "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." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Configurations", + "operation": "List/Get Configurations of Server", + "description": "Return the list of configurations for a server or gets the value for the specified configuration." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Configurations", + "operation": "List/Get Configurations of Cluster", + "description": "Return the list of configurations for a cluster or gets the value for the specified configuration." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Configurations", + "operation": "Update Configurations of Cluster", + "description": "Update an value of configurations." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "List/Get Firewall Rules", + "description": "Return the list of firewall rules for a cluster or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Create/Update Firewall Rule", + "description": "Creates a firewall rule with the specified parameters or update an existing rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/firewallRules/delete", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Get database metric definitions", + "description": "Return types of metrics that are available for databases" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "cpu_percent", + "displayName": "CPU percent", + "displayDescription": "CPU percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "memory_percent", + "displayName": "Memory percent", + "displayDescription": "Memory percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "io_consumption_percent", + "displayName": "IO percent", + "displayDescription": "IO percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "storage_percent", + "displayName": "Storage percentage", + "displayDescription": "Storage percentage", + "unit": "Percent", + "aggregationType": "Average" + }, + { + "name": "storage_used", + "displayName": "Storage used", + "displayDescription": "Storage used", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "storage_limit", + "displayName": "Storage limit", + "displayDescription": "Storage limit", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "active_connections", + "displayName": "Total active connections", + "displayDescription": "Total active connections", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "connections_failed", + "displayName": "Total failed connections", + "displayDescription": "Total failed connections", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Read diagnostic setting", + "description": "Gets the disagnostic setting for the resource" + } + }, + { + "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft DB for PostgreSQL", + "resource": "Database Metric Definition", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json new file mode 100644 index 000000000000..447d337421bf --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/PrivateEndpointConnectionCreateOrUpdate.json @@ -0,0 +1,59 @@ +{ + "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": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "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 new file mode 100644 index 000000000000..9466324c2693 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleCreate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "roleName": "role1", + "api-version": "2022-11-08", + "parameters": { + "properties": { + "password": "password" + } + } + }, + "responses": { + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": {} + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "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": {} + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json new file mode 100644 index 000000000000..d11688d7a6e7 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "roleName": "role1", + "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/RoleGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleGet.json new file mode 100644 index 000000000000..6df359ae34af --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "roleName": "role1", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json new file mode 100644 index 000000000000..d76f6465d488 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/RoleListByCluster.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "pgtestsvc4", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role1", + "name": "role1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/pgtestsvc4/roles/role2", + "name": "role2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/roles", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json new file mode 100644 index 000000000000..66d4c5366df0 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "serverName": "hsctestsg1-c", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-c", + "name": "hsctestsg1-c", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "role": "Coordinator", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIpAccess": true, + "state": "Ready", + "haState": "Healthy", + "administratorLogin": "citus", + "isReadOnly": false + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json new file mode 100644 index 000000000000..a9e44fd7fca9 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ServerListByCluster.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "hsctestsg1", + "api-version": "2022-11-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-c", + "name": "hsctestsg1-c", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-c.postgres.database.azure.com", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "role": "Coordinator", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": true, + "enablePublicIpAccess": true, + "state": "Ready", + "haState": "Healthy", + "administratorLogin": "citus", + "isReadOnly": false + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-w0", + "name": "hsctestsg1-w0", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-w0.postgres.database.azure.com", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "role": "Worker", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": false, + "enablePublicIpAccess": false, + "state": "Ready", + "haState": "NotEnabled", + "administratorLogin": "citus", + "isReadOnly": false + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg1/servers/hsctestsg1-w1", + "name": "hsctestsg1-w1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "fullyQualifiedDomainName": "hsctestsg1-w1.postgres.database.azure.com", + "postgresqlVersion": "12", + "citusVersion": "9.5", + "availabilityZone": "1", + "role": "Worker", + "serverEdition": "MemoryOptimized", + "storageQuotaInMb": 10000, + "vCores": 4, + "enableHa": false, + "enablePublicIpAccess": false, + "state": "Ready", + "haState": "NotEnabled", + "administratorLogin": "citus", + "isReadOnly": false + } + } + ] + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json new file mode 100644 index 000000000000..b224b69fb9fc --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -0,0 +1,2909 @@ +{ + "swagger": "2.0", + "info": { + "title": "HyperscaleCitusManagementClient", + "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", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_List", + "x-ms-examples": { + "List all the clusters": { + "$ref": "./examples/ClusterList.json" + } + }, + "description": "List all the clusters in a given subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListByResourceGroup", + "x-ms-examples": { + "List the clusters by resource group": { + "$ref": "./examples/ClusterListByResourceGroup.json" + } + }, + "description": "List all the clusters in a given resource group.", + "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" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}": { + "put": { + "description": "Creates a new cluster with servers.", + "tags": [ + "Clusters" + ], + "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 cluster": { + "$ref": "./examples/ClusterCreate.json" + }, + "Create a new cluster as a point in time restore": { + "$ref": "./examples/ClusterCreatePITR.json" + }, + "Create a new cluster as a read replica": { + "$ref": "./examples/ClusterCreateReadReplica.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" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Cluster" + }, + "description": "The required parameters for creating or updating a cluster." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Created", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "description": "Gets information about a cluster.", + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Get", + "x-ms-examples": { + "Get the cluster": { + "$ref": "./examples/ClusterGet.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": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "description": "Deletes a cluster together with servers in it.", + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete the cluster": { + "$ref": "./examples/ClusterDelete.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": "OK" + }, + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing cluster. The request body can contain one to many of the properties present in the normal cluster definition.", + "tags": [ + "Clusters" + ], + "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 cluster": { + "$ref": "./examples/ClusterUpdate.json" + }, + "Scale compute": { + "$ref": "./examples/ClusterScaleCompute.json" + }, + "Scale storage": { + "$ref": "./examples/ClusterScaleStorage.json" + }, + "Add new worker nodes": { + "$ref": "./examples/ClusterAddNode.json" + }, + "Update customer maintenance window": { + "$ref": "./examples/ClusterUpdateMaintenanceWindow.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" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterForUpdate" + }, + "description": "The parameters for updating a cluster." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "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}/servers": { + "get": { + "description": "Lists servers of a cluster.", + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByCluster", + "x-ms-examples": { + "List servers of the cluster": { + "$ref": "./examples/ServerListByCluster.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": "OK", + "schema": { + "$ref": "#/definitions/ClusterServerListResult" + } + }, + "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}/servers/{serverName}": { + "get": { + "description": "Gets information about a server in cluster.", + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "Get the server of cluster": { + "$ref": "./examples/ServerGet.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/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterServer" + } + }, + "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}/servers/{serverName}/configurations": { + "get": { + "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 cluster": { + "$ref": "./examples/ConfigurationListByServer.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/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations": { + "get": { + "description": "List all the configurations of a cluster.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByCluster", + "x-ms-examples": { + "List configurations of the cluster": { + "$ref": "./examples/ConfigurationListByCluster.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": "OK", + "schema": { + "$ref": "#/definitions/ClusterConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/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}/coordinatorConfigurations/{configurationName}": { + "get": { + "description": "Gets information of a configuration for coordinator.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_GetCoordinator", + "x-ms-examples": { + "Get configuration details for coordinator.": { + "$ref": "./examples/ConfigurationGetCoordinator.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Updates configuration of coordinator in a cluster", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdateCoordinator", + "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 coordinator": { + "$ref": "./examples/ConfigurationUpdateCoordinator.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" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerConfiguration" + }, + "description": "The required parameters for updating a cluster configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "201": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + }, + "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}/nodeConfigurations/{configurationName}": { + "get": { + "description": "Gets information of a configuration for node.", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_GetNode", + "x-ms-examples": { + "Get configuration details for node.": { + "$ref": "./examples/ConfigurationGetNode.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Updates configuration of nodes in a cluster", + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdateNode", + "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 nodes": { + "$ref": "./examples/ConfigurationUpdateNode.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" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerConfiguration" + }, + "description": "The required parameters for updating a cluster configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "201": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/ServerConfiguration" + }, + "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}/firewallRules/{firewallRuleName}": { + "put": { + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create a firewall rule of the cluster": { + "$ref": "./examples/FirewallRuleCreate.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/FirewallRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The required parameters for creating or updating a firewall rule." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "201": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/FirewallRule" + }, + "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 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 cluster": { + "$ref": "./examples/FirewallRuleDelete.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/FirewallRuleNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "description": "Gets information about a cluster firewall rule.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "Get the firewall rule of the cluster": { + "$ref": "./examples/FirewallRuleGet.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/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "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}/firewallRules": { + "get": { + "description": "List all the firewall rules in a given cluster.", + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByCluster", + "x-ms-examples": { + "List firewall rules of the cluster": { + "$ref": "./examples/FirewallRuleListByCluster.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": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + }, + "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}/roles/{roleName}": { + "get": { + "description": "Gets information about a cluster role.", + "tags": [ + "Roles" + ], + "operationId": "Roles_Get", + "x-ms-examples": { + "Get the role of the cluster": { + "$ref": "./examples/RoleGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/RoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Role" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Roles" + ], + "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" + } + }, + "description": "Creates a new role or updates an existing role.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/RoleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Role" + }, + "description": "The required parameters for creating or updating a role." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Role" + } + }, + "201": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/Role" + }, + "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": { + "tags": [ + "Roles" + ], + "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 cluster role.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/RoleNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string" + }, + "azure-async-operation": { + "type": "string" + } + } + }, + "204": { + "description": "NoContent" + }, + "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}/roles": { + "get": { + "tags": [ + "Roles" + ], + "operationId": "Roles_ListByCluster", + "x-ms-examples": { + "RoleList": { + "$ref": "./examples/RoleListByCluster.json" + } + }, + "description": "List all the roles in a given cluster.", + "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": "OK", + "schema": { + "$ref": "#/definitions/RoleListResult" + } + }, + "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}/restart": { + "post": { + "description": "Restarts the cluster.", + "tags": [ + "ClusterOperations" + ], + "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 cluster": { + "$ref": "./examples/ClusterRestart.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": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start": { + "post": { + "description": "Starts the cluster.", + "tags": [ + "ClusterOperations" + ], + "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 cluster": { + "$ref": "./examples/ClusterStart.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": "OK" + }, + "202": { + "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}/stop": { + "post": { + "description": "Stops the cluster.", + "tags": [ + "ClusterOperations" + ], + "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 cluster": { + "$ref": "./examples/ClusterStop.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": "OK" + }, + "202": { + "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": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { + "post": { + "description": "Check the availability of name for resource", + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CheckNameAvailability", + "x-ms-examples": { + "Check name availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.DBforPostgreSQL/operations": { + "get": { + "description": "Lists all of the available REST API operations.", + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "List all available operations": { + "$ref": "./examples/OperationList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "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}/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" + } + }, + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/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": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Approve or reject a private endpoint connection with a given name.", + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name": { + "$ref": "./examples/PrivateEndpointConnectionCreateOrUpdate.json" + } + }, + "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": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "description": "The required parameters for approving a private endpoint connection." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "201": { + "description": "Accepted", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "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" + } + } + } + } + }, + "/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": "../../../../../common-types/resource-management/v4/privatelinks.json#/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": { + "serverEdition": { + "type": "string", + "description": "The edition of a server" + }, + "storageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." + }, + "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." + }, + "enablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a server.", + "readOnly": true + }, + "isReadOnly": { + "type": "boolean", + "description": "If server database is set to read-only by system maintenance depending on high disk space usage.", + "readOnly": true + }, + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of the servers in the cluster.", + "readOnly": true + } + } + }, + "ServerNameItem": { + "description": "The name object for a server.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of a server." + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true + } + } + }, + "ClusterServerProperties": { + "description": "The properties of a server in cluster.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServerProperties" + } + ], + "properties": { + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true + }, + "role": { + "$ref": "#/definitions/ServerRole", + "description": "The role of server in the cluster." + }, + "state": { + "type": "string", + "description": "A state of a cluster/server that is visible to user.", + "readOnly": true + }, + "haState": { + "type": "string", + "description": "A state of HA feature for the cluster.", + "readOnly": true + }, + "availabilityZone": { + "type": "string", + "description": "Availability Zone information of the server." + }, + "postgresqlVersion": { + "type": "string", + "description": "The PostgreSQL version of server." + }, + "citusVersion": { + "type": "string", + "description": "The Citus version of server." + } + } + }, + "ClusterServer": { + "description": "Represents a server in a cluster.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ClusterServerProperties", + "description": "The properties of a server in a cluster.", + "x-ms-client-flatten": true + } + } + }, + "ClusterServerListResult": { + "description": "A list of servers in a cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "The list of servers in a cluster.", + "items": { + "$ref": "#/definitions/ClusterServer" + } + } + } + }, + "ClusterForUpdate": { + "description": "Represents a cluster for update.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ClusterPropertiesForUpdate", + "x-ms-client-flatten": true, + "description": "Properties of the cluster." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + } + }, + "ClusterPropertiesForUpdate": { + "description": "The properties used to update a cluster.", + "type": "object", + "properties": { + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "The password of the administrator login." + }, + "postgresqlVersion": { + "type": "string", + "description": "The PostgreSQL version of the cluster." + }, + "citusVersion": { + "type": "string", + "description": "The Citus version of the cluster." + }, + "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 cluster." + }, + "preferredPrimaryZone": { + "type": "string", + "description": "Preferred primary zone for the cluster" + }, + "coordinatorServerEdition": { + "type": "string", + "description": "The edition of the coordinator (default: GeneralPurpose)." + }, + "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": "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." + } + } + }, + "ClusterListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + }, + "description": "The list of clusters" + }, + "nextLink": { + "description": "The link used to get the next page of cluster list.", + "type": "string", + "readOnly": true + } + }, + "description": "A list of clusters." + }, + "Cluster": { + "description": "Represents a cluster.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ClusterProperties", + "x-ms-client-flatten": true, + "description": "Properties of the cluster." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ] + }, + "ClusterProperties": { + "description": "Properties of the cluster.", + "type": "object", + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of the servers in the cluster.", + "readOnly": true + }, + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "The password of the administrator login. Required for creation." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the cluster", + "readOnly": true + }, + "state": { + "type": "string", + "description": "A state of a cluster/server that is visible to user.", + "readOnly": true + }, + "postgresqlVersion": { + "type": "string", + "description": "The PostgreSQL version of cluster." + }, + "citusVersion": { + "type": "string", + "description": "The Citus version of cluster." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a cluster." + }, + "preferredPrimaryZone": { + "type": "string", + "description": "Preferred primary zone for the cluster" + }, + "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": "The edition of a coordinator server (default: GeneralPurpose). Required for creation." + }, + "coordinatorStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB. Required for creation." + }, + "coordinatorVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64). Required for creation." + }, + "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. When node count is 0, it represents a coordinator with the ability to create distributed tables on that node. Node count value can not be 1. Required for creation." + }, + "nodeStorageQuotaInMb": { + "type": "integer", + "format": "int64", + "description": "The storage of a server in MB." + }, + "nodeVCores": { + "type": "integer", + "format": "int64", + "description": "The vCores count of a server (max: 64)." + }, + "nodeEnablePublicIpAccess": { + "type": "boolean", + "description": "If public IP is requested or not for a server." + }, + "serverNames": { + "type": "array", + "description": "The list of server names in the cluster", + "items": { + "$ref": "#/definitions/ServerNameItem" + }, + "x-ms-identifiers": [ + "name" + ], + "readOnly": true, + "uniqueItems": true + }, + "sourceResourceId": { + "type": "string", + "description": "The resource id of source cluster for read replica clusters." + }, + "sourceLocation": { + "type": "string", + "description": "The location of source cluster for read replica clusters." + }, + "pointInTimeUTC": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + }, + "readReplicas": { + "type": "array", + "description": "The array of read replica clusters.", + "items": { + "type": "string" + }, + "readOnly": true, + "uniqueItems": true + }, + "earliestRestoreTime": { + "type": "string", + "format": "date-time", + "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/SimplePrivateEndpointConnection" + }, + "readOnly": true + } + } + }, + "MaintenanceWindow": { + "type": "object", + "description": "Maintenance window of a cluster.", + "properties": { + "customWindow": { + "type": "string", + "description": "indicates whether custom window is enabled or disabled" + }, + "startHour": { + "type": "integer", + "format": "int32", + "description": "start hour for maintenance window" + }, + "startMinute": { + "type": "integer", + "format": "int32", + "description": "start minute for maintenance window" + }, + "dayOfWeek": { + "type": "integer", + "format": "int32", + "description": "day of week for maintenance window" + } + } + }, + "ConfigurationProperties": { + "description": "The properties of configuration.", + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the configuration.", + "readOnly": true + }, + "dataType": { + "type": "string", + "description": "Data type of the configuration.", + "enum": [ + "Boolean", + "Numeric", + "Integer", + "Enumeration" + ], + "x-ms-enum": { + "name": "ConfigurationDataType", + "modelAsString": true + }, + "readOnly": true + }, + "allowedValues": { + "type": "string", + "description": "Allowed values of the configuration.", + "readOnly": true + }, + "requiresRestart": { + "type": "boolean", + "description": "If configuration change requires restart." + }, + "serverRoleGroupConfigurations": { + "type": "array", + "description": "The list of server role group configuration values.", + "items": { + "$ref": "#/definitions/ServerRoleGroupConfiguration" + }, + "x-ms-identifiers": [], + "uniqueItems": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the configuration", + "readOnly": true + } + }, + "required": [ + "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", + "description": "The role of servers in the server role group." + }, + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "defaultValue": { + "type": "string", + "description": "Default value of the configuration.", + "readOnly": true + }, + "source": { + "type": "string", + "description": "Source of the configuration.", + "readOnly": true + } + }, + "required": [ + "role", + "value" + ] + }, + "ClusterConfigurationListResult": { + "description": "A list of cluster configurations.", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "The list of cluster configurations.", + "items": { + "$ref": "#/definitions/Configuration" + } + }, + "nextLink": { + "type": "string", + "description": "Link to retrieve next page of results.", + "readOnly": true + } + } + }, + "ServerConfigurationProperties": { + "description": "The properties of a configuration.", + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the configuration.", + "readOnly": true + }, + "defaultValue": { + "type": "string", + "description": "Default value of the configuration.", + "readOnly": true + }, + "dataType": { + "type": "string", + "description": "Data type of the configuration.", + "enum": [ + "Boolean", + "Numeric", + "Integer", + "Enumeration" + ], + "x-ms-enum": { + "name": "ConfigurationDataType", + "modelAsString": true + }, + "readOnly": true + }, + "allowedValues": { + "type": "string", + "description": "Allowed values of the configuration.", + "readOnly": true + }, + "requiresRestart": { + "type": "boolean", + "description": "If configuration change requires restart.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the configuration.", + "readOnly": true + } + }, + "required": [ + "value" + ] + }, + "ServerConfiguration": { + "description": "Represents a configuration.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ServerConfigurationProperties", + "description": "The properties of a configuration.", + "x-ms-client-flatten": true + } + } + }, + "ServerConfigurationListResult": { + "description": "A list of server configurations.", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "The list of server configurations.", + "items": { + "$ref": "#/definitions/ServerConfiguration" + } + }, + "nextLink": { + "type": "string", + "description": "Link to retrieve next page of results.", + "readOnly": true + } + } + }, + "FirewallRuleProperties": { + "description": "The properties of a cluster firewall rule.", + "type": "object", + "properties": { + "startIpAddress": { + "type": "string", + "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 cluster firewall rule. Must be IPv4 format.", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the firewall rule.", + "readOnly": true + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ] + }, + "FirewallRule": { + "description": "Represents a cluster firewall rule.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + } + }, + "required": [ + "properties" + ] + }, + "FirewallRuleListResult": { + "description": "A list of firewall rules.", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "The list of firewall rules in a cluster.", + "items": { + "$ref": "#/definitions/FirewallRule" + } + } + } + }, + "RoleProperties": { + "properties": { + "password": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "The password of the cluster role." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the role", + "readOnly": true + } + }, + "required": [ + "password" + ], + "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": { + "properties": { + "$ref": "#/definitions/RoleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a role." + } + }, + "required": [ + "properties" + ] + }, + "RoleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "description": "The list of roles in a cluster." + } + }, + "description": "A list of roles.", + "type": "object" + }, + "OperationDisplay": { + "description": "Display metadata associated with the operation.", + "type": "object", + "properties": { + "provider": { + "type": "string", + "description": "Operation resource provider name.", + "readOnly": true + }, + "resource": { + "type": "string", + "description": "Resource on which the operation is performed.", + "readOnly": true + }, + "operation": { + "type": "string", + "description": "Localized friendly name for the operation.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Operation description.", + "readOnly": true + } + } + }, + "Operation": { + "description": "REST API operation definition.", + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "The localized display information for this particular operation or action." + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The intended executor of the operation.", + "enum": [ + "NotSpecified", + "user", + "system" + ], + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": true, + "description": "Additional descriptions for the operation." + } + } + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string", + "readOnly": true + } + } + }, + "NameAvailabilityRequest": { + "description": "Request from client to check resource name availability.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforPostgreSQL/serverGroupsv2" + ], + "description": "Resource type used for verification.", + "x-ms-enum": { + "name": "CheckNameAvailabilityResourceType", + "modelAsString": false + } + } + }, + "required": [ + "name", + "type" + ] + }, + "NameAvailability": { + "description": "Represents a resource name availability.", + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "name": { + "type": "string", + "description": "name of the cluster." + }, + "type": { + "type": "string", + "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." + } + } + }, + "SimplePrivateEndpointConnection": { + "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." + } + } + }, + "PrivateEndpointConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections.", + "items": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + } + }, + "description": "List of private endpoint connections associated with the specified resource." + }, + "PrivateEndpointConnectionSimpleProperties": { + "description": "The properties in private endpoint connection", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "groupIds": { + "type": "array", + "description": "Group ids of the private endpoint connection.", + "items": { + "type": "string" + } + }, + "privateLinkServiceConnectionState": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkServiceConnectionState" + } + } + }, + "PrivateLinkResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkResource" + } + } + }, + "description": "A list of private link resources." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Canceled", + "InProgress", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "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 d9e6f548ae33..e1616ab932f9 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,12 +22,22 @@ 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 +``` yaml +title: Cosmos DB for PostgreSQL openapi-type: arm -tag: package-2020-10-05-privatepreview +tag: package-2022-11-08 +``` + + +### Tag: package-2022-11-08 + +These settings apply only when `--tag=package-2022-11-08` is specified on the command line. + +```yaml $(tag) == 'package-2022-11-08' +input-file: + - Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json ``` ### Tag: package-2020-10-05-privatepreview @@ -39,6 +49,17 @@ 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: EnumInsteadOfBoolean + from: postgresqlhsc.json + reason: It's been used as boolean since 2019 by internal teams and also private preview customers like Azure Portal and we have no plans to use any values other than true/false. +``` + --- # Code Generation @@ -48,7 +69,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -```yaml $(swagger-to-sdk) +``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-python-track2 @@ -91,5 +112,3 @@ See configuration in [readme.typescript.md](./readme.typescript.md) ## CSharp See configuration in [readme.csharp.md](./readme.csharp.md) - - 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