Microsoft.DBforPostgreSQL (stable:2024-08-01)

2024/12/03 • 5 updated methods

Servers_Create (updated)
Description Creates a new server.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Create",
  "$parameters": {
    "parameters": {
      "$properties": {
        "identity": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ],
                [
                  "SystemAssigned",
                  ""
                ]
              ],
              "old": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "identity": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ],
                [
                  "SystemAssigned",
                  ""
                ]
              ],
              "old": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ]
              ]
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "identity": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ],
                [
                  "SystemAssigned",
                  ""
                ]
              ],
              "old": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (201)

{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Update (updated)
Description Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "identity": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ],
                [
                  "SystemAssigned",
                  ""
                ]
              ],
              "old": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "identity": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ],
                [
                  "SystemAssigned",
                  ""
                ]
              ],
              "old": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
createMode: enum ,
replicationRole: enum ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Get (updated)
Description Gets information about a server.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Get",
  "$responses": {
    "200": {
      "$properties": {
        "identity": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ],
                [
                  "SystemAssigned",
                  ""
                ]
              ],
              "old": [
                [
                  "None",
                  ""
                ],
                [
                  "UserAssigned",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ListByResourceGroup (updated)
Description List all the servers in a given resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_ListByResourceGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "identity": [
              {
                "#name": "type",
                "Enum": {
                  "new": [
                    [
                      "None",
                      ""
                    ],
                    [
                      "UserAssigned",
                      ""
                    ],
                    [
                      "SystemAssigned",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "None",
                      ""
                    ],
                    [
                      "UserAssigned",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_List (updated)
Description List all the servers in a given subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "identity": [
              {
                "#name": "type",
                "Enum": {
                  "new": [
                    [
                      "None",
                      ""
                    ],
                    [
                      "UserAssigned",
                      ""
                    ],
                    [
                      "SystemAssigned",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "None",
                      ""
                    ],
                    [
                      "UserAssigned",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
tier: enum ,
}
,
identity:
{
userAssignedIdentities: object ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
minorVersion: string ,
state: enum ,
fullyQualifiedDomainName: string ,
storage:
{
storageSizeGB: integer ,
autoGrow: enum ,
tier: enum ,
iops: integer ,
throughput: integer ,
type: enum ,
}
,
authConfig:
{
activeDirectoryAuth: enum ,
passwordAuth: enum ,
tenantId: string ,
}
,
dataEncryption:
{
primaryKeyURI: string ,
primaryUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
type: enum ,
primaryEncryptionKeyStatus: enum ,
geoBackupEncryptionKeyStatus: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneArmResourceId: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
sourceServerResourceId: string ,
pointInTimeUTC: string ,
availabilityZone: string ,
replicationRole: enum ,
replicaCapacity: integer ,
replica:
{
role: enum ,
capacity: integer ,
replicationState: enum ,
promoteMode: enum ,
promoteOption: enum ,
}
,
createMode: enum ,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}