共用方式為


Servers - Create

建立新的伺服器。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}?api-version=2024-08-01

URI 參數

名稱 位於 必要 類型 Description
resourceGroupName
path True

string

minLength: 1
maxLength: 90

資源群組的名稱。 名稱不區分大小寫。

serverName
path True

string

minLength: 3
maxLength: 63
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*

伺服器的名稱。

subscriptionId
path True

string (uuid)

目標訂用帳戶的標識碼。 此值必須是 UUID。

api-version
query True

string

minLength: 1

要用於這項作業的 API 版本。

要求本文

名稱 類型 Description
parameters

Server

創建新的靈活伺服器或更新現有靈活伺服器所需的參數。

回應

名稱 類型 Description
200 OK

Server

還行

201 Created

Server

已建立

202 Accepted

已接受

標題

Location: string

Other Status Codes

ErrorResponse

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Microsoft Entra OAuth2 流

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Create a new flexible server using a backup of a flexible server that was deleted or dropped recently.
Create a new flexible server using a point in time restore of a backup of an existing flexible server.
Create a new flexible server using a restore of a geographically redundant backup of an existing flexible server, with data encryption based on customer managed key.
Create a new flexible server with data encryption based on customer managed key.
Create a new flexible server with Microsoft Entra authentication enabled.
Create a new flexible server.
Create a read replica of an existing flexible server.

