ProtectionPolicy
The details of a protection policy.A policy defines the exact number of days to retain protected database backups created by Recovery Service. Each protected database must be associated with one protection policy. You can use Oracle-defined protection policies or create custom policies to suit your internal backup storage regulation demands.
Properties
| Name | Type | Description |
|---|---|---|
| backupRetentionPeriodInDays | integer | The maximum number of days to retain backups for a protected database. Specify a period ranging from a minimum 14 days to a maximum 95 days. For example, specify the value 55 if you want to retain bac |
| compartmentId | string | The OCID of the compartment that contains the protection policy. |
| definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`. For more information, see [Resource Tags](https://docs.oracle.com/ |
| displayName | string | A user provided name for the protection policy. |
| freeformTags | object | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` |
| id | string | The protection policy OCID. |
| isPredefinedPolicy | boolean | Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies. |
| lifecycleDetails | string | Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state. |
| lifecycleState | string | The current state of the protection policy. |
| mustEnforceCloudLocality | boolean | Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. |
| policyLockedDateTime | string | An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. |
| systemTags | object | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see [Resource Tags](https://docs.oracle.com/e |
| timeCreated | string | An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'. |
| timeUpdated | string | An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/oracle/json-schema/oracle-protection-policy-schema.json",
"title": "ProtectionPolicy",
"description": "The details of a protection policy.A policy defines the exact number of days to retain protected database backups created by Recovery Service.\nEach protected database must be associated with one protection policy. You can use Oracle-defined protection policies or create custom policies to suit your internal backup storage regulation demands.\n",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/oracle-databaserecovery-api-openapi.yml#/components/schemas/ProtectionPolicy",
"properties": {
"backupRetentionPeriodInDays": {
"description": "The maximum number of days to retain backups for a protected database. Specify a period ranging from a minimum 14 days to a maximum 95 days. For example, specify the value 55 if you want to retain backups for 55 days.",
"type": "integer"
},
"compartmentId": {
"description": "The OCID of the compartment that contains the protection policy.",
"type": "string"
},
"definedTags": {
"additionalProperties": {
"additionalProperties": {
"description": "The value of the tag. Only string, integer and boolean types are supported.\n",
"type": "object"
},
"description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
"type": "object"
},
"description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)\n",
"type": "object"
},
"displayName": {
"description": "A user provided name for the protection policy.",
"type": "string"
},
"freeformTags": {
"additionalProperties": {
"type": "string"
},
"description": "Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.\nExample: `{\"bar-key\": \"value\"}`\n",
"type": "object"
},
"id": {
"description": "The protection policy OCID.",
"type": "string"
},
"isPredefinedPolicy": {
"description": "Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.",
"type": "boolean"
},
"lifecycleDetails": {
"description": "Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.",
"type": "string"
},
"lifecycleState": {
"description": "The current state of the protection policy.\n",
"enum": [
"CREATING",
"UPDATING",
"ACTIVE",
"DELETE_SCHEDULED",
"DELETING",
"DELETED",
"FAILED"
],
"type": "string",
"x-obmcs-top-level-enum": "#/definitions/LifecycleState"
},
"mustEnforceCloudLocality": {
"default": false,
"description": "Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned.",
"type": "boolean"
},
"policyLockedDateTime": {
"description": "An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.\n",
"type": "string"
},
"systemTags": {
"additionalProperties": {
"additionalProperties": {
"description": "The value of the tag. Only string, integer and boolean types are supported.\n",
"type": "object"
},
"description": "Key-value pair representing system tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
"type": "object"
},
"description": "Usage of system tag keys. These predefined keys are scoped to namespaces.\nExample: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)\n",
"type": "object"
},
"timeCreated": {
"description": "An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.\n",
"format": "date-time",
"type": "string"
},
"timeUpdated": {
"description": "An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.\n",
"format": "date-time",
"type": "string"
}
},
"required": [
"id",
"compartmentId",
"backupRetentionPeriodInDays",
"isPredefinedPolicy"
],
"type": "object"
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/oracle-protection-policy"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.