{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-cosmos-db/json-schema/azure-cosmos-db-database-account-get-results-schema.json",
  "title": "DatabaseAccountGetResults",
  "description": "An Azure Cosmos DB database account.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-cosmos-db-resource-provider-openapi.yml#/components/schemas/DatabaseAccountGetResults",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DatabaseAccountGetProperties"
    },
    "location": {
      "type": "string",
      "description": "The location of the resource group to which the resource belongs.",
      "x-ms-mutability": [
        "read",
        "update",
        "create"
      ]
    },
    "tags": {
      "type": "object",
      "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \\\"defaultExperience\\\": \\\"Cassandra\\\". Current \\\"defaultExperience\\\" values also include \\\"Table\\\", \\\"Graph\\\", \\\"DocumentDB\\\", and \\\"MongoDB\\\".",
      "additionalProperties": {
        "type": "string"
      }
    },
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity"
    },
    "kind": {
      "type": "string",
      "description": "Indicates the type of database account. This can only be set at database account creation.",
      "default": "GlobalDocumentDB",
      "enum": [
        "GlobalDocumentDB",
        "MongoDB",
        "Parse"
      ],
      "x-ms-enum": {
        "name": "DatabaseAccountKind",
        "modelAsString": true,
        "values": [
          {
            "name": "GlobalDocumentDB",
            "value": "GlobalDocumentDB"
          },
          {
            "name": "MongoDB",
            "value": "MongoDB"
          },
          {
            "name": "Parse",
            "value": "Parse"
          }
        ]
      }
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "AccountKeyMetadata": {
      "type": "object",
      "description": "The metadata related to an access key for a given database account.",
      "properties": {
        "generationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Generation time in UTC of the key in ISO-8601 format. If the value is missing from the object, it means that the last key regeneration was triggered before 2022-06-18.",
          "readOnly": true
        }
      }
    },
    "AnalyticalStorageConfiguration": {
      "type": "object",
      "description": "Analytical storage specific properties.",
      "properties": {
        "schemaType": {
          "$ref": "#/$defs/AnalyticalStorageSchemaType"
        }
      }
    },
    "AnalyticalStorageSchemaType": {
      "type": "string",
      "description": "Describes the types of schema for analytical storage.",
      "enum": [
        "WellDefined",
        "FullFidelity"
      ],
      "x-ms-enum": {
        "name": "AnalyticalStorageSchemaType",
        "modelAsString": true,
        "values": [
          {
            "name": "WellDefined",
            "value": "WellDefined"
          },
          {
            "name": "FullFidelity",
            "value": "FullFidelity"
          }
        ]
      }
    },
    "ApiProperties": {
      "type": "object",
      "properties": {
        "serverVersion": {
          "$ref": "#/$defs/ServerVersion"
        }
      }
    },
    "BackupPolicy": {
      "type": "object",
      "description": "The object representing the policy for taking backups on an account.",
      "properties": {
        "type": {
          "$ref": "#/$defs/BackupPolicyType"
        },
        "migrationState": {
          "$ref": "#/$defs/BackupPolicyMigrationState"
        },
        "backupRetentionLockExpirationTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The UTC timestamp until which changes that reduce backup retention are locked.\nWhile active, this timestamp can only be extended."
        }
      },
      "required": [
        "type"
      ]
    },
    "BackupPolicyMigrationState": {
      "type": "object",
      "description": "The object representing the state of the migration between the backup policies.",
      "properties": {
        "status": {
          "$ref": "#/$defs/BackupPolicyMigrationStatus"
        },
        "targetType": {
          "$ref": "#/$defs/BackupPolicyType"
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time at which the backup policy migration started (ISO-8601 format)."
        }
      }
    },
    "BackupPolicyMigrationStatus": {
      "type": "string",
      "description": "Describes the status of migration between backup policy types.",
      "enum": [
        "Invalid",
        "InProgress",
        "Completed",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "BackupPolicyMigrationStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "InProgress",
            "value": "InProgress"
          },
          {
            "name": "Completed",
            "value": "Completed"
          },
          {
            "name": "Failed",
            "value": "Failed"
          }
        ]
      }
    },
    "BackupPolicyType": {
      "type": "string",
      "description": "Describes the mode of backups.",
      "enum": [
        "Periodic",
        "Continuous"
      ],
      "x-ms-enum": {
        "name": "BackupPolicyType",
        "modelAsString": true,
        "values": [
          {
            "name": "Periodic",
            "value": "Periodic"
          },
          {
            "name": "Continuous",
            "value": "Continuous"
          }
        ]
      }
    },
    "Capability": {
      "type": "object",
      "description": "Cosmos DB capability object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the Cosmos DB capability. For example, \"name\": \"EnableCassandra\". Current values also include \"EnableTable\" and \"EnableGremlin\"."
        }
      }
    },
    "Capacity": {
      "type": "object",
      "description": "The object that represents all properties related to capacity enforcement on an account.",
      "properties": {
        "totalThroughputLimit": {
          "type": "integer",
          "format": "int32",
          "description": "The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput.",
          "minimum": -1
        }
      }
    },
    "ConnectorOffer": {
      "type": "string",
      "description": "The cassandra connector offer type for the Cosmos DB C* database account.",
      "enum": [
        "Small"
      ],
      "x-ms-enum": {
        "name": "ConnectorOffer",
        "modelAsString": true,
        "values": [
          {
            "name": "Small",
            "value": "Small"
          }
        ]
      }
    },
    "ConsistencyPolicy": {
      "type": "object",
      "description": "The consistency policy for the Cosmos DB database account.",
      "properties": {
        "defaultConsistencyLevel": {
          "$ref": "#/$defs/DefaultConsistencyLevel"
        },
        "maxStalenessPrefix": {
          "type": "integer",
          "format": "int64",
          "description": "When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.",
          "minimum": 1,
          "maximum": 2147483647
        },
        "maxIntervalInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.",
          "minimum": 5,
          "maximum": 86400
        }
      },
      "required": [
        "defaultConsistencyLevel"
      ]
    },
    "CorsPolicy": {
      "type": "object",
      "description": "The CORS policy for the Cosmos DB database account.",
      "properties": {
        "allowedOrigins": {
          "type": "string",
          "description": "The origin domains that are permitted to make a request against the service via CORS."
        },
        "allowedMethods": {
          "type": "string",
          "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request."
        },
        "allowedHeaders": {
          "type": "string",
          "description": "The request headers that the origin domain may specify on the CORS request."
        },
        "exposedHeaders": {
          "type": "string",
          "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer."
        },
        "maxAgeInSeconds": {
          "type": "integer",
          "format": "int64",
          "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.",
          "minimum": 1,
          "maximum": 2147483647
        }
      },
      "required": [
        "allowedOrigins"
      ]
    },
    "DatabaseAccountGetProperties": {
      "type": "object",
      "description": "Properties for the database account.",
      "properties": {
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state of the resource.",
          "readOnly": true
        },
        "documentEndpoint": {
          "type": "string",
          "description": "The connection endpoint for the Cosmos DB database account.",
          "readOnly": true
        },
        "databaseAccountOfferType": {
          "type": "string",
          "description": "The offer type for the Cosmos DB database account. Default value: Standard.",
          "enum": [
            "Standard"
          ],
          "x-ms-enum": {
            "modelAsString": false
          },
          "readOnly": true
        },
        "ipRules": {
          "type": "array",
          "description": "List of IpRules.",
          "items": {
            "$ref": "#/$defs/IpAddressOrRange"
          },
          "x-ms-identifiers": []
        },
        "isVirtualNetworkFilterEnabled": {
          "type": "boolean",
          "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules."
        },
        "enableAutomaticFailover": {
          "type": "boolean",
          "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account."
        },
        "consistencyPolicy": {
          "$ref": "#/$defs/ConsistencyPolicy"
        },
        "capabilities": {
          "type": "array",
          "description": "List of Cosmos DB capabilities for the account",
          "items": {
            "$ref": "#/$defs/Capability"
          }
        },
        "writeLocations": {
          "type": "array",
          "description": "An array that contains the write location for the Cosmos DB account.",
          "items": {
            "$ref": "#/$defs/Location"
          },
          "readOnly": true
        },
        "readLocations": {
          "type": "array",
          "description": "An array that contains of the read locations enabled for the Cosmos DB account.",
          "items": {
            "$ref": "#/$defs/Location"
          },
          "readOnly": true
        },
        "locations": {
          "type": "array",
          "description": "An array that contains all of the locations enabled for the Cosmos DB account.",
          "items": {
            "$ref": "#/$defs/Location"
          },
          "readOnly": true
        },
        "failoverPolicies": {
          "type": "array",
          "description": "An array that contains the regions ordered by their failover priorities.",
          "items": {
            "$ref": "#/$defs/FailoverPolicy"
          },
          "readOnly": true
        },
        "virtualNetworkRules": {
          "type": "array",
          "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.",
          "items": {
            "$ref": "#/$defs/VirtualNetworkRule"
          }
        },
        "privateEndpointConnections": {
          "type": "array",
          "description": "List of Private Endpoint Connections configured for the Cosmos DB account.",
          "items": {
            "$ref": "#/$defs/PrivateEndpointConnection"
          },
          "readOnly": true
        },
        "enableMultipleWriteLocations": {
          "type": "boolean",
          "description": "Enables the account to write in multiple locations"
        },
        "enableCassandraConnector": {
          "type": "boolean",
          "description": "Enables the cassandra connector on the Cosmos DB C* account"
        },
        "connectorOffer": {
          "$ref": "#/$defs/ConnectorOffer"
        },
        "disableKeyBasedMetadataWriteAccess": {
          "type": "boolean",
          "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys"
        },
        "keyVaultKeyUri": {
          "type": "string",
          "description": "The URI of the key vault"
        },
        "defaultIdentity": {
          "type": "string",
          "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more."
        },
        "publicNetworkAccess": {
          "$ref": "#/$defs/PublicNetworkAccess"
        },
        "enableFreeTier": {
          "type": "boolean",
          "description": "Flag to indicate whether Free Tier is enabled."
        },
        "apiProperties": {
          "$ref": "#/$defs/ApiProperties"
        },
        "enableAnalyticalStorage": {
          "type": "boolean",
          "description": "Flag to indicate whether to enable storage analytics."
        },
        "analyticalStorageConfiguration": {
          "$ref": "#/$defs/AnalyticalStorageConfiguration"
        },
        "instanceId": {
          "type": "string",
          "description": "A unique identifier assigned to the database account",
          "readOnly": true
        },
        "createMode": {
          "type": "string",
          "description": "Enum to indicate the mode of account creation.",
          "default": "Default",
          "enum": [
            "Default",
            "Restore"
          ],
          "x-ms-enum": {
            "name": "CreateMode",
            "modelAsString": true,
            "values": [
              {
                "name": "Default",
                "value": "Default"
              },
              {
                "name": "Restore",
                "value": "Restore"
              }
            ]
          }
        },
        "restoreParameters": {
          "$ref": "#/$defs/RestoreParameters"
        },
        "backupPolicy": {
          "$ref": "#/$defs/BackupPolicy"
        },
        "cors": {
          "type": "array",
          "description": "The CORS policy for the Cosmos DB database account.",
          "items": {
            "$ref": "#/$defs/CorsPolicy"
          },
          "x-ms-identifiers": []
        },
        "networkAclBypass": {
          "$ref": "#/$defs/NetworkAclBypass"
        },
        "networkAclBypassResourceIds": {
          "type": "array",
          "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.",
          "items": {
            "type": "string",
            "format": "arm-id",
            "description": "A type definition that refers the id to an Azure Resource Manager resource."
          }
        },
        "disableLocalAuth": {
          "type": "boolean",
          "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication."
        },
        "capacity": {
          "$ref": "#/$defs/Capacity"
        },
        "keysMetadata": {
          "$ref": "#/$defs/DatabaseAccountKeysMetadata"
        },
        "enablePartitionMerge": {
          "type": "boolean",
          "description": "Flag to indicate enabling/disabling of Partition Merge feature on the account"
        },
        "enableBurstCapacity": {
          "type": "boolean",
          "description": "Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account"
        },
        "minimalTlsVersion": {
          "$ref": "#/$defs/MinimalTlsVersion"
        },
        "customerManagedKeyStatus": {
          "type": "string",
          "description": "Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance."
        },
        "keyVaultKeyUriVersion": {
          "type": "string",
          "description": "The version of the Customer Managed Key currently being used by the account",
          "readOnly": true
        },
        "enablePriorityBasedExecution": {
          "type": "boolean",
          "description": "Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account"
        },
        "defaultPriorityLevel": {
          "$ref": "#/$defs/DefaultPriorityLevel"
        },
        "enablePerRegionPerPartitionAutoscale": {
          "type": "boolean",
          "description": "Flag to indicate enabling/disabling of Per-Region Per-partition autoscale Preview feature on the account"
        },
        "enforceHierarchicalPartitionKeyIdLastLevel": {
          "type": "boolean",
          "description": "Flag to indicate enabling/disabling of hierarchical partition key ID last level enforcement on the account."
        },
        "perPartitionAutomaticFailoverEnabled": {
          "type": "boolean",
          "description": "Flag to indicate enabling/disabling of per-partition automatic failover on the account, which automatically fails over individual partitions to available regions during a regional outage. Opt-in; defaults to false."
        }
      }
    },
    "DatabaseAccountKeysMetadata": {
      "type": "object",
      "description": "The metadata related to each access key for the given Cosmos DB database account.",
      "properties": {
        "primaryMasterKey": {
          "$ref": "#/$defs/AccountKeyMetadata"
        },
        "secondaryMasterKey": {
          "$ref": "#/$defs/AccountKeyMetadata"
        },
        "primaryReadonlyMasterKey": {
          "$ref": "#/$defs/AccountKeyMetadata"
        },
        "secondaryReadonlyMasterKey": {
          "$ref": "#/$defs/AccountKeyMetadata"
        }
      }
    },
    "DatabaseRestoreResource": {
      "type": "object",
      "description": "Specific Databases to restore.",
      "properties": {
        "databaseName": {
          "type": "string",
          "description": "The name of the database available for restore."
        },
        "collectionNames": {
          "type": "array",
          "description": "The names of the collections available for restore.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "DefaultConsistencyLevel": {
      "type": "string",
      "description": "The default consistency level and configuration settings of the Cosmos DB account.",
      "enum": [
        "Eventual",
        "Session",
        "BoundedStaleness",
        "Strong",
        "ConsistentPrefix"
      ],
      "x-ms-enum": {
        "name": "DefaultConsistencyLevel",
        "modelAsString": false
      }
    },
    "DefaultPriorityLevel": {
      "type": "string",
      "description": "Enum to indicate default priorityLevel of requests",
      "enum": [
        "High",
        "Low"
      ],
      "x-ms-enum": {
        "name": "DefaultPriorityLevel",
        "modelAsString": true,
        "values": [
          {
            "name": "High",
            "value": "High"
          },
          {
            "name": "Low",
            "value": "Low"
          }
        ]
      }
    },
    "FailoverPolicy": {
      "type": "object",
      "description": "The failover policy for a given region of a database account.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the region in which the database account replicates to. Example: &lt;accountName&gt;-&lt;locationName&gt;.",
          "readOnly": true
        },
        "locationName": {
          "type": "string",
          "description": "The name of the region in which the database account exists."
        },
        "failoverPriority": {
          "type": "integer",
          "format": "int32",
          "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.",
          "minimum": 0
        }
      }
    },
    "GremlinDatabaseRestoreResource": {
      "type": "object",
      "description": "Specific Gremlin Databases to restore.",
      "properties": {
        "databaseName": {
          "type": "string",
          "description": "The name of the gremlin database available for restore."
        },
        "graphNames": {
          "type": "array",
          "description": "The names of the graphs available for restore.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "IpAddressOrRange": {
      "type": "object",
      "description": "IpAddressOrRange object",
      "properties": {
        "ipAddressOrRange": {
          "type": "string",
          "description": "A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”."
        }
      }
    },
    "Location": {
      "type": "object",
      "description": "A region in which the Azure Cosmos DB database account is deployed.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the region within the database account. Example: &lt;accountName&gt;-&lt;locationName&gt;.",
          "readOnly": true
        },
        "locationName": {
          "type": "string",
          "description": "The name of the region."
        },
        "documentEndpoint": {
          "type": "string",
          "description": "The connection endpoint for the specific region. Example: https://&lt;accountName&gt;-&lt;locationName&gt;.documents.azure.com:443/",
          "readOnly": true
        },
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state of the resource.",
          "readOnly": true
        },
        "failoverPriority": {
          "type": "integer",
          "format": "int32",
          "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.",
          "minimum": 0
        },
        "isZoneRedundant": {
          "type": "boolean",
          "description": "Flag to indicate whether or not this region is an AvailabilityZone region"
        }
      }
    },
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Identity for the resource.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ResourceIdentityType"
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "additionalProperties": {
            "$ref": "#/$defs/ManagedServiceIdentityUserAssignedIdentities"
          }
        }
      }
    },
    "ManagedServiceIdentityUserAssignedIdentities": {
      "type": "object",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of user assigned identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "The client id of user assigned identity.",
          "readOnly": true
        }
      }
    },
    "MinimalTlsVersion": {
      "type": "string",
      "description": "Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2.",
      "enum": [
        "Tls",
        "Tls11",
        "Tls12"
      ],
      "x-ms-enum": {
        "name": "MinimalTlsVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "Tls",
            "value": "Tls"
          },
          {
            "name": "Tls11",
            "value": "Tls11"
          },
          {
            "name": "Tls12",
            "value": "Tls12"
          }
        ]
      }
    },
    "NetworkAclBypass": {
      "type": "string",
      "description": "Indicates what services are allowed to bypass firewall checks.",
      "enum": [
        "None",
        "AzureServices"
      ],
      "x-ms-enum": {
        "name": "NetworkAclBypass",
        "modelAsString": false
      }
    },
    "PrivateEndpointConnection": {
      "type": "object",
      "description": "A private endpoint connection",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateEndpointConnectionProperties"
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "PrivateEndpointConnectionProperties": {
      "type": "object",
      "description": "Properties of a private endpoint connection.",
      "properties": {
        "privateEndpoint": {
          "$ref": "#/$defs/PrivateEndpointProperty"
        },
        "privateLinkServiceConnectionState": {
          "$ref": "#/$defs/PrivateLinkServiceConnectionStateProperty"
        },
        "groupId": {
          "type": "string",
          "description": "Group id of the private endpoint."
        },
        "provisioningState": {
          "type": "string",
          "description": "Provisioning state of the private endpoint."
        }
      }
    },
    "PrivateEndpointProperty": {
      "type": "object",
      "description": "Private endpoint which the connection belongs to.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource id of the private endpoint."
        }
      }
    },
    "PrivateLinkServiceConnectionStateProperty": {
      "type": "object",
      "description": "Connection State of the Private Endpoint Connection.",
      "properties": {
        "status": {
          "type": "string",
          "description": "The private link service connection status."
        },
        "description": {
          "type": "string",
          "description": "The private link service connection description."
        },
        "actionsRequired": {
          "type": "string",
          "description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)",
          "readOnly": true
        }
      }
    },
    "PublicNetworkAccess": {
      "type": "string",
      "description": "Whether requests from Public Network are allowed",
      "enum": [
        "Enabled",
        "Disabled",
        "SecuredByPerimeter"
      ],
      "x-ms-enum": {
        "name": "PublicNetworkAccess",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          },
          {
            "name": "SecuredByPerimeter",
            "value": "SecuredByPerimeter"
          }
        ]
      }
    },
    "ResourceIdentityType": {
      "type": "string",
      "description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.",
      "enum": [
        "SystemAssigned",
        "UserAssigned",
        "SystemAssigned,UserAssigned",
        "None"
      ],
      "x-ms-enum": {
        "name": "ResourceIdentityType",
        "modelAsString": false,
        "values": [
          {
            "name": "SystemAssigned",
            "value": "SystemAssigned"
          },
          {
            "name": "UserAssigned",
            "value": "UserAssigned"
          },
          {
            "name": "SystemAssignedUserAssigned",
            "value": "SystemAssigned,UserAssigned"
          },
          {
            "name": "None",
            "value": "None"
          }
        ]
      }
    },
    "RestoreMode": {
      "type": "string",
      "description": "Describes the mode of the restore.",
      "enum": [
        "PointInTime"
      ],
      "x-ms-enum": {
        "name": "RestoreMode",
        "modelAsString": true,
        "values": [
          {
            "name": "PointInTime",
            "value": "PointInTime"
          }
        ]
      }
    },
    "RestoreParameters": {
      "type": "object",
      "description": "Parameters to indicate the information about the restore.",
      "properties": {
        "restoreMode": {
          "$ref": "#/$defs/RestoreMode"
        },
        "restoreSource": {
          "type": "string",
          "description": "The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}"
        },
        "restoreTimestampInUtc": {
          "type": "string",
          "format": "date-time",
          "description": "Time to which the account has to be restored (ISO-8601 format)."
        },
        "databasesToRestore": {
          "type": "array",
          "description": "List of specific databases available for restore.",
          "items": {
            "$ref": "#/$defs/DatabaseRestoreResource"
          },
          "x-ms-identifiers": []
        },
        "gremlinDatabasesToRestore": {
          "type": "array",
          "description": "List of specific gremlin databases available for restore.",
          "items": {
            "$ref": "#/$defs/GremlinDatabaseRestoreResource"
          },
          "x-ms-identifiers": []
        },
        "tablesToRestore": {
          "type": "array",
          "description": "List of specific tables available for restore.",
          "items": {
            "type": "string"
          }
        },
        "sourceBackupLocation": {
          "type": "string",
          "description": "The source backup location for restore."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/RestoreParametersBase"
        }
      ]
    },
    "RestoreParametersBase": {
      "type": "object",
      "description": "Parameters to indicate the information about the restore.",
      "properties": {
        "restoreSource": {
          "type": "string",
          "description": "The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}"
        },
        "restoreTimestampInUtc": {
          "type": "string",
          "format": "date-time",
          "description": "Time to which the account has to be restored (ISO-8601 format)."
        },
        "restoreWithTtlDisabled": {
          "type": "boolean",
          "description": "Specifies whether the restored account will have Time-To-Live disabled upon the successful restore."
        }
      }
    },
    "ServerVersion": {
      "type": "string",
      "description": "Describes the version of the MongoDB account.",
      "enum": [
        "3.2",
        "3.6",
        "4.0",
        "4.2",
        "5.0",
        "6.0",
        "7.0"
      ],
      "x-ms-enum": {
        "name": "ServerVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "Three2",
            "value": "3.2"
          },
          {
            "name": "Three6",
            "value": "3.6"
          },
          {
            "name": "Four0",
            "value": "4.0"
          },
          {
            "name": "Four2",
            "value": "4.2"
          },
          {
            "name": "Five0",
            "value": "5.0"
          },
          {
            "name": "Six0",
            "value": "6.0"
          },
          {
            "name": "Seven0",
            "value": "7.0"
          }
        ]
      }
    },
    "VirtualNetworkRule": {
      "type": "object",
      "description": "Virtual Network ACL Rule object",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/virtualNetworks/subnets"
              }
            ]
          }
        },
        "ignoreMissingVNetServiceEndpoint": {
          "type": "boolean",
          "description": "Create firewall rule before the virtual network has vnet service endpoint enabled."
        }
      }
    }
  }
}