Create a new flexible server using a backup of a flexible server that was deleted or dropped recently.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "properties": {
    "createMode": "ReviveDropped",
    "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver",
    "pointInTimeUTC": "2024-08-01T18:30:22.123456Z"
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 0
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 0
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

Create a new flexible server using a point in time restore of a backup of an existing flexible server.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "properties": {
    "createMode": "PointInTimeRestore",
    "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
    "pointInTimeUTC": "2024-08-01T18:35:22.123456Z"
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "dataEncryption": {
      "type": "SystemManaged"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:40:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "dataEncryption": {
      "type": "SystemManaged"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:40:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

Create a new flexible server using a restore of a geographically redundant backup of an existing flexible server, with data encryption based on customer managed key.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {}
    },
    "type": "UserAssigned"
  },
  "properties": {
    "createMode": "GeoRestore",
    "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
    "pointInTimeUTC": "2024-08-01T18:35:22.123456Z",
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "geoBackupKeyURI": "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
      "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity"
    }
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {
        "principalId": "pppppppp-pppp-pppp-pppp-pppppppppppp",
        "clientId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      },
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {
        "principalId": "rrrrrrrr-rrrr-rrrr-rrrr-rrrrrrrrrrrr",
        "clientId": "llllllll-llll-llll-llll-llllllllllll"
      }
    },
    "type": "UserAssigned",
    "tenantId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "geoBackupKeyURI": "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
      "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
      "primaryEncryptionKeyStatus": "Valid",
      "geoBackupEncryptionKeyStatus": "Valid"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {
        "principalId": "pppppppp-pppp-pppp-pppp-pppppppppppp",
        "clientId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      },
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {
        "principalId": "rrrrrrrr-rrrr-rrrr-rrrr-rrrrrrrrrrrr",
        "clientId": "llllllll-llll-llll-llll-llllllllllll"
      }
    },
    "type": "UserAssigned",
    "tenantId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "geoBackupKeyURI": "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
      "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
      "primaryEncryptionKeyStatus": "Valid",
      "geoBackupEncryptionKeyStatus": "Valid"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled",
      "earliestRestoreDate": "2025-03-03T00:28:17.7279547+00:00"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

Create a new flexible server with data encryption based on customer managed key.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "sku": {
    "tier": "GeneralPurpose",
    "name": "Standard_D4ds_v5"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {}
    },
    "type": "UserAssigned"
  },
  "properties": {
    "administratorLogin": "administratorlogin",
    "administratorLoginPassword": "examplepassword",
    "version": "16",
    "availabilityZone": "1",
    "createMode": "Create",
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "geoBackupKeyURI": "",
      "geoBackupUserAssignedIdentityId": ""
    },
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled"
    },
    "network": {
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
    },
    "highAvailability": {
      "mode": "ZoneRedundant"
    }
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {
        "principalId": "pppppppp-pppp-pppp-pppp-pppppppppppp",
        "clientId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      }
    },
    "type": "UserAssigned",
    "tenantId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
  },
  "systemData": {
    "createdAt": "2025-03-03T17:44:30.7095047Z"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.exampleprivatednszone.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "1",
    "authConfig": {
      "activeDirectoryAuth": "Enabled",
      "passwordAuth": "Enabled"
    },
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "primaryEncryptionKeyStatus": "Valid"
    },
    "storage": {
      "type": "",
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2025-02-26T01:08:06.7197478+00:00"
    },
    "network": {
      "publicNetworkAccess": "Disabled",
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
    },
    "highAvailability": {
      "mode": "ZoneRedundant",
      "state": "Healthy",
      "standbyAvailabilityZone": "2"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 5
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {
        "principalId": "pppppppp-pppp-pppp-pppp-pppppppppppp",
        "clientId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      }
    },
    "type": "UserAssigned",
    "tenantId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.exampleprivatednszone.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "1",
    "authConfig": {
      "activeDirectoryAuth": "Enabled",
      "passwordAuth": "Enabled"
    },
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "primaryEncryptionKeyStatus": "Valid"
    },
    "storage": {
      "type": "",
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2025-02-26T01:08:06.7197478+00:00"
    },
    "network": {
      "publicNetworkAccess": "Disabled",
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
    },
    "highAvailability": {
      "mode": "ZoneRedundant",
      "state": "Healthy",
      "standbyAvailabilityZone": "2"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 5
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

Create a new flexible server with Microsoft Entra authentication enabled.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "sku": {
    "tier": "GeneralPurpose",
    "name": "Standard_D4ds_v5"
  },
  "properties": {
    "administratorLogin": "administratorlogin",
    "administratorLoginPassword": "examplepassword",
    "version": "16",
    "availabilityZone": "1",
    "createMode": "Create",
    "authConfig": {
      "activeDirectoryAuth": "Enabled",
      "passwordAuth": "Enabled",
      "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt"
    },
    "dataEncryption": {
      "type": "SystemManaged"
    },
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled"
    },
    "network": {
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
    },
    "highAvailability": {
      "mode": "ZoneRedundant"
    }
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "properties": {
    "replica": {
      "role": "Primary",
      "capacity": 5
    },
    "fullyQualifiedDomainName": "exampleserver.exampleprivatednszone.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "1",
    "authConfig": {
      "activeDirectoryAuth": "Enabled",
      "passwordAuth": "Enabled",
      "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt"
    },
    "dataEncryption": {
      "type": "SystemManaged"
    },
    "storage": {
      "type": "",
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Disabled",
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
    },
    "highAvailability": {
      "mode": "ZoneRedundant",
      "state": "Healthy",
      "standbyAvailabilityZone": "2"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 5
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "properties": {
    "replica": {
      "role": "Primary",
      "capacity": 5
    },
    "fullyQualifiedDomainName": "exampleserver.exampleprivatednszone.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "1",
    "authConfig": {
      "activeDirectoryAuth": "Enabled",
      "passwordAuth": "Enabled",
      "tenantId": "tttttt-tttt-tttt-tttt-tttttttttttt"
    },
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Disabled",
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
    },
    "highAvailability": {
      "mode": "ZoneRedundant",
      "state": "Healthy",
      "standbyAvailabilityZone": "2"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

Create a new flexible server.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "sku": {
    "tier": "GeneralPurpose",
    "name": "Standard_D4ds_v5"
  },
  "properties": {
    "administratorLogin": "administratorlogin",
    "administratorLoginPassword": "examplepassword",
    "version": "16",
    "availabilityZone": "1",
    "createMode": "Create",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled"
    },
    "network": {
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database"
    },
    "highAvailability": {
      "mode": "ZoneRedundant"
    }
  },
  "tags": {
    "VNetServer": "1"
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "systemData": {
    "createdAt": "2024-08-01T18:30:22.123456Z"
  },
  "properties": {
    "replica": {
      "role": "Primary",
      "capacity": 5
    },
    "storage": {
      "type": "",
      "iops": 2300,
      "tier": "P20",
      "storageSizeGB": 512,
      "autoGrow": "Disabled"
    },
    "network": {
      "publicNetworkAccess": "Disabled",
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database.azure.com"
    },
    "dataEncryption": {
      "type": "SystemManaged"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "1",
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "highAvailability": {
      "mode": "ZoneRedundant",
      "state": "Healthy",
      "standbyAvailabilityZone": "2"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 5
  },
  "location": "westus",
  "tags": {
    "VnetServer": "1"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "systemData": {
    "createdAt": "2024-08-01T18:30:22.123456Z"
  },
  "properties": {
    "replica": {
      "role": "Primary",
      "capacity": 5
    },
    "storage": {
      "type": "",
      "iops": 2300,
      "tier": "P20",
      "storageSizeGB": 512,
      "autoGrow": "Disabled"
    },
    "network": {
      "publicNetworkAccess": "Disabled",
      "delegatedSubnetResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
      "privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database.azure.com"
    },
    "dataEncryption": {
      "type": "SystemManaged"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "1",
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled",
      "earliestRestoreDate": "2024-08-01T18:35:22.123456Z"
    },
    "highAvailability": {
      "mode": "ZoneRedundant",
      "state": "Healthy",
      "standbyAvailabilityZone": "2"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "replicationRole": "Primary",
    "replicaCapacity": 5
  },
  "location": "westus",
  "tags": {
    "VnetServer": "1"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

Create a read replica of an existing flexible server.

範例要求

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver?api-version=2024-08-01

{
  "location": "westus",
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {}
    },
    "type": "UserAssigned"
  },
  "properties": {
    "createMode": "Replica",
    "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
    "pointInTimeUTC": "2024-08-01T18:35:22.123456Z",
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "geoBackupKeyURI": "",
      "geoBackupUserAssignedIdentityId": ""
    }
  }
}

範例回覆

{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {
        "principalId": "pppppppp-pppp-pppp-pppp-pppppppppppp",
        "clientId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      }
    },
    "type": "UserAssigned",
    "tenantId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "primaryEncryptionKeyStatus": "Valid"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:40:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
    "replicationRole": "AsyncReplica",
    "replicaCapacity": 0,
    "replica": {
      "role": "AsyncReplica",
      "capacity": 0,
      "replicationState": "Active"
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
{
  "sku": {
    "name": "Standard_D4ds_v5",
    "tier": "GeneralPurpose"
  },
  "identity": {
    "userAssignedIdentities": {
      "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {
        "principalId": "pppppppp-pppp-pppp-pppp-pppppppppppp",
        "clientId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      }
    },
    "type": "UserAssigned",
    "tenantId": "cccccccc-cccc-cccc-cccc-cccccccccccc"
  },
  "properties": {
    "fullyQualifiedDomainName": "exampleserver.postgres.database.azure.com",
    "version": "16",
    "minorVersion": "8",
    "administratorLogin": "administratorlogin",
    "state": "Ready",
    "availabilityZone": "2",
    "storage": {
      "storageSizeGB": 512,
      "autoGrow": "Disabled",
      "tier": "P20",
      "iops": 2300
    },
    "dataEncryption": {
      "type": "AzureKeyVault",
      "primaryKeyURI": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
      "primaryEncryptionKeyStatus": "Valid"
    },
    "authConfig": {
      "activeDirectoryAuth": "Disabled",
      "passwordAuth": "Enabled"
    },
    "backup": {
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Disabled",
      "earliestRestoreDate": "2024-08-01T18:40:22.123456Z"
    },
    "network": {
      "publicNetworkAccess": "Enabled"
    },
    "highAvailability": {
      "mode": "Disabled",
      "state": "NotEnabled"
    },
    "maintenanceWindow": {
      "customWindow": "Disabled",
      "dayOfWeek": 0,
      "startHour": 0,
      "startMinute": 0
    },
    "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
    "replicationRole": "AsyncReplica",
    "replicaCapacity": 0,
    "replica": {
      "role": "AsyncReplica",
      "capacity": 0,
      "replicationState": "Active"
    }
  },
  "location": "westus",
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver",
  "name": "exampleserver",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers"
}

定義

名稱 Description
activeDirectoryAuthEnum

指示伺服器是否支援 Microsoft Entra 身份驗證。

ArmServerKeyType

靈活伺服器使用的數據加密類型。

AuthConfig

靈活伺服器的身份驗證配置屬性。

AzureManagedDiskPerformanceTiers

靈活伺服器的存儲層。

Backup

靈活伺服器的備份屬性。

createdByType

建立資源的身分識別類型。

CreateMode

新靈活伺服器的創建模式。

DataEncryption

靈活伺服器的數據加密屬性。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

GeoRedundantBackupEnum

指示是否將 伺服器配置為創建地理位置冗餘的備份。

HighAvailability

靈活伺服器的高可用性屬性。

HighAvailabilityMode

靈活伺服器的高可用性模式。

IdentityType

與靈活伺服器關聯的身份類型。

keyStatusEnum

配置了基於客戶管理的金鑰的數據加密的靈活伺服器使用的金鑰狀態,用於加密與伺服器關聯的主存儲。

MaintenanceWindow

靈活伺服器的維護時段屬性。

Network

靈活伺服器的網路屬性。 僅當您希望將伺服器集成到客戶提供的虛擬網路中時,才需要。

passwordAuthEnum

指示伺服器是否支援基於密碼的身份驗證。

PrivateEndpoint

私人端點資源。

PrivateEndpointConnection

與指定靈活伺服器關聯的專用終結點連接清單。

PrivateEndpointConnectionProvisioningState

私人端點聯機資源的布建狀態。

PrivateEndpointServiceConnectionStatus

指出服務擁有者是否已核准/拒絕/移除連線。

PrivateLinkServiceConnectionState

服務取用者與提供者之間連線狀態的相關信息集合。

ReadReplicaPromoteMode

要應用於唯讀複本的作類型。 此屬性是 write only。 Standalone 意味著只讀副本將被提升為獨立伺服器,並將成為完全獨立於複製集的實體。 切換意味著唯讀副本將與主伺服器一起扮演角色。

Replica

靈活伺服器的唯讀副本屬性。 僅在您想要升級伺服器時才需要。

ReplicationPromoteOption

處理 promoteMode 屬性中指定的作時使用的數據同步選項 此屬性為「只寫」。 Planned 表示作將等待唯讀副本中的數據與其源伺服器完全同步,然後再啟動作。 Forced 表示作在啟動作之前不會等待唯讀副本中的數據與其源伺服器同步。

ReplicationRole

伺服器在複製集中的角色。

ReplicationState

指示只讀複本的複製狀態。 僅當目標靈活伺服器是唯讀副本時,才會返回此屬性。 可能的值包括 Active、Broken、Catchup、Provisioning、Reconfiguring 和 Updating

Server

靈活伺服器。

ServerHAState

當高可用性設置為 SameZone 或 ZoneRedundant 時創建的備用伺服器的可能狀態。

ServerPublicNetworkAccessState

指示是否啟用公共網路訪問。

ServerState

靈活伺服器的可能狀態。

ServerVersion

PostgreSQL 資料庫引擎的主要版本。

Sku

靈活伺服器的計算層和大小。

SkuTier

分配給靈活伺服器的計算層。

Storage

靈活伺服器的儲存屬性。

StorageAutoGrow

當可用空間接近零且條件允許自動增加存儲大小時,啟用或禁用靈活伺服器的存儲大小的自動增長的標誌。

StorageType

分配給靈活伺服器的存儲類型。 允許的值為 Premium_LRS 或 PremiumV2_LRS。 如果未指定,則預設為 Premium_LRS。

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

UserAssignedIdentity

使用者分配的託管標識分配給靈活伺服器。

UserIdentity

使用者分配的與靈活伺服器關聯的託管標識。

activeDirectoryAuthEnum

指示伺服器是否支援 Microsoft Entra 身份驗證。

Description
Enabled
Disabled

ArmServerKeyType

靈活伺服器使用的數據加密類型。

Description
SystemManaged
AzureKeyVault

AuthConfig

靈活伺服器的身份驗證配置屬性。

名稱 類型 預設值 Description
activeDirectoryAuth

activeDirectoryAuthEnum

指示伺服器是否支援 Microsoft Entra 身份驗證。

passwordAuth

passwordAuthEnum

Enabled

指示伺服器是否支援基於密碼的身份驗證。

tenantId

string

委託資源的租戶的標識碼。

AzureManagedDiskPerformanceTiers

靈活伺服器的存儲層。

Description
P1
P2
P3
P4
P6
P10
P15
P20
P30
P40
P50
P60
P70
P80

Backup

靈活伺服器的備份屬性。

名稱 類型 預設值 Description
backupRetentionDays

integer (int32)

7

靈活伺服器的備份保留天數。

earliestRestoreDate

string (date-time)

靈活伺服器的最早還原點時間 (ISO8601 格式)。

geoRedundantBackup

GeoRedundantBackupEnum

Disabled

指示是否將 伺服器配置為創建地理位置冗餘的備份。

createdByType

建立資源的身分識別類型。

Description
User
Application
ManagedIdentity
Key

CreateMode

新靈活伺服器的創建模式。

Description
Default
Create
Update
PointInTimeRestore
GeoRestore
Replica
ReviveDropped

DataEncryption

靈活伺服器的數據加密屬性。

名稱 類型 Description
geoBackupEncryptionKeyStatus

keyStatusEnum

配置了基於客戶管理的金鑰的數據加密的靈活伺服器使用的金鑰狀態,用於在伺服器配置為支援地理冗餘備份時加密與伺服器關聯的地理冗餘存儲。

geoBackupKeyURI

string

使用者分配的託管標識的標識碼,用於訪問 Azure Key Vault 中的密鑰,以便對與配置為支援地理冗餘備份的靈活伺服器關聯的地理冗餘存儲進行數據加密。

geoBackupUserAssignedIdentityId

string

使用者分配的託管標識的標識碼,用於訪問 Azure Key Vault 中的密鑰,以便對與配置為支援地理冗餘備份的靈活伺服器關聯的地理冗餘存儲進行數據加密。

primaryEncryptionKeyStatus

keyStatusEnum

配置了基於客戶管理的金鑰的數據加密的靈活伺服器使用的金鑰狀態,用於加密與伺服器關聯的主存儲。

primaryKeyURI

string

Azure Key Vault 中密鑰的 URI,用於對與靈活伺服器關聯的主存儲進行數據加密。

primaryUserAssignedIdentityId

string

使用者分配的託管標識的標識碼,用於訪問 Azure Key Vault 中的密鑰,以便對與靈活伺服器關聯的主存儲進行數據加密。

type

ArmServerKeyType

靈活伺服器使用的數據加密類型。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

GeoRedundantBackupEnum

指示是否將 伺服器配置為創建地理位置冗餘的備份。

Description
Enabled
Disabled

HighAvailability

靈活伺服器的高可用性屬性。

名稱 類型 預設值 Description
mode

HighAvailabilityMode

Disabled

靈活伺服器的高可用性模式。

standbyAvailabilityZone

string

與高可用性設置為 SameZone 或 ZoneRedundant 時創建的備用伺服器關聯的可用區。

state

ServerHAState

當高可用性設置為 SameZone 或 ZoneRedundant 時創建的備用伺服器的可能狀態。

HighAvailabilityMode

靈活伺服器的高可用性模式。

Description
Disabled
ZoneRedundant
SameZone

IdentityType

與靈活伺服器關聯的身份類型。

Description
None
UserAssigned
SystemAssigned
SystemAssigned,UserAssigned

keyStatusEnum

配置了基於客戶管理的金鑰的數據加密的靈活伺服器使用的金鑰狀態,用於加密與伺服器關聯的主存儲。

Description
Valid
Invalid

MaintenanceWindow

靈活伺服器的維護時段屬性。

名稱 類型 預設值 Description
customWindow

string

Disabled

指示自定義視窗是啟用還是禁用。

dayOfWeek

integer (int32)

0

用於維護時段的星期幾。

startHour

integer (int32)

0

用於維護時段的開始時間。

startMinute

integer (int32)

0

用於維護時段的開始分鐘。

Network

靈活伺服器的網路屬性。 僅當您希望將伺服器集成到客戶提供的虛擬網路中時,才需要。

名稱 類型 Description
delegatedSubnetResourceId

string

委託子網的資源標識碼。 在創建新伺服器期間是必需的,以防您希望將伺服器集成到您自己的虛擬網路中。 對於更新作,如果要更改為私有 DNS 區域分配的值,則只需提供此屬性。

privateDnsZoneArmResourceId

string

私有 DNS 區域的識別碼。 在創建新伺服器期間是必需的,以防您希望將伺服器集成到您自己的虛擬網路中。 對於更新作,如果要更改為私有 DNS 區域分配的值,則只需提供此屬性。

publicNetworkAccess

ServerPublicNetworkAccessState

指示是否啟用公共網路訪問。

passwordAuthEnum

指示伺服器是否支援基於密碼的身份驗證。

Description
Enabled
Disabled

PrivateEndpoint

私人端點資源。

名稱 類型 Description
id

string

私人端點的ARM標識碼。

PrivateEndpointConnection

與指定靈活伺服器關聯的專用終結點連接清單。

名稱 類型 Description
id

string (arm-id)

資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”

name

string

資源的名稱

properties.groupIds

string[]

私人端點資源的群組標識碼。

properties.privateEndpoint

PrivateEndpoint

私人端點資源。

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionState

服務取用者與提供者之間連線狀態的相關信息集合。

properties.provisioningState

PrivateEndpointConnectionProvisioningState

私人端點聯機資源的布建狀態。

systemData

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

type

string

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

PrivateEndpointConnectionProvisioningState

私人端點聯機資源的布建狀態。

Description
Succeeded
Creating
Deleting
Failed

PrivateEndpointServiceConnectionStatus

指出服務擁有者是否已核准/拒絕/移除連線。

Description
Pending
Approved
Rejected

PrivateLinkServiceConnectionState

服務取用者與提供者之間連線狀態的相關信息集合。

名稱 類型 Description
actionsRequired

string

訊息,指出服務提供者上的變更是否需要取用者的任何更新。

description

string

核准/拒絕連線的原因。

status

PrivateEndpointServiceConnectionStatus

指出服務擁有者是否已核准/拒絕/移除連線。

ReadReplicaPromoteMode

要應用於唯讀複本的作類型。 此屬性是 write only。 Standalone 意味著只讀副本將被提升為獨立伺服器,並將成為完全獨立於複製集的實體。 切換意味著唯讀副本將與主伺服器一起扮演角色。

Description
standalone
switchover

Replica

靈活伺服器的唯讀副本屬性。 僅在您想要升級伺服器時才需要。

名稱 類型 Description
capacity

integer (int32)

靈活伺服器允許的最大只讀副本數。

promoteMode

ReadReplicaPromoteMode

要應用於唯讀複本的作類型。 此屬性是 write only。 Standalone 意味著只讀副本將被提升為獨立伺服器,並將成為完全獨立於複製集的實體。 切換意味著唯讀副本將與主伺服器一起扮演角色。

promoteOption

ReplicationPromoteOption

處理 promoteMode 屬性中指定的作時使用的數據同步選項 此屬性為「只寫」。 Planned 表示作將等待唯讀副本中的數據與其源伺服器完全同步,然後再啟動作。 Forced 表示作在啟動作之前不會等待唯讀副本中的數據與其源伺服器同步。

replicationState

ReplicationState

指示只讀複本的複製狀態。 僅當目標靈活伺服器是唯讀副本時,才會返回此屬性。 可能的值包括 Active、Broken、Catchup、Provisioning、Reconfiguring 和 Updating

role

ReplicationRole

伺服器在複製集中的角色。

ReplicationPromoteOption

處理 promoteMode 屬性中指定的作時使用的數據同步選項 此屬性為「只寫」。 Planned 表示作將等待唯讀副本中的數據與其源伺服器完全同步,然後再啟動作。 Forced 表示作在啟動作之前不會等待唯讀副本中的數據與其源伺服器同步。

Description
planned
forced

ReplicationRole

伺服器在複製集中的角色。

Description
None
Primary
AsyncReplica
GeoAsyncReplica

ReplicationState

指示只讀複本的複製狀態。 僅當目標靈活伺服器是唯讀副本時,才會返回此屬性。 可能的值包括 Active、Broken、Catchup、Provisioning、Reconfiguring 和 Updating

Description
Active
Catchup
Provisioning
Updating
Broken
Reconfiguring

Server

靈活伺服器。

名稱 類型 Description
id

string (arm-id)

資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”

identity

UserAssignedIdentity

使用者分配的託管標識分配給靈活伺服器。

location

string

資源所在的地理位置

name

string

資源的名稱

properties.administratorLogin

string

指定為分配給 PostgreSQL 實例的第一個基於密碼的管理員的登錄名。 首次在伺服器上啟用基於密碼的身份驗證時,必須指定此參數。 一旦設置為給定值,則在伺服器的其餘生命週期內無法更改。 如果在啟用了基於密碼的身份驗證的伺服器上禁用基於密碼的身份驗證,則不會刪除此基於密碼的角色。

properties.administratorLoginPassword

string (password)

分配給管理員登錄名的密碼。 只要啟用了密碼身份驗證,就可以隨時更改此密碼。

properties.authConfig

AuthConfig

靈活伺服器的身份驗證配置屬性。

properties.availabilityZone

string

靈活伺服器的可用性區域。

properties.backup

Backup

靈活伺服器的備份屬性。

properties.createMode

CreateMode

新靈活伺服器的創建模式。

properties.dataEncryption

DataEncryption

靈活伺服器的數據加密屬性。

properties.fullyQualifiedDomainName

string

靈活伺服器的完全限定功能變數名稱。

properties.highAvailability

HighAvailability

靈活伺服器的高可用性屬性。

properties.maintenanceWindow

MaintenanceWindow

靈活伺服器的維護時段屬性。

properties.minorVersion

string

PostgreSQL 資料庫引擎的次要版本。

properties.network

Network

靈活伺服器的網路屬性。 僅當您希望將伺服器集成到客戶提供的虛擬網路中時,才需要。

properties.pointInTimeUTC

string (date-time)

要在新靈活伺服器中還原的備份的創建時間(ISO8601格式)。 當 'createMode' 為 'PointInTimeRestore'、'GeoRestore' 或 'ReviveDropped' 時,它是必需的。

properties.privateEndpointConnections

PrivateEndpointConnection[]

與指定靈活伺服器關聯的專用終結點連接清單。

properties.replica

Replica

靈活伺服器的唯讀副本屬性。 僅在您想要升級伺服器時才需要。

properties.replicaCapacity

integer (int32)

靈活伺服器允許的最大只讀副本數。

properties.replicationRole

ReplicationRole

伺服器在複製集中的角色。

properties.sourceServerResourceId

string

要用作新靈活伺服器源的靈活伺服器的標識碼。 當 'createMode' 為 'PointInTimeRestore'、'GeoRestore'、'Replica' 或 'ReviveDropped' 時是必需的。 僅當目標靈活伺服器是唯讀副本時,才會返回此屬性。

properties.state

ServerState

靈活伺服器的可能狀態。

properties.storage

Storage

靈活伺服器的儲存屬性。

properties.version

ServerVersion

PostgreSQL 資料庫引擎的主要版本。

sku

Sku

靈活伺服器的計算層和大小。

systemData

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

tags

object

資源標籤。

type

string

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

ServerHAState

當高可用性設置為 SameZone 或 ZoneRedundant 時創建的備用伺服器的可能狀態。

Description
NotEnabled
CreatingStandby
ReplicatingData
FailingOver
Healthy
RemovingStandby

ServerPublicNetworkAccessState

指示是否啟用公共網路訪問。

Description
Enabled
Disabled

ServerState

靈活伺服器的可能狀態。

Description
Ready
Dropping
Disabled
Starting
Stopping
Stopped
Updating

ServerVersion

PostgreSQL 資料庫引擎的主要版本。

Description
16
15
14
13
12
11

Sku

靈活伺服器的計算層和大小。

名稱 類型 Description
name

string

名稱 ,用於已知分配給靈活伺服器的給定計算大小。

tier

SkuTier

分配給靈活伺服器的計算層。

SkuTier

分配給靈活伺服器的計算層。

Description
Burstable
GeneralPurpose
MemoryOptimized

Storage

靈活伺服器的儲存屬性。

名稱 類型 Description
autoGrow

StorageAutoGrow

當可用空間接近零且條件允許自動增加存儲大小時,啟用或禁用靈活伺服器的存儲大小的自動增長的標誌。

iops

integer (int32)

存儲支援的最大 IOPS。 當存儲類型為 PremiumV2_LRS 時是必需的。

storageSizeGB

integer (int32)

分配給靈活伺服器的儲存大小。

throughput

integer (int32)

存儲支援的最大輸送量。 當存儲類型為 PremiumV2_LRS 時是必需的。

tier

AzureManagedDiskPerformanceTiers

靈活伺服器的存儲層。

type

StorageType

分配給靈活伺服器的存儲類型。 允許的值為 Premium_LRS 或 PremiumV2_LRS。 如果未指定,則預設為 Premium_LRS。

StorageAutoGrow

當可用空間接近零且條件允許自動增加存儲大小時,啟用或禁用靈活伺服器的存儲大小的自動增長的標誌。

Description
Enabled
Disabled

StorageType

分配給靈活伺服器的存儲類型。 允許的值為 Premium_LRS 或 PremiumV2_LRS。 如果未指定,則預設為 Premium_LRS。

Description
Premium_LRS
PremiumV2_LRS

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

名稱 類型 Description
createdAt

string (date-time)

資源建立的時間戳(UTC)。

createdBy

string

建立資源的身分識別。

createdByType

createdByType

建立資源的身分識別類型。

lastModifiedAt

string (date-time)

上次修改的資源時間戳 (UTC)

lastModifiedBy

string

上次修改資源的身分識別。

lastModifiedByType

createdByType

上次修改資源的身分識別類型。

UserAssignedIdentity

使用者分配的託管標識分配給靈活伺服器。

名稱 類型 Description
principalId

string

與使用者分配的託管標識關聯的服務主體的對象的標識碼。

tenantId

string

靈活伺服器租戶的標識碼。

type

IdentityType

與靈活伺服器關聯的身份類型。

userAssignedIdentities

<string,  UserIdentity>

使用者分配的託管標識的映射。

UserIdentity

使用者分配的與靈活伺服器關聯的託管標識。

名稱 類型 Description
clientId

string

與使用者分配的託管標識關聯的服務主體的用戶端的標識碼。

principalId

string

與使用者分配的託管標識關聯的服務主體的對象的標識碼。