- 最新
- 2026-06-01
- 2026-05-01-預覽
- 2026-04-01-預覽
- 2026-03-01-預覽
- 2026-02-01-預覽
- 2026-01-01-預覽
- 2025-12-01-預覽
- 2025-11-15-預覽
- 2025-11-01-預覽
- 2025-09-01
- 2025-08-15-預覽
- 2025-08-01-預覽版
- 2025-07-01-預覽版
- 2025-06-01-preview
- 2025-04-01-preview
- 2025-03-01
- 2025-01-01-預覽版
- 2024-12-01-預覽版
- 2024-10-01-預覽版
- 2024-08-01-預覽版
- 2024-06-01
- 2024-06-01-預覽版
- 2023-09-01
Bicep 資源定義
autonomousDatabases 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Oracle.Database/autonomousDatabases 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Oracle.Database/autonomousDatabases@2026-06-01' = {
location: 'string'
name: 'string'
properties: {
adminPassword: 'string'
autonomousDatabaseId: 'string'
autonomousMaintenanceScheduleType: 'string'
backupDestination: 'string'
backupRetentionPeriodInDays: int
characterSet: 'string'
computeCount: int
computeModel: 'string'
cpuCoreCount: int
customerContacts: [
{
email: 'string'
}
]
databaseEdition: 'string'
dataStorageSizeInGbs: int
dataStorageSizeInTbs: int
dbVersion: 'string'
dbWorkload: 'string'
displayName: 'string'
isAutoScalingEnabled: bool
isAutoScalingForStorageEnabled: bool
isLocalDataGuardEnabled: bool
isMtlsConnectionRequired: bool
isPreviewVersionWithServiceTermsAccepted: bool
isScheduleAzUpdateToEarliest: bool
licenseModel: 'string'
localAdgAutoFailoverMaxDataLossLimit: int
longTermBackupSchedule: {
isDisabled: bool
repeatCadence: 'string'
retentionPeriodInDays: int
timeOfBackup: 'string'
}
ncharacterSet: 'string'
networkAnchorId: 'string'
openMode: 'string'
peerDbId: 'string'
permissionLevel: 'string'
privateEndpointIp: 'string'
privateEndpointLabel: 'string'
resourceAnchorId: 'string'
role: 'string'
scheduledOperationsList: [
{
dayOfWeek: {
name: 'string'
}
scheduledStartTime: 'string'
scheduledStopTime: 'string'
}
]
subnetId: 'string'
timeScheduledAzUpdate: 'string'
vnetId: 'string'
whitelistedIps: [
'string'
]
zone: 'string'
dataBaseType: 'string'
// For remaining properties, see AutonomousDatabaseBaseProperties objects
}
tags: {
{customized property}: 'string'
}
}
AutonomousDatabaseBaseProperties 物件
設定 dataBaseType 屬性
針對 Clone,請使用:
{
cloneType: 'string'
dataBaseType: 'Clone'
refreshableModel: 'string'
source: 'string'
sourceId: 'string'
timeUntilReconnectCloneEnabled: 'string'
}
針對 CloneFromBackupTimestamp,請使用:
{
cloneType: 'string'
dataBaseType: 'CloneFromBackupTimestamp'
source: 'BackupFromTimestamp'
sourceId: 'string'
timestamp: 'string'
useLatestAvailableBackupTimeStamp: bool
}
針對 CrossRegionDisasterRecovery,請使用:
{
dataBaseType: 'CrossRegionDisasterRecovery'
isReplicateAutomaticBackups: bool
remoteDisasterRecoveryType: 'string'
source: 'CrossRegionDisasterRecovery'
sourceId: 'string'
sourceLocation: 'string'
sourceOcid: 'string'
}
針對 一般,請使用:
{
dataBaseType: 'Regular'
}
屬性值
Oracle.Database/自主資料庫
| 名字 | 描述 | 價值 |
|---|---|---|
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 約束: 最小長度 = 1 最大長度 = 30 模式 = .* (必要) |
| 性能 | 此資源的資源特定屬性。 | AutonomousDatabaseBaseProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
AutonomousDatabaseBaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 管理員密碼 | 系統管理員密碼。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
| 自治資料庫ID | 自發資料庫標識碼 | 字串 |
| autonomousMaintenanceScheduleType | 自發資料庫伺服器的維護排程類型。 | “早期” “常規” |
| 備份目的地 | 自動及長期備份的備份目的地。 當這個數值改變時,現有的備份會保持在原本的目的地。 | 「AZURE」 「OCI」 |
| backupRetentionPeriodInDays (備份保留期以天為單位) | 長期備份的保留期間,以天為單位 | 整數 (int) |
| 字元集 | 自發資料庫的字元集。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| 計算計數 | 資料庫可用的計算量(CPU)。 | int 約束: 最小值 = 1 最大值 = 512 |
| 計算模型 | 自發資料庫的計算模型。 | 'ECPU' “OCPU” |
| cpuCoreCount | 要提供給資料庫的 CPU 核心數目。 | int 約束: 最小值 = 1 最大值 = 128 |
| 客戶聯繫方式 | 客戶連絡人。 | 客戶連絡人 |
| databaseEdition 資料庫版 | 適用於自發資料庫的 Oracle Database Edition。 | '企業版' '標準版' |
| dataBaseType | 將 類型設定為 'Clone',AutonomousDatabaseCloneProperties。 針對 type AutonomousDatabaseFromBackupTimestampProperties,設定為 'CloneFromBackupTimestamp'。 針對 type AutonomousDatabaseCrossRegionDisasterRecoverties,設定為 'CrossRegionDisasterRecovery'。 針對 AutonomousDatabaseProperties 類型設定為 'Regular',。 | “克隆” “CloneFromBackupTimestamp” “跨區域災難恢復” 'Regular' (必要) |
| 資料儲存大小(以 Gbs 為單位) | 將建立並附加至資料庫的數據磁碟區大小,以 GB 為單位。 | int 約束: 最小值 = 20 最大值 = 393216 |
| 資料儲存大小(以 Tbs為單位) | 資料庫中的數據數量,以 TB 為單位。 | int 約束: 最小值 = 1 最大值 = 384 |
| dbVersion 資料庫版本 | 自發資料庫的有效 Oracle 資料庫版本。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| dbWorkload 工作負載 | 自發資料庫工作負載類型 | 'AJD' '頂點' 'DW' 「LH」 “OLTP” |
| 顯示名稱 | 自發資料庫的用戶易記名稱。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| isAutoScalingEnabled 已啟用 | 指出是否已啟用自發資料庫 CPU 核心計數的自動調整。 | 布爾 (bool) |
| isAutoScalingForStorageEnabled | 指出是否已啟用自發資料庫記憶體的自動調整。 | 布爾 (bool) |
| isLocalDataGuard已啟用 | 指出是否已啟用自發資料庫本機或呼叫區域內 Data Guard。 | 布爾 (bool) |
| isMtlsConnectionRequired | 指定自發資料庫是否需要 mTLS 連線。 | 布爾 (bool) |
| isPreviewVersionWithServiceTermsAccepted | 指定是否正在布建自發資料庫預覽版本。 | 布爾 (bool) |
| isScheduleAzUpdateToEarliest | 請盡快更新亞利桑那州 | 布爾 (bool) |
| 許可模型 | 適用於 Oracle 自發資料庫的 Oracle 授權模型。 預設值為 LICENSE_INCLUDED。 | 'BringyourOwnLicense' 'LicenseIncluded' |
| localAdgAutoFailoverMaxDataLossLimit | 可讓使用者在幾秒鐘內選取可接受的最大數據遺失限制的參數,最多會在本機自發式數據防護需要時觸發自動故障轉移 | int 約束: 最小值 = 0 最大值 = 3600 |
| longTermBackupSchedule 計劃 | 長期備份排程的詳細數據。 | LongTermBackUpScheduleDetails |
| ncharacterSet | 自發資料庫的字元集。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| networkAnchorId | Azure 網路錨點識別碼 | 字串 |
| openMode | 表示自發資料庫模式。 | “只讀” “ReadWrite” |
| peerDbId 資料庫 ID | 災害復原對等資料庫的 Azure 資源識別符,其位於與目前對等資料庫不同的區域中。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| 權限等級 | 自發資料庫許可權等級。 | “受限” “不受限制” |
| privateEndpointIp | 資源的私人端點 IP 位址。 | 字串 |
| privateEndpointLabel | 資源的私人端點標籤。 | 字串 |
| resourceAnchorId | Azure 資源錨點識別碼 | 字串 |
| 角色 | 如果已啟用自發式 Data Guard,則為自發容器資料庫或自發資料庫的 Data Guard 角色。 | '備份副本' “DisabledStandby” “主要” “SnapshotStandby” “待命” |
| scheduledOperationsList | 排程作業的清單。 | ScheduledOperationsType[] |
| 子網ID | 用戶端子網 | 字串 |
| timeScheduledAzUpdate | 自治資料庫可用性區域更新的日期與時間。 | 字串 |
| vnetId | 網路連線的 VNET | 字串 |
| 白名單IP | 用戶端 IP 存取控制清單 (ACL)。 這是 CIDR 表示法和/或 IP 位址的陣列。 值應該是個別的字串,並以逗號分隔。 範例:['1.1.1.1','1.1.1.0/24','1.1.2.25'] | 字串 約束: 最小長度 = 1 最大長度 = 1024[] |
| 區域 | 自動資料庫配置的邏輯區域。 | 字串 |
AutonomousDatabaseCloneProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 克隆類型 | 自發資料庫複製類型。 | “已滿” 'Metadata' (必要) |
| dataBaseType | 要建立的資料庫類型。 | 'Clone' (必要) |
| refreshableModel | 複製的重新整理模式。 | “自動” “手動” |
| 來源 | 資料庫的來源。 | “BackupFromId” “BackupFromTimestamp” 'CloneToRefreshable' “CrossRegionDataguard” “跨區域災難恢復” '資料庫' “無” |
| 源Id | 複製以建立目前自發資料庫的 Azure 資源識別碼。 | 字串 (必要) |
| timeUntilReconnectClone已啟用 | 時間與日期做為RFC3339格式化字串,例如 2022-01-01T12:00:00.000Z,以設定可重新整理複製品重新連線至其源資料庫的限制。 | 字串 |
AutonomousDatabaseCrossRegionDisasterRecoveryProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| dataBaseType | 要建立的資料庫類型。 | 'CrossRegionDisasterRecovery' (必要) |
| isReplicateAutomaticBackups | 如果為 true,則會跨區域 ADB 複寫 7 天的備份,或在主要和待命之間 Backup-Based DR。 如果為 false,則不會將主要資料庫上建立的備份復寫到待命資料庫。 | 布爾 (bool) |
| remoteDisasterRecoveryType | 表示待命 Database Serverless 實例的跨區域災害復原類型。 自發式 Data Guard (ADG) DR 類型提供業務關鍵 DR,在故障轉移或切換期間提供更快速的復原時間目標(RTO)。 備份式DR類型會在故障轉移或切換期間,使用較慢的 RTO 來提供較低的成本DR。 | 'Adg' 'BackupBased' (必要) |
| 來源 | 資料庫的來源。 | 'CrossRegionDisasterRecovery' (必要) |
| 源Id | 來源自發資料庫的 Azure 識別碼,將用來為DR關聯建立新的對等資料庫。 | 字串 (必要) |
| 來源位置 | 來源自發資料庫所在的區域名稱。 | 字串 |
| 源OCID | 源資料庫 ocid | 字串 約束: 最小長度 = 1 最大長度 = 255 |
AutonomousDatabaseFromBackupTimestampProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 克隆類型 | 自發資料庫複製類型。 | “已滿” 'Metadata' (必要) |
| dataBaseType | 要建立的資料庫類型。 | 'CloneFromBackupTimestamp' (必要) |
| 來源 | 資料庫的來源。 | 'BackupFromTimestamp' (必要) |
| 源Id | 您要複製的來源自發資料庫標識碼,以建立新的自發資料庫。 | 字串 (必要) |
| 時間戳記 | 針對來源自發資料庫的時間點複製所指定的時間戳。 時間戳必須過去。 | 字串 |
| useLatestAvailableBackupTimeStamp | 從最新的可用備份時間戳複製。 | 布爾 (bool) |
AutonomousDatabaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| dataBaseType | 要建立的資料庫類型。 | 'Regular' (必要) |
客戶聯繫
| 名字 | 描述 | 價值 |
|---|---|---|
| 電子郵件 | Oracle 用來傳送資料庫和基礎結構相關通知的電子郵件位址。 | 字串 約束: 最小長度 = 1 最大長度 = 320 (必要) |
星期
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 星期的日期名稱。 | 《星期五》 《星期一》 《星期六》 《星期天》 《星期四》 《星期二》 '星期三' (必要) |
LongTermBackUpScheduleDetails
| 名字 | 描述 | 價值 |
|---|---|---|
| isDisabled (已禁用) | 指出是否應該刪除長期備份排程。 預設值為 FALSE。 |
布爾 (bool) |
| repeatCadence 的 | 長期備份排程的頻率 | “每月” “一次性” “每周” “每年” |
| retentionPeriodInDays (保留期以天為單位) | 備份的保留期間,以天為單位。 | int 約束: 最小值 = 90 最大值 = 2558 |
| 備份時間 | 長期備份排程的時間戳。 對於 MONTHLY 頻率,月數少於所提供日期的月,將會在該月的最後一天進行備份。 | 字串 |
ScheduledOperationsType
| 名字 | 描述 | 價值 |
|---|---|---|
| dayOfWeek (周) | 一周中的一天 | DayOfWeek (必要) |
| scheduledStartTime | 自動開始時間。 value 必須是 ISO-8601 格式 HH:mm | 字串 約束: 最小長度 = 1 最大長度 = 50 |
| scheduledStopTime (已安排的停止時間) | 自動停止時間。 value 必須是 ISO-8601 格式 HH:mm | 字串 約束: 最小長度 = 1 最大長度 = 50 |
TrackedResourceTags
| 名字 | 描述 | 價值 |
|---|
ARM 樣本資源定義
autonomousDatabases 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Oracle.Database/autonomousDatabases 資源,請將下列 JSON 新增至範本。
{
"type": "Oracle.Database/autonomousDatabases",
"apiVersion": "2026-06-01",
"name": "string",
"location": "string",
"properties": {
"adminPassword": "string",
"autonomousDatabaseId": "string",
"autonomousMaintenanceScheduleType": "string",
"backupDestination": "string",
"backupRetentionPeriodInDays": "int",
"characterSet": "string",
"computeCount": "int",
"computeModel": "string",
"cpuCoreCount": "int",
"customerContacts": [
{
"email": "string"
}
],
"databaseEdition": "string",
"dataStorageSizeInGbs": "int",
"dataStorageSizeInTbs": "int",
"dbVersion": "string",
"dbWorkload": "string",
"displayName": "string",
"isAutoScalingEnabled": "bool",
"isAutoScalingForStorageEnabled": "bool",
"isLocalDataGuardEnabled": "bool",
"isMtlsConnectionRequired": "bool",
"isPreviewVersionWithServiceTermsAccepted": "bool",
"isScheduleAzUpdateToEarliest": "bool",
"licenseModel": "string",
"localAdgAutoFailoverMaxDataLossLimit": "int",
"longTermBackupSchedule": {
"isDisabled": "bool",
"repeatCadence": "string",
"retentionPeriodInDays": "int",
"timeOfBackup": "string"
},
"ncharacterSet": "string",
"networkAnchorId": "string",
"openMode": "string",
"peerDbId": "string",
"permissionLevel": "string",
"privateEndpointIp": "string",
"privateEndpointLabel": "string",
"resourceAnchorId": "string",
"role": "string",
"scheduledOperationsList": [
{
"dayOfWeek": {
"name": "string"
},
"scheduledStartTime": "string",
"scheduledStopTime": "string"
}
],
"subnetId": "string",
"timeScheduledAzUpdate": "string",
"vnetId": "string",
"whitelistedIps": [ "string" ],
"zone": "string",
"dataBaseType": "string"
// For remaining properties, see AutonomousDatabaseBaseProperties objects
},
"tags": {
"{customized property}": "string"
}
}
AutonomousDatabaseBaseProperties 物件
設定 dataBaseType 屬性
針對 Clone,請使用:
{
"cloneType": "string",
"dataBaseType": "Clone",
"refreshableModel": "string",
"source": "string",
"sourceId": "string",
"timeUntilReconnectCloneEnabled": "string"
}
針對 CloneFromBackupTimestamp,請使用:
{
"cloneType": "string",
"dataBaseType": "CloneFromBackupTimestamp",
"source": "BackupFromTimestamp",
"sourceId": "string",
"timestamp": "string",
"useLatestAvailableBackupTimeStamp": "bool"
}
針對 CrossRegionDisasterRecovery,請使用:
{
"dataBaseType": "CrossRegionDisasterRecovery",
"isReplicateAutomaticBackups": "bool",
"remoteDisasterRecoveryType": "string",
"source": "CrossRegionDisasterRecovery",
"sourceId": "string",
"sourceLocation": "string",
"sourceOcid": "string"
}
針對 一般,請使用:
{
"dataBaseType": "Regular"
}
屬性值
Oracle.Database/自主資料庫
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2026-06-01' |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 約束: 最小長度 = 1 最大長度 = 30 模式 = .* (必要) |
| 性能 | 此資源的資源特定屬性。 | AutonomousDatabaseBaseProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | 'Oracle.Database/autonomousDatabases' |
AutonomousDatabaseBaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 管理員密碼 | 系統管理員密碼。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
| 自治資料庫ID | 自發資料庫標識碼 | 字串 |
| autonomousMaintenanceScheduleType | 自發資料庫伺服器的維護排程類型。 | “早期” “常規” |
| 備份目的地 | 自動及長期備份的備份目的地。 當這個數值改變時,現有的備份會保持在原本的目的地。 | 「AZURE」 「OCI」 |
| backupRetentionPeriodInDays (備份保留期以天為單位) | 長期備份的保留期間,以天為單位 | 整數 (int) |
| 字元集 | 自發資料庫的字元集。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| 計算計數 | 資料庫可用的計算量(CPU)。 | int 約束: 最小值 = 1 最大值 = 512 |
| 計算模型 | 自發資料庫的計算模型。 | 'ECPU' “OCPU” |
| cpuCoreCount | 要提供給資料庫的 CPU 核心數目。 | int 約束: 最小值 = 1 最大值 = 128 |
| 客戶聯繫方式 | 客戶連絡人。 | 客戶連絡人 |
| databaseEdition 資料庫版 | 適用於自發資料庫的 Oracle Database Edition。 | '企業版' '標準版' |
| dataBaseType | 將 類型設定為 'Clone',AutonomousDatabaseCloneProperties。 針對 type AutonomousDatabaseFromBackupTimestampProperties,設定為 'CloneFromBackupTimestamp'。 針對 type AutonomousDatabaseCrossRegionDisasterRecoverties,設定為 'CrossRegionDisasterRecovery'。 針對 AutonomousDatabaseProperties 類型設定為 'Regular',。 | “克隆” “CloneFromBackupTimestamp” “跨區域災難恢復” 'Regular' (必要) |
| 資料儲存大小(以 Gbs 為單位) | 將建立並附加至資料庫的數據磁碟區大小,以 GB 為單位。 | int 約束: 最小值 = 20 最大值 = 393216 |
| 資料儲存大小(以 Tbs為單位) | 資料庫中的數據數量,以 TB 為單位。 | int 約束: 最小值 = 1 最大值 = 384 |
| dbVersion 資料庫版本 | 自發資料庫的有效 Oracle 資料庫版本。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| dbWorkload 工作負載 | 自發資料庫工作負載類型 | 'AJD' '頂點' 'DW' 「LH」 “OLTP” |
| 顯示名稱 | 自發資料庫的用戶易記名稱。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| isAutoScalingEnabled 已啟用 | 指出是否已啟用自發資料庫 CPU 核心計數的自動調整。 | 布爾 (bool) |
| isAutoScalingForStorageEnabled | 指出是否已啟用自發資料庫記憶體的自動調整。 | 布爾 (bool) |
| isLocalDataGuard已啟用 | 指出是否已啟用自發資料庫本機或呼叫區域內 Data Guard。 | 布爾 (bool) |
| isMtlsConnectionRequired | 指定自發資料庫是否需要 mTLS 連線。 | 布爾 (bool) |
| isPreviewVersionWithServiceTermsAccepted | 指定是否正在布建自發資料庫預覽版本。 | 布爾 (bool) |
| isScheduleAzUpdateToEarliest | 請盡快更新亞利桑那州 | 布爾 (bool) |
| 許可模型 | 適用於 Oracle 自發資料庫的 Oracle 授權模型。 預設值為 LICENSE_INCLUDED。 | 'BringyourOwnLicense' 'LicenseIncluded' |
| localAdgAutoFailoverMaxDataLossLimit | 可讓使用者在幾秒鐘內選取可接受的最大數據遺失限制的參數,最多會在本機自發式數據防護需要時觸發自動故障轉移 | int 約束: 最小值 = 0 最大值 = 3600 |
| longTermBackupSchedule 計劃 | 長期備份排程的詳細數據。 | LongTermBackUpScheduleDetails |
| ncharacterSet | 自發資料庫的字元集。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| networkAnchorId | Azure 網路錨點識別碼 | 字串 |
| openMode | 表示自發資料庫模式。 | “只讀” “ReadWrite” |
| peerDbId 資料庫 ID | 災害復原對等資料庫的 Azure 資源識別符,其位於與目前對等資料庫不同的區域中。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| 權限等級 | 自發資料庫許可權等級。 | “受限” “不受限制” |
| privateEndpointIp | 資源的私人端點 IP 位址。 | 字串 |
| privateEndpointLabel | 資源的私人端點標籤。 | 字串 |
| resourceAnchorId | Azure 資源錨點識別碼 | 字串 |
| 角色 | 如果已啟用自發式 Data Guard,則為自發容器資料庫或自發資料庫的 Data Guard 角色。 | '備份副本' “DisabledStandby” “主要” “SnapshotStandby” “待命” |
| scheduledOperationsList | 排程作業的清單。 | ScheduledOperationsType[] |
| 子網ID | 用戶端子網 | 字串 |
| timeScheduledAzUpdate | 自治資料庫可用性區域更新的日期與時間。 | 字串 |
| vnetId | 網路連線的 VNET | 字串 |
| 白名單IP | 用戶端 IP 存取控制清單 (ACL)。 這是 CIDR 表示法和/或 IP 位址的陣列。 值應該是個別的字串,並以逗號分隔。 範例:['1.1.1.1','1.1.1.0/24','1.1.2.25'] | 字串 約束: 最小長度 = 1 最大長度 = 1024[] |
| 區域 | 自動資料庫配置的邏輯區域。 | 字串 |
AutonomousDatabaseCloneProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 克隆類型 | 自發資料庫複製類型。 | “已滿” 'Metadata' (必要) |
| dataBaseType | 要建立的資料庫類型。 | 'Clone' (必要) |
| refreshableModel | 複製的重新整理模式。 | “自動” “手動” |
| 來源 | 資料庫的來源。 | “BackupFromId” “BackupFromTimestamp” 'CloneToRefreshable' “CrossRegionDataguard” “跨區域災難恢復” '資料庫' “無” |
| 源Id | 複製以建立目前自發資料庫的 Azure 資源識別碼。 | 字串 (必要) |
| timeUntilReconnectClone已啟用 | 時間與日期做為RFC3339格式化字串,例如 2022-01-01T12:00:00.000Z,以設定可重新整理複製品重新連線至其源資料庫的限制。 | 字串 |
AutonomousDatabaseCrossRegionDisasterRecoveryProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| dataBaseType | 要建立的資料庫類型。 | 'CrossRegionDisasterRecovery' (必要) |
| isReplicateAutomaticBackups | 如果為 true,則會跨區域 ADB 複寫 7 天的備份,或在主要和待命之間 Backup-Based DR。 如果為 false,則不會將主要資料庫上建立的備份復寫到待命資料庫。 | 布爾 (bool) |
| remoteDisasterRecoveryType | 表示待命 Database Serverless 實例的跨區域災害復原類型。 自發式 Data Guard (ADG) DR 類型提供業務關鍵 DR,在故障轉移或切換期間提供更快速的復原時間目標(RTO)。 備份式DR類型會在故障轉移或切換期間,使用較慢的 RTO 來提供較低的成本DR。 | 'Adg' 'BackupBased' (必要) |
| 來源 | 資料庫的來源。 | 'CrossRegionDisasterRecovery' (必要) |
| 源Id | 來源自發資料庫的 Azure 識別碼,將用來為DR關聯建立新的對等資料庫。 | 字串 (必要) |
| 來源位置 | 來源自發資料庫所在的區域名稱。 | 字串 |
| 源OCID | 源資料庫 ocid | 字串 約束: 最小長度 = 1 最大長度 = 255 |
AutonomousDatabaseFromBackupTimestampProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 克隆類型 | 自發資料庫複製類型。 | “已滿” 'Metadata' (必要) |
| dataBaseType | 要建立的資料庫類型。 | 'CloneFromBackupTimestamp' (必要) |
| 來源 | 資料庫的來源。 | 'BackupFromTimestamp' (必要) |
| 源Id | 您要複製的來源自發資料庫標識碼,以建立新的自發資料庫。 | 字串 (必要) |
| 時間戳記 | 針對來源自發資料庫的時間點複製所指定的時間戳。 時間戳必須過去。 | 字串 |
| useLatestAvailableBackupTimeStamp | 從最新的可用備份時間戳複製。 | 布爾 (bool) |
AutonomousDatabaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| dataBaseType | 要建立的資料庫類型。 | 'Regular' (必要) |
客戶聯繫
| 名字 | 描述 | 價值 |
|---|---|---|
| 電子郵件 | Oracle 用來傳送資料庫和基礎結構相關通知的電子郵件位址。 | 字串 約束: 最小長度 = 1 最大長度 = 320 (必要) |
星期
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 星期的日期名稱。 | 《星期五》 《星期一》 《星期六》 《星期天》 《星期四》 《星期二》 '星期三' (必要) |
LongTermBackUpScheduleDetails
| 名字 | 描述 | 價值 |
|---|---|---|
| isDisabled (已禁用) | 指出是否應該刪除長期備份排程。 預設值為 FALSE。 |
布爾 (bool) |
| repeatCadence 的 | 長期備份排程的頻率 | “每月” “一次性” “每周” “每年” |
| retentionPeriodInDays (保留期以天為單位) | 備份的保留期間,以天為單位。 | int 約束: 最小值 = 90 最大值 = 2558 |
| 備份時間 | 長期備份排程的時間戳。 對於 MONTHLY 頻率,月數少於所提供日期的月,將會在該月的最後一天進行備份。 | 字串 |
ScheduledOperationsType
| 名字 | 描述 | 價值 |
|---|---|---|
| dayOfWeek (周) | 一周中的一天 | DayOfWeek (必要) |
| scheduledStartTime | 自動開始時間。 value 必須是 ISO-8601 格式 HH:mm | 字串 約束: 最小長度 = 1 最大長度 = 50 |
| scheduledStopTime (已安排的停止時間) | 自動停止時間。 value 必須是 ISO-8601 格式 HH:mm | 字串 約束: 最小長度 = 1 最大長度 = 50 |
TrackedResourceTags
| 名字 | 描述 | 價值 |
|---|
Terraform (AzAPI 提供者) 資源定義
autonomousDatabases 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
若要建立 Oracle.Database/autonomousDatabases 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Oracle.Database/autonomousDatabases@2026-06-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
adminPassword = "string"
autonomousDatabaseId = "string"
autonomousMaintenanceScheduleType = "string"
backupDestination = "string"
backupRetentionPeriodInDays = int
characterSet = "string"
computeCount = int
computeModel = "string"
cpuCoreCount = int
customerContacts = [
{
email = "string"
}
]
databaseEdition = "string"
dataStorageSizeInGbs = int
dataStorageSizeInTbs = int
dbVersion = "string"
dbWorkload = "string"
displayName = "string"
isAutoScalingEnabled = bool
isAutoScalingForStorageEnabled = bool
isLocalDataGuardEnabled = bool
isMtlsConnectionRequired = bool
isPreviewVersionWithServiceTermsAccepted = bool
isScheduleAzUpdateToEarliest = bool
licenseModel = "string"
localAdgAutoFailoverMaxDataLossLimit = int
longTermBackupSchedule = {
isDisabled = bool
repeatCadence = "string"
retentionPeriodInDays = int
timeOfBackup = "string"
}
ncharacterSet = "string"
networkAnchorId = "string"
openMode = "string"
peerDbId = "string"
permissionLevel = "string"
privateEndpointIp = "string"
privateEndpointLabel = "string"
resourceAnchorId = "string"
role = "string"
scheduledOperationsList = [
{
dayOfWeek = {
name = "string"
}
scheduledStartTime = "string"
scheduledStopTime = "string"
}
]
subnetId = "string"
timeScheduledAzUpdate = "string"
vnetId = "string"
whitelistedIps = [
"string"
]
zone = "string"
dataBaseType = "string"
// For remaining properties, see AutonomousDatabaseBaseProperties objects
}
}
}
AutonomousDatabaseBaseProperties 物件
設定 dataBaseType 屬性
針對 Clone,請使用:
{
cloneType = "string"
dataBaseType = "Clone"
refreshableModel = "string"
source = "string"
sourceId = "string"
timeUntilReconnectCloneEnabled = "string"
}
針對 CloneFromBackupTimestamp,請使用:
{
cloneType = "string"
dataBaseType = "CloneFromBackupTimestamp"
source = "BackupFromTimestamp"
sourceId = "string"
timestamp = "string"
useLatestAvailableBackupTimeStamp = bool
}
針對 CrossRegionDisasterRecovery,請使用:
{
dataBaseType = "CrossRegionDisasterRecovery"
isReplicateAutomaticBackups = bool
remoteDisasterRecoveryType = "string"
source = "CrossRegionDisasterRecovery"
sourceId = "string"
sourceLocation = "string"
sourceOcid = "string"
}
針對 一般,請使用:
{
dataBaseType = "Regular"
}
屬性值
Oracle.Database/自主資料庫
| 名字 | 描述 | 價值 |
|---|---|---|
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 約束: 最小長度 = 1 最大長度 = 30 模式 = .* (必要) |
| 性能 | 此資源的資源特定屬性。 | AutonomousDatabaseBaseProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Oracle.Database/autonomousDatabases@2026-06-01」 |
AutonomousDatabaseBaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 管理員密碼 | 系統管理員密碼。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
| 自治資料庫ID | 自發資料庫標識碼 | 字串 |
| autonomousMaintenanceScheduleType | 自發資料庫伺服器的維護排程類型。 | “早期” “常規” |
| 備份目的地 | 自動及長期備份的備份目的地。 當這個數值改變時,現有的備份會保持在原本的目的地。 | 「AZURE」 「OCI」 |
| backupRetentionPeriodInDays (備份保留期以天為單位) | 長期備份的保留期間,以天為單位 | 整數 (int) |
| 字元集 | 自發資料庫的字元集。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| 計算計數 | 資料庫可用的計算量(CPU)。 | int 約束: 最小值 = 1 最大值 = 512 |
| 計算模型 | 自發資料庫的計算模型。 | 'ECPU' “OCPU” |
| cpuCoreCount | 要提供給資料庫的 CPU 核心數目。 | int 約束: 最小值 = 1 最大值 = 128 |
| 客戶聯繫方式 | 客戶連絡人。 | 客戶連絡人 |
| databaseEdition 資料庫版 | 適用於自發資料庫的 Oracle Database Edition。 | '企業版' '標準版' |
| dataBaseType | 將 類型設定為 'Clone',AutonomousDatabaseCloneProperties。 針對 type AutonomousDatabaseFromBackupTimestampProperties,設定為 'CloneFromBackupTimestamp'。 針對 type AutonomousDatabaseCrossRegionDisasterRecoverties,設定為 'CrossRegionDisasterRecovery'。 針對 AutonomousDatabaseProperties 類型設定為 'Regular',。 | “克隆” “CloneFromBackupTimestamp” “跨區域災難恢復” 'Regular' (必要) |
| 資料儲存大小(以 Gbs 為單位) | 將建立並附加至資料庫的數據磁碟區大小,以 GB 為單位。 | int 約束: 最小值 = 20 最大值 = 393216 |
| 資料儲存大小(以 Tbs為單位) | 資料庫中的數據數量,以 TB 為單位。 | int 約束: 最小值 = 1 最大值 = 384 |
| dbVersion 資料庫版本 | 自發資料庫的有效 Oracle 資料庫版本。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| dbWorkload 工作負載 | 自發資料庫工作負載類型 | 'AJD' '頂點' 'DW' 「LH」 “OLTP” |
| 顯示名稱 | 自發資料庫的用戶易記名稱。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| isAutoScalingEnabled 已啟用 | 指出是否已啟用自發資料庫 CPU 核心計數的自動調整。 | 布爾 (bool) |
| isAutoScalingForStorageEnabled | 指出是否已啟用自發資料庫記憶體的自動調整。 | 布爾 (bool) |
| isLocalDataGuard已啟用 | 指出是否已啟用自發資料庫本機或呼叫區域內 Data Guard。 | 布爾 (bool) |
| isMtlsConnectionRequired | 指定自發資料庫是否需要 mTLS 連線。 | 布爾 (bool) |
| isPreviewVersionWithServiceTermsAccepted | 指定是否正在布建自發資料庫預覽版本。 | 布爾 (bool) |
| isScheduleAzUpdateToEarliest | 請盡快更新亞利桑那州 | 布爾 (bool) |
| 許可模型 | 適用於 Oracle 自發資料庫的 Oracle 授權模型。 預設值為 LICENSE_INCLUDED。 | 'BringyourOwnLicense' 'LicenseIncluded' |
| localAdgAutoFailoverMaxDataLossLimit | 可讓使用者在幾秒鐘內選取可接受的最大數據遺失限制的參數,最多會在本機自發式數據防護需要時觸發自動故障轉移 | int 約束: 最小值 = 0 最大值 = 3600 |
| longTermBackupSchedule 計劃 | 長期備份排程的詳細數據。 | LongTermBackUpScheduleDetails |
| ncharacterSet | 自發資料庫的字元集。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| networkAnchorId | Azure 網路錨點識別碼 | 字串 |
| openMode | 表示自發資料庫模式。 | “只讀” “ReadWrite” |
| peerDbId 資料庫 ID | 災害復原對等資料庫的 Azure 資源識別符,其位於與目前對等資料庫不同的區域中。 | 字串 約束: 最小長度 = 1 最大長度 = 255 |
| 權限等級 | 自發資料庫許可權等級。 | “受限” “不受限制” |
| privateEndpointIp | 資源的私人端點 IP 位址。 | 字串 |
| privateEndpointLabel | 資源的私人端點標籤。 | 字串 |
| resourceAnchorId | Azure 資源錨點識別碼 | 字串 |
| 角色 | 如果已啟用自發式 Data Guard,則為自發容器資料庫或自發資料庫的 Data Guard 角色。 | '備份副本' “DisabledStandby” “主要” “SnapshotStandby” “待命” |
| scheduledOperationsList | 排程作業的清單。 | ScheduledOperationsType[] |
| 子網ID | 用戶端子網 | 字串 |
| timeScheduledAzUpdate | 自治資料庫可用性區域更新的日期與時間。 | 字串 |
| vnetId | 網路連線的 VNET | 字串 |
| 白名單IP | 用戶端 IP 存取控制清單 (ACL)。 這是 CIDR 表示法和/或 IP 位址的陣列。 值應該是個別的字串,並以逗號分隔。 範例:['1.1.1.1','1.1.1.0/24','1.1.2.25'] | 字串 約束: 最小長度 = 1 最大長度 = 1024[] |
| 區域 | 自動資料庫配置的邏輯區域。 | 字串 |
AutonomousDatabaseCloneProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 克隆類型 | 自發資料庫複製類型。 | “已滿” 'Metadata' (必要) |
| dataBaseType | 要建立的資料庫類型。 | 'Clone' (必要) |
| refreshableModel | 複製的重新整理模式。 | “自動” “手動” |
| 來源 | 資料庫的來源。 | “BackupFromId” “BackupFromTimestamp” 'CloneToRefreshable' “CrossRegionDataguard” “跨區域災難恢復” '資料庫' “無” |
| 源Id | 複製以建立目前自發資料庫的 Azure 資源識別碼。 | 字串 (必要) |
| timeUntilReconnectClone已啟用 | 時間與日期做為RFC3339格式化字串,例如 2022-01-01T12:00:00.000Z,以設定可重新整理複製品重新連線至其源資料庫的限制。 | 字串 |
AutonomousDatabaseCrossRegionDisasterRecoveryProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| dataBaseType | 要建立的資料庫類型。 | 'CrossRegionDisasterRecovery' (必要) |
| isReplicateAutomaticBackups | 如果為 true,則會跨區域 ADB 複寫 7 天的備份,或在主要和待命之間 Backup-Based DR。 如果為 false,則不會將主要資料庫上建立的備份復寫到待命資料庫。 | 布爾 (bool) |
| remoteDisasterRecoveryType | 表示待命 Database Serverless 實例的跨區域災害復原類型。 自發式 Data Guard (ADG) DR 類型提供業務關鍵 DR,在故障轉移或切換期間提供更快速的復原時間目標(RTO)。 備份式DR類型會在故障轉移或切換期間,使用較慢的 RTO 來提供較低的成本DR。 | 'Adg' 'BackupBased' (必要) |
| 來源 | 資料庫的來源。 | 'CrossRegionDisasterRecovery' (必要) |
| 源Id | 來源自發資料庫的 Azure 識別碼,將用來為DR關聯建立新的對等資料庫。 | 字串 (必要) |
| 來源位置 | 來源自發資料庫所在的區域名稱。 | 字串 |
| 源OCID | 源資料庫 ocid | 字串 約束: 最小長度 = 1 最大長度 = 255 |
AutonomousDatabaseFromBackupTimestampProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 克隆類型 | 自發資料庫複製類型。 | “已滿” 'Metadata' (必要) |
| dataBaseType | 要建立的資料庫類型。 | 'CloneFromBackupTimestamp' (必要) |
| 來源 | 資料庫的來源。 | 'BackupFromTimestamp' (必要) |
| 源Id | 您要複製的來源自發資料庫標識碼,以建立新的自發資料庫。 | 字串 (必要) |
| 時間戳記 | 針對來源自發資料庫的時間點複製所指定的時間戳。 時間戳必須過去。 | 字串 |
| useLatestAvailableBackupTimeStamp | 從最新的可用備份時間戳複製。 | 布爾 (bool) |
AutonomousDatabaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| dataBaseType | 要建立的資料庫類型。 | 'Regular' (必要) |
客戶聯繫
| 名字 | 描述 | 價值 |
|---|---|---|
| 電子郵件 | Oracle 用來傳送資料庫和基礎結構相關通知的電子郵件位址。 | 字串 約束: 最小長度 = 1 最大長度 = 320 (必要) |
星期
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 星期的日期名稱。 | 《星期五》 《星期一》 《星期六》 《星期天》 《星期四》 《星期二》 '星期三' (必要) |
LongTermBackUpScheduleDetails
| 名字 | 描述 | 價值 |
|---|---|---|
| isDisabled (已禁用) | 指出是否應該刪除長期備份排程。 預設值為 FALSE。 |
布爾 (bool) |
| repeatCadence 的 | 長期備份排程的頻率 | “每月” “一次性” “每周” “每年” |
| retentionPeriodInDays (保留期以天為單位) | 備份的保留期間,以天為單位。 | int 約束: 最小值 = 90 最大值 = 2558 |
| 備份時間 | 長期備份排程的時間戳。 對於 MONTHLY 頻率,月數少於所提供日期的月,將會在該月的最後一天進行備份。 | 字串 |
ScheduledOperationsType
| 名字 | 描述 | 價值 |
|---|---|---|
| dayOfWeek (周) | 一周中的一天 | DayOfWeek (必要) |
| scheduledStartTime | 自動開始時間。 value 必須是 ISO-8601 格式 HH:mm | 字串 約束: 最小長度 = 1 最大長度 = 50 |
| scheduledStopTime (已安排的停止時間) | 自動停止時間。 value 必須是 ISO-8601 格式 HH:mm | 字串 約束: 最小長度 = 1 最大長度 = 50 |
TrackedResourceTags
| 名字 | 描述 | 價值 |
|---|