{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-recovery-service-subnet-schema.json",
  "title": "RecoveryServiceSubnet",
  "description": "The details of a recovery service subnet.\nRecovery service subnets allows Recovery Service to access protected databases in each VCN.\nEach recovery service subnet uses a single private endpoint on a subnet of your choice within a VCN. The private endpoint need not be on the same subnet as the Oracle Cloud Database, although, it must be on a subnet that can communicate with the Oracle Cloud Database.\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/RecoveryServiceSubnet",
  "properties": {
    "compartmentId": {
      "description": "The compartment OCID.",
      "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 recovery service subnet.",
      "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 recovery service subnet OCID.",
      "type": "string"
    },
    "lifecycleDetails": {
      "description": "Detailed description about the current lifecycle state of the recovery service subnet. 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 recovery service subnet.\n",
      "enum": [
        "CREATING",
        "UPDATING",
        "ACTIVE",
        "DELETE_SCHEDULED",
        "DELETING",
        "DELETED",
        "FAILED"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/LifecycleState"
    },
    "nsgIds": {
      "description": "A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet.\nYou can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet.\nSpecify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet.\nSee [Network Security Groups](#/en/iaas/latest/NetworkSecurityGroup/) for more information.\n",
      "items": {
        "maxLength": 255,
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 5,
      "type": "array",
      "uniqueItems": true,
      "x-default-description": "null"
    },
    "subnetId": {
      "description": "Deprecated. One of the subnets associated with the Recovery Service subnet.\n",
      "type": "string"
    },
    "subnets": {
      "description": "A list of OCIDs of all the subnets associated with the Recovery Service subnet.",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "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 last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.\n",
      "format": "date-time",
      "type": "string"
    },
    "vcnId": {
      "description": "VCN Identifier.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "compartmentId",
    "vcnId",
    "subnetId"
  ],
  "type": "object"
